Electroencephalograms (EEGs) are tests that record electrical activity in the brain using electrodes placed on the scalp. EEGs are used to study normal brain functions, such as changes during sleep, and also to diagnose various neurological conditions, including epilepsy and sleep disorders.