Abstract
We present an ensemble transfer learning method to predict suicide from Veterans Affairs (VA) electronic medical records (EMR). A diverse set of base models was trained to predict a binary outcome constructed from reported suicide, suicide attempt, and overdose diagnoses with varying choices of study design and prediction methodology. Each model used twenty cross-sectional and 190 longitudinal variables observed in eight time intervals covering 7.5 years prior to the time of prediction. Ensembles of seven base models were created and fine-tuned with ten variables expected to change with study design and outcome definition in order to predict suicide and combined outcome in a prospective cohort. The ensemble models achieved c-statistics of 0.73 on 2-year suicide risk and 0.83 on the combined outcome when predicting on a prospective cohort of 4.2 M veterans. The ensembles rely on nonlinear base models trained using a matched retrospective nested case-control (Rcc) study cohort and show good calibration across a diversity of subgroups, including risk strata, age, sex, race, and level of healthcare utilization. In addition, a linear Rcc base model provided a rich set of biological predictors, including indicators of suicide, substance use disorder, mental health diagnoses and treatments, hypoxia and vascular damage, and demographics.
Introduction
Predicting suicide is a "needle in a haystack" problem. While a tragic public health crisis, suicide is statistically rare (approx. 14 per 100,000 in the US), making it difficult to train machine learning models without them becoming overwhelmed by "noise" or overfitting on a tiny number of cases. Furthermore, existing models often suffer from healthcare utilization bias—where models identify frequent clinic visitors rather than clinical risk—and model drift, where changes in medical coding (e.g., the shift from ICD-9 to ICD-10) degrade accuracy over time. This study addresses these challenges using a high-dimensional ensemble transfer learning framework applied to the records of 4.2 million US Veterans.
Methods and Data
The study utilized one of the largest medical datasets in the world, combining VA Electronic Medical Records (EMR) with the National Death Index (NDI) to confirm outcomes. The authors employed a sophisticated ensemble transfer learning approach, creating a diverse set of base models (including Logistic Regression, Random Forests, Neural Networks, and TabNet) across different study designs:
- Retrospective Nested Case-Control (Rcc): Used to identify long-term biological and behavioral drivers by matching cases with controls based on age and healthcare utilization.
- Prospective Cohorts: Used to mimic real-world clinical decision points.
- Transfer Learning: Models were first trained on a "combined outcome" (suicide, attempts, and overdoses) to leverage a larger pool of data, then fine-tuned for suicide-specific prediction.
The models analyzed 210 variables, including 20 cross-sectional and 190 longitudinal variables binned into eight time intervals covering 7.5 years of patient history. By matching cases and controls on healthcare utilization, the researchers ensured the model learned actual risk factors rather than just identifying "frequent flyers" in the clinic.
Key Results
The ensemble model achieved a c-statistic (AUC) of 0.73 for 2-year suicide risk and 0.83 for the combined outcome. For suicide deaths, the top 0.1% risk tier identified by the model had a "concentration of risk" 10.3 times higher than the baseline. In this top 0.1% strata, the model achieved a 1% positive predictive value (PPV) for suicide and a 20% PPV for the combined outcome. While a 1% PPV for suicide may seem low, it represents a significant improvement for targeted clinical intervention given the rarity of the event.
The ensemble approach proved more stable than individual models when tested on holdout data from 2019, suggesting better suitability for long-term clinical deployment. The models also showed nearly perfect calibration for medium and high-utilization groups, meaning the predicted probability closely matched observed reality.
Discussion and Insights
A key insight of this work is the power of "lumping": training on a combined outcome provided the statistical weight necessary to identify complex risk patterns that a suicide-only model would miss. The study distinguished between acute risks (e.g., metastatic cancer or recent anti-anxiety prescriptions appearing 3–6 months before an event) and distal risks (e.g., high pulse pressure or a history of falls appearing years prior).
Limitations include demographic bias, as the cohort was 90% male with a median age of 65. Future work could incorporate natural language processing (NLP) to parse unstructured clinical notes and add genetic markers to further boost predictive power. These models advocate for "reaching deeper" into the risk pool to identify subgroups that might benefit from tailored interventions.
Summary updated