Zan, Hasan2025-08-152025-08-1520250967-33341361-6579https://doi.org/10.1088/1361-6579/adebddhttps://hdl.handle.net/20.500.12514/9153Objective. Sleep apnea is a common sleep disorder associated with severe health risks, necessitating accurate and efficient detection methods. Approach. This study proposes ModelS4Apnea, a deep learning framework for sleep apnea detection from electrocardiogram (ECG) spectrograms, integrating structured state space models (S4) for temporal modeling. The framework consists of a convolutional neural network module for local feature extraction, an S4 module for capturing long-range dependencies, and a classification module for final predictions. Main results. The model was trained and evaluated on the Apnea-ECG dataset, achieving an accuracy of 0.933, an F1-score of 0.912, a sensitivity of 0.916, and a specificity of 0.944, outperforming most prior studies while maintaining computational efficiency. Significance. Compared to existing methods, ModelS4Apnea provides high classification performance with significantly fewer trainable parameters than long short-term memory-based models, reducing training time and memory consumption. The model's ability to aggregate segment-level predictions enabled perfect per-recording classification, demonstrating its robustness in diagnosing sleep apnea across entire recordings. Moreover, its low memory footprint and fast inference speed make it well-suited for wearable devices, home-based monitoring, and clinical applications, offering a scalable and efficient solution for automated sleep apnea detection. Future work may explore multi-modal data integration, real-world deployment, and further optimizations to enhance its clinical applicability and reliability.en10.1088/1361-6579/adebddinfo:eu-repo/semantics/closedAccessApnea DetectionStructured State Space ModelS4Deep LearningApnea-ECG DatasetModelS4Apnea: Leveraging Structured State Space Models for Efficient Sleep Apnea Detection From ECG SignalsArticle2-s2.0-105010563870