An Accurate, Low-Cost Machine Learning System for Sleep Apnea Detection
CSEF · 2026 Medicine & Physiology (Track 2) (Senior Division)
Overview
Sleep apnea, a disorder in which breathing repeatedly stops and starts during sleep due to airway obstruction or disrupted brain signaling, affects over one billion people worldwide.However, over 80-90% of these cases remain undiagnosed due to the high cost and inaccessibility of polysomnography, which requires 25+ sensors and costs over $3,000. This project developed and evaluated a low-cost machine learning system to detect sleep apnea events using only ECG and SpO₂ signals, targeting a final hardware cost of ~$20. Using the HuGCDN2014-OXI dataset of 83 participants, ECG and SpO₂ signals were segmented into one-minute windows and processed to extract six factors detailing cardiovascular variation and oxygen desaturation patterns. Five machine learning models - XGBoost, SVM-RBF, Hidden Markov Model, Gaussian Process Classifier, and Naive Bayes Network - were implemented and compared against a traditional SpO₂ threshold baseline using stratified 80/20 train-test splitting. XGBoost achieved the highest participant-level AUC of 0.958, outperforming all models and the baseline. To assess generalizability, the trained model was applied without retraining to the independent PhysioNet Apnea-ECG dataset, achieving 0.86 AUC using ECG features alone, confirming cross-dataset validity. All machine learning models significantly outperformed the threshold baseline, demonstrating that multi-feature classification captures apnea patterns that threshold methods miss. A low-cost hardware prototype integrating ECG and SpO₂ sensors was assembled using an Arduino microcontroller to demonstrate real-world deployment feasibility. These results suggest machine learning is a viable segue to affordable, accurate at-home sleep apnea screening, expanding the opportunity for diagnosis to the millions currently undetected.
Competition history
- CSEF 2026
Related projects
ISEF · 2020
A Novel Obstructive Sleep Apnea Management System
ISEF · 2017
EZsleep: A Low-Cost Wearable Device for Early Diagnosis of Obstructive Sleep Apnea - Validated by a Machine Learning Technique
ISEF · 2018
The Development of a Holistic Cardiovascular Disease Screening System Utilizing a Low-Cost Electrocardiogram and a Machine Learning Algorithm
CSEF · 2026
Somnicare
JSHS · 2020
Enabling Personalized Medicine: A Novel Deep Learning Tool for Classifying Genetic Mutations Using Text from Clinical Evidence
ISEF · 2025
RhythmTrack AI- A Cost-Effective Stationary Monitoring Device for the Detection of Atrial Fibrillation (AF) Using a Three-Electrodes Configuration on Einthoven's Triangle by CNN-LSTM-Based AI Model
CSEF · 2018
SmartRate: A Machine Learning Approach to Predicting Cardiac Arrest
CSEF · 2026
ICAM: A Non-Invasive Low-Cost Wearable Device for Resource-Efficient Monitoring of Non-Convulsive Epileptic Seizures
Closest projects by meaning, across every fair and year in the corpus.
Browse more like this
Source: California Science & Engineering Fair public projects