0425 Detecting Insomnia and Predicting Difficulty Falling Asleep: Machine Learning of Heart Rate Data During Sleep Onset
Yan Ma,Peter Wayne,Chen-Hsiang Yu,Gloria Yeh
DOI: https://doi.org/10.1093/sleep/zsae067.0425
IF: 6.313
2024-04-20
SLEEP
Abstract:Abstract Introduction Insomnia is highly prevalent and difficulty falling asleep is the most common complaint. The transition from wakefulness to sleep is characterized by a shift from sympathetic to parasympathetic regulation, which can be assessed by heart rate dynamics. Using a machine learning approach, we aimed to explore whether heart rate dynamics during sleep onset can indicate the presence of insomnia. Methods We used data from a multi-center cohort study (Sleep Heart Health Study) and included 1835 subjects (age 40-90 years, mean age 62.2±11.2 years, 50.8% male) with overnight polysomnography-based sleep studies and validated sleep scorings. Heart rate data during sleep onset was analyzed using heart rate variability time domain measures (NN, SDNN, RMSSD, pNN20) and a nonlinear measure (multiscale entropy). These measures along with basic demographic features (age, sex and BMI) were used as features in machine learning. We ran four commonly used machine learning approaches, including support vector machines (SVMs), decision tree, random forest, and K-nearest neighbors (KNN), with 80% data for training and 20% for testing. Results Based on the mean of test accuracy of five iterations for each model, the highest accuracy for detecting insomnia was achieved by random forest (mean accuracy of 0.902), followed by SVM (mean accuracy 0.894), decision tree (mean accuracy 0.892), and KNN (mean accuracy 0.891). When using the same features to predict self-reported difficulty falling asleep during the study night, SVM achieved the highest accuracy (0.68) while the accuracy of the other approaches were slightly lower. Conclusion Machine learning models may effectively predict insomnia using demographic features and heart rate data during sleep onset, but unbiased analysis is needed for the next step. With wearable technology, easily accessible heart/pulse rate data may provide valuable detection of physiological alteration during sleep onset and offer an evaluation approach for the efficacy of interventions targeting sleep onset difficulties. Support (if any) This research project was made possible by a grant from the American Academy of Sleep Medicine Foundation (PI: Yan Ma). We acknowledge the National Sleep Research Resource as the resource through which the Data/Datasets were obtained. PW and GY were supported by NIH K24 AT009282 and K24 AT009465 respectively.
neurosciences,clinical neurology