Machine Learning Models to Identify Clinically Significant Anxiety in Short-Term Insomnia Using Accelerometers
Leqin Fang1,2,3, Weixiong Zeng4, Shuqiong Zheng1,2,3
1Department of Psychiatry, Sleep Medicine Center, Nanfang Hospital, Southern Medical University, Guangzhou, China.
Depression and Anxiety
|May 21, 2025
Summary
Clinically significant anxiety (CSA) worsens sleep problems in short-term insomnia. Machine learning models using accelerometer data effectively identify CSA, with circadian rhythm features being key predictors.
Area of Science:
- Sleep Medicine
- Artificial Intelligence
- Psychiatry
Background:
- Clinically significant anxiety (CSA) frequently co-occurs with short-term insomnia.
- Understanding the interplay between anxiety and sleep parameters is crucial for effective treatment.
Purpose of the Study:
- To investigate the relationship between CSA and subjective/objective sleep parameters in short-term insomnia.
- To develop machine learning (ML) models using accelerometer data to identify CSA.
- To explore the utility of accelerometer features in identifying anxiety in insomnia patients.
Main Methods:
- 205 participants with short-term insomnia were categorized into groups with (N=33) and without (N=172) CSA.
- Linear regression analyzed interaction effects between accelerometer features, CSA, and sleep problems.
- Multiple ML models (4 feature sets, 8 algorithms) were constructed; SHAP values assessed feature importance.
Main Results:
- CSA was associated with more severe subjective sleep issues.
- Significant interactions were found between anxiety, physical activity duration, and insomnia severity (P<0.05).
- Anxiety and interdaily stability interacted with sleep hygiene (P<0.01).
- The XGBoost model with weekday accelerometer data achieved an AUC of 0.777 for CSA identification.
- SHAP analysis highlighted circadian rhythm features' importance.
Conclusions:
- Machine learning effectively utilizes complex accelerometer data to identify CSA in short-term insomnia.
- Accelerometer-derived features, particularly circadian rhythm metrics, are valuable for detecting anxiety.
- SHAP-based visualizations offer practical, personalized insights for clinical decision-making.
Keywords:
accelerometercircadian rhythmclinically significant anxietymachine learningphysical activityshort-term insomniaMore Related Videos
Related Concept Videos
Insomnia
78
Insomnia is a prevalent sleep disorder characterized by difficulty falling asleep, frequent awakenings during the night, and waking up too early without being able to return to sleep. People with insomnia often experience these disruptions at least three nights a week for at least one month. Chronic insomnia, which lasts for at least three months, can lead to increased anxiety, which in turn can worsen sleep difficulties, creating a cycle of sleeplessness and stress.
Multiple factors contribute...
Multiple factors contribute...
78
Management of Insomnia
229
The sleep cycle, an integral part of human health, consists of several stages with distinct characteristics and functions. It begins with a transition from wakefulness to sleep, known as the light sleep phase, followed by the restorative deep sleep phase, essential for physical recovery and growth. The cycle concludes with the Rapid Eye Movement (REM) phase, characterized by high brain activity and vivid dreaming. Insomnia, a prevalent sleep disorder, involves difficulty falling asleep, staying...
229


