An Electroencephalogram (EEG) is a diagnostic test that measures the electrical activity of the brain. It records brain wave patterns through small electrodes placed on the scalp. EEG is commonly used to diagnose neurological conditions such as epilepsy, seizures, sleep disorders, brain injuries, and even certain psychiatric conditions. The test provides valuable information about brain function by detecting abnormalities in electrical activity.