ResearchNature Medicine · May 16, 2022

Machine learning model to predict mental health crises from electronic health records

Garriga R, Mas J, Abraha S, Nolan J, Harrison O, Tadros G, et al
Psychiatry & Mental HealthDigital Health & AIAdult
Read the full paper free at PubMed Central ↗

Abstract

The timely identification of patients who are at risk of a mental health crisis can lead to improved outcomes and to the mitigation of burdens and costs. However, the high prevalence of mental health problems means that the manual review of complex patient records to make proactive care decisions is not feasible in practice. Therefore, we developed a machine learning model that uses electronic health records to continuously monitor patients for risk of a mental health crisis over a period of 28 days. The model achieves an area under the receiver operating characteristic curve of 0.797 and an area under the precision-recall curve of 0.159, predicting crises with a sensitivity of 58% at a specificity of 85%. A follow-up 6-month prospective study evaluated our algorithm's use in clinical practice and observed predictions to be clinically valuable in terms of either managing caseloads or mitigating the risk of crisis in 64% of cases. To our knowledge, this study is the first to continuously predict the risk of a wide range of mental health crises and to explore the added value of such predictions in clinical practice.

Topics

Electronic Health Records; Humans; Machine Learning; Mental Health; Prospective Studies; ROC Curve

DOI: 10.1038/s41591-022-01811-5 · PubMed: 35577964

Cite this article

Garriga R, Mas J, Abraha S, Nolan J, Harrison O, Tadros G. Machine learning model to predict mental health crises from electronic health records. Nat Med. 2022. doi:10.1038/s41591-022-01811-5

RIS (EndNote, Zotero, Mendeley)BibTeX

Spotted a mistake? Suggest a correction

Top studies every Monday

The week’s key trials and guidelines in your specialties, by email. Free.

Get the weekly digest

Similar articles

Meta-analysis · Clin Transl Gastroenterol · Jun 1, 2024 · Gastroenterology & Hepatology, Infectious Disease

Machine Learning-Based Prediction Models for Clostridioides difficile Infection: A Systematic Review

Research · J Am Med Inform Assoc · Jan 13, 2026 · Digital Health & AI

Auditor models to suppress poor artificial intelligence predictions can improve human-artificial intelligence collaborative performance

Research · Nat Med · Mar 5, 2025 · Pediatric · Pediatrics, Psychiatry & Mental Health

Prediction of mental health risk in adolescents

Meta-analysis · Resuscitation · Nov 14, 2023 · Critical Care, Digital Health & AI

Electroencephalogram-based machine learning models to predict neurologic outcome after cardiac arrest: A systematic review

Research · J Am Med Inform Assoc · May 14, 2026 · Digital Health & AI

Loss function influence on hyperparameter optimization for observational healthcare prediction models