Abstract
Sleep stage classification is crucial in diagnosing sleep disorders and monitoring treatment effectiveness, yet it is inconvenient, requiring many electrodes and labor-intensive assessments. Single electroencephalogram (EEG)-based deep learning approaches were proposed to address this issue; however, existing studies have employed deep learning models that are devised for imaging and natural language processing for automated sleep stage classification, which limits their use for capturing sleep patterns or changes over time in EEG signals. This study proposes SleepExpertNet, which is inspired by actual clinical guidelines for scoring sleep stages. The model consists of a representation learning part, which learns the physiological characteristics of EEG sleep signals, and a temporal context modeling part, which learns long- and short-term temporal context information similar to a sleep expert. SleepExpertNet guarantees the highest level of accuracy (accuracy: 90.8%, macro-f1: 86.7) on the expanded Sleep-EDF dataset, surpassing the existing state-of-the-art methods, despite utilizing only single-channel EEG signals. Furthermore, the class imbalance problem, which has been a major obstacle in sleep stage classification research, was also addressed. The proposed model is expected to reduce the workload on clinicians and support diagnostic decision-making, enabling more accurate sleep stage classification.
Similar content being viewed by others
Explore related subjects
Discover the latest articles, news and stories from top researchers in related subjects.Availability of data and materials
The datasets utilized in this study were downloaded from publicly available sources and were not modified. Datasets may be accessed according to the references and the following URL: https://www.physionet.org/content/sleep-edfx/1.0.0/.
Code availability
We are unable to publicly release the full code by our institutional policy.
Change history
08 November 2022
A Correction to this paper has been published: https://doi.org/10.1007/s12652-022-04476-7
References
Ali A, Shamsuddin SM, Ralescu AL (2013) Classification with class imbalance problem. Int J Adv Soft Comput Appl 5:1
Alickovic E, Subasi A (2018) Ensemble SVM method for automatic sleep stage classification. IEEE Trans Instrum Meas 67:1258–1265. https://doi.org/10.1109/TIM.2018.2799059
Altevogt BM, Colten HR (2006) Sleep disorders and sleep deprivation: an unmet public health problem. https://doi.org/10.17226/11617
Bengio Y, Courville A, Vincent P (2013) Representation learning: a review and new perspectives. IEEE Trans Pattern Anal Mach Intell 35:1798–1828. https://doi.org/10.1109/tpami.2013.50
Breiman L (2001) Random forests. Mach Learn 45:5–32. https://doi.org/10.1023/A:1010933404324
Chambon S, Galtier MN, Arnal PJ, Wainrib G, Gramfort A (2018) A deep learning architecture for temporal sleep stage classification using multivariate and multimodal time series. IEEE Trans Neural Syst Rehabil Eng 26:758–769. https://doi.org/10.1109/TNSRE.2018.2813138
Chen Z, Yang FL, Li CJ, Zhao T (2017) Online multiview representation learning: dropping convexity for better efficiency. https://arxiv.org/abs/1702.08134. Accessed 2 Sept 2021
Craik A, He Y, Contreras-Vidal JL (2019) Deep learning for electroencephalogram (EEG) classification tasks: a review. J Neural Eng 16:031001. https://doi.org/10.1088/1741-2552/ab0ab5
Davis SD, Eber E, Koumbourlis AC (2015) Diagnostic tests in pediatric pulmonology. Springer, New York
Deuschle M, Schredl M, Wisch C, Schilling C, Gilles M, Geisel O et al (2018) Serum brain-derived neurotrophic factor (BDNF) in sleep-disordered patients: relation to sleep stage N3 and rapid eye movement (REM) sleep across diagnostic entities. J Sleep Res 27:73–77. https://doi.org/10.1111/jsr.12577
Dietterich TG (2000) Ensemble methods in machine learning. In: International workshop on multiple classifier systems. Springer, Berlin, pp 1–15. https://doi.org/10.1007/3-540-45014-9_1
Dong H, Supratak A, Pan W, Wu C, Matthews PM, Guo Y (2017) Mixed neural network approach for temporal sleep stage classification. IEEE Trans Neural Syst Rehabil Eng 26:324–333. https://doi.org/10.1109/TNSRE.2017.2733220
Eldele E, Chen Z, Liu C, Wu M, Kwoh C-K, Li X et al (2021) An attention-based deep learning approach for sleep stage classification with single-channel EEG. IEEE Trans Neural Syst Rehabil Eng 29:809–818. https://doi.org/10.1109/TNSRE.2021.3076234
Fan J, Sun C, Chen C, Jiang X, Liu X, Zhao X et al (2020) EEG data augmentation: towards class imbalance problem in sleep staging tasks. J Neural Eng 17:056017. https://doi.org/10.1088/1741-2552/abb5be
Gers FA, Schmidhuber J, Cummins F (1999) Learning to forget: continual prediction with LSTM. Neural Comput 1:1
Grigg-Damberger MM (2009) The AASM scoring manual: a critical appraisal. Curr Opin Pulm Med 15:540–549. https://doi.org/10.1097/MCP.0b013e328331a2bf
Hauglund NL, Pavan C, Nedergaard M (2020) Cleaning the sleeping brain—the potential restorative function of the glymphatic system. Curr Opin Physiol 15:1–6. https://doi.org/10.1016/j.cophys.2019.10.020
He K, Zhang X, Ren S, Sun J (2016) Deep residual learning for image recognition. In: Proceedings of the IEEE conference on computer vision and pattern recognition, pp 770–778. https://doi.org/10.1109/CVPR.2016.90
Hearst MA, Dumais ST, Osuna E, Platt J, Scholkopf B (1998) Support vector machines. IEEE Intell Syst Appl 13:18–28. https://doi.org/10.1109/5254.708428
Jia Z, Lin Y, Wang J, Zhou R, Ning X, He Y et al (2020) Graphsleepnet: adaptive spatial–temporal graph convolutional networks for sleep stage classification. In: Proceedings of the 29th international joint conference on artificial intelligence IJCAI, pp 1324–1330. https://doi.org/10.24963/ijcai.2020/184
Jiang D, Y-n Lu, Yu M, Yuanyuan W (2019a) Robust sleep stage classification with single-channel EEG signals using multimodal decomposition and HMM-based refinement. Expert Syst Appl 121:188–203. https://doi.org/10.1016/j.eswa.2018.12.023
Jiang D, Yu M, Yuanyuan W (2019b) Sleep stage classification using covariance features of multi-channel physiological signals on Riemannian manifolds. Comput Methods Programs Biomed 178:19–30. https://doi.org/10.1016/j.cmpb.2019.06.008
Khalili E, Asl BM (2021) Automatic sleep stage classification using temporal convolutional neural network and new data augmentation technique from raw single-channel EEG. Comput Methods Programs Biomed 204:106063. https://doi.org/10.1016/j.cmpb.2021.106063
Koturwar S, Merchant S (2017) Weight initialization of deep neural networks (DNNS) using data statistics. https://arxiv.org/abs/1710.10570. Accessed 2 Sept 2021
Lawhern VJ, Solon AJ, Waytowich NR, Gordon SM, Hung CP, Lance BJ (2018) EEGNet: a compact convolutional neural network for EEG-based brain–computer interfaces. J Neural Eng 15:056013. https://doi.org/10.1088/1741-2552/aace8c
Lee C-H, Kim H-J, Heo J-W, Kim H, Kim D-J (2021) Improving sleep stage classification performance by single-channel EEG data augmentation via spectral band blending. In: 2021 9th international winter conference on brain–computer interface. IEEE, New York, pp 1–5. https://doi.org/10.1109/BCI51272.2021.9385297
Lee-Chiong TL (2005) Sleep: a comprehensive handbook. Wiley, New York
Lin T-Y, Goyal P, Girshick R, He K, Dollár P (2017) Focal loss for dense object detection. In: Proceedings of the IEEE international conference on computer vision. IEEE, New York, pp 2980–2988. https://doi.org/10.1109/ICCV.2017.324
Longadge R, Dongre S (2013) Class imbalance problem in data mining review. arXiv Preprint
Loshchilov I, Hutter F (2017) Decoupled weight decay regularization. https://arxiv.org/abs/1711.05101. Accessed 2 Sept 2021
Mousavi S, Afghah F, Acharya UR (2019) SleepEEGNet: automated sleep stage scoring with sequence to sequence deep learning approach. PLoS ONE 14:e0216456. https://doi.org/10.1371/journal.pone.0216456
Özşen S (2013) Classification of sleep stages using class-dependent sequential feature selection and artificial neural network. Neural Comput Appl 23:1239–1250. https://doi.org/10.1007/s00521-012-1065-4
Palma J-A, Urrestarazu E, Lopez-Azcarate J, Alegre M, Fernandez S, Artieda J et al (2013) Increased sympathetic and decreased parasympathetic cardiac tone in patients with sleep related alveolar hypoventilation. Sleep 36:933–940. https://doi.org/10.5665/sleep.2728
Pan SJ, Yang Q (2009) A survey on transfer learning. IEEE Trans Knowl Data Eng 22:1345–1359. https://doi.org/10.1109/TKDE.2009.191
Parvaneh S, Rubin J, Babaeizadeh S, Xu-Wilson M (2019) Cardiac arrhythmia detection using deep learning: a review. J Electrocardiol 57:S70–S74. https://doi.org/10.1016/j.jelectrocard.2019.08.004
Perslev M, Jensen MH, Darkner S, Jennum PJ, Igel C (2019) U-time: a fully convolutional network for time series segmentation applied to sleep staging. https://arxiv.org/abs/1910.11162. Accessed 2 Sept 2021
Phan H, Andreotti F, Cooray N, Chén OY, De Vos M (2018a) DNN filter bank improves 1-max pooling CNN for single-channel EEG automatic sleep stage classification. In: 2018a 40th annual international conference of the IEEE engineering in medicine and biology society. IEEE, New York, pp 453–456. https://doi.org/10.1109/EMBC.2018.8512286
Phan H, Andreotti F, Cooray N, Chén OY, De Vos M (2018b) Joint classification and prediction CNN framework for automatic sleep stage classification. IEEE Trans Biomed Eng 66:1285–1296. https://doi.org/10.1109/TBME.2018.2872652
Phan H, Andreotti F, Cooray N, Chén OY, De Vos M (2019) SeqSleepNet: end-to-end hierarchical recurrent neural network for sequence-to-sequence automatic sleep staging. IEEE Trans Neural Syst Rehabil Eng 27:400–410. https://doi.org/10.1109/TNSRE.2019.2896659
Qu W, Wang Z, Hong H, Chi Z, Feng DD, Grunstein R et al (2020) A residual based attention model for eeg based sleep staging. IEEE J Biomed Health Inform 24:2833–2843. https://doi.org/10.1109/JBHI.2020.2978004
Ratnavadivel R, Chau N, Stadler D, Yeo A, McEvoy RD, Catcheside PG (2009) Marked reduction in obstructive sleep apnea severity in slow wave sleep. J Clin Sleep Med 5:519–524. https://doi.org/10.5664/jcsm.27651
Rechtschaffen A, Kales A (1968) A manual of standardized terminology, technique and scoring system for sleep stages of human sleep. Brain Information Service. https://doi.org/10.1001/archpsyc.1969.01740140118016
Rosenberg RS, Van Hout S (2013) The American Academy of Sleep Medicine inter-scorer reliability program: sleep stage scoring. J Clin Sleep Med 9:81–87
Shrivastava D, Jung S, Saadat M, Sirohi R, Crewson K (2014) How to interpret the results of a sleep study. J Community Hosp Intern Med Perspect 4:24983. https://doi.org/10.3402/jchimp.v4.24983
Siami-Namini S, Tavakoli N, Namin AS (2019) The performance of LSTM and BiLSTM in forecasting time series. In: 2019 IEEE international conference on big data. IEEE, New York, pp 3285–3292. https://doi.org/10.1109/BigData47090.2019.9005997
Siclari F, Tononi G (2017) Local aspects of sleep and wakefulness. Curr Opin Neurobiol 44:222–227. https://doi.org/10.1016/j.conb.2017.05.008
Siegel JM (2005) Clues to the functions of mammalian sleep. Nature 437:1264–1271. https://doi.org/10.1038/nature04285
Supratak A, Dong H, Wu C, Guo Y (2017) DeepSleepNet: a model for automatic sleep stage scoring based on raw single-channel EEG. IEEE Trans Neural Syst Rehabil Eng 25:1998–2008. https://doi.org/10.1109/TNSRE.2017.2721116
Supratak A, Guo Y (2020) TinySleepNet: an efficient deep learning model for sleep stage scoring based on raw single-channel eeg. In: 2020 42nd annual international conference of the IEEE engineering in medicine and biology society (EMBC). IEEE, New York, pp 641–644. https://doi.org/10.1109/EMBC44109.2020.9176741
Thai-Nghe N, Gantner Z, Schmidt-Thieme L (2010) Cost-sensitive learning methods for imbalanced data. In: The 2010 international joint conference on neural networks. IEEE, New York, pp 1–8. https://doi.org/10.1109/IJCNN.2010.5596486
Tsoi AC (1997) Recurrent neural network architectures: an overview. IIASS EMFCSC1-26. https://doi.org/10.1007/BFb0053993
Vaswani A, Shazeer N, Parmar N, Uszkoreit J, Jones L, Gomez AN et al (2017) Attention is all you need. https://arxiv.org/abs/1706.03762. Accessed 2 Sept 2021
Virkkala J, Hasan J, Värri A, Himanen S-L, Müller K (2007) Automatic sleep stage classification using two-channel electro-oculography. J Neurosci Methods 166:109–115. https://doi.org/10.1016/j.jneumeth.2007.06.016
Wang Y, Tian F (2016) Recurrent residual learning for sequence classification. In: Proceedings of the 2016 conference on empirical methods in natural language processing. Association for Computational Linguistics, pp 938–943. https://doi.org/10.18653/v1/D16-1093
Wang I-N, Lee C-H, Kim H-J, Kim H, Kim D-J (2020) An ensemble deep learning approach for sleep stage classification via single-channel EEG and EOG. In: 2020 international conference on information and communication technology convergence. IEEE, New York, pp 394–398. https://doi.org/10.1109/ICTC49870.2020.9289335
Yildirim O, Baloglu UB, Acharya UR (2019) A deep learning model for automated sleep stages classification using PSG signals. Int J Environ Res Public Health 16:599. https://doi.org/10.3390/ijerph16040599
Zhu T, Luo W, Yu F (2020a) Convolution-and attention-based neural network for automated sleep stage classification. Int J Environ Res Public Health 17:4152. https://doi.org/10.3390/ijerph17114152
Zhu T, Luo W, Yu F (2020b) Multi-branch convolutional neural network for automatic sleep stage classification with embedded stage refinement and residual attention channel fusion. Sensors 20:6592. https://doi.org/10.3390/s20226592
Funding
This work was supported by the Korea Medical Device Development Fund Grant funded by the Korea government (the Ministry of Science and ICT, the Ministry of Trade, Industry and Energy, the Ministry of Health and Welfare, the Ministry of Food and Drug Safety) (Project No. 1711139120, KMDF_PR_20210528_0001); by a National Research Foundation of Korea (NRF) Grant funded by the Korean government (Ministry of Science and ICT, MSIT) (No. 2022R1A2C1013205); by Institute for Information and Communications Technology Promotion (IITP) Grant funded by the Korea government (MSIT) (No. 2017-0-00432, Development of non-invasive integrated BCI SW platform to control home appliances and external devices by user's thought via AR/VR interface); by the Korea Health Technology R&D project through the Korea Health Industry Development Institute (KHIDI), funded by the Ministry of Health and Welfare (grant number: HI22C0946); by a National Research Foundation of Korea (NRF) Grant funded by the Korean government (Ministry of Science and ICT, MSIT) (No. 2020R1C1C1006773).
Author information
Authors and Affiliations
Contributions
CHL conceptualized the study design, developed the deep learning model, computational framework and draft the manuscript. HJK performed data analysis, critically reviewed, and revised the manuscript. YTK visualized the materials, critically reviewed, and revised the manuscript. HK and JBK critically reviewed and revised the manuscript. DJK conceived and designed the study, established the methodology, and oversaw the creation of the final manuscript. All authors read and approved the final manuscript.
Corresponding author
Ethics declarations
Ethics approval
Not applicable.
Consent to participate
Not applicable.
Consent for publication
Not applicable.
Additional information
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Springer Nature or its licensor (e.g. a society or other partner) holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.
About this article
Cite this article
Lee, CH., Kim, HJ., Kim, YT. et al. SleepExpertNet: high-performance and class-balanced deep learning approach inspired from the expert neurologists for sleep stage classification. J Ambient Intell Human Comput 14, 8067–8083 (2023). https://doi.org/10.1007/s12652-022-04443-2
Received:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s12652-022-04443-2