Submitted:
01 December 2025
Posted:
02 December 2025
You are already at the latest version
Abstract
Keywords:
1. Introduction
2. Related Work
3. Data Description & Preprocessing
3.1. Dataset Description
3.2. Signal Preprocessing
3.3. Feature Engineering
- t3–t1 mean: Defined as the average delay between the onset of FP0 cessation (t1) and the beginning of oxygen desaturation (t3). This parameter quantifies the latency between respiratory obstruction and its physiological manifestation in blood .
- t4–t2 mean: Defined as the average delay between the resumption of FP0 (t2) and the start of oxygen recovery (t4). This reflects the time needed for to normalize once breathing resumes.
- : The mean duration of FP0 cessation episodes, computed directly from the FP0 signal between markers t1 (start of apnea) and t2 (end of apnea). This value represents the average length of respiratory arrest events.
- : The mean duration of oxygen desaturation episodes, calculated as the time interval between t3 (start of desaturation) and t4 (end of desaturation). It provides a measure of how long remains depressed during events.
- : The average desaturation difference, i.e. the difference between the initial value and the minimum value reached during all detected desaturation events throughout the night. This quantifies the drop in oxygen during the night.
- mean slope: The average slope of the desaturation curves, calculated as / during the fall phase of all events. It describes the rate of decline in , distinguishing between abrupt and gradual desaturations.


