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
What problem does this paper attempt to address?
### Problems the Paper Attempts to Solve 1. **Effectiveness Evaluation of Insomnia Management through Mobile Applications** - **Problem**: The study aims to evaluate the effectiveness of a self-guided insomnia management program implemented through a mobile application (CBT-I Coach) in primary care. - **Background**: Insomnia is a common sleep disorder that affects the quality of life for many people. Traditional cognitive behavioral therapy (CBT-I) has been proven effective but requires professional guidance, which may be difficult to achieve in primary care. Therefore, researchers developed a mobile application to help patients self-manage insomnia. 2. **Intervention Effectiveness of Community Health Programs on Sedative-Hypnotic Drug Abuse** - **Problem**: The study aims to evaluate the effectiveness of a community-based health program in raising awareness about the proper use of sedative-hypnotic drugs (such as benzodiazepines and non-benzodiazepines), providing preventive education, and implementing intervention measures in different communities. - **Background**: Since the late 1990s, the abuse of sedative-hypnotic drugs has become a serious public health issue. Researchers hope to improve public awareness and proper use of these drugs through community collaboration. 3. **Using Heart Rate Data to Predict Insomnia and Difficulty Falling Asleep** - **Problem**: The study aims to explore whether dynamic changes in heart rate can be used to detect insomnia and predict difficulty falling asleep. - **Background**: Insomnia is a highly prevalent sleep disorder, with difficulty falling asleep being one of the most common complaints. During the transition from wakefulness to sleep, the regulation of the sympathetic and parasympathetic nervous systems changes, which can be assessed through heart rate dynamics. 4. **Predicting Brain Age in Insomnia Patients Using Graph Convolutional Networks** - **Problem**: The study aims to predict the brain age of insomnia patients using graph convolutional networks (GCN) and explore its relationship with neurocognitive function. - **Background**: The impact of insomnia on brain aging and cognitive function is not yet clear. The Brain Age Index, as a powerful biomarker, can assess an individual's brain health and quantify its deviation from the normal aging trajectory. 5. **Evaluating the First Night Effect in Insomnia Patients** - **Problem**: The study aims to evaluate the first night effect in insomnia patients undergoing polysomnography (PSG) monitoring in the laboratory. - **Background**: The first night effect refers to the phenomenon where patients' sleep quality may be affected during the first sleep monitoring session in the laboratory due to unfamiliarity with the environment. Researchers use the ORP (Odds-Ratio-Product) as an objective indicator to assess this effect.