An EEG or electroencephalogram (e-lek-tro-en-sef-ah-lo-gram) is a recording of the electrical activity of the brain.