Related Experiment Video
Updated: Jun 5, 2026

Drug-Induced Sleep Endoscopy (DISE) with Target Controlled Infusion (TCI) and Bispectral Analysis in Obstructive Sleep Apnea
Published on: December 6, 2016
Predicting sleep state from continuous positive airway pressure flow in patients with obstructive sleep apnea
Muneeb Ahsan1, Hsin-Yu Chen2, Cheng-Yao J Chen2
1Department of Medicine, Yale University School of Medicine, New Haven, CT, USA.
Introduction:
The first line treatment for obstructive sleep apnea (OSA) is continuous positive airway pressure (CPAP). CPAP adherence is assessed by hours of mask usage per night. To understand whether patients using CPAP are sleeping while wearing their mask (and thus may benefit from therapy), we aimed to predict sleep from CPAP flow signals.
Methods:
We developed a machine learning algorithm to predict sleep states (wake vs. sleep) using 130 features (126 derived from CPAP flow data, age, sex, body mass index (BMI) and CPAP level). We used polysomnography records from 100 randomly selected adult OSA patients undergoing CPAP titration at Yale Sleep Center (n = 70 training, n = 30 testing samples). Sleep stages were scored by AASM-certified technologists. We determined model accuracy, sensitivity, specificity, positive predictive value (PPV), and negative predictive value (NPV).
Results:
The dataset included 48 women and 52 men with a median (interquartile) age of 61 (46.3-69.0) years, BMI of 33.8 (27.8-39.6) kg/m2 and residual apnea-hypopnea index of 3.0 (1.0-6.0) events/hour, with no significant differences between training and test samples. We used 69,520 (74% sleep) to train and 19,124 (76% sleep) epochs to test the model. The overall accuracy for sleep vs. wake was 0.82 with Cohen's Kappa of 0.51. The model demonstrated high sensitivity (86.4%) and PPV (89.0%) for sleep and lower sensitivity (66.4%) and PPV (60.7%) for wake.
Conclusion:
Epoch-by-epoch sleep and wake can be effectively predicted by a model using CPAP flow and demographics. Such information may complement usage data from CPAP devices to better assess CPAP effectiveness.
Related Concept Videos
Sleep Apnea
The condition is more prevalent among...
Mechanical Ventilation III: Noninvasive Ventilation
Noninvasive Positive-Pressure Ventilation (NIPPV)
Respiratory Volumes and Capacities I
Physical Assessment of the Respiratory Tract II: Inspection
Chest Configuration
The chest configuration can...
Ventilatory Modes
There are three ventilatory modes: full support, partial support, and spontaneous. These are described below.
Full Support Modes
Full support modes include controlled mechanical ventilation, continuous mandatory...
Cardiopulmonary Resuscitation II: ACLS Airway Management

