Transformer-based deep learning approach for obstructive sleep apnea detection using single-lead ECG

Read full text
Authors: Malak Abdullah Almarshad, Saad Muhammed Al-Ahmadi, Saiful Islam, Adel Soudani, Ahmed S. BaHammam
Cited by: 3
References: 46

Abstract

Obstructive sleep apnea (OSA) results from repeated collapses of the upper airway during sleep, which can lead to serious health complications. Although polysomnography (PSG) is the diagnostic gold standard, it is costly, labor-intensive, and associated with long waiting times. With the rapid evolution of automated scoring solutions and the emergence of machine learning (ML) and deep learning (DL) in many disciplines, there is a need for tools that use fewer signals and can provide accurate diagnoses. DL models can an process large amounts of data and often generalize effectively to new instances. This makes them a suitable choice for classifying continuous time series data. This study introduces a transformer-based deep learning approach using a single-lead electrocardiogram (ECG) for OSA detection. The proposed architecture, designed to handle raw signals with high sampling rates, preserves temporal continuity over unlimited durations. Without any preprocessing, the model tolerates high-noise raw data. The model is tested with different positional embedding techniques. Additionally, a novel positional encoding technique using an autoencoder is introduced. The proposed approach achieves a high F1 score, outperforming other published work by an average margin of more than 13%. In addition, the model classifies apnea episodes at one-second intervals, providing clinicians with nuanced insights.

Fields of Study & Subjects

Obstructive Sleep Apnea Research Non-Invasive Vital Sign Monitoring EEG and Brain-Computer Interfaces

Publication details

Journal / source
Frontiers in Artificial Intelligence
Publisher
Frontiers Media SA
Volume
9
Pages
1727091–1727091
Publication date
11 February 2026
Language
EN