MPCNN: A Novel Matrix Profile Approach for CNN-based Sleep Apnea Classification (2311.15041v1)
Abstract: Sleep apnea (SA) is a significant respiratory condition that poses a major global health challenge. Previous studies have investigated several machine and deep learning models for electrocardiogram (ECG)-based SA diagnoses. Despite these advancements, conventional feature extractions derived from ECG signals, such as R-peaks and RR intervals, may fail to capture crucial information encompassed within the complete PQRST segments. In this study, we propose an innovative approach to address this diagnostic gap by delving deeper into the comprehensive segments of the ECG signal. The proposed methodology draws inspiration from Matrix Profile algorithms, which generate an Euclidean distance profile from fixed-length signal subsequences. From this, we derived the Min Distance Profile (MinDP), Max Distance Profile (MaxDP), and Mean Distance Profile (MeanDP) based on the minimum, maximum, and mean of the profile distances, respectively. To validate the effectiveness of our approach, we use the modified LeNet-5 architecture as the primary CNN model, along with two existing lightweight models, BAFNet and SE-MSCNN, for ECG classification tasks. Our extensive experimental results on the PhysioNet Apnea-ECG dataset revealed that with the new feature extraction method, we achieved a per-segment accuracy up to 92.11 \% and a per-recording accuracy of 100\%. Moreover, it yielded the highest correlation compared to state-of-the-art methods, with a correlation coefficient of 0.989. By introducing a new feature extraction method based on distance relationships, we enhanced the performance of certain lightweight models, showing potential for home sleep apnea test (HSAT) and SA detection in IoT devices. The source code for this work is made publicly available in GitHub: https://github.com/vinuni-vishc/MPCNN-Sleep-Apnea.
- J. A. Dempsey, S. C. Veasey, B. J. Morgan, and C. P. O’Donnell, “Pathophysiology of sleep apnea,” Physiological reviews, vol. 90, no. 1, pp. 47–112, 2010, doi: 10.1152/physrev.00043.2008
- R. Dong, Z. Dong, H. Liu, F. Shi, and J. Du, “Prevalence, risk factors, outcomes, and treatment of obstructive sleep apnea in patients with cerebrovascular disease: a systematic review,” Journal of Stroke and Cerebrovascular Diseases, vol. 27, no. 6, pp. 1471–1480, 2018.
- Zhang J., Zhang Q., Wang Y., Qiu C. “A Real-time auto-adjustable smart pillow system for sleep apnea detection and treatment” Proceedings of the 12th International Conference on Information Processing in Sensor Networks (IPSN); Philadelphia, PA, USA. 8–11 April 2013; pp. 179–190.
- T. Wang, C. Lu, G. Shen, and F. Hong, “Sleep apnea detection from a single-lead ecg signal with automatic feature-extraction through a modified lenet-5 convolutional neural network,” PeerJ, 2019, doi: 10.7717/peerj.7731
- X. Chen, Y. Chen, W. Ma, X. Fan, and Y. Li, “Se-mscnn: A lightweight multi-scaled fusion network for sleep apnea detection using single-lead ecg signals,” in 2021 IEEE International Conference on Bioinformatics and Biomedicine (BIBM). IEEE, 2021, pp. 1276–1280.
- K. Feng, H. Qin, S. Wu, W. Pan, and G. Liu, “A sleep apnea detection method based on unsupervised feature learning and single-lead electrocardiogram,” IEEE Transactions on Instrumentation and Measurement, 2020, doi: 10.1109/TIM.2020.3017246
- Y. Gao, H. Wang, and Z. Liu, “An end-to-end atrial fibrillation detection by a novel residual-based temporal attention convolutional neural network with exponential nonlinearity loss,” Knowledge-Based Systems, 2021, doi: 10.1016/j.knosys.2020.106589
- N. I. Hasan and A. Bhattacharjee, “Deep learning approach to cardiovascular disease classification employing modified ecg signal from empirical mode decomposition,” Biomedical Signal Processing and Control, vol. 52, pp. 128–140, 2019.
- F. Murat, O. Yildirim, M. Talo, Y. Demir, R.-S. Tan, E. J. Ciaccio, and U. R. Acharya, “Exploring deep features and ecg attributes to detect cardiac rhythm classes,” Knowledge-Based Systems, 2021, doi: 10.1016/j.knosys.2021.107473
- M. Bahrami and M. Forouzanfar, “Detection of sleep apnea from single lead ecg: Comparison of deep learning algorithms,” in 2021 IEEE International Symposium on Medical Measurements and Applications (MeMeA). IEEE, 2021, pp. 1–5.
- C. Varon, A. Caicedo, D. Testelmans, B. Buyse, and S. Van Huffel, “A novel algorithm for the automatic detection of sleep apnea from single lead ecg,” IEEE Transactions on Biomedical Engineering, vol. 62, no. 9, pp. 2269–2278, 2015.
- C. Song, K. Liu, X. Zhang, L. Chen, and X. Xian, “An obstructive sleep apnea detection approach using a discriminative hidden markov model from ecg signals,” IEEE Transactions on Biomedical Engineering, vol. 63, no. 7, pp. 1532–1542, 2015.
- A.R. Hassan, and M.A. Haque, “Computer-aided Obstructive Sleep Apnea Identification Using Statistical Features in the EMD Domain and Extreme Learning Machine,” Biomedical Physics and Engineering Express, 2(3), 0350032016, p. 11.
- H. Sharma and K. Sharma, “An algorithm for sleep apnea detection from single-lead ecg using hermite basis functions,” Computers in Biology and Medicine, vol. 77, pp. 116–124, 2016.
- Q. Yang, L. Zou, K. Wei, and G. Liu, “Obstructive sleep apnea detection from single-lead electrocardiogram signals using one dimensional squeeze-and-excitation residual group network,” Computers in biology and medicine, 2022, doi: 10.1016/j. compbiomed.2021.105124
- X. Chen, W. Ma, W. Gao and X. Fan, “BAFNet: Bottleneck Attention Based Fusion Network for Sleep Apnea Detection,” in IEEE Journal of Biomedical and Health Informatics, doi: 10.1109/JBHI.2023.3278657.
- V. Chandola, D. Cheboli, V. Kumar, “Detecting Anomalies in a Time Series Database,” University of Minnesota Digital Conservancy, 2009. [Online]. Available: https://hdl.handle.net/11299/215791.
- A. Mueen, E. Keogh, Q. Zhu, S. Cash, B. Westover, “Exact Discovery of Time Series Motifs,” Proceedings of the SIAM International Conference on Data Mining. SIAM International Conference on Data Mining, 2009, 473–484, doi: 10.1137/1.9781611972795.41
- D. F. Silva, C. -C. M. Yeh, Y. Zhu, G. E. A. P. A. Batista and E. Keogh, “Fast Similarity Matrix Profile for Music Analysis and Exploration,” in IEEE Transactions on Multimedia, vol. 21, no. 1, pp. 29-38, Jan. 2019, doi: 10.1109/TMM.2018.2849563.
- N. S. Senobari, G. Funning, Z. Zimmerman, Y. Zhu, E. Keogh, “Using the Similarity Matrix Profile to Investigate Foreshock Behavior of the 2004 Parkfield Earthquake,” Proceedings of the American Geophysical Union Fall Meeting, Washington, DC, USA, 10–14 December 2018; p. S51B-03.
- J. Shi, N. Yu, E. Keogh, H. K. Chen and K. Yamashita, “Discovering and Labeling Power System Events in Synchrophasor Data with Matrix Profile,” 2019 IEEE Sustainable Power and Energy Conference (iSPEC), Beijing, China, 2019, pp. 1827-1832, doi: 10.1109/iSPEC48194.2019.8975286.
- A. Yadollahi, Z. Moussavi (2009). Acoustic obstructive sleep apnea detection. In 2009 annual international conference of the IEEE engineering in medicine and biology society (pp. 7110–7113). IEEE.
- S. Kiranyaz, T. Ince and M. Gabbouj, “Real-Time Patient-Specific ECG Classification by 1-D Convolutional Neural Networks,” in IEEE Transactions on Biomedical Engineering, vol. 63, no. 3, pp. 664-675, March 2016, doi: 10.1109/TBME.2015.2468589.
- T. Penzel, G. B. Moody, R. G. Mark, A. L. Goldberger, and J. H. Peter, “The apnea-ecg database,” in Computers in Cardiology 2000. Vol. 27 (Cat. 00CH37163). IEEE, 2000, pp. 255–258.
- A. L. Goldberger, L. A. Amaral, L. Glass, J. M. Hausdorff, P. C. Ivanov, R. G. Mark, J. E. Mietus, G. B. Moody, C.-K. Peng, and H. E. Stanley, “Physiobank, physiotoolkit, and physionet: components of a new research resource for complex physiologic signals,” Circulation, vol. 101, no. 23, pp. 215–220, 2000.
- D. P. Kingma and J. Ba, “Adam: A method for stochastic optimization,” arXiv preprint arXiv:1412.6980, 2014.
- Q. Shen, H. Qin, K. Wei, and G. Liu, “Multiscale deep neural network for obstructive sleep apnea detection using rr interval from single-lead ecg signal,” IEEE Transactions on Instrumentation and Measurement, 2021, doi: 10.1109/TIM.2021.3062414
- G. Surrel, A. Aminifar, F. Rinc´on, S. Murali, and D. Atienza, “Online obstructive sleep apnea detection on medical wearable sensors,” IEEE Transactions on Biomedical Circuits and Systems, vol. 12, no. 4, pp. 762–773, 2018.
- R. V. Sharan, S. Berkovsky, H. Xiong, and E. Coiera, “Ecg-derived heart rate variability interpolation and 1-d convolutional neural networks for detecting sleep apnea,” in 2020 42nd Annual International Conference of the IEEE Engineering in Medicine & Biology Society (EMBC). IEEE, 2020, pp. 637–640.
- M. Bahrami and M. Forouzanfar, “Sleep apnea detection from single-lead ecg: a comprehensive analysis of machine learning and deep learning algorithms,” IEEE Transactions on Instrumentation and Measurement, 2022, doi: 10.1109/TIM.2022. 3151947
- J. Chen, M. Shen, W. Ma, and W. Zheng, “A spatio-temporal learning-based model for sleep apnea detection using single-lead ecg signals,” Frontiers in Neuroscience, p. 1295, 2022.
- H. Almutairi, G. M. Hassan, and A. Datta, “Classification of obstructive sleep apnoea from single-lead ecg signals using convolutional neural and long short term memory networks,” Biomedical Signal Processing and Control, 2021, doi: 10.1016/j.bspc.2021.102906