An electroencephalogram (EEG) is a test used to find problems related to electrical activity of the brain.