A test commonly used to diagnose epilepsy is called an electroencephalogram, or EEG. This test records your brain waves. In some cases of epilepsy, your doctor can tell if your brain has abnormal electrical activity connected with a seizure by reading your EEG.