A leakage-free analytics framework for subject-wise electrocardiogram-based sleep apnea detection using machine learning
Özet
Sleep apnea is associated with impaired sleep quality and elevated cardiovascular risk, creating a need for reliable automated screening approaches. Although electrocardiogram (ECG)-based detection methods have shown promising results, reported performance values can be affected by evaluation strategies that allow information leakage between training and testing data. This study investigates ECG-based sleep apnea detection under strict subject-wise conditions using the PhysioNet Apnea-ECG database. Thirty-five annotated single-lead ECG recordings sampled at 100 Hz were divided into non-overlapping 60-s segments according to minute-wise apnea labels. Statistical ECG descriptors and time-domain heart rate variability features were extracted and evaluated using k-nearest neighbors (KNN), support vector machine (SVM), and Random Forest (RF) classifiers. In addition, a lightweight one-dimensional convolutional neural network (1D-CNN) was trained directly on filtered ECG segments. Repeated holdout validation with subject-level train-test separation was adopted, and normalization parameters were estimated exclusively from training data in each repetition to prevent information leakage. Model performance was assessed using accuracy, balanced accuracy, precision, recall, specificity, F1-score, ROC-AUC, Cohen's kappa, and Golden Distance (GD). In the representative subject-wise evaluation, Random Forest achieved the most balanced performance, yielding the highest balanced accuracy (0.70) together with the lowest GD (0.56). Across the repeated subject-wise holdout experiments, SVM achieved the strongest average overall performance, producing the highest mean accuracy (0.72), balanced accuracy (0.69), ROC-AUC (0.77), and Cohen's kappa (0.39), and the lowest mean GD value (0.58). The lightweight 1D-CNN converged stably during training, but its performance on unseen subjects remained lower than that of the handcrafted feature-based models.
Anahtar Kelimeler
- Scopus
- 0
- OpenAlex
- 0
Tam Kayıt
| Alan | Değer | Dil |
|---|---|---|
| dc.contributor.author | Melek, Negin | |
| dc.date.accessioned | 2026-10-22T10:21:41.864103704Z | |
| dc.date.available | 2026-10-22T10:21:41.864103704Z | |
| dc.date.issued | 2026 | |
| dc.description.abstract | Sleep apnea is associated with impaired sleep quality and elevated cardiovascular risk, creating a need for reliable automated screening approaches. Although electrocardiogram (ECG)-based detection methods have shown promising results, reported performance values can be affected by evaluation strategies that allow information leakage between training and testing data. This study investigates ECG-based sleep apnea detection under strict subject-wise conditions using the PhysioNet Apnea-ECG database. Thirty-five annotated single-lead ECG recordings sampled at 100 Hz were divided into non-overlapping 60-s segments according to minute-wise apnea labels. Statistical ECG descriptors and time-domain heart rate variability features were extracted and evaluated using k-nearest neighbors (KNN), support vector machine (SVM), and Random Forest (RF) classifiers. In addition, a lightweight one-dimensional convolutional neural network (1D-CNN) was trained directly on filtered ECG segments. Repeated holdout validation with subject-level train-test separation was adopted, and normalization parameters were estimated exclusively from training data in each repetition to prevent information leakage. Model performance was assessed using accuracy, balanced accuracy, precision, recall, specificity, F1-score, ROC-AUC, Cohen's kappa, and Golden Distance (GD). In the representative subject-wise evaluation, Random Forest achieved the most balanced performance, yielding the highest balanced accuracy (0.70) together with the lowest GD (0.56). Across the repeated subject-wise holdout experiments, SVM achieved the strongest average overall performance, producing the highest mean accuracy (0.72), balanced accuracy (0.69), ROC-AUC (0.77), and Cohen's kappa (0.39), and the lowest mean GD value (0.58). The lightweight 1D-CNN converged stably during training, but its performance on unseen subjects remained lower than that of the handcrafted feature-based models. | |
| dc.identifier.articlenumber | 100477 | |
| dc.identifier.doi | 10.1016/j.health.2026.100477 | |
| dc.identifier.issn | 2772-4425 | |
| dc.identifier.scopus | 2-s2.0-105041977319 | |
| dc.identifier.uri | https://rdlopen.rawdatalibrary.net/r/gumushane/13725 | |
| dc.identifier.volume | 10 | |
| dc.language.iso | en | |
| dc.publisher | Elsevier Inc. | |
| dc.relation.ispartof | Healthcare Analytics | |
| dc.rights | info:eu-repo/semantics/openAccess | |
| dc.subject | Diagnostic analytics | |
| dc.subject | Electrocardiogram analysis | |
| dc.subject | Heart rate variability | |
| dc.subject | Machine learning | |
| dc.subject | Predictive modeling | |
| dc.subject | Sleep apnea detection | |
| dc.subject.other | Article | |
| dc.subject.other | cardiovascular risk | |
| dc.subject.other | classifier | |
| dc.subject.other | convolutional neural network | |
| dc.subject.other | data accuracy | |
| dc.subject.other | data analytics | |
| dc.subject.other | diagnostic analytics | |
| dc.subject.other | electrocardiogram | |
| dc.subject.other | Golden Distance | |
| dc.subject.other | health data | |
| dc.subject.other | heart rate variability | |
| dc.subject.other | human | |
| dc.subject.other | k nearest neighbor | |
| dc.subject.other | kappa statistics | |
| dc.subject.other | machine learning | |
| dc.subject.other | prediction | |
| dc.subject.other | predictive model | |
| dc.subject.other | random forest | |
| dc.subject.other | receiver operating characteristic | |
| dc.subject.other | sleep apnea syndromes | |
| dc.subject.other | sleep quality | |
| dc.subject.other | support vector machine | |
| dc.subject.other | validation process | |
| dc.title | A leakage-free analytics framework for subject-wise electrocardiogram-based sleep apnea detection using machine learning | |
| dc.type | Article | |
| dspace.entity.type | Publication | |
| rdl.citation.openalex | 0 | |
| rdl.citation.scopus | 0 | |
| rdl.oa.status | gold | |
| rdl.oa.url | https://www.sciencedirect.com/science/article/pii/S2772442526000316/pdf | |
| rdl.scopus.quartile | Q1 | |
| rdl.sdg | SDG03 | |
| rdl.source.index | SCOPUS |

