In addition to taking a patient history, one test for epilepsy is an MRI of the brain to see structural abnormalities that would be associated with seizures. The MRI can detect types of strokes, brain tumors, and scar tissue that might contribute to seizures. Another test is an EEG, which is where electrodes are hooked up to the patient’s head in a dark room for 20-30 minutes so that the doctor can look at the brainwaves. The doctor is specifically looking for epileptiform discharges, which are waveforms or big spikes that can reveal if another seizure is likely. Even with these tests, epilepsy can be difficult to diagnose.