Electroencephalography (EEG) refers to the recording of the brain's spontaneous electrical activity over a short period of time, which is usually 20 to 40 minutes as recorded from multiple electrodes placed on the scalp. EEG used to be a first line method for the diagnosis of tumors, stroke and other focal brain disorders. It is also used in the diagnosis of coma, encephalopathies, and brain death.