An electroencephalogram (or EEG) is a test that measures the electrical activity of the brain. In reality, the test is called an electroencephalography, and the electroencephalogram is the transcription of the recording as a trace. It allows us to study and differentiate the main types of brain waves (delta, theta, alpha and beta). This painless test is primarily used to diagnose epilepsy.