Skip to main content
Log in

Single-channel EEG automatic sleep staging based on transition optimized HMM

  • Published:
Multimedia Tools and Applications Aims and scope Submit manuscript

Abstract

Sleep staging is a key process for evaluating sleep quality and diagnosing somnipathy-related diseases. Psychologists are required to do the traditional sleep stages identification. The manual work by these experts is often time-consuming and error-prone. In order to improve the performance of such a process, automatic Electroencephalography (EEG) signal analysis using machine learning approaches is often used. In this paper, a transitions-optimized Hidden Markov Model (HMM) model is proposed to improve the accuracy of prediction. Our proposed framework includes 4 key modules: feature extraction, feature selection, classification, and transition optimization. By applying, transition optimization process after a general GMM-HMM classification, our experimental results show a convincing improvement in the accuracy of 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

References

  1. Alickovic E, Subasi A (2018) Ensemble SVM method for automatic sleep stage classification. IEEE Trans Instrum Meas 67(6):1258–1265

    Google Scholar 

  2. Aserinsky E, Kleitman N (1953) Regularly occurring periods of eye motility, and concomitant phenomena, during sleep. Science 118(3062):273–274

    Google Scholar 

  3. Boe AJ, Koch LLM, O’Brien MK, Shawen N, Rogers JA, Lieber RL, Reid KJ, Zee PC, Jayaraman A (2019) Automating sleep stage classification using wireless, wearable sensors. NPJ Digit Med 2(1):1–9

    Google Scholar 

  4. Boostani R, Karimzadeh F, Nami M (2017) A comparative review on sleep stage classification methods in patients and healthy individuals. Comput Methods Prog Biomed 140:77–91

    Google Scholar 

  5. Chen Z, Wu C, Zhang Y, Huang Z, Ran B, Zhong M, Lyu N (2015) Feature selection with redundancy-complementariness dispersion. Knowl-Based Syst 89:203–217

    Google Scholar 

  6. Dargan S, Kumar M, Ayyagari MR, Kumar G (2020) A survey of deep learning and its applications: a new paradigm to machine learning. Arch Comput Methods Eng 27(4):1071–1092

    MathSciNet  Google Scholar 

  7. Demuru M, La Cava SM, Pani SM, Fraschini M (2020) A comparison between power spectral density and network metrics: an EEG study. Biomed Signal Process Control 57:101760

    Google Scholar 

  8. Ding K, Lei J, Chan FT, Hui J, Zhang F, Wang Y (2020) Hidden Markov model-based autonomous manufacturing task orchestration in smart shop floors. Robot Comput Integr Manuf 61:101845

    Google Scholar 

  9. Diykh M, Li Y (2016) Complex networks approach for EEG signal sleep stages classification. Expert Syst Appl 63:241–248

    Google Scholar 

  10. Feng F, Zhang Y, Hou J, Cai J, Jiang Q, Li X, Zhao Q, B-a L (2018) Can music improve sleep quality in adults with primary insomnia? A systematic review and network meta-analysis. Int J Nurs Stud 77:189–196

    Google Scholar 

  11. Fraiwan L, Lweesy K, Khasawneh N, Wenz H, Dickhaus H (2012) Automated sleep stage identification system based on time–frequency analysis of a single EEG channel and random forest classifier. Comput Methods Prog Biomed 108(1):10–19

    Google Scholar 

  12. Gharbali AA, Najdi S, Fonseca JM (2018) Investigating the contribution of distance-based features to automatic sleep stage classification. Comput Biol Med 96:8–23

    Google Scholar 

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

    Google Scholar 

  14. Ghimatgar H, Kazemi K, Helfroush MS, Pillay K, Dereymaker A, Jansen K, De Vos M, Aarabi A (2020) Neonatal EEG sleep stage classification based on deep learning and HMM. J Neural Eng 17(3):036031

    Google Scholar 

  15. Goldberger AL, Amaral LA, Glass L, Hausdorff JM, Ivanov PC, Mark RG, Mietus JE, Moody GB, Peng C-K, Stanley HE (2000) PhysioBank, PhysioToolkit, and PhysioNet: components of a new research resource for complex physiologic signals. Circulation 101 (23):e215-e220

  16. Hsu Y-L, Yang Y-T, Wang J-S, Hsu C-Y (2013) Automatic sleep stage recurrent neural classifier using energy features of EEG signals. Neurocomputing 104:105–114

    Google Scholar 

  17. Hu W, Tian G, Kang Y, Yuan C, Maybank S (2017) Dual sticky hierarchical Dirichlet process hidden Markov model and its application to natural language description of motions. IEEE Trans Pattern Anal Mach Intell 40(10):2355–2373

    Google Scholar 

  18. Hu M, Ji Z, Yan K, Guo Y, Feng X, Gong J, Zhao X, Dong L (2018) Detecting anomalies in time series data via a meta-feature based approach. IEEE Access 6:27760–27776

    Google Scholar 

  19. Hu M, Feng X, Ji Z, Yan K, Zhou S (2019) A novel computational approach for discord search with local recurrence rates in multivariate time series. Inf Sci 477:220–233

    Google Scholar 

  20. İnce R, Adanır SS, Sevmez F (2020) The inventor of electroencephalography (EEG): Hans Berger (1873–1941). Childs Nerv Syst:1–2

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

    Google Scholar 

  22. Lajnef T, Chaibi S, Ruby P, Aguera P-E, Eichenlaub J-B, Samet M, Kachouri A, Jerbi K (2015) Learning machines and sleeping brains: automatic sleep stage classification using decision-tree multi-class support vector machines. J Neurosci Methods 250:94–105

    Google Scholar 

  23. Li W, Liu T (2019) Time varying and condition adaptive hidden Markov model for tool wear state estimation and remaining useful life prediction in micro-milling. Mech Syst Signal Process 131:689–702

    Google Scholar 

  24. Li X, Cui L, Tao S, Chen J, Zhang X, Zhang G-Q (2017) Hyclasss: a hybrid classifier for automatic sleep stage scoring. IEEE J Biomed Health Inform 22(2):375–385

    Google Scholar 

  25. Li K, Pan W, Li Y, Jiang Q, Liu G (2018) A method to detect sleep apnea based on deep neural network and hidden Markov model using single-lead ECG signal. Neurocomputing 294:94–101

    Google Scholar 

  26. Li C, Luo X, Qi Y, Gao Z, Lin X (2020) A new feature selection algorithm based on relevance, redundancy and complementarity. Comput Biol Med 119:103667

    Google Scholar 

  27. Liang S-F, Kuo C-E, Hu Y-H, Pan Y-H, Wang Y-H (2012) Automatic stage scoring of single-channel sleep EEG by using multiscale entropy and autoregressive models. IEEE Trans Instrum Meas 61(6):1649–1657

    Google Scholar 

  28. Liang S-F, Kuo C-E, Hu Y-H, Cheng Y-S (2012) A rule-based automatic sleep staging method. J Neurosci Methods 205(1):169–176

    Google Scholar 

  29. Loewy J, Stewart K, Dassler A-M, Telsey A, Homel P (2013) The effects of music therapy on vital signs, feeding, and sleep in premature infants. Pediatrics 131(5):902–918

    Google Scholar 

  30. 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

    Google Scholar 

  31. Mousavi S, Afghah F, Acharya UR (2019) SleepEEGNet: automated sleep stage scoring with sequence to sequence deep learning approach. PLoS ONE 14(5):e0216456

    Google Scholar 

  32. Nochino T, Ohno Y, Kato T, Taniike M, Okada S (2019) Sleep stage estimation method using a camera for home use. Biomed Eng Lett 9(2):257–265

    Google Scholar 

  33. Nonoue S, Mashita M, Haraki S, Mikami A, Adachi H, Yatani H, Yoshida A, Taniike M, Kato T (2017) Inter-scorer reliability of sleep assessment using EEG and EOG recording system in comparison to polysomnography. Sleep Biol Rhythms 15(1):39–48

    Google Scholar 

  34. 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 Transactions on Neural Systems and Rehabilitation Engineering 27(3):400–410

    Google Scholar 

  35. Phan H, Mikkelsen K, Chén OY, Koch P, Mertins A, Kidmose P, De Vos M (2020) Personalized automatic sleep staging with single-night data: a pilot study with Kullback–Leibler divergence regularization. Physiol Meas 41(6):064004

    Google Scholar 

  36. Pillay K, Dereymaeker A, Jansen K, Naulaers G, Van Huffel S, De Vos M (2018) Automated EEG sleep staging in the term-age baby using a generative modelling approach. J Neural Eng 15(3):036004

    Google Scholar 

  37. Prucnal M, Polak AG (2017) Effect of feature extraction on automatic sleep stage classification by artificial neural network. Metrology and Measurement Systems 24(2):229–240

    Google Scholar 

  38. Radha M, Fonseca P, Moreau A, Ross M, Cerny A, Anderer P, Long X, Aarts RM (2019) Sleep stage classification from heart-rate variability using long short-term memory neural networks. Sci Rep 9(1):1–11

    Google Scholar 

  39. Razi AP, Einalou Z, Manthouri M (2021) Sleep apnea classification using random Forest via ECG. Sleep Vigilance 5(1):141–146

    Google Scholar 

  40. Reshef DN, Reshef YA, Finucane HK, Grossman SR, McVean G, Turnbaugh PJ, Lander ES, Mitzenmacher M, Sabeti PC (2011) Detecting novel associations in large data sets. Science 334 (6062):1518-1524

  41. Seo H, Back S, Lee S, Park D, Kim T, Lee K (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

    Google Scholar 

  42. Sharma H, Sharma K (2016) An algorithm for sleep apnea detection from single-lead ECG using Hermite basis functions. Comput Biol Med 77:116–124

    Google Scholar 

  43. Supratak A, Dong H, Wu C, Guo Y (2017) DeepSleepNet: a model for automatic sleep stage scoring based on raw single-channel EEG. IEEE Transactions on Neural Systems and Rehabilitation Engineering 25(11):1998–2008

    Google Scholar 

  44. Suraev AS, Marshall NS, Vandrey R, McCartney D, Benson MJ, McGregor IS, Grunstein RR, Hoyos CM (2020) Cannabinoid therapies in the management of sleep disorders: a systematic review of preclinical and clinical studies. Sleep Med Rev 53:101339

    Google Scholar 

  45. Tang H-YJ, McCurry SM, Pike KC, Riegel B, Vitiello MV (2021) Open-loop audio-visual stimulation for sleep promotion in older adults with comorbid insomnia and osteoarthritis pain: results of a pilot randomized controlled trial. Sleep Med 82:37–42

    Google Scholar 

  46. Thompson NC, Greenewald K, Lee K, Manso GF (2020) The computational limits of deep learning. arXiv preprint arXiv:200705558

  47. Tsinalis O, Matthews PM, Guo Y, Zafeiriou S (2016) Automatic sleep stage scoring with single-channel EEG using convolutional neural networks. arXiv preprint arXiv:161001683

  48. Viterbi A (1967) Error bounds for convolutional codes and an asymptotically optimum decoding algorithm. IEEE Trans Inf Theory 13(2):260–269

    MATH  Google Scholar 

  49. Walch O, Huang Y, Forger D, Goldstein C (2019) Sleep stage prediction with raw acceleration and photoplethysmography heart rate data derived from a consumer wearable device. Sleep 42(12):zsz180

    Google Scholar 

  50. Wei R, Zhang X, Wang J, Dang X (2018) The research of sleep staging based on single-lead electrocardiogram and deep neural network. Biomed Eng Lett 8(1):87–93

    Google Scholar 

  51. Welch P (1967) The use of fast Fourier transform for the estimation of power spectra: a method based on time averaging over short, modified periodograms. IEEE Transactions on Audio Electroacoustics 15(2):70–73

    Google Scholar 

  52. Wolpert EA (1969) A manual of standardized terminology, techniques and scoring system for sleep stages of human subjects. Arch Gen Psychiatry 20(2):246–247

    Google Scholar 

  53. Xie X, Gu X, Li Y, Ji Z (2021) K-size partial reduct: positive region optimization for attribute reduction. Knowl Based Syst 107253

  54. Zhao R, Xia Y, Wang Q (2021) Dual-modal and multi-scale deep neural networks for sleep staging using EEG and ECG signals. Biomed Signal Process Control 66:102455

    Google Scholar 

  55. Zhou J, Wang G, Liu J, Wu D, Xu W, Wang Z, Ye J, Xia M, Hu Y, Tian Y (2020) Automatic sleep stage classification with single channel EEG signal based on two-layer stacked ensemble model. IEEE Access 8:57283–57297

    Google Scholar 

Download references

Acknowledgments

This study is supported by Zhejiang Provincial Key Laboratory of New Network Standards and Technologies (NNST)(No.2013E10012). The authors would like to thank the editor and reviewers for improving the quality of the paper.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Ke Yan.

Ethics declarations

Conflict of interest

The authors declare that they have no conflict of interest.

Additional information

Publisher’s note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Huang, J., Ren, L., Ji, Z. et al. Single-channel EEG automatic sleep staging based on transition optimized HMM. Multimed Tools Appl 81, 43063–43081 (2022). https://doi.org/10.1007/s11042-022-12551-6

Download citation

  • Received:

  • Revised:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s11042-022-12551-6

Keywords

Navigation