When you have a seizure, your brain shows abnormal electrical activity. This can be recorded by doctors on a special machine called an EEG (electroencephalogram).