Skip to main content
Log in

A temporal multi-scale hybrid attention network for sleep stage classification

  • Original Article
  • Published:
Medical & Biological Engineering & Computing Aims and scope Submit manuscript

Abstract

Sleep is crucial for human health. Automatic sleep stage classification based on polysomnogram (PSG) is meaningful for the diagnosis of sleep disorders, which has attracted extensive attention in recent years. Most existing methods could not fully consider the different transitions of sleep stages and fit the visual inspection of sleep experts simultaneously. To this end, we propose a temporal multi-scale hybrid attention network, namely TMHAN, to automatically achieve sleep staging. The temporal multi-scale mechanism incorporates short-term abrupt and long-term periodic transitions of the successive PSG epochs. Furthermore, the hybrid attention mechanism includes 1-D local attention, 2-D global attention, and 2-D contextual sparse multi-head self-attention for three kinds of sequence-level representations. The concatenated representation is subsequently fed into a softmax layer to train an end-to-end model. Experimental results on two benchmark sleep datasets show that TMHAN obtains the best performance compared with several baselines, demonstrating the effectiveness of our model. In general, our work not only provides good classification performance, but also fits the actual sleep staging processes, which makes contribution for the combination of deep learning and sleep medicine.

The brief overall architecture of temporal multi-scale hybrid attention network for sleep stage classification.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5

Similar content being viewed by others

Notes

  1. https://physionet.org/

References

  1. Chriskos P, Frantzidis CA, Gkivogkli PT et al (2020) Automatic sleep staging employing convolutional neural networks and cortical connectivity images. IEEE Trans Neural Netw Learn Syst 31(1):113–123

    Article  PubMed  Google Scholar 

  2. Delimayanti MK, Purnama B, Nguyen NG et al (2020) Classification of brainwaves for sleep stages by high-dimensional FFT features from EEG signals. Appl Sci-Basel 10(5):1797

    Article  CAS  Google Scholar 

  3. Iber C, Ancoli-Israel S, Chesson, AL Jr et al (2007) The AASM manual for the scoring of sleep and associated events. American Academy of Sleep Medicine, Westchester

    Google Scholar 

  4. Memar P, Faradji F (2018) A novel multi-class EEG-based sleep stage classification system. IEEE Trans Neural Syst Rehabil Eng 26(1):84–95

    Article  PubMed  Google Scholar 

  5. Zhao DC, Wang Y, Wang QQ et al (2019) Comparative analysis of different characteristics of automatic sleep stages. Comput Meth Programs Biomed 175:53–72

    Article  Google Scholar 

  6. Kang DY, DeYoung PN, Malhotra A et al (2018) A state space and density estimation framework for sleep staging in obstructive sleep apnea. IEEE Trans Biomed Eng 65(6):1201–1212

    Article  PubMed  Google Scholar 

  7. Ghimatgar H, Kazemi K, Helfroush MS et al (2019) An automatic single-channel EEG-based sleep stage scoring method based on hidden Markov model. J Neurosci Methods 324:108320

    Article  PubMed  Google Scholar 

  8. Chambon S, Galtier MN, Arnal PJ et al (2018) A deep learning architecture for temporal sleep stage classification using multivariate and multimodal time series. IEEE Trans Neural Syst Rehabil Eng 26 (4):758–769

    Article  PubMed  Google Scholar 

  9. Phan H, Andreotti F, Cooray N et al (2019) Joint classification and prediction CNN framework for automatic sleep stage classification. IEEE Trans Biomed Eng 66(5):1285–1296

    Article  PubMed  Google Scholar 

  10. Jadhav P, Rajguru G, Datta D et al (2020) Original automatic sleep stage classification using time-frequency images of CWT and transfer learning using convolution neural network. Biocybern Biomed Eng 40 (1):494–504

    Article  Google Scholar 

  11. Jia ZY, Lin YF, Wang J 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, Yokohama Japan, pp 1324–1330

  12. Michielli N, Acharya UR, Molinari F (2019) Cascaded LSTM recurrent neural network for automated sleep stage classification using single-channel EEG signals. Comput Biol Med 106:71–81

    Article  PubMed  Google Scholar 

  13. Dong H, Supratak A, Pan W et al (2018) Mixed neural network approach for temporal sleep stage classification. IEEE Trans Neural Syst Rehabil Eng 26(2):324–333

    Article  PubMed  Google Scholar 

  14. Kwon HB, Choi SH, Lee D et al (2021) Attention-based LSTM for non-contact sleep stage classification using IR-UWB radar. IEEE J Biomed Health Inform 25(10):3844–3853

    Article  PubMed  Google Scholar 

  15. Zhu TQ, Luo W, Yu F (2020) Convolution- and attention-based neural network for automated sleep stage classification. Int J Environ Res Public Health 17(11):4152

    Article  PubMed  PubMed Central  Google Scholar 

  16. 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 Meth Programs Biomed 204:106063

    Article  Google Scholar 

  17. Supratak A, Dong H, Wu C et al (2017) DeepSleepNet: a model for automatic sleep stage scoring based on raw single-channel EEG. IEEE Trans Neural Syst Rehabil Eng 25(11):1998–2008

    Article  PubMed  Google Scholar 

  18. Seo H, Back S, Lee S et al (2020) Intra- and inter-epoch temporal context network (IITNet) using sub-epoch features for automatic sleep scoring on raw single-channel EEG. Biomed Signal Process Control 61:102037

    Article  Google Scholar 

  19. Yuan Y, Xun GX, Ma FL et al (2018) MuVAN: a multi-view attention network for multivariate temporal data. In: Proceedings of the 18th IEEE international conference on data mining, Singapore, pp 717–726

  20. Phan H, Andreotti F, Cooray N et al (2019) SeqSleepNet: end-to-end hierarchical recurrent neural network for sequence-to-sequence automatic sleep staging. IEEE Trans Neural Syst Rehabil Eng 27(3):400–410

    Article  PubMed  PubMed Central  Google Scholar 

  21. Guillot A, Sauvet F, During EH et al (2020) Dreem open datasets: multi-scored sleep datasets to compare human and automated sleep staging. IEEE Trans Neural Syst Rehabil Eng 28(9):1955–1965

    Article  PubMed  Google Scholar 

  22. Berry RB, Brooks R, Gamaldo CE et al (2012) The AASM manual for the scoring of sleep and associated events. Rules, Terminol Tech Specifications Darien, Illinois, Amer Acad Sleep Med

  23. Yuan Y, Jia KB (2019) FusionAtt: deep fusional attention networks for multi-channel biomedical signals. Sensors 19(11):2429

    Article  PubMed  PubMed Central  Google Scholar 

  24. Yuan Y, Jia KB, Ma FL et al (2019) A hybrid self-attention deep learning framework for multivariate sleep stage classification. BMC Bioinforma 20(16):1–10

    Google Scholar 

  25. Wang HF, Lu CG, Zhang Q et al (2022) A novel sleep staging network based on multi-scale dual attention. Biomed Sig Process Control 74:103486

    Article  Google Scholar 

  26. Eldele E, Chen ZH, Liu CY 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

    Article  PubMed  Google Scholar 

  27. Sun CL, Chen C, Li W et al (2020) A hierarchical neural network for sleep stage classification based on comprehensive feature learning and multi-flow sequence learning. IEEE J Biomed Health Inform 24 (5):1351–1366

    Article  PubMed  Google Scholar 

  28. Phan H, Andreotti F, Cooray N et al (2018) Automatic sleep stage classification using single-channel EEG: learning sequential features with attention-based recurrent neural networks. In: Proceedings of the 40th annual international conference of the ieee engineering in medicine and biology society, Honolulu, pp 1452–1455

  29. Vaswani A, Shazeer N, Parmar N et al (2017) Attention is all you need. In: Proceedings of the 31st annual conference on neural information processing systems, Long Beach, pp 5999–6009

  30. Goldberger AL, Amaral LAN, Glass L et al (2000) PhysioBank, PhysioToolkit, and PhysioNet - components of a new research resource for complex physiologic signals. Circulation 101(23):E215–E220

    Article  CAS  PubMed  Google Scholar 

  31. Kemp B, Zwinderman AH, Tuk B et al (2000) Analysis of a sleep-dependent neuronal feedback loop: the slow-wave microcontinuity of the EEG. IEEE Trans Biomed Eng 47(9):1185–1194

    Article  CAS  PubMed  Google Scholar 

  32. Rechtschaffen A (1968) A manual for standardized terminology, techniques and scoring system for sleep stages in human subjects. Brain Inf Serv

  33. Imtiaz SA, Rodriguez-Villegas E (2015) An open-source toolbox for standardized use of PhysioNet sleep EDF expanded database. In: Proceedings of the 37th annual international conference of the IEEE engineering in medicine and biology society, Milan, pp 6014–6017

  34. Paszke A, Gross S, Chintala S et al (2017) Automatic differentiation in pytorch. In: Proceedings of the 31st annual conference on neural information processing systems autodiff workshop, Long Beach, pp 1–4

  35. Akiba T, Sano S, Yanase T et al (2019) Optuna: a next-generation hyperparameter optimization framework. In: Proceedings of the 25th ACM SIGKDD international conference on knowledge discovery and data mining, Anchorage, pp 2623–2631

  36. Kingma DP, Ba J (2014) Adam: a method for stochastic optimization. arXiv:1412.6980

  37. Davies HJ, Nakamura T, Mandic DP (2019) A transition probability based classification model for enhanced N1 sleep stage identification during automatic sleep stage scoring. In: Proceedings of the 41st annual international conference of the IEEE engineering in medicine and biology society, Berlin, pp 3641–3644

  38. Hassan AR, Subasi A (2017) A decision support system for automated identification of sleep stages from single-channel EEG signals. Knowledge-Based Syst 128:115–124

    Article  Google Scholar 

Download references

Funding

This work is supported in part by the Natural Science Foundation of Beijing Municipality under Grant No. 4212001.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Kebin Jia.

Ethics declarations

Ethics approval

All the biomedical sleep datasets used in this work are downloaded from the well-known open-source website PhysioNet (https://physionet.org/), which are open-access and do not involve any ethical or private problems of patients.

Conflict of interest

The authors declare no competing interests.

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.

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Jin, Z., Jia, K. A temporal multi-scale hybrid attention network for sleep stage classification. Med Biol Eng Comput 61, 2291–2303 (2023). https://doi.org/10.1007/s11517-023-02808-z

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s11517-023-02808-z

Keywords

Navigation