An electroencephalogram (EEG) is a test that measures the electrical activity of a person’s brain through the use of sensors attached to the head and connected to a computer. This test can detect a wide variety of conditions, enabling us to diagnose and treat the following: