Related Experiment Video
Updated: Aug 27, 2025

Implementation of a Real-Time Psychosis Risk Detection and Alerting System Based on Electronic Health Records using CogStack
Published on: May 15, 2020
Using machine learning with intensive longitudinal data to predict depression and suicidal ideation among medical
Adam G Horwitz1, Shane D Kentopp1, Jennifer Cleary2
1Department of Psychiatry, University of Michigan, Ann Arbor, MI, USA.
Predicting depression and suicidal ideation risk using machine learning (ML) models can be accurate with just daily mood data. Optimal prediction for mental health outcomes is achieved within 2 months of intensive longitudinal data collection.
Area of Science:
- Digital mental health
- Computational psychiatry
- Machine learning in healthcare
Background:
- Intensive longitudinal methods like ecological momentary assessment and passive sensing are increasingly used with machine learning (ML) to predict depression and suicide risk.
- Existing studies show variability in length, ML methods, and data sources, necessitating research into optimal data collection strategies.
- This study investigated how predictive accuracy for depression and suicidal ideation (SI) changes over time, comparing different ML methods and data sources.
Purpose of the Study:
- To examine the predictive accuracy of ML models for depression and SI over time.
- To compare the performance of different ML algorithms (elastic net regression, random forest) and data sources (daily mood, passive sensing).
- To determine the optimal duration of data collection for accurate mental health risk prediction.
Main Methods:
- Utilized data from 2459 first-year physicians using wearable devices and daily mood assessments.
- Employed linear (elastic net regression) and non-linear (random forest) ML models to predict depression and SI.
- Assessed predictive accuracy iteratively over 92 days, comparing models using daily mood features alone versus mood plus passive-sensing features.
Main Results:
- Elastic net regression models using only daily mood features demonstrated the highest accuracy for predicting mental health outcomes.
- Accurate prediction (within 1 standard error of full 92-day models) was achieved by weeks 7-8.
- Depression at 92 days was accurately predicted (AUC >0.70) after just 14 days of data collection.
Conclusions:
- Simpler ML methods, like elastic net regression with daily mood data, may be more effective than complex methods until passive-sensing features are better defined.
- Intensive longitudinal studies may not require data collection beyond 2 months for significant predictive value in mental health risk assessment.
Related Concept Videos
Long-term Depression
Longitudinal Studies
Longitudinal Research
Depressive Disorders: Etiology
Biological Factors in Depression
Biological predispositions significantly influence the risk of developing depressive disorders. Genetic studies highlight the role of variations in the serotonin transporter...
Steps in Outbreak Investigation
Statistical Software for Data Analysis and Clinical Trials

