An electroencephalogram (EEG) is a non-invasive test that records the electrical activity of the brain. Small electrodes are placed on the scalp, which capture brain waves and transmit them to a machine that displays the activity as wavy lines. EEGs are commonly used to diagnose and monitor neurological conditions.