When a person has a seizure, the brain shows abnormal electrical activity that can be recorded by doctors on a special machine called an EEG.