Skip to main content
Log in

Automated accurate insomnia detection system using wavelet scattering method using ECG signals

  • Published:
Applied Intelligence Aims and scope Submit manuscript

Abstract

Polysomnograms (PSGs), commonly conducted in sleep laboratories, serve as the gold standard for sleep analysis. Among the vital PSG components, the electroencephalogram (EEG) stands out, yet its recording and analysis pose technical challenges, particularly within home settings. PSG procedures involve intricate sleep labs and the attachment of multiple electrodes to subjects’ bodies, making them less patient-friendly. The discomfort of wearing electrodes on the skull cap in an altered sleep environment can adversely impact sleep quality and data accuracy. In contrast, electrocardiogram (ECG) signals present a more accessible option for home-based sleep monitoring due to their simpler recording and analysis. Leveraging ECG signals for automated insomnia detection holds promise in enhancing practicality. Consequently, this study aims to develop an automated approach solely utilizing ECG signals, conveniently captured through wearable devices, for precise insomnia identification. For the automated identification of insomniac subjects, the proposed study uses the Deep Wavelet Scattering Network (DWSN) network. The extracted DWSN-based features of the ECG signals have been applied to different machine-learning algorithms to identify insomnia. The proposed method was validated on three different datasets, namely the Wisconsin Sleep Cohort (WSC) dataset (n = 308; where n = number of subjects), the Sleep Disorder Research Centre (SDRC) dataset (n = 22), and the Cyclic Alternating Pattern (CAP) dataset (n = 25). Our proposed method obtained the highest classification accuracy of 99.9% using the Weighted K-Nearest Neighbour (WKNN) classifier, and a Kappa value of 0.993 with the WSC dataset. Similarly, the highest classification accuracy of 99.60% for the SDRC dataset was obtained using the Trilayered Neural Network (TNN) classifier with a Kappa value of 0.991. The highest classification accuracy of 99% was obtained for the CAP dataset using the Ensemble of Bagged Tree (EBT) classifier with a 0.979 Kappa value. The proposed study suggests an automated, computerized method for creating a machine learning model with explainable artificial intelligence (XAI) capabilities, employing DWSN-based characteristics to distinguish healthy subjects and insomnia subjects. To gain an understanding of the model, the study uses feature ranking based on SHAP (Shapley Additive exPlanations). The proposed study is also the first of its kind to provide the highest accuracy for the classification of insomnia using a huge database. Hence, our model is more generalized as it used diverse and large-scale databases. The suggested study outperformed all previous methods in terms of efficiency, dependability, and accuracy. Thus, the proposed method can potentially aid in the clinical identification of insomnia.

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
Fig. 6
Fig. 7
Fig. 8
Fig. 9

Similar content being viewed by others

Data Availability

In the proposed work, 3 datasets have been used, namely Wisconsin Sleep Cohort (WSC), Sleep Disorder Research Resource (NSRR) and Cyclic Alternating Pattern (CAP). Hyperlink for the same can be accessed for the same from section 3. For your ready reference, the link for all three datasets are provided below: 1. Wisconsin Sleep Cohort (WSC): https://sleepdata.org/datasets/wsc 2. Sleep Disorder Research Resource (NSRR): https://data.mendeley.com/datasets/3hx58k232n/4 3. Cyclic Alternating Pattern (CAP): https://physionet.org/content/capslpdb/1.0.0/

