A variety of tests are used to help diagnose epilepsy, including a neurological exam and an electroencephalogram (EEG). Other tests may include blood work and imaging studies of the brain, such as a computerized tomography (CT) scan, magnetic resonance imaging (MRI), and a positron emission tomography (PET).