Measuring the brain's electric signals, a process called electroencephalography (EEG), is a useful way to diagnose seizures and evaluate sleep disorders. Attaching a jumble of electrodes and wires to the scalp, though, is messy, time-consuming and requires a patient to sit still in a lab, so researchers are limited to recording data over a period of only a few hours.