An electroencephalogram (EEG) is a medical test used to measure the electrical activity of the brain by applying a number of electrodes to the scalp. It is a painless procedure that can help diagnose various conditions, including epilepsy, sleep disorders, brain tumors, Alzheimers disease, certain psychoses, and narcolepsy. The EEG can also be used to evaluate trauma, drug intoxication, and the extent of brain damage in comatose patients, as well as to monitor blood flow in the brain during surgical procedures. Additionally, it may be used to confirm brain death in someone in a persistent coma and to find the right level of anesthesia for someone in a medically induced coma. The test results are analyzed by a neurologist, who then sends the results to the doctor for further evaluation and treatment planning. Other diagnostic tests, such as magnetic resonance imaging (MRI) scans and computed tomography (CT) scans, may be used in conjunction with an EEG, depending on the condition under investigation.