3.4. Limitations of Dataset
4. Methods
4.1. Problem Definition
4.2. 1D-CNN Architecture
4.3. Class Imbalance Handling
4.4. Evaluation Metrics
5. Results
| 0.89 | 0.00 | 0.36 | |
| 0.00 | 0.55 | 0.00 | |
| 0.11 | 0.45 | 0.64 |
| 0.50 | 0.00 | 0.50 | |
| 0.00 | 1.00 | 0.00 | |
| 0.05 | 0.25 | 0.70 |
| Metric | Value | Definition | Interpretation |
|---|---|---|---|
| Subset accuracy | 0.2857 | Exact match across all labels per sample. | Strictest metric, a sample counts as correct only if all labels are predicted correctly. Lower values are expected in multi label tasks with partial hits. |
| Flat accuracy | 0.6349 | Bit level accuracy over all labels (flattened). | Indicates frequent partial correctness at the label (bit) level across samples. |
| Partial accuracy | 0.6349 | Mean per sample label match ratio. | Aligns with flat accuracy, shows that, on average, about two thirds of labels per sample are correct. |
| (F1-macro) | 0.5329 | Unweighted mean F1 across labels. | Treats rare and frequent labels equally, lower due to class imbalance and harder labels. |
| (F1-micro) | 0.5490 | Global F1 aggregating TP/FP/FN over all labels. | Reflects overall balance of precision/recall across the dataset. |
| (F1-weighted) | 0.5511 | F1 weighted by label frequency. | Slight uplift vs. macro due to dominance of frequent labels. |
| AUC-ROC (macro) | 0.7305 | Mean area under ROC curve across labels (one vs rest). | Threshold independent discrimination, higher indicates better ranking of positives vs. negatives across labels. |
| AUC-PR (macro) | 0.7497 | Mean area under Precision–Recall curve across labels. | More informative under class imbalance, higher indicates better detection of positives with fewer false alarms. |
| Hamming loss | 0.3651 | Fraction of misclassified labels over all samples and labels. | Complement of flat accuracy (here ); lower is better. |
6. Discussion
7. Limitations and Future Work
8. Conclusions
References
- Benjafield, A.V.; Ayas, N.T.; Eastwood, P.R.; Heinzer, R.; Ip, M.S.M.; Morrell, M.J.; Nunez, C.M.; Patel, S.R.; Penzel, T.; Pépin, J.; et al. Estimation of the global prevalence and burden of obstructive sleep apnoea: a literature-based analysis. The Lancet Respiratory Medicine 2019, 7, 687–698. [Google Scholar] [CrossRef] [PubMed]
- Abrishami, A.; Khajehdehi, A.; Chung, F. A systematic review of screening questionnaires for obstructive sleep apnea. Canadian Journal of Anesthesia 2010, 57, 423. [Google Scholar] [CrossRef] [PubMed]
- Deviaene, M.; Varon, C.; Testelmans, D.; Buyse, B.; Van Huffel, S. Assessing cardiovascular comorbidities in sleep apnea patients using SpO2. In Proceedings of the 2017 Computing in Cardiology (CinC), 2017, pp. 1–4. [CrossRef]
- Kainulainen, S.; Töyräs, J.; Oksenberg, A.; Korkalainen, H.; Sefa, S.; Kulkas, A.; Leppänen, T. Severity of desaturations reflects OSA-related daytime sleepiness better than AHI. Journal of Clinical Sleep Medicine 2019, 15, 1135–1142. [Google Scholar] [CrossRef] [PubMed]
- Demko, B.G. The Evolution of Oral Appliance Therapy for Snoring and Sleep Apnea: Where Did We Come From, Where Are We, and Where Are We Going? Sleep Medicine Clinics 2018, 13, 467–487. [Google Scholar] [CrossRef]
- Marin, J.M.; Carrizo, S.J.; Vicente, E.; Agusti, A.G. Long-term cardiovascular outcomes in men with obstructive sleep apnoea-hypopnoea with or without treatment with continuous positive airway pressure: an observational study. Lancet 2005, 365, 1046–1053. [Google Scholar] [CrossRef]
- Bahammam, A.; Gacuan, D.; George, S.; Acosta, K.L.; Pandi-Perumal, S.R.; Gupta, R. POLYSOMNOGRAPHY I: PROCEDURE AND TECHNOLOGY. / 2016, pp. 443–456. [CrossRef]
- Gottlieb, D.J.; Punjabi, N.M. Diagnosis and management of obstructive sleep apnea: a review. Jama 2020, 323, 1389–1400. [Google Scholar]
- Slowik, J.M.; Sankari, A.; Collen, J.F. Obstructive Sleep Apnea. In StatPearls; StatPearls Publishing: Treasure Island (FL), 2025. [Google Scholar] [PubMed]
- Slowik, J.M.; Sankari, A.; Collen, J.F. Obstructive Sleep Apnea. In StatPearls; StatPearls Publishing: Treasure Island (FL), 2025. [Google Scholar] [PubMed]
- Lipton, Z.; Kale, D.; Elkan, C.; Wetzel, R. Learning to Diagnose with LSTM Recurrent Neural Networks. arXiv preprint arXiv:1511.03677 2015.
- Pattipati, M.; Gudavalli, G.; Zin, M.; Dhulipalla, L.; Kolack, E.; Karki, M.; Devarakonda, P.K.; Yoe, L. Continuous Positive Airway Pressure vs Mandibular Advancement Devices in the Treatment of Obstructive Sleep Apnea: An Updated Systematic Review and Meta-Analysis. Cureus 2022, 14, e21759. [Google Scholar] [CrossRef] [PubMed]
- Hussein, O.; Alkhader, A.; Gohar, A.; Bhat, A. Home Sleep Apnea Testing for Obstructive Sleep Apnea. Missouri Medicine 2024, 121, 60–65. [Google Scholar] [PubMed]
- Espinosa, M.A.; Ponce, P.; Molina, A.; Borja, V.; Torres, M.G.; Rojas, M. Advancements in Home-Based Devices for Detecting Obstructive Sleep Apnea: A Comprehensive Study. Sensors 2023, 23. [Google Scholar] [CrossRef]
- Zovko, K.; Šerić, L.; Perković, T.; Belani, H.; Šolić, P. IoT and health monitoring wearable devices as enabling technologies for sustainable enhancement of life quality in smart environments. Journal of Cleaner Production 2023, 413, 137506. [Google Scholar] [CrossRef]
- Hüsken, M.; Stagge, P. Recurrent neural networks for time series classification. Neurocomputing 2003, 50, 223–235. [Google Scholar] [CrossRef]
- M, I.A.C.; Ansari, M.Y.; Paul, S.; Halabi, O.; Alataresh, E.; Shah, J.; Hamze, A.; Aboumarzouk, O.; Al-Ansari, A.; Dakua, S.P. Development and Validation of a Class Imbalance-Resilient Cardiac Arrest Prediction Framework Incorporating Multiscale Aggregation, ICA and Explainability. IEEE Transactions on Biomedical Engineering 2025, 72, 1674–1687. [Google Scholar] [CrossRef] [PubMed]
- Liu, S.; Fu, B.; Wang, W.; Liu, M.; Sun, X. Dynamic Sepsis Prediction for Intensive Care Unit Patients Using XGBoost-Based Model With Novel Time-Dependent Features. IEEE Journal of Biomedical and Health Informatics 2022, 26, 4258–4269. [Google Scholar] [CrossRef] [PubMed]
- Kim, Y.; Koo, J.; Lee, S.; Song, H.; Lee, M. Explainable AI Warning Model Using Ensemble Approach for In-Hospital Cardiac Arrest Prediction: A Retrospective Cohort Study (Preprint). Journal of Medical Internet Research 2023, 25. [Google Scholar] [CrossRef] [PubMed]
- Kobir, M.; Machado, P.; Lotfi, A.; Haider, D.; Ihianle, I. Enhancing Multi-User Activity Recognition in an Indoor Environment with Augmented Wi-Fi Channel State Information and Transformer Architectures. Sensors 2025, 25. [Google Scholar] [CrossRef]
- Hossen, M.K.; Peng, Y.T.; Shao, A.; Chen, M. An ODE based neural network approach for PM2.5 forecasting. Scientific Reports 2025, 15. [Google Scholar] [CrossRef]
- Xie, J.; Wang, Z.; Yu, Z.; Ding, Y.; Guo, B. Prototype Learning for Medical Time Series Classification via Human–Machine Collaboration. Sensors 2024, 24. [Google Scholar] [CrossRef]
- Sirrianni, J.; Sezgin, E.; Claman, D.; Linwood, S. Medical Text Prediction and Suggestion Using Generative Pretrained Transformer Models with Dental Medical Notes. Methods of Information in Medicine 2022, 61. [Google Scholar] [CrossRef]
- Tian, M.; Chen, B.; Guo, A.; Jiang, S.; Zhang, A. Reliable generation of privacy-preserving synthetic electronic health record time series via diffusion models. Journal of the American Medical Informatics Association : JAMIA 2024, 31. [Google Scholar] [CrossRef]
- Huo, Z.; Booth, J.; Monks, T.; Knight, P.; Watson, L.; Peters, M.; Pagel, C.; Ramnarayan, P.; Li, K. Dynamic mortality prediction in critically Ill children during interhospital transports to PICUs using explainable AI. npj Digital Medicine 2025, 8. [Google Scholar] [CrossRef]
- Lin, P.K.; Chiu, Y.H.; Huang, C.J.; Wang, C.Y.; Pan, M.L.; Wang, D.W.; Liao, H.y.; Chen, Y.S.; Kuan, C.H.; Lin, S.Y.; et al. PADAr: physician-oriented artificial intelligence-facilitating diagnosis aid for retinal diseases. Journal of Medical Imaging 2022, 9. [Google Scholar] [CrossRef] [PubMed]
- V J, S.; D, J.F. Deep Learning Algorithm for COVID-19 Classification Using Chest X-Ray Images. Computational and Mathematical Methods in Medicine 2021, 2021, 9269173. [Google Scholar] [CrossRef] [PubMed]
- Alp, S.; Akan-R.Farshi, T.; Bhuiyan, M.S.; Disbrow, E.; Conrad, S.; Vanchiere, J.; Kevil, C.; Bhuiyan, M.A.N. Joint transformer architecture in brain 3D MRI classification: its application in Alzheimer’s disease classification. Scientific Reports 2024, 14. [Google Scholar] [CrossRef] [PubMed]
- Ahmad, S.; Ahmad, Z.; Kim, J.M. A Centrifugal Pump Fault Diagnosis Framework Based on Supervised Contrastive Learning. Sensors 2022, 22. [Google Scholar] [CrossRef]
- Rahaman Wahab Sait, A.; Alkhurayyif, Y. Lightweight hybrid transformers-based dyslexia detection using cross-modality data. Scientific Reports 2025, 15. [Google Scholar] [CrossRef]
- Jovic, A.; Frid, N.; Brkic, K.; Cifrek, M. Interpretability and accuracy of machine learning algorithms for biomedical time series analysis – a scoping review. Biomedical Signal Processing and Control 2025, 110, 108153. [Google Scholar] [CrossRef]
- Saikumar, K.; Rajesh, V.; Srivastava, G.; Lin, J.C.W. Heart disease detection based on internet of things data using linear quadratic discriminant analysis and a deep graph convolutional neural network. Frontiers in Computational Neuroscience 2022, Volume 16 - 2022. [CrossRef]
- Heydarian, M.; Doyle, T.E.; Samavi, R. MLCM: Multi-Label Confusion Matrix. IEEE Access 2022, 10, 19083–19095. [Google Scholar] [CrossRef]
- Kimura, A.; Mitsukura, Y.; Oya, A.; Matsumoto, M.; Nakamura, M.; Kanaji, A.; Miyamoto, T. Objective characterization of hip pain levels during walking by combining quantitative electroencephalography with machine learning. Scientific Reports 2021, 11. [Google Scholar] [CrossRef]
- Patil, S.; Kukreja, D. Deep Reinforced Cognitive Analytics Algorithm (DRCAM): An Advanced Method to early detection of Cognitive skill impairment using Deep Learning and Reinforcement Learning. MethodsX 2025, 14, 103277. [Google Scholar] [CrossRef]
- Khan, A.; Basit, M.S.; Farooq, O.; Khan, Y.U.; Shameem, M. Mitigating the class imbalance effect in Sleep Apnea Classification. In Proceedings of the 2023 International Conference on Recent Advances in Electrical, Electronics & Digital Healthcare Technologies (REEDCON), 2023, pp. 530–535. [CrossRef]
- Sheta, A.; Turabieh, H.; Thaher, T.; Too, J.; Mafarja, M.; Hossain, M.S.; Surani, S.R. Diagnosis of Obstructive Sleep Apnea from ECG Signals Using Machine Learning and Deep Learning Classifiers. Applied Sciences 2021, 11. [Google Scholar] [CrossRef]
- Kumar, C.B.; Bhongade, A.; Gandhi, T.K.; Panigrahi, B.K. Recognition of Obstructive Sleep Apnea from a Single Lead Electrocardiogram Signal Using a ResNet Model. In Proceedings of the 2023 14th International Conference on Computing Communication and Networking Technologies (ICCCNT), 2023, pp. 1–5. [CrossRef]
- Kumar, C.B.; Mondal, A.K.; Bhatia, M.; Panigrahi, B.K.; Gandhi, T.K. Self-Supervised Representation Learning-Based OSA Detection Method Using Single-Channel ECG Signals. IEEE Transactions on Instrumentation and Measurement 2023, 72, 1–15. [Google Scholar] [CrossRef]
- Zhang, Y.; Shi, Y.; Su, Y.; Cao, Z.; Li, C.; Xie, Y.; Niu, X.; Yuan, Y.; Ma, L.; Zhu, S.; et al. Detection and severity assessment of obstructive sleep apnea according to deep learning of single-lead electrocardiogram signals. Journal of Sleep Research 2025, 34, e14285. [Google Scholar] [CrossRef]
- Khan, A.; Biswas, S.K.; Chunka, C. An Optimized Obstructive Sleep Apnea Detection Model Using Particle Swarm Optimization and Machine Learning. In Proceedings of the 2025 10th IEEE International Conference on Integrated Circuits, Design, and Verification (ICDV), 2025, pp. 1–6. [CrossRef]
- Khan, A.; Biswas, S.K.; Chunka, C.; Barman, S. Ensembled Obstructive Sleep Apnea Detection Using Extra Tree Ensemble Technique. In Proceedings of the 2024 2nd International Conference on Advancement in Computation & Computer Technologies (InCACCT), 2024, pp. 342–347. [CrossRef]
- Satapathy, S.K.; Pattnaik, S.; Rath, R. Automated Sleep Staging Classification System Based On Convolutional Neural Network Using Polysomnography Signals. In Proceedings of the 2022 IEEE Delhi Section Conference (DELCON), 2022, pp. 1–10. [CrossRef]
- Jain, S.; Singhal, A.; Rai, J.K.; Sharma, P. Polysomnography based Sleep Stage Classification using Deep Learning for Sleep Apnea Pediatric Subjects. In Proceedings of the 2025 4th OPJU International Technology Conference (OTCON) on Smart Computing for Innovation and Advancement in Industry 5.0, 2025, pp. 1–7. [CrossRef]
- M, S.; M, G.K.; Dillon P, D.; S, A.I.; S P, S.; N, M. SomnoDx: A Real-Time Deep Learning Framework for Multimodal Sleep Disorder Diagnosis. In Proceedings of the 2025 3rd International Conference on Self Sustainable Artificial Intelligence Systems (ICSSAS), 2025, pp. 840–846. [CrossRef]
- Jirakittayakorn, N.; Manupibul, U.; Wongsawat, Y.; Mitrirattanakul, S. RespNet: A Dual-Network Approach for Automated OSA Severity Classification Utilizing PSG Type III Signals. IEEE Access 2024, 12, 148538–148552. [Google Scholar] [CrossRef]
- Hanif, U.; Leary, E.; Schneider, L.; Paulsen, R.; Morse, A.; Blackman, A.; Schweitzer, P.; Kushida, C.; Liu, S.; Jennum, P.; et al. Estimation of Apnea-Hypopnea Index Using Deep Learning On 3-D Craniofacial Scans. IEEE Journal of Biomedical and Health Informatics 2021, PP, 1–1. [Google Scholar] [CrossRef]
- He, Z.; Xiao, Y.; Wu, X.; Liang, Y.; Zhou, Y.; An, G. An Automatic Assessment Model of Adenoid Hypertrophy in MRI Images Based on Deep Convolutional Neural Networks. IEEE Access 2023, 11, 106516–106527. [Google Scholar] [CrossRef]
- Qiu, X.; Wang, C.; Li, B.; Tong, H.; Tan, X.; Yang, L.; Tao, J.; Huang, J. An audio-semantic multimodal model for automatic obstructive sleep Apnea-Hypopnea Syndrome classification via multi-feature analysis of snoring sounds. Frontiers in Neuroscience 2024, 18, 1336307. [Google Scholar] [CrossRef] [PubMed]
- Singh, S.; Anisi, M.H.; Jindal, A.; Jarchi, D. Smart Multimodal In-Bed Pose Estimation Framework Incorporating Generative Adversarial Neural Network. IEEE Journal of Biomedical and Health Informatics 2024, 28, 3379–3388. [Google Scholar] [CrossRef] [PubMed]
- Kuan, Y.C.; Hong, C.T.; Chen, P.C.; Liu, W.T.; Chung, C.C. Logistic regression and artificial neural network-based simple predicting models for obstructive sleep apnea by age, sex, and body mass index. Mathematical biosciences and engineering: MBE 2022, 19, 11409–11421. [Google Scholar]
- Javeed, A.; Berglund, J.; Moraes, A.L.; Muhammad, .; Saleem, M.; Anderberg, P. Predictive Power of XGBoost BiLSTM Model: A Machine Learning Approach for Accurate Sleep Apnea Detection Using Electronic Health Data. International Journal of Computational Intelligence Systems 2023, 2023, 188. [CrossRef]
- Kim, Y.J.; Jeon, J.S.; Cho, S.E.; Kim, K.G.; Kang, S.G. Prediction Models for Obstructive Sleep Apnea in Korean Adults Using Machine Learning Techniques. Diagnostics 2021, 11. [Google Scholar] [CrossRef]
- Troncoso-García, A.R.; Martínez-Ballesteros, M.; Martínez-Álvarez, F.; Lora, A.T. Explainable machine learning for sleep apnea prediction. In Proceedings of the International Conference on Knowledge-Based Intelligent Information & Engineering Systems, 2022.
- Korompili, G.; Amfilochiou, A.; Kokkalas, L.; et al. PSG-Audio, a scored polysomnography dataset with simultaneous audio recordings for sleep apnea studies. Scientific Data 2021, 8, 197. [Google Scholar] [CrossRef]
- Wikimedia Commons. Sleep. https://commons.wikimedia.org/wiki/File:Sleep_studies.jpg n.d. Accessed: 2024-10-30.
- VanderPlas, J. Python Data Science Handbook: Essential Tools for Working with Data. In Proceedings of the Python Data Science Handbook: Essential Tools for Working with Data. O’Reilly Media, 2016.
- Crenna, F.; Rossi, G.B.; Berardengo, M. Filtering Biomechanical Signals in Movement Analysis. Sensors 2021, 21. [Google Scholar] [CrossRef]
- Kawala-Sterniuk, A.; Podpora, M.; Pelc, M.; Blaszczyszyn, M.; Gorzelanczyk, E.J.; Martinek, R.; Ozana, S. Comparison of Smoothing Filters in Analysis of EEG Data for the Medical Diagnostics Purposes. Sensors 2020, 20. [Google Scholar] [CrossRef] [PubMed]
- Kelleher, J.D., Deep Learning; MIT Press, 2019; chapter 1, pp. 1–38.
- Kim, P. Matlab deep learning. With machine learning, neural networks and artificial intelligence 2017, 130, 151. [Google Scholar]
- Albawi, S.; Mohammed, T.A.; Al-Zawi, S. Understanding of a convolutional neural network. In Proceedings of the 2017 International Conference on Engineering and Technology (ICET), 2017, pp. 1–6. [CrossRef]
- Gibaja, E.; Ventura, S. Multi-label learning: a review of the state of the art and ongoing research. Wiley Interdisciplinary Reviews: Data Mining and Knowledge Discovery 2014, 4, 411–444. [Google Scholar] [CrossRef]
- Koyejo, O.O.; Natarajan, N.; Ravikumar, P.K.; Dhillon, I.S. Consistent multilabel classification. Advances in Neural Information Processing Systems 2015, 28. [Google Scholar]
- Du, J.; Chen, Q.; Peng, Y.; Xiang, Y.; Tao, C.; lu, Z. ML-Net: Multi-label classification of biomedical texts with deep neural networks. Journal of the American Medical Informatics Association : JAMIA 2019, 26. [Google Scholar] [CrossRef]
- Pereira, R.B.; Plastino, A.; Zadrozny, B.; Merschmann, L.H. Correlation analysis of performance measures for multi-label classification. Information Processing & Management 2018, 54, 359–369. [Google Scholar] [CrossRef]
- Krstinić, D.; Braović, M.; Šerić, L.; Božić-Štulić, D. Multi-label classifier performance evaluation with confusion matrix. Computer Science & Information Technology 2020, 1, 1–14. [Google Scholar]
- Koço, S.; Capponi, C. On multi-class classification through the minimization of the confusion matrix norm. In Proceedings of the Asian Conference on Machine Learning. PMLR, 2013, pp. 277–292.
- Canbek, G.; Sagiroglu, S.; Temizel, T.T.; Baykal, N. Binary classification performance measures/metrics: A comprehensive visualized roadmap to gain new insights. In Proceedings of the 2017 International Conference on Computer Science and Engineering (UBMK). IEEE, 2017, pp. 821–826.
- Labatut, V.; Cherifi, H. Evaluation of performance measures for classifiers comparison. arXiv preprint arXiv:1112.4133 2011.
- Fawcett, T. An introduction to ROC analysis. Pattern recognition letters 2006, 27, 861–874. [Google Scholar] [CrossRef]









| GT | Recall | |||
|---|---|---|---|---|
| 4.0 | 0.0 | 4.0 | 0.50 | |
| 0.0 | 3.0 | 0.0 | 1.00 | |
| 0.5 | 2.5 | 7.0 | 0.70 | |
| Precision | 0.89 | 0.55 | 0.64 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2025 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).