EEG can assist doctors in diagnosing epilepsy, brain lesions, brain tumors or strokes.