Abstract
Variations in local documentation practices across health care systems pose challenges to rule-based NLP tools. In contrast, the developed DL tools can effectively extract PSH and FSH information from unstructured clinical notes. These tools will provide clinicians with crucial information for assessing and treating patients at elevated risk for suicide who have rarely been diagnosed.
Introduction
Suicide remains a leading cause of death globally, yet identifying individuals at high risk remains a significant clinical challenge. Personal suicide history (PSH) and family suicide history (FSH) are among the strongest predictors of future suicidal events. However, this critical information is frequently absent from structured electronic health record (EHR) data, such as ICD-9/10 diagnosis codes. Instead, these details are often buried within the unstructured narrative of clinical notes—the free-text descriptions written by healthcare providers.
Traditional "rule-based" natural language processing (NLP) systems, which rely on specific keyword matching and rigid dictionaries, often struggle with "portability." Their performance typically drops when applied to different hospital systems with varying documentation styles. This study evaluates the effectiveness of deep learning (DL) transformer models in identifying PSH and FSH across three diverse academic medical centers, aiming to bridge the information gap in suicide risk assessment.
Methods
The researchers compared two primary approaches across three major academic medical centers: Weill Cornell Medicine (WCM), Northwestern Medicine (NM), and the University of Florida (UF).
- Rule-Based NLP: The SuicideHistoryExtractor tool was developed using the Leo NLP framework. It employed a "dual lexicon" strategy to match suicidal thoughts and behaviors (STB) terms with historical modifiers while using the ConText algorithm to handle negations (e.g., "denies history of...").
- Deep Learning (Transformers): Two pre-trained models were utilized: Bio_ClinicalBERT (pre-trained on the MIMIC-III clinical database) and GatorTron (a large language model pre-trained on over 90 billion words of EHR text). To optimize performance, the researchers used an "anchor" approach, extracting specific text spans around relevant keywords rather than processing entire notes.
The models were initially developed at WCM using a dataset of 13.8 million notes and then fine-tuned on smaller, manually annotated "gold standard" datasets at NM and UF to test their generalizability across different clinical environments.
Results
The study revealed a massive "ICD blind spot": across all sites, over 90% of patients with a documented history of STB in their clinical notes had no corresponding ICD diagnosis code in their structured record. For instance, at WCM, GatorTron identified 93% of PSH cases, while ICD codes flagged only 2.2% of the same patient population.
Model Performance
Deep learning models consistently outperformed the rule-based system, particularly in terms of portability across sites. While rule-based systems saw significant performance drops at external sites, the DL models maintained high accuracy.
- Personal History (PSH): GatorTron was the top performer, achieving F1-scores of 0.92 at WCM, 0.78 at NM, and 0.83 at UF. In comparison, the rule-based system averaged an F1-score of 0.75 and struggled with recall at external sites.
- Family History (FSH): Results were even more robust for family history. GatorTron achieved F1-scores of 0.88 (WCM), 0.90 (NM), and a perfect 1.00 (UF).
The DL models demonstrated high efficiency, achieving superior results with only a small number of annotated notes for fine-tuning at each new site, suggesting they can be deployed relatively easily in new hospital environments.
Discussion and Conclusion
The findings highlight that relying solely on structured diagnosis codes for suicide risk modeling is insufficient. Deep learning models, specifically large-scale transformers like GatorTron, offer a robust and portable solution for extracting high-risk indicators from unstructured text. These models are better equipped than rule-based systems to handle the lexical variations and different documentation practices found across diverse healthcare environments.
While successful, the study noted limitations such as the impact of EHR templates and "copy-pasted" text, which can occasionally confuse NLP tools. Future work will focus on broader validation in community hospital settings and refining the temporal extraction of events to better map a patient's risk trajectory over time. By surfacing hidden risk factors, these DL tools can provide clinicians with the necessary data to improve intervention and treatment for patients at elevated risk for suicide.
Summary updated