a type of noninvasive, painless and safe test performed to measure the electrical activity of the brain, often used in diagnosing or managing epilepsy.