References

  1. Loh HW, Ooi CP, Dhok SG, Sharma M, Bhurane AA, Acharya UR (2022) Automated detection of cyclic alternating pattern and classification of sleep stages using deep neural network. Appl Intell 52(3):2903–2917

    Article  Google Scholar 

  2. Sharma M, Bhurane AA, Acharya UR (2022) An expert system for automated classification of phases in cyclic alternating patterns of sleep using optimal wavelet-based entropy features. Expert Syst (e12939)

  3. Kumar VM (2008) Sleep and sleep disorders. Indian J Chest Dis Allied Sci 50(1):129

    Google Scholar 

  4. Lanfranchi PA, Pennestri M-H, Fradette L, Dumont M, Morin CM, Montplaisir J (2009) Nighttime blood pressure in normotensive subjects with chronic insomnia: implications for cardiovascular risk. Sleep 32(6):760–766

    Article  Google Scholar 

  5. Spiegelhalder K, Scholtes C, Riemann D (2010) The association between insomnia and cardiovascular diseases. Nat Sci Sleep 2:71–78

    Article  Google Scholar 

  6. Javaheri S, Redline S (2017) Insomnia and risk of cardiovascular disease. Chest 152(2):435–444

    Article  Google Scholar 

  7. Panel:, C.C., Watson NF, Badr MS, Belenky G, Bliwise DL, Buxton OM, Buysse D, Dinges DF, Gangwisch J, Grandner MA et al (2015) Joint consensus statement of the american academy of sleep medicine and sleep research society on the recommended amount of sleep for a healthy adult: methodology and discussion. J Clin Sleep Med 11(8):931–952

    Article  Google Scholar 

  8. Bonnet MH, Arand DL (1995) We are chronically sleep deprived. Sleep 18(10):908–911

    Article  Google Scholar 

  9. Irwin MR (2013) Depression and insomnia in cancer: prevalence, risk factors, and effects on cancer outcomes. Curr Psychiatry Rep 15:1–9

    Article  Google Scholar 

  10. Sadeghmousavi S, Eskian M, Rahmani F, Rezaei N (2020) The effect of insomnia on development of alzheimer’s disease. J Neuroinflammation 17(1):289

    Article  Google Scholar 

  11. Johnson EO, Roth T, Breslau N (2006) The association of insomnia with anxiety disorders and depression: exploration of the direction of risk. J Psychiatr Res 40(8):700–708

    Article  Google Scholar 

  12. American Academy of Sleep Medicine (2005) International classification of sleep disorders. In: Diagnostic and coding manual, pp 148–152

    Google Scholar 

  13. Pavlova MK, Latreille V (2019) Sleep disorders. Am J Med 132(3):292–299

    Article  Google Scholar 

  14. Sharma M, Agarwal S, Acharya UR (2018) Application of an optimal class of antisymmetric wavelet filter banks for obstructive sleep apnea diagnosis using ECG signals, computers in biology and medicine. Comput Biol Med 100:100–113

  15. Sharma M, Acharya UR (2018) Analysis of knee-joint vibroarthographic signals using bandwidth-duration localized three-channel filter bank. Comput Electr Eng 72:191–202

    Article  Google Scholar 

  16. Sharma M, Darji J, Thakrar M, Acharya UR (2022) Automated identification of sleep disorders using wavelet-based features extracted from electrooculogram and electromyogram signals. Comput Biol Med 143:105224

    Article  Google Scholar 

  17. Sharma M, Patel RK, Garg A, SanTan R, Acharya UR (2023) Automated detection of schizophrenia using deep learning: a review for the last decade. Physiol Meas 44(3). https://doi.org/10.1088/1361-6579/acb24d

  18. Sharma M, Patel V, Acharya UR (2021) Automated identification of insomnia using optimal bi-orthogonal wavelet transform technique with single-channel eeg signals. Knowl-Based Syst 224:107078

    Article  Google Scholar 

  19. Bhurane AA, Dhok S, Sharma M, Yuvaraj R, Murugappan M, Acharya UR (2022) Diagnosis of parkinson’s disease from electroencephalography signals using linear and self-similarity features. Expert Syst 39(7):12472

    Article  Google Scholar 

  20. Sharma M, Shah S, Achuth P (2019) A novel approach for epilepsy detection using time–frequency localized bi-orthogonal wavelet filter. J Mech Med Biol 19(01):1940007

    Article  Google Scholar 

  21. Lim J, Dinges DF (2008) Sleep deprivation and vigilant attention. Ann N Y Acad Sci 1129(1):305–322

    Article  Google Scholar 

  22. Stoller MK (1994) Economic effects of insomnia. Clinical Therapeutics: the International Peer-Reviewed Journal of Drug Therapy 16(5):873–897

    Google Scholar 

  23. Sharma M, Dhiman HS, Acharya UR (2021) Automatic identification of insomnia using optimal antisymmetric biorthogonal wavelet filter bank with ecg signals. Comput Biol Med 131:104246

    Article  Google Scholar 

  24. Murarka S, Wadichar A, Bhurane A, Sharma M, Acharya UR (2022) Automated classification of cyclic alternating pattern sleep phases in healthy and sleepdisordered subjects using convolutional neural network. Comput Biol Med 146:105594

    Article  Google Scholar 

  25. Bhati, D., Sharma, M., Pachori, R.B. et al. Design of Time–Frequency Optimal Three-Band Wavelet Filter Banks with Unit Sobolev Regularity Using Frequency Domain Sampling. Circuits Syst Signal Process 35, 4501–4531 (2016). https://doi.org/10.1007/s00034-016-0286-7

  26. Sharma M, Makwana P, Chad RS, Acharya UR (2023) A novel automated robust dual-channel EEG-based sleep scoring system using optimal half-band pair linear-phase biorthogonal wavelet filter bank, Appl Intell 53:18681–18699

  27. Sharma M, Kumbhani D, Yadav A, Acharya UR (2022) Automated sleep apnea detection using optimal duration-frequency concentrated wavelet based features of pulse oximetry signals. Appl Intell 52:1325–1337

  28. Sharma M, Patel V, Tiwari J, Acharya UR (2021) Automated characterization of cyclic alternating pattern using wavelet-based features and ensemble learning techniques with eeg signals. Diagnostics 11(8):1380

    Article  Google Scholar 

  29. Mahesh M (2006) Cardiac imaging-technical advances in mdct compared with conventional x-ray angiography. US Cardiol 2005:115–118

    Google Scholar 

  30. Sharma M, Lodhi H, Rishita Y, Elphick H, Acharya UR (2023) Computerized detection of cyclic alternating patterns of sleep: a new paradigm, future scope, and challenges. Comput Methods Prog Biomed 235:107471

  31. Zhang G-Q, Cui L, Mueller R, Tao S, Kim M, Rueschman M, Mariani S, Mobley D, Redline S (2018) The national sleep research resource: towards a sleep data commons. J Am Med Inform Assoc 25(10):1351–1358

    Article  Google Scholar 

  32. Rezaei M, Mohammadi H, Khazaie H (2017) Eeg/eog/emg data from a cross sectional study on psychophysiological insomnia and normal sleep subjects. Data Brief 15:314–319

    Article  Google Scholar 

  33. Terzano MG, Parrino L, Sherieri A, Chervin R, Chokroverty S, Guilleminault C, Hirshkowitz M, Mahowald M, Moldofsky H, Rosa A et al (2001) Atlas, rules, and recording techniques for the scoring of cyclic alternating pattern (cap) in human sleep. Sleep Med 2(6):537–554

    Article  Google Scholar 

  34. 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):215–220

    Article  Google Scholar 

  35. Young T, Palta M, Dempsey J, Peppard PE, Nieto FJ, Hla KM (2009) Burden of sleep apnea: rationale, design, and major findings of the wisconsin sleep cohort study. WMJ: official publication of the State Medical Society of Wisconsin 108(5):246

    Google Scholar 

  36. Hernández-García A, König P (2018) Further advantages of data augmentation on convolutional neural networks. In: Artificial neural networks and machine learning–ICANN 2018: 27th international conference on artificial neural networks, Rhodes, Greece, October 4–7, 2018, Proceedings, Part I 27. Springer International Publishing, pp 95–103

    Chapter  Google Scholar 

  37. Sharma M, Kolte R, Patwardhan P, Gadre V (2010) Time-frequency localization optimized biorthogonal wavelets. In: 2010 International Conference on Signal Processing and Communications (SPCOM), pp. 1–5. IEEE

  38. Buriro AB, Ahmed B, Baloch G, Ahmed J, Shoorangiz R, Weddell SJ, Jones RD (2021) Classification of alcoholic eeg signals using wavelet scattering transform-based features. Comput Biol Med 139:104969

    Article  Google Scholar 

  39. Oyallon E, Mallat S, Sifre L (2013) Generic deep networks with wavelet scattering, vol 1. arXiv preprint arXiv:1312.5940

    Google Scholar 

  40. Bruna J, Mallat S (2013) Invariant scattering convolution networks. IEEE Trans Pattern Anal Mach Intell 35(8):1872–1886

    Article  Google Scholar 

  41. Chen Z, Li F, Quan Y, Xu Y, Ji H (2021) Deep texture recognition via exploiting cross-layer statistical self-similarity. In: Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 5231–5240

  42. Sepúlveda A, Castillo F, Palma C, Rodriguez-Fernandez M (2021) Emotion recognition from ecg signals using wavelet scattering and machine learning. Appl Sci 11(11):4945

    Article  Google Scholar 

  43. Sharma M, Lodhi H, Yadev R, Sampathila N, Swathi KS, Acharya UR (2023) Automated explainable detection of cyclic alternating pattern (CAP) phases and sub-phases using wavelet-based single channel EEG signals. IEEE Access 11:50946–50961

    Google Scholar 

  44. McCloskey S, Jeffries B, Koprinska I, Gordon C, Grunstein RR (2022) Insomnia disorder detection using EEG sleep trajectories. In: Gama J, Li T, Yu Y, Chen E, Zheng Y, Teng F (eds) Advances in knowledge discovery and data mining. PAKDD 2022. Lecture notes in computer science, vol 13282. Springer, Cham

    Google Scholar 

  45. Raju NP, Venkatesh U, Yadhav S (2019) Diagnosing insomnia using single channel eeg signal. In: 2019 International Conference on Communication and Electronics Systems (ICCES), pp. 570–573. IEEE

  46. Remeseiro B, Bolon-Canedo V (2019) A review of feature selection methods in medical applications. Comput Biol Med 112:103375

    Article  Google Scholar 

  47. Angelova M, Karmakar C, Zhu Y, Drummond SP, Ellis J (2020) Automated method for detecting acute insomnia using multi-night actigraphy data. IEEE Access 8:74413–74422

    Article  Google Scholar 

  48. Hamida ST-B, Glos M, Penzel T, Ahmed B (2016) How many sleep stages do we need for an efficient automatic insomnia diagnosis? In: 2016 38th annual international conference of the IEEE engineering in medicine and biology society (EMBC), Orlando, pp 2431–2434

  49. Sharma M, Bapodara S, Tiwari J, Acharya UR (2022) Automated sleep apnea detection in pregnant women using wavelet-based features. Inform Med Unlocked 32:101026

    Article  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Manish Sharma.

Ethics declarations

Conflict of interest

All the authors declare that there is 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

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

Sharma, N., Sharma, M., Telangore, H. et al. Automated accurate insomnia detection system using wavelet scattering method using ECG signals. Appl Intell 54, 3464–3481 (2024). https://doi.org/10.1007/s10489-024-05284-6

Download citation

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s10489-024-05284-6

Keywords

Navigation