Nocturnal seizures are diagnosed by having an electroencephalogram, or EEG. An EEG is a test that monitors electrical abnormalities and activity in the brain. This procedure is non-invasive and involves connecting tiny electrodes with small wires to the scalp. These electrodes can monitor the brain's activity while awake and asleep.