-
From Sleep Staging to Spindle Detection: Evaluating End-to-End Automated Sleep Analysis
Authors:
Niklas Grieger,
Siamak Mehrkanoon,
Philipp Ritter,
Stephan Bialonski
Abstract:
Automation of sleep analysis, including both macrostructural (sleep stages) and microstructural (e.g., sleep spindles) elements, promises to enable large-scale sleep studies and to reduce variance due to inter-rater incongruencies. While individual steps, such as sleep staging and spindle detection, have been studied separately, the feasibility of automating multi-step sleep analysis remains uncle…
▽ More
Automation of sleep analysis, including both macrostructural (sleep stages) and microstructural (e.g., sleep spindles) elements, promises to enable large-scale sleep studies and to reduce variance due to inter-rater incongruencies. While individual steps, such as sleep staging and spindle detection, have been studied separately, the feasibility of automating multi-step sleep analysis remains unclear. Here, we evaluate whether a fully automated analysis using state-of-the-art machine learning models for sleep staging (RobustSleepNet) and subsequent spindle detection (SUMOv2) can replicate findings from an expert-based study of bipolar disorder. The automated analysis qualitatively reproduced key findings from the expert-based study, including significant differences in fast spindle densities between bipolar patients and healthy controls, accomplishing in minutes what previously took months to complete manually. While the results of the automated analysis differed quantitatively from the expert-based study, possibly due to biases between expert raters or between raters and the models, the models individually performed at or above inter-rater agreement for both sleep staging and spindle detection. Our results demonstrate that fully automated approaches have the potential to facilitate large-scale sleep research. We are providing public access to the tools used in our automated analysis by sharing our code and introducing SomnoBot, a privacy-preserving sleep analysis platform.
△ Less
Submitted 8 May, 2025;
originally announced May 2025.
-
Data-Efficient Sleep Staging with Synthetic Time Series Pretraining
Authors:
Niklas Grieger,
Siamak Mehrkanoon,
Stephan Bialonski
Abstract:
Analyzing electroencephalographic (EEG) time series can be challenging, especially with deep neural networks, due to the large variability among human subjects and often small datasets. To address these challenges, various strategies, such as self-supervised learning, have been suggested, but they typically rely on extensive empirical datasets. Inspired by recent advances in computer vision, we pr…
▽ More
Analyzing electroencephalographic (EEG) time series can be challenging, especially with deep neural networks, due to the large variability among human subjects and often small datasets. To address these challenges, various strategies, such as self-supervised learning, have been suggested, but they typically rely on extensive empirical datasets. Inspired by recent advances in computer vision, we propose a pretraining task termed "frequency pretraining" to pretrain a neural network for sleep staging by predicting the frequency content of randomly generated synthetic time series. Our experiments demonstrate that our method surpasses fully supervised learning in scenarios with limited data and few subjects, and matches its performance in regimes with many subjects. Furthermore, our results underline the relevance of frequency information for sleep stage scoring, while also demonstrating that deep neural networks utilize information beyond frequencies to enhance sleep staging performance, which is consistent with previous research. We anticipate that our approach will be advantageous across a broad spectrum of applications where EEG data is limited or derived from a small number of subjects, including the domain of brain-computer interfaces.
△ Less
Submitted 13 March, 2024;
originally announced March 2024.
-
Advanced sleep spindle identification with neural networks
Authors:
Lars Kaulen,
Justus T. C. Schwabedal,
Jules Schneider,
Philipp Ritter,
Stephan Bialonski
Abstract:
Sleep spindles are neurophysiological phenomena that appear to be linked to memory formation and other functions of the central nervous system, and that can be observed in electroencephalographic recordings (EEG) during sleep. Manually identified spindle annotations in EEG recordings suffer from substantial intra- and inter-rater variability, even if raters have been highly trained, which reduces…
▽ More
Sleep spindles are neurophysiological phenomena that appear to be linked to memory formation and other functions of the central nervous system, and that can be observed in electroencephalographic recordings (EEG) during sleep. Manually identified spindle annotations in EEG recordings suffer from substantial intra- and inter-rater variability, even if raters have been highly trained, which reduces the reliability of spindle measures as a research and diagnostic tool. The Massive Online Data Annotation (MODA) project has recently addressed this problem by forming a consensus from multiple such rating experts, thus providing a corpus of spindle annotations of enhanced quality. Based on this dataset, we present a U-Net-type deep neural network model to automatically detect sleep spindles. Our model's performance exceeds that of the state-of-the-art detector and of most experts in the MODA dataset. We observed improved detection accuracy in subjects of all ages, including older individuals whose spindles are particularly challenging to detect reliably. Our results underline the potential of automated methods to do repetitive cumbersome tasks with super-human performance.
△ Less
Submitted 11 May, 2022; v1 submitted 6 February, 2022;
originally announced February 2022.
-
Automated scoring of pre-REM sleep in mice with deep learning
Authors:
Niklas Grieger,
Justus T. C. Schwabedal,
Stefanie Wendel,
Yvonne Ritze,
Stephan Bialonski
Abstract:
Reliable automation of the labor-intensive manual task of scoring animal sleep can facilitate the analysis of long-term sleep studies. In recent years, deep-learning-based systems, which learn optimal features from the data, increased scoring accuracies for the classical sleep stages of Wake, REM, and Non-REM. Meanwhile, it has been recognized that the statistics of transitional stages such as pre…
▽ More
Reliable automation of the labor-intensive manual task of scoring animal sleep can facilitate the analysis of long-term sleep studies. In recent years, deep-learning-based systems, which learn optimal features from the data, increased scoring accuracies for the classical sleep stages of Wake, REM, and Non-REM. Meanwhile, it has been recognized that the statistics of transitional stages such as pre-REM, found between Non-REM and REM, may hold additional insight into the physiology of sleep and are now under vivid investigation. We propose a classification system based on a simple neural network architecture that scores the classical stages as well as pre-REM sleep in mice. When restricted to the classical stages, the optimized network showed state-of-the-art classification performance with an out-of-sample F1 score of 0.95 in male C57BL/6J mice. When unrestricted, the network showed lower F1 scores on pre-REM (0.5) compared to the classical stages. The result is comparable to previous attempts to score transitional stages in other species such as transition sleep in rats or N1 sleep in humans. Nevertheless, we observed that the sequence of predictions including pre-REM typically transitioned from Non-REM to REM reflecting sleep dynamics observed by human scorers. Our findings provide further evidence for the difficulty of scoring transitional sleep stages, likely because such stages of sleep are under-represented in typical data sets or show large inter-scorer variability. We further provide our source code and an online platform to run predictions with our trained network.
△ Less
Submitted 16 June, 2021; v1 submitted 5 May, 2021;
originally announced May 2021.
-
Automated Classification of Sleep Stages and EEG Artifacts in Mice with Deep Learning
Authors:
Justus T. C. Schwabedal,
Daniel Sippel,
Moritz D. Brandt,
Stephan Bialonski
Abstract:
Sleep scoring is a necessary and time-consuming task in sleep studies. In animal models (such as mice) or in humans, automating this tedious process promises to facilitate long-term studies and to promote sleep biology as a data-driven field. We introduce a deep neural network model that is able to predict different states of consciousness (Wake, Non-REM, REM) in mice from EEG and EMG recordings w…
▽ More
Sleep scoring is a necessary and time-consuming task in sleep studies. In animal models (such as mice) or in humans, automating this tedious process promises to facilitate long-term studies and to promote sleep biology as a data-driven field. We introduce a deep neural network model that is able to predict different states of consciousness (Wake, Non-REM, REM) in mice from EEG and EMG recordings with excellent scoring results for out-of-sample data. Predictions are made on epochs of 4 seconds length, and epochs are classified as artifact-free or not. The model architecture draws on recent advances in deep learning and in convolutional neural networks research. In contrast to previous approaches towards automated sleep scoring, our model does not rely on manually defined features of the data but learns predictive features automatically. We expect deep learning models like ours to become widely applied in different fields, automating many repetitive cognitive tasks that were previously difficult to tackle.
△ Less
Submitted 22 September, 2018;
originally announced September 2018.
-
How important is the seizure onset zone for seizure dynamics?
Authors:
Christian Geier,
Stephan Bialonski,
Christian E. Elger,
Klaus Lehnertz
Abstract:
Purpose: Research into epileptic networks has recently allowed deeper insights into the epileptic process. Here we investigated the importance of individual network nodes for seizure dynamics.
Methods: We analysed intracranial electroencephalographic recordings of 86 focal seizures with different anatomical onset locations. With time-resolved correlation analyses, we derived a sequence of weight…
▽ More
Purpose: Research into epileptic networks has recently allowed deeper insights into the epileptic process. Here we investigated the importance of individual network nodes for seizure dynamics.
Methods: We analysed intracranial electroencephalographic recordings of 86 focal seizures with different anatomical onset locations. With time-resolved correlation analyses, we derived a sequence of weighted epileptic networks spanning the pre-ictal, ictal, and post-ictal period, and each recording site represents a network node. We assessed node importance with commonly used centrality indices that take into account different network properties.
Results: A high variability of temporal evolution of node importance was observed, both intra- and interindividually. Nevertheless, nodes near and far off the seizure onset zone (SOZ) were rated as most important for seizure dynamics more often (65% of cases) than nodes from within the SOZ (35% of cases).
Conclusion: Our findings underline the high relevance of brain outside of the SOZ but within the large-scale epileptic network for seizure dynamics. Knowledge about these network constituents may elucidate targets for individualised therapeutic interventions that aim at preventing seizure generation and spread.
△ Less
Submitted 2 December, 2014;
originally announced December 2014.
-
Evolving functional network properties and synchronizability during human epileptic seizures
Authors:
Kaspar A. Schindler,
Stephan Bialonski,
Marie-Therese Horstmann,
Christian E. Elger,
Klaus Lehnertz
Abstract:
We assess electrical brain dynamics before, during, and after one-hundred human epileptic seizures with different anatomical onset locations by statistical and spectral properties of functionally defined networks. We observe a concave-like temporal evolution of characteristic path length and cluster coefficient indicative of a movement from a more random toward a more regular and then back toward…
▽ More
We assess electrical brain dynamics before, during, and after one-hundred human epileptic seizures with different anatomical onset locations by statistical and spectral properties of functionally defined networks. We observe a concave-like temporal evolution of characteristic path length and cluster coefficient indicative of a movement from a more random toward a more regular and then back toward a more random functional topology. Surprisingly, synchronizability was significantly decreased during the seizure state but increased already prior to seizure end. Our findings underline the high relevance of studying complex systems from the view point of complex networks, which may help to gain deeper insights into the complicated dynamics underlying epileptic seizures.
△ Less
Submitted 22 November, 2013;
originally announced November 2013.
-
Evolving networks in the human epileptic brain
Authors:
Klaus Lehnertz,
Gerrit Ansmann,
Stephan Bialonski,
Henning Dickten,
Christian Geier,
Stephan Porz
Abstract:
Network theory provides novel concepts that promise an improved characterization of interacting dynamical systems. Within this framework, evolving networks can be considered as being composed of nodes, representing systems, and of time-varying edges, representing interactions between these systems. This approach is highly attractive to further our understanding of the physiological and pathophysio…
▽ More
Network theory provides novel concepts that promise an improved characterization of interacting dynamical systems. Within this framework, evolving networks can be considered as being composed of nodes, representing systems, and of time-varying edges, representing interactions between these systems. This approach is highly attractive to further our understanding of the physiological and pathophysiological dynamics in human brain networks. Indeed, there is growing evidence that the epileptic process can be regarded as a large-scale network phenomenon. We here review methodologies for inferring networks from empirical time series and for a characterization of these evolving networks. We summarize recent findings derived from studies that investigate human epileptic brain networks evolving on timescales ranging from few seconds to weeks. We point to possible pitfalls and open issues, and discuss future perspectives.
△ Less
Submitted 16 September, 2013;
originally announced September 2013.