Preparation for an EEG usually involves washing the hair to remove oils and hair products. Patients may be instructed to avoid caffeine and certain medications that could affect brain activity. It's also advised to get a good night's sleep unless a sleep-deprived EEG is requested.