journal article·2025-01-05Open access

Deep Learning and Recurrence Information Analysis for the Automatic Detection of Obstructive Sleep Apnea

Daniele Padovano, Arturo Martinez-Rodrigo, José M. Pastor, José J. Rieta, Raul Alcaraz

Applied Sciences· Volume 15· Issue 1

Abstract

Obstructive sleep apnea (OSA) represents a significant health concern. While polysomnography (PSG) remains the gold standard, its resource-intensive nature has encouraged the exploration of further alternative approaches. Most of these were based on the heart rate variability (HRV) analysis, but only a few of them have presented a recurrence-based approach. The present paper addresses this gap by integrating convolutional neural networks (CNNs) with HRV recurrence analysis. Employing three different and publicly available databases from PhysioNet’s official repository (Apnea-ECG, MIT-BIH, and UCD-DB), the presented method was able to expose concealed patterns within the distance matrix of HRV’s phase space, which is discernible at an appropriate level of abstraction through CNNs. Under the challenging context of external validation (MIT-BIH and UCD for training, and Apnea-ECG for testing), the results obtained were comparable to those presented in the state of the art, achieving a peak accuracy of 75%, while maintaining balanced sensitivity and specificity at 74% and 75%, respectively. Moreover, these results obtained by the proposed CNN-based recurrence analysis of HRV also outperformed traditional time–frequency models, which have yielded values of accuracy lower than 65%. Hence, this paper highlights the importance of the proposed method in gaining new insights into OSA’s HRV dynamics, offering a contribution that adds to the existing analytical approaches in the state of the art.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Obstructive Sleep Apnea Research · Non-Invasive Vital Sign Monitoring · Heart Rate Variability and Autonomic Control

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

Research Group in Electronic, Biomedical and Telecommunications Engineering, University of Castilla-La Mancha, 16002 Cuenca, Spain

BioMIT.org, Electronic Engineering Department, Universitat Politecnica de Valencia, 46022 Valencia, Spain

Funding

Spanish Government · Junta de Comunidades de Castilla-La Mancha · Generalitat Valenciana · European Social Fund (ESF) 2014-2020 of Castilla-La Mancha

References (91)

