An electroencephalogram (EEG) is a test that measures the electrical activity of the brain. Your child may need this test to check for seizures or other conditions, like sleep apnea, brain infections, or brain tumors. Here's what you need to know about the test.