Electroencephalography (EEG) is a non-invasive medical test that records the electrical activity of the brain. The procedure involves placing small, metal discs called electrodes on the scalp to detect electrical charges from brain cell communication. The resulting electrical patterns, known as brain waves, are displayed as wavy lines on a computer screen for a healthcare provider to interpret.