PT - JOURNAL ARTICLE AU - Sridhar R. Jagannathan AU - Alejandro E. Nassar AU - Barbara Jachs AU - Olga V. Pustovaya AU - Corinne A. Bareham AU - Tristan A. Bekinschtein TI - Tracking wakefulness as it fades: micro-measures of Alertness AID - 10.1101/219527 DP - 2017 Jan 01 TA - bioRxiv PG - 219527 4099 - http://biorxiv.org/content/early/2017/11/20/219527.short 4100 - http://biorxiv.org/content/early/2017/11/20/219527.full AB - A major problem in psychology and physiology experiments is drowsiness: around a third of participants show decreased wakefulness despite being instructed to stay alert. In some non-visual experiments participants keep their eyes closed throughout the task, thus promoting the occurrence of such periods of varying alertness. These wakefulness changes contribute to systematic noise in data and measures of interest. To account for this omnipresent problem in data acquisition we defined criteria and code to allow researchers to detect and control for varying alertness in electroencephalography (EEG) experiments. We first revise a visual-scoring method developed for detection and characterization of the sleep-onset process, and adapt the same for detection of alertness levels. Furthermore, we show the major issues preventing the practical use of this method, and overcome these issues by developing an automated method based on frequency and sleep graphoelements, which is capable of detecting micro variations in alertness. The validity of the automated method was verified by training and testing the algorithm using a dataset where participants are known to fall asleep. In addition, we tested generalizability by independent validation on another dataset. The methods developed constitute a unique tool to assess micro variations in levels of alertness and control trial-by-trial retrospectively or prospectively in every experiment performed with EEG in cognitive neuroscience.