ORIGINAL RESEARCH article
Front. Neurol.
Sec. Sleep Disorders
Volume 16 - 2025 | doi: 10.3389/fneur.2025.1636983
Detailed Evaluation of Sleep Apnea Using Heart Rate Variability: A Machine Learning and Statistical Method Using ECG Data
Provisionally accepted- King Abdulaziz University, Jeddah, Saudi Arabia
Select one of your emails
You have multiple emails registered with Frontiers:
Notify me on publication
Please enter your email address:
If you already have an account, please login
You don't have a Frontiers account ? You can register here
Background: Sleep apnea is a common sleep disorder associated with high degree of autonomic dysfunction and increased cardiovascular risk. Traditional diagnostic methods such as polysomnography (PSG) are costly, time-consuming, and sometimes unavailable.Heart rate variability (HRV), a noninvasively assessable measure, is another promising method for the assessment of autonomic perturbations during apneas. The objective of this study was to investigate the extent to which features derived from single-lead ECG are capable of differentiating apnea from non-apnea states in time-domain, frequency-domain and nonlinear HRV features. Methods: Analysis was done on 18 subjects from the PhysioNet Apnea-ECG database. After preprocessing to extract R-R intervals, the ECG signals were divided into 1-minute epochs and classified as either apnea or non-apnea. Kubios software was used to extract HRV features, and one-way ANOVA was used for statistical comparison.The predictability of HRV features was analyzed using machine learning classifiers Random Forest and XGBoost. Results: Sympathetic markers (VLF and LF/HF) increased, whilst parasympathetic-related features (HF, RMSSD, SampEn) decreased during apnoea (p < 0.05). Nonlinear features, including SampEn, showed high discriminatory performance (Cohen's d = 2.93). The AUC of XGBoost model reached to 0.98, demonstrating the usefulness of the HRV features in precise apnea detection. Conclusion: HRV parameters can efficiently reflect autonomic disruption induced by SAAs, especially nonlinear and frequency domain indices. Augmented by machine learning, HRV analysis is a powerful and scalable technique toward real-time, non-invasive screening of sleep disordered breathing that can be implemented in to wearable health technology and digital sleep medicine.
Keywords: Sleep Apnea, Heart rate variability, machine learning, Nonlinear Dynamics, Autonomic Nervous System, ECG, Wearable diagnostics
Received: 28 May 2025; Accepted: 07 Jul 2025.
Copyright: © 2025 Attar. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) or licensor are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.
* Correspondence: Eyad Talal Attar, King Abdulaziz University, Jeddah, Saudi Arabia
Disclaimer: All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article or claim that may be made by its manufacturer is not guaranteed or endorsed by the publisher.