A leakage-free analytics framework for subject-wise electrocardiogram-based sleep apnea detection using machine learning

ArticleOpen AccessScopus SJRQ1
  • SDG 3 · Good Health and Well-being

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.

Keywords

RDL Persistent Link (PID)
https://rdlopen.rawdatalibrary.net/r/gumushane/13725Persistent address for formal citations
DOI
https://doi.org/10.1016/j.health.2026.100477Publisher's official DOI address
Index records
The record's page in the citation indexes (by the record id taken at import). Access follows each index's own terms.
Citations
Scopus
0
OpenAlex
0
Each source's own citation total, taken at import and enrichment.
Full Record
FieldValueLanguage
dc.contributor.authorMelek, Negin
dc.date.accessioned2026-10-22T10:21:41.864103704Z
dc.date.available2026-10-22T10:21:41.864103704Z
dc.date.issued2026
dc.description.abstractSleep 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.articlenumber100477
dc.identifier.doi10.1016/j.health.2026.100477
dc.identifier.issn2772-4425
dc.identifier.scopus2-s2.0-105041977319
dc.identifier.urihttps://rdlopen.rawdatalibrary.net/r/gumushane/13725
dc.identifier.volume10
dc.language.isoen
dc.publisherElsevier Inc.
dc.relation.ispartofHealthcare Analytics
dc.rightsinfo:eu-repo/semantics/openAccess
dc.subjectDiagnostic analytics
dc.subjectElectrocardiogram analysis
dc.subjectHeart rate variability
dc.subjectMachine learning
dc.subjectPredictive modeling
dc.subjectSleep apnea detection
dc.subject.otherArticle
dc.subject.othercardiovascular risk
dc.subject.otherclassifier
dc.subject.otherconvolutional neural network
dc.subject.otherdata accuracy
dc.subject.otherdata analytics
dc.subject.otherdiagnostic analytics
dc.subject.otherelectrocardiogram
dc.subject.otherGolden Distance
dc.subject.otherhealth data
dc.subject.otherheart rate variability
dc.subject.otherhuman
dc.subject.otherk nearest neighbor
dc.subject.otherkappa statistics
dc.subject.othermachine learning
dc.subject.otherprediction
dc.subject.otherpredictive model
dc.subject.otherrandom forest
dc.subject.otherreceiver operating characteristic
dc.subject.othersleep apnea syndromes
dc.subject.othersleep quality
dc.subject.othersupport vector machine
dc.subject.othervalidation process
dc.titleA leakage-free analytics framework for subject-wise electrocardiogram-based sleep apnea detection using machine learning
dc.typeArticle
rdl.citation.openalex0
rdl.citation.scopus0
rdl.oa.statusgold
rdl.oa.urlhttps://www.sciencedirect.com/science/article/pii/S2772442526000316/pdf
rdl.scopus.quartileQ1
rdl.sdgSDG03
rdl.source.indexSCOPUS