A flexible film bristling with tiny sensors could make surgery safer for patients with a brain tumor or severe epilepsy.