Explainable CNN–BiLSTM Framework for Multi-Class Sleep Apnea Severity Detection Using Single-Lead ECG Signals: A Comprehensive Machine Learning Approach

Background/Objectives: Obstructivesleep apnea (OSA) is one of the most widespread forms of sleep disease, affecting over 936 million adults globally. The health consequences of obstructive sleep apnea (OSA) are well documented; however, it remains largely underdiagnosed because the current gold-standard diagnostic method, polysomnography (PSG), is often costly, time-consuming, and unavailable in many healthcare settings. To address these challenges, this study presents a novel explainable deep learning (DL) framework for automated multi-class OSA severity classification using single-lead electrocardiogram (ECG) signals. Methods: The proposed framework integrates a hybrid CNN–BiLSTM architecture with explainable artificial intelligence (XAI) techniques to generate clinically meaningful predictions and explanations across four OSA severity classes: Normal, Mild, Moderate, and Severe. The framework was evaluated using the publicly available PhysioNet Apnea-ECG dataset (70 recordings) together with an institutional ECG dataset (150 recordings), resulting in a combined cohort of 220 recordings. Results: The proposed framework achieved an overall classification accuracy of 94.7%, with sensitivity and specificity values of 92.3% and 96.1%, respectively. Furthermore, the proposed model consistently outperformed conventional machine learning algorithms, including Support Vector Machine (SVM), Random Forest, and XGBoost, by 5.5%, 4.2%, and 2.9%, respectively. To enhance transparency and clinical trust, SHAP (SHapley Additive exPlanations) was employed to identify the most influential physiological predictors driving model decisions. Heart rate variability features, particularly RMSSD and pNN50, emerged as the strongest indicators of OSA severity. Moreover, computational efficiency analysis revealed that the model required only 0.23 s to process a 60 s ECG epoch on a standard computing platform, supporting its suitability for real-time deployment. Conclusions: The findings demonstrate that explainable deep learning applied to ECG signals can provide accurate, interpretable, and computationally efficient assessment of OSA severity. The proposed framework may support OSA screening, clinical triage, and early intervention, particularly in resource-constrained healthcare environments.

Authors

Institutions

Publication Details

Journal
Diagnostics
Published
2026-07-27
DOI
https://doi.org/10.3390/diagnostics16152353
Primary Topic
Obstructive Sleep Apnea Research
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Explainable CNN–BiLSTM Framework for Multi-Class Sleep Apnea Severity Detection Using Single-Lead ECG Signals: A Comprehensive Machine Learning Approach

Alaa Sheta, Ghassan Samara, Nadiah A. Baghdadi, Fida’a Al-Quran et al.
Diagnostics
Obstructive Sleep Apnea Research
article

Explainable CNN–BiLSTM Framework for Multi-Class Sleep Apnea Severity Detection Using Single-Lead ECG Signals: A Comprehensive Machine Learning Approach

Alaa Sheta, Ghassan Samara, Nadiah A. Baghdadi, Fida’a Al-Quran, El-Sayed Atlam, Ghada Elmarhomy, Omar Isam Al Mrayat, Malik Jawarneh, Dyala Ibrahim, Amer Malki
article en

Abstract

Background/Objectives: Obstructivesleep apnea (OSA) is one of the most widespread forms of sleep disease, affecting over 936 million adults globally. The health consequences of obstructive sleep apnea (OSA) are well documented; however, it remains largely underdiagnosed because the current gold-standard diagnostic method, polysomnography (PSG), is often costly, time-consuming, and unavailable in many healthcare settings. To address these challenges, this study presents a novel explainable deep learning (DL) framework for automated multi-class OSA severity classification using single-lead electrocardiogram (ECG) signals. Methods: The proposed framework integrates a hybrid CNN–BiLSTM architecture with explainable artificial intelligence (XAI) techniques to generate clinically meaningful predictions and explanations across four OSA severity classes: Normal, Mild, Moderate, and Severe. The framework was evaluated using the publicly available PhysioNet Apnea-ECG dataset (70 recordings) together with an institutional ECG dataset (150 recordings), resulting in a combined cohort of 220 recordings. Results: The proposed framework achieved an overall classification accuracy of 94.7%, with sensitivity and specificity values of 92.3% and 96.1%, respectively. Furthermore, the proposed model consistently outperformed conventional machine learning algorithms, including Support Vector Machine (SVM), Random Forest, and XGBoost, by 5.5%, 4.2%, and 2.9%, respectively. To enhance transparency and clinical trust, SHAP (SHapley Additive exPlanations) was employed to identify the most influential physiological predictors driving model decisions. Heart rate variability features, particularly RMSSD and pNN50, emerged as the strongest indicators of OSA severity. Moreover, computational efficiency analysis revealed that the model required only 0.23 s to process a 60 s ECG epoch on a standard computing platform, supporting its suitability for real-time deployment. Conclusions: The findings demonstrate that explainable deep learning applied to ECG signals can provide accurate, interpretable, and computationally efficient assessment of OSA severity. The proposed framework may support OSA screening, clinical triage, and early intervention, particularly in resource-constrained healthcare environments.

DiagnosticsVol. 16(15)
Princess Nourah bint Abdulrahman University (SA), Amman Arab University (JO), Zarqa University (JO), Tanta University (EG), Taibah University (SA), Al-Balqa Applied University (JO), Southern Connecticut State University (US), Nile University (EG), Middle East University (JO)
Princess Nourah Bint Abdulrahman University
Openalex Percentile: Top 10%
Obstructive Sleep Apnea Research
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.