An electroencephalogram (EEG) test records electrical activity in your brain using electrodes attached to your scalp. An EEG determines changes in brain activity and may be recommended to diagnose or treat disorders such as a brain tumor, epilepsy, inflammation of the brain, a stroke, encephalopathy or Alzheimer’s disease.