An electroencephalogram EEG is a measuring tool for detecting electrical activity within the brain by attaching electrodes to the scalp. They can be used in research to investigate brain activity, or in a medical setting to help diagnose disorders, such as epilepsy.