Show source-provided references
1. Obstructive sleep apnea basics10.3949/ccjm.86.s1.02 ↗
2. Obstructive Sleep Apnea in Adults10.1056/NEJMcp1816152 ↗
3. Prevalence of Obstructive Sleep Apnea in the General Population: A Systematic Review10.1016/j.smrv.2016.07.002 ↗
4. Obstructive Sleep Apnea and Cardiovascular Disease: A Scientific Statement From the American Heart Association10.1161/CIR.0000000000000988 ↗
5. Word Health Organization (2018). Noncommunicable Diseases Country Profiles 2018, World Health Organization. Publications on NCDs.
6. Sleep Apnea Detection from Single-Lead ECG: A Comprehensive Analysis of Machine Learning and Deep Learning Algorithms10.1109/TIM.2022.3151947 ↗
7. A Comprehensive Review: Computational Models for Obstructive Sleep Apnea Detection in Biomedical Applications10.1155/2022/7242667 ↗
8. Apnea MedAssist: Real-Time Sleep Apnea Monitor Using Single-Lead ECG10.1109/TITB.2010.2087386 ↗
9. Obstructive Sleep Apnea Syndrome10.1016/j.ejim.2012.05.013 ↗
10. Heart Rate Variability and Obstructive Sleep Apnea: Current Perspectives and Novel Technologies10.1111/jsr.13274 ↗
11. Respiratory Effort-Related Arousals Contribute to Sympathetic Modulation of Heart Rate Variability10.1007/s11325-013-0823-6 ↗
12. Arrhythmia Detection and Classification Using ECG and PPG Techniques: A Review10.1007/s13246-021-01072-5 ↗
13. Chang, H.Y., Yeh, C.Y., Lee, C.T., and Lin, C.C. (2020). A Sleep Apnea Detection System Based on a One-Dimensional Deep Convolution Neural Network Model Using Single-Lead Electrocardiogram. Sensors, 20.10.3390/s20154157 ↗
14. Zhang, Y.T. (2013, January 7–9). Comparison of Heart Rate Variability from PPG with That from ECG. Proceedings of the International Conference on Health Informatics (ICHI 2013), Vilamoura, Portugal. IFMBE, Proceedings.
15. Task Force of the European Society of Cardiology and the North American Society of Pacing and Electrophysiology. Heart Rate Variability: Standarts of Measurement, Physiological Interpretation and Clinical Use10.1161/01.CIR.93.5.1043 ↗
16. Sheta, A., Turabieh, H., Thaher, T., Too, J., Mafarja, M., Hossain, M.S., and Surani, S.R. (2021). Diagnosis of Obstructive Sleep Apnea from ECG Signals Using Machine Learning and Deep Learning Classifiers. Appl. Sci., 11.10.3390/app11146622 ↗
17. Obstructive Sleep Apnea Detection from Single-Lead Electrocardiogram Signals Using One-Dimensional Squeeze-and-Excitation Residual Group Network10.1016/j.compbiomed.2021.105124 ↗
18. Obstructive Sleep Apnea Event Prediction Using Recurrence Plots and Convolutional Neural Networks (RP-CNNs) from Polysomnographic Signals10.1016/j.bspc.2021.102928 ↗
19. Frequency Network Analysis of Heart Rate Variability for Obstructive Apnea Patient Detection10.1109/JBHI.2017.2784415 ↗
20. The Novel Approach of Temporal Dependency Complexity Analysis of Heart Rate Variability in Obstructive Sleep Apnea10.1016/j.compbiomed.2021.104632 ↗
21. Automatic Detection of Obstructive Sleep Apnea Using Wavelet Transform and Entropy-Based Features from Single-Lead ECG Signal10.1109/JBHI.2018.2842919 ↗
22. An Online Sleep Apnea Detection Method Based on Recurrence Quantification Analysis10.1109/JBHI.2013.2292928 ↗
23. Le, T.Q., and Bukkapatnam, S.T.S. (2016). Nonlinear Dynamics Forecasting of Obstructive Sleep Apnea Onsets. PLoS ONE, 11.10.1371/journal.pone.0164406 ↗
24. Improving the Understanding of Sleep Apnea Characterization Using recurrence quantification analysis by Defining OverallAcceptable Values for the Dimensionality of the System, the Delay, and the Distance Threshold
25. Comparing Modern and Pleistocene ENSO-like Influences in NW Argentina using Nonlinear Time Series Analysis Methods10.1007/s00382-003-0335-3 ↗
26. Recurrence-plot-based Measures of Complexity and their Application to Heart Rate Variability Data
27. Recurrence Plots for the Analysis of Complex Systems10.1016/j.physrep.2006.11.001 ↗
28. A Method for Quantifying Recurrent Patterns of Local Wavefront Direction During Atrial Fibrillation10.1016/j.compbiomed.2017.08.027 ↗
29. Spatiotemporal representation of cardiac vectorcardiogram (VCG) signals10.1186/1475-925X-11-16 ↗
30. Automated detection of sleep apnea from electrocardiogram signals using nonlinear parameters10.1088/0967-3334/32/3/002 ↗
31. Sleep apnea detection from ECG signal using deep CNN-based structures10.1007/s12530-022-09445-1 ↗
32. Border effect corrections for diagonal line based recurrence quantification analysis measures10.1016/j.physleta.2019.125977 ↗
33. Lee, H., Lee, J., and Shin, M. (2019). Using Wearable ECG/PPG Sensors for Driver Drowsiness Detection Based on Distinguishable Pattern of Recurrence Plots. Electronics, 8.10.3390/electronics8020192 ↗
34. Classification of Recurrence Plots’ Distance Matrices with a Convolutional Neural Network for Activity Recognition10.1016/j.procs.2018.04.025 ↗
35. Recurrence Plot Analysis of Heart Rate Variability in End-Stage Renal Disease Treated Twice-Weekly by Hemodialysis With or Without Intradialytic Hypotension10.1140/epjs/s11734-022-00682-8 ↗
36. PhysioBank, PhysioToolkit, and PhysioNet: Components of a New Research Resource for Complex Physiologic Signals10.1161/01.CIR.101.23.e215 ↗
37. Apnea-ECG database
38. Development of the polysomnographic database on CD-ROM10.1046/j.1440-1819.1999.00527.x ↗
39. McNicholas, W., Doherty, L., Ryan, S., Garvey, J., Boyle, P., and Chua, E. (2024, March 11). St. Vincent’s University Hospital/University College Dublin Sleep Apnea Database. Available online: https://physionet.org/content/ucddb/1.0.0/.
40. On the Generalization of Sleep Apnea Detection Methods Based on Heart Rate Variability and Machine Learning10.1109/ACCESS.2022.3201911 ↗
41. The Visual Scoring of Sleep in Adults10.5664/jcsm.26814 ↗
42. Review of noise removal techniques in ECG signals10.1049/iet-spr.2020.0104 ↗
43. Kaur, M., Singh, B. (2011, January 25–26). Comparison of different approaches for removal of baseline wander from ECG signal. Proceedings of the International Conference & Workshop on Emerging Trends in Technology, New York, NY, USA. ICWET ’11.10.1145/1980022.1980307 ↗
44. A Real-Time QRS Detection Algorithm10.1109/TBME.1985.325532 ↗
45. The Takens Embedding Theorem10.1142/S0218127491000634 ↗
46. Zhao, Z., Zhang, Y., Comert, Z., and Deng, Y. (2019). Computer-Aided Diagnosis System of Fetal Hypoxia Incorporating Recurrence Plot with Convolutional Neural Network. Front. Physiol., 10.10.3389/fphys.2019.00255 ↗
47. Nonlinear Dynamics, Delay Times, and Embedding Windows10.1016/S0167-2789(98)00240-1 ↗
48. Geometry from a Time Series10.1103/PhysRevLett.45.712 ↗
49. Wallot, S., and Mønster, D. (2018). Calculation of Average Mutual Information (AMI) and False-Nearest Neighbors (FNN) for the Estimation of Embedding Parameters of Multidimensional Time Series in Matlab. Front. Psychol., 9.10.3389/fpsyg.2018.01679 ↗
50. Henriques, T., Ribeiro, M., Teixeira, A., Castro, L., Antunes, L., and Costa-Santos, C. (2020). Nonlinear Methods Most Applied to Heart-Rate Time Series: A Review. Entropy, 22.10.3390/e22030309 ↗
51. Marwan, N. (2003). Encounters with Neighbours: Current Developments of Concepts Based on Recurrence Plots and Their Applications. [Ph.D. Thesis, Postdam University].
52. Recurrence Analysis of Nocturnal Heart Rate in Sleep Apnea Patients10.1515/BMT.2006.042 ↗
53. Wireless Wearable Multisensory Suite and Real-Time Prediction of Obstructive Sleep Apnea Episodes10.1109/JTEHM.2013.2273354 ↗
54. Bhatt, D., Patel, C., Talsania, H., Patel, J., Vaghela, R., Pandya, S., Modi, K., and Ghayvat, H. (2021). CNN Variants for Computer Vision: History, Architecture, Application, Challenges and Future Scope. Electronics, 10.10.3390/electronics10202470 ↗
55. Kayalibay, B., Jensen, G., and van der Smagt, P. (2017). CNN-based Segmentation of Medical Imaging Data. arXiv.
56. Language Modeling and Bidirectional Coders Representations: An Overview of Key Technologies10.37661/1816-0301-2020-17-4-61-72 ↗
57. Dixit, M., Tiwari, A., Pathak, H., and Astya, R. (2018, January 12–13). An Overview of Deep Learning Architectures, Libraries and its Applications Areas. Proceedings of the 2018 International Conference on Advances in Computing, Communication Control and Networking (ICACCCN), Greater Noida, India.10.1109/ICACCCN.2018.8748442 ↗
58. Review of Deep Learning: Concepts, CNN Architectures, Challenges, Applications, Future Directions10.1186/s40537-021-00444-8 ↗
59. Pooling in Convolutional Neural Networks for Medical Image Analysis: A Survey and an Empirical Study10.1007/s00521-022-06953-8 ↗
60. Research Progress on Batch Normalization of Deep Learning and Its Related Algorithms
61. Huang, L., Qin, J., Zhou, Y., Zhu, F., Liu, L., and Shao, L. (2020). Normalization Techniques in Training DNNs: Methodology, Analysis and Application. arXiv.
62. Glorot, X., and Bengio, Y. (2010, January 13–15). Understanding the Difficulty of Training Deep Feedforward Neural Networks. Proceedings of the Thirteenth International Conference on Artificial Intelligence and Statistics, Sardinia, Italy. JMLR Workshop and Conference Proceedings.
63. Bishop, C.M. (2006). Pattern Recognition and Machine Learning, Springer. Information Science and Statistics (ISS).
64. Dropout: A Simple Way to Prevent Neural Networks from Overfitting
65. ImageNet Classification with Deep Convolutional Neural Networks10.1145/3065386 ↗
66. Deng, J., Dong, W., Socher, R., Li, L.J., Li, K., and Fei-Fei, L. (2009, January 20–25). ImageNet: A Large-Scale Hierarchical Image Database. Proceedings of the 2009 IEEE Conference on Computer Vision and Pattern Recognition, Miami, FL, USA.10.1109/CVPR.2009.5206848 ↗
67. Iman, M., Rasheed, K., and Arabnia, H.R. (2022). A Review of Deep Transfer Learning and Recent Advancements. arXiv.10.3390/technologies11020040 ↗
68. Alom, M.Z., Taha, T.M., Yakopcic, C., Westberg, S., Sidike, P., Nasrin, M.S., Van Esesn, B.C., Awwal, A.A.S., and Asari, V.K. (2018). The History Began from AlexNet: A Comprehensive Survey on Deep Learning Approaches. arXiv.
69. Berk, R.A. (2008). Classification and Regression Trees (CART). Statistical Learning from a Regression Perspective, Springer.10.1007/978-0-387-77501-2_3 ↗
70. Lin, C.Y., Wang, Y.W., Setiawan, F., Trang, N.T.H., and Lin, C.W. (2021). Sleep Apnea Classification Algorithm Development Using a Machine-Learning Framework and Bag-of-Features Derived from Electrocardiogram Spectrograms. J. Clin. Med., 11.10.3390/jcm11010192 ↗
71. Wavelets and Signal Processing10.1109/79.91217 ↗
72. Morlet Wavelet Transforms of Heart Rate Variability for Autonomic Nervous System Activity10.1016/j.acha.2015.07.002 ↗
73. Wavelet Analysis of Heart Rate Variability: Impact of Wavelet Selection10.1016/j.bspc.2017.09.027 ↗
74. Penzel, T., Kantelhardt, J., Becker, H., Peter, J., and Bunde, A. (2003, January 21–24). Detrended Fluctuation Analysis and Spectral Analysis of Heart Rate Variability for Sleep Stage and Sleep Apnea Identification. Proceedings of the Computers in Cardiology, Thessaloniki, Greece.10.1109/CIC.2003.1291152 ↗
75. Performance Measures in Evaluating Machine Learning Based Bioinformatics Predictors for Classifications10.1007/s40484-016-0081-2 ↗
76. Transparent Reporting of a Multivariable Prediction Model for Individual Prognosis Or Diagnosis (TRIPOD): The TRIPOD Statement10.1002/bjs.9736 ↗
77. A Survey of Convolutional Neural Networks: Analysis, Applications, and Prospects10.1109/TNNLS.2021.3084827 ↗
78. Byrd, J., and Lipton, Z. (2019, January 9–15). What is the Effect of Importance Weighting in Deep Learning?. Proceedings of the 36th International Conference on Machine Learning, Long Beach, CA, USA.
79. Tutunov, R., Li, M., Cowen-Rivers, A.I., Wang, J., and Bou-Ammar, H. (2020). Compositional ADAM: An Adaptive Compositional Solver. arXiv.
80. A review of obstructive sleep apnea detection approaches10.1109/JBHI.2018.2823265 ↗
81. Application of intrinsic band function technique for automated detection of sleep apnea using HRV and EDR signals10.1016/j.bbe.2017.11.003 ↗
82. Enabling Early Obstructive Sleep Apnea Diagnosis with Machine Learning: Systematic Review10.2196/39452 ↗
83. Application of machine learning to predict obstructive sleep apnea syndrome severity10.1177/1460458218824725 ↗
84. Papini, G.B., Fonseca, P., Margarito, J., van Gilst, M.M., Overeem, S., Bergmans, J.W., and Vullings, R. (2018, January 18–21). On the Generalizability of ECG-based Obstructive Sleep Apnea Monitoring: Merits and Limitations of the Apnea-ECG Database. Proceedings of the 2018 40th Annual International Conference of the IEEE Engineering in Medicine and Biology Society, Honolulu, HI, USA.10.1109/EMBC.2018.8513660 ↗
85. Empirical investigation of multi-source cross-validation in clinical ECG classification10.1016/j.compbiomed.2024.109271 ↗
86. A novel algorithm for the automatic detection of sleep apnea from single-lead ECG10.1109/TBME.2015.2422378 ↗
87. Heart rate variability feature selection in the presence of sleep apnea: An expert system for the characterization and detection of the disorder10.1016/j.compbiomed.2017.10.004 ↗
88. Qin, H., Steenbergen, N., Glos, M., Wessel, N., Kraemer, J., and Penzel, T. (2021). The Different Facets of Heart Rate Variability in Obstructive Sleep Apnea. Front. Psychiatry, 12.10.3389/fpsyt.2021.642333 ↗
89. Surface roughness prediction of large shaft grinding via attentional CNN-LSTM fusing multiple process signals10.1007/s00170-023-11454-6 ↗
90. Cheng, M., Sori, W.J., Jiang, F., Khan, A., and Liu, S. (2017, January 21–24). Recurrent Neural Network Based Classification of ECG Signal Features for Obstruction of Sleep Apnea Detection. Proceedings of the 2017 IEEE International Conference on Computational Science and Engineering (CSE) and IEEE International Conference on Embedded and Ubiquitous Computing (EUC), Guangzhou, China.10.1109/CSE-EUC.2017.220 ↗
91. Mukherjee, D., Dhar, K., Schwenker, F., and Sarkar, R. (2021). Ensemble of Deep Learning Models for Sleep Apnea Detection: An Experimental Study. Sensors, 21.10.3390/s21165425 ↗