z-logo
open-access-imgOpen Access
Natural language processing and machine learning of electronic health records for prediction of first-time suicide attempts
Author(s) -
Fuchiang Tsui,
Lingyun Shi,
Vı́ctor Ruiz,
Neal D. Ryan,
Candice Biernesser,
Satish Iyengar,
Colin G. Walsh,
David A. Brent
Publication year - 2021
Publication title -
jamia open
Language(s) - English
Resource type - Journals
ISSN - 2574-2531
DOI - 10.1093/jamiaopen/ooab011
Subject(s) - demographics , suicide attempt , medicine , cohort , medical record , depression (economics) , health records , machine learning , artificial intelligence , emergency department , poison control , suicide prevention , demography , computer science , medical emergency , psychiatry , health care , sociology , economics , macroeconomics , economic growth
Objective Limited research exists in predicting first-time suicide attempts that account for two-thirds of suicide decedents. We aimed to predict first-time suicide attempts using a large data-driven approach that applies natural language processing (NLP) and machine learning (ML) to unstructured (narrative) clinical notes and structured electronic health record (EHR) data. Methods This case-control study included patients aged 10–75 years who were seen between 2007 and 2016 from emergency departments and inpatient units. Cases were first-time suicide attempts from coded diagnosis; controls were randomly selected without suicide attempts regardless of demographics, following a ratio of nine controls per case. Four data-driven ML models were evaluated using 2-year historical EHR data prior to suicide attempt or control index visits, with prediction windows from 7 to 730 days. Patients without any historical notes were excluded. Model evaluation on accuracy and robustness was performed on a blind dataset (30% cohort). Results The study cohort included 45 238 patients (5099 cases, 40 139 controls) comprising 54 651 variables from 5.7 million structured records and 798 665 notes. Using both unstructured and structured data resulted in significantly greater accuracy compared to structured data alone (area-under-the-curve [AUC]: 0.932 vs. 0.901 P < .001). The best-predicting model utilized 1726 variables with AUC = 0.932 (95% CI, 0.922–0.941). The model was robust across multiple prediction windows and subgroups by demographics, points of historical most recent clinical contact, and depression diagnosis history. Conclusions Our large data-driven approach using both structured and unstructured EHR data demonstrated accurate and robust first-time suicide attempt prediction, and has the potential to be deployed across various populations and clinical settings.

The content you want is available to Zendy users.

Already have an account? Click here to sign in.
Having issues? You can contact us here
Accelerating Research

Address

John Eccles House
Robert Robinson Avenue,
Oxford Science Park, Oxford
OX4 4GP, United Kingdom