Related Experiment Video
Updated: Oct 14, 2025

Implementation of a Real-Time Psychosis Risk Detection and Alerting System Based on Electronic Health Records using CogStack
Published on: May 15, 2020
Temporally informed random forests for suicide risk prediction
Ilkin Bayramli1,2, Victor Castro3,4, Yuval Barak-Corren1
1Predictive Medicine Group, Computational Health Informatics Program, Boston Children's Hospital, Boston, Massachusetts, USA.
Integrating temporal data into random forest (RF) models significantly improves suicide risk prediction. The Omni-Temporal Balanced Random Forests (OT-BRFs) model enhances accuracy by incorporating temporal information into every tree for better patient data interpretation.
Area of Science:
- Computational psychiatry
- Machine learning in healthcare
- Public health informatics
Background:
- Suicide is a leading global cause of death, posing a challenge for accurate risk identification by clinicians.
- Existing algorithmic suicide risk detection models, often using electronic health records (EHRs), have limitations in leveraging temporal data for improved predictions.
Purpose of the Study:
- To develop and validate a novel temporally enhanced random forest (RF) model for suicide risk detection.
- To assess the impact of incorporating temporal information into RF models for predicting suicide risk.
Main Methods:
- Proposed the Omni-Temporal Balanced Random Forests (OT-BRFs) model, integrating temporal information into each tree.
- Utilized longitudinal EHRs and clinician notes from Mass General Brigham Health System (1998-2018).
- Compared OT-BRFs against a Naive Bayes Classifier and standard balanced RF models.
Main Results:
- Temporal variables, such as visit frequency and EHR coverage duration, were associated with suicide risk.
- RF models outperformed Naive Bayes classifiers in predicting suicide risk (AUC 0.824 vs. 0.754).
- The OT-BRF model demonstrated superior performance, achieving 0.339 sensitivity at 95% specificity, outperforming other RF models.
Conclusions:
- Temporal variables play a crucial role in suicide risk detection.
- Incorporating temporal information across all RF trees enhances predictive performance.
- Integrating temporal context into risk prediction models improves the interpretation of patient data and overall accuracy.
Related Concept Videos
Survival Tree
Building a Survival Tree
Constructing a...
Comparing the Survival Analysis of Two or More Groups
Censoring Survival Data
Cancer Survival Analysis
Prediction Intervals
However, the point estimate is most likely not the exact value of the population parameter, but close to it. After calculating point estimates, we construct interval estimates, called confidence intervals or prediction intervals. This prediction interval comprises a range of values unlike the point estimate and is a better predictor of the observed sample value, y.
Assumptions of Survival Analysis

