An electroencephalogram (EEG) is a non-invasive medical test used to monitor and record the electrical activity of the brain. By placing electrodes on the scalp, an EEG can capture the brain's electrical signals, which are then translated into waveforms for analysis. This test is commonly used to diagnose and monitor neurological conditions, including epilepsy, sleep disorders, and brain tumors.