Sleep: An Open-Source Python Software for Visualization, Analysis, and Staging of Sleep Data

We introduce Sleep, a new Python open-source graphical user interface (GUI) dedicated to visualization, scoring and analyses of sleep data. Among its most prominent features are: (1) Dynamic display of polysomnographic data, spectrogram, hypnogram and topographic maps with several customizable parameters, (2) Implementation of several automatic detection of sleep features such as spindles, K-complexes, slow waves, and rapid eye movements (REM), (3) Implementation of practical signal processing tools such as re-referencing or filtering, and (4) Display of main descriptive statistics including publication-ready tables and figures. The software package supports loading and reading raw EEG data from standard file formats such as European Data Format, in addition to a range of commercial data formats. Most importantly, Sleep is built on top of the VisPy library, which provides GPU-based fast and high-level visualization. As a result, it is capable of efficiently handling and displaying large sleep datasets. Sleep is freely available (http://visbrain.org/sleep) and comes with sample datasets and an extensive documentation. Novel functionalities will continue to be added and open-science community efforts are expected to enhance the capacities of this module.

[1]  Philippe Kahane,et al.  From intentions to actions: Neural oscillations encode motor processes through phase, amplitude and phase-amplitude coupling , 2017, NeuroImage.

[2]  J. Pernier,et al.  Stimulus Specificity of Phase-Locked and Non-Phase-Locked 40 Hz Visual Responses in Human , 1996, The Journal of Neuroscience.

[3]  Karim Jerbi,et al.  Learning machines and sleeping brains: Automatic sleep stage classification using decision-tree multi-class support vector machines , 2015, Journal of Neuroscience Methods.

[4]  Perrine Ruby,et al.  Alpha Reactivity to Complex Sounds Differs during REM Sleep and Wakefulness , 2013, PloS one.

[5]  Ivan W. Selesnick,et al.  Detection of K-complexes and sleep spindles (DETOKS) using sparse optimization , 2015, Journal of Neuroscience Methods.

[6]  Abdennaceur Kachouri,et al.  Meet Spinky: An Open-Source Spindle and K-Complex Detection Toolbox Validated on the Open-Access Montreal Archive of Sleep Studies (MASS) , 2017, Front. Neuroinform..

[7]  Martin Luessi,et al.  MEG and EEG data analysis with MNE-Python , 2013, Front. Neuroinform..

[8]  Karim Jerbi,et al.  Exceeding chance level by chance: The caveat of theoretical chance levels in brain signal classification and statistical assessment of decoding accuracy , 2015, Journal of Neuroscience Methods.

[9]  Christian O'Reilly,et al.  Automatic sleep spindle detection: benchmarking with fine temporal resolution using open science tools , 2015, Front. Hum. Neurosci..

[10]  Clemens Brunner,et al.  SCoT: a Python toolbox for EEG source connectivity , 2014, Front. Neuroinform..

[11]  Philippe Kahane,et al.  Task‐related gamma‐band dynamics from an intracerebral perspective: Review and implications for surface EEG and MEG , 2009, Human brain mapping.

[12]  E. Wolpert A Manual of Standardized Terminology, Techniques and Scoring System for Sleep Stages of Human Subjects. , 1969 .

[13]  Thierry Dutoit,et al.  Automatic sleep spindles detection — Overview and development of a standard proposal assessment method , 2011, 2011 Annual International Conference of the IEEE Engineering in Medicine and Biology Society.

[14]  Perrine Ruby,et al.  What is the specificity of the response to the own first-name when presented as a novel in a passive oddball paradigm? An ERP study , 2012, Brain Research.

[15]  Pietro Perona,et al.  Sleep spindle detection: crowdsourcing and evaluating performance of experts, non-experts, and automated methods , 2014, Nature Methods.

[16]  Ivan W. Selesnick,et al.  Wavelet Transform With Tunable Q-Factor , 2011, IEEE Transactions on Signal Processing.

[17]  O. Bertrand,et al.  Brain reactivity differentiates subjects with high and low dream recall frequencies during both sleep and wakefulness. , 2014, Cerebral cortex.

[18]  Perrine Ruby,et al.  Alpha reactivity to first names differs in subjects with high and low dream recall frequency , 2013, Front. Psychol..

[19]  Abdennaceur Kachouri,et al.  Sleep spindle and K-complex detection using tunable Q-factor wavelet transform and morphological component analysis , 2015, Front. Hum. Neurosci..

[20]  Aykut Erdamar,et al.  A wavelet and teager energy operator based method for automatic detection of K-Complex in sleep EEG , 2012, Expert Syst. Appl..

[21]  A. Chesson,et al.  The AASM Manual for the Scoring of Sleep and Associated Events: Rules, Terminology, and Techinical Specifications , 2007 .

[22]  Cyrille Rossant,et al.  VisPy: Harnessing The GPU For Fast, High-Level Visualization , 2015 .

[23]  Karim Jerbi,et al.  Increased Evoked Potentials to Arousing Auditory Stimuli during Sleep: Implication for the Understanding of Dream Recall , 2017, Front. Hum. Neurosci..

[24]  J. Mattout,et al.  Automatic analysis of single-channel sleep EEG: validation in healthy individuals. , 2007, Sleep.