Microsleeping can be detected by electroencephalogram (EEG). EEG is a test that is used to measure brain activity. People generally don't have access to an EEG at home, so the best way to detect microsleep is to watch for symptoms like dozing off, drowsiness, and closed eyes.