Abstract
Depressed patients present with motor activity abnormalities, which can be easily recorded using actigraphy. The extent to which actigraphically recorded motor activity may predict inpatient clinical course and hospital discharge remains unknown. Participants were recruited from the acute psychiatric inpatient ward at Hospital Rey Juan Carlos (Madrid, Spain). They wore miniature wrist wireless inertial sensors (actigraphs) throughout the admission. We modeled activity levels against the normalized length of admission—'Progress Towards Discharge' (PTD)—using a Hierarchical Generalized Linear Regression Model. The estimated date of hospital discharge based on early measures of motor activity and the actual hospital discharge date were compared by a Hierarchical Gaussian Process model. Twenty-three depressed patients (14 females, age: 50.17 ± 12.72 years) were recruited. Activity levels increased during the admission (mean slope of the linear function: 0.12 ± 0.13). For n = 18 inpatients (78.26%) hospitalised for at least 7 days, the mean error of Prediction of Hospital Discharge Date at day 7 was 0.231 ± 22.98 days (95% CI 14.222-14.684). These n = 18 patients were predicted to need, on average, 7 more days in hospital (for a total length of stay of 14 days) (PTD = 0.53). Motor activity increased during the admission in this sample of depressed patients and early patterns of actigraphically recorded activity allowed for accurate prediction of hospital discharge date.
Introduction
In clinical psychiatry, motor retardation—a visible slowing of physical movement—is a hallmark symptom of major depressive disorder (MDD). Traditionally, clinicians track a patient's recovery and readiness for discharge using subjective tools like self-report questionnaires or the Hamilton Depression Rating Scale. These methods are prone to bias and often fail to capture the subtle, day-to-day changes in a patient's condition.
Deciding when to discharge a patient is a high-stakes balancing act: discharging too early increases the risk of suicide, while staying too long incurs massive healthcare costs and may not improve outcomes. This paper addresses the need for an objective, data-driven biomarker that can monitor clinical course and help predict the optimal time for discharge.
Computational Methodology
The researchers equipped 23 depressed inpatients with Shimmer 3 wireless inertial sensors (actigraphs) worn on the wrist. They focused on a specific two-hour window (2–4 PM) of unstructured time on the ward to capture "natural" activity levels. The computational pipeline involved Human Activity Recognition (HAR) via a Hidden Markov Model (HMM) to classify raw sensor data into five activities: running, walking, standing, sitting, and lying down.
The core innovation lies in the hierarchical modeling approach. Instead of a one-size-fits-all model, the team utilized Hierarchical Generalized Linear Models (HGLM) to confirm general activity trends and Hierarchical Gaussian Processes (HGP) to predict "Progress Towards Discharge" (PTD), a normalized value from 0 (admission) to 1 (discharge). This hierarchical structure allows the model to learn a general recovery trend across the whole group while simultaneously fitting individual regressions to account for each patient's unique baseline activity.
Predictive Performance and Results
The study confirms that as depression lifts, physical activity increases. Motor activity significantly increased throughout the hospital stay, with a mean slope of 0.12 ± 0.13. The model reached its highest predictive accuracy at day seven of admission. For patients hospitalized for at least a week (n=18), the mean error in predicting the discharge date at day 7 was just 0.231 ± 22.98 days.
The HGP approach was compared against standard machine learning models, specifically Random Forest (RF). The HGP performed significantly better because it accounted for the high inter-individual variability inherent in human behavior. While the RF model exhibited a much higher mean error of prediction (10.33 ± 21.69 days), the HGP maintained a tighter error margin throughout the admission period.
Discussion and Limitations
The use of wrist-worn sensors showed high acceptability among patients, suggesting this could be easily integrated into routine clinical practice. However, the authors acknowledge several limitations. With only 23 patients, the study is a "proof of concept," and larger cohorts are needed to validate the model across different subtypes of depression. Additionally, activity was only analyzed for two hours a day; future work should incorporate 24-hour cycles to capture circadian rhythm data. Finally, while discharge is a major clinical milestone, future studies should correlate daily activity changes with daily mood scales to further strengthen the link between movement and mental state.
Conclusion
Early patterns of actigraphically recorded activity allow for accurate prediction of hospital discharge date in depressed inpatients. By leveraging hierarchical computational models, clinicians can move toward more objective, personalized monitoring of psychiatric recovery.
Summary updated