Deep learning for identifying personal and family history of suicidal thoughts and behaviors from EHRs

Prakash Adekkanattu, Al'ona Furmanchuk, Yonghui Wu, Aman Pathak, Braja Gopal Patra, Sarah Bost, Destinee Morrow, Grace Hsin-Min Wang, Yuyang Yang, Noah James Forrest, Yuan Luo, Theresa L. Walunas, Wei-Hsuan Lo-Ciganic, Walid Gelad, Jiang Bian, Yuhua Bao, Mark G. Weiner, David W. Oslin, Jyotishman Pathak

Introduction

Suicide remains a leading cause of death globally, yet identifying individuals at high risk remains a significant clinical challenge. While a patient’s personal history (PSH) or family history (FSH) of suicidal behavior is often documented within narrative clinical notes, this critical information frequently fails to appear in structured International Classification of Diseases (ICD) diagnostic codes. This gap exists because ICD codes often lack the granularity to capture complex mental health histories, and clinicians may avoid certain codes due to associated stigma. Consequently, automated risk-assessment tools relying solely on structured data miss a substantial portion of the at-risk population. This study explores the use of Natural Language Processing (NLP) to automatically extract these "hidden" risk factors from unstructured clinical notes.

Methods

The research compared two distinct NLP approaches to identify PSH and FSH:

  1. Rule-Based NLP: Utilizing the "Leo" framework, researchers developed a system based on a predefined dictionary of keywords and linguistic heuristics (e.g., identifying "suicide" near "mother" while accounting for negation).
  2. Deep Learning (DL) Transformers: The study fine-tuned two state-of-the-art transformer models: Bio_ClinicalBERT (pre-trained on the MIMIC-III database) and GatorTron (pre-trained on 90 billion words from University of Florida health records).

Unlike rule-based systems, these transformer models analyze "stitched text spans"—contextual windows around mentions of suicidality—to distinguish between historical events and routine screening questions.

Deep learning pipeline using transformer models to classify suicidal history from clinical notes.

Datasets and Evaluation

To ensure cross-institutional generalizability, clinical notes were sourced from three major academic medical centers:

  • Weill Cornell Medicine (WCM): 301 notes.
  • Northwestern Medicine (NM): 400 notes.
  • University of Florida (UF): 400 notes.

A "gold standard" dataset was established through manual annotation by human experts across these 1,101 notes.

Demographics and ICD diagnosis prevalence across the three study sites (WCM, NM, UF).

Key Insights

  • The "Invisible" Risk: Across all sites, over 90% of patients identified by NLP as having a history of suicidal behavior lacked a corresponding ICD code. This highlights a fundamental flaw in relying on structured data for suicide prevention.
  • Superiority of Contextual Models: Transformers significantly outperformed rule-based systems by better handling the linguistic nuances of clinical documentation. While rule-based systems struggled with varied phrasing, DL models successfully navigated complex contexts.
  • Generalizability: Models fine-tuned on data from one institution performed remarkably well at others, demonstrating robustness across different hospital "dialects" and formatting styles.
  • Operational Efficiency: DL models required significantly less manual feature engineering compared to the iterative, labor-intensive process of defining lexicons for rule-based systems.

Results

Deep learning models consistently outperformed the rule-based approach across all primary metrics:

  • Personal History (PSH) Detection: GatorTron achieved an F1-score of 0.84, compared to 0.75 for the rule-based system.
  • Family History (FSH) Detection: GatorTron saw a massive performance jump to an F1-score of 0.92, while the rule-based system reached 0.69.
  • Clinical Impact: In the NM cohort, manual review identified 97 patients with PSH, yet only 9 had relevant ICD codes. GatorTron successfully identified 78 of these 97 patients (80.4%) using only narrative notes.

Limitations and Future Directions

The study noted some limitations, including the exclusion of certain terms like "cutting" or "burning" to minimize false positives in non-psychiatric contexts, which may have led to missed cases of self-harm. Additionally, the datasets were relatively small and exhibited class imbalance.

Future work aims to integrate these NLP-extracted features into real-time clinical decision support systems. By alerting clinicians to a patient's history during a visit, these tools could facilitate immediate intervention or mental health referrals for high-risk individuals who might otherwise go unnoticed.

Summary updated

BibTeX
@article{adekkanattu2024deep,
  author = {Prakash Adekkanattu and Al'ona Furmanchuk and Yonghui Wu and Aman Pathak and Braja Gopal Patra and Sarah Bost and Destinee Morrow and Grace Hsin-Min Wang and Yuyang Yang and Noah James Forrest and Yuan Luo and Theresa L. Walunas and Wei-Hsuan Lo-Ciganic and Walid Gelad and Jiang Bian and Yuhua Bao and Mark G. Weiner and David W. Oslin and Jyotishman Pathak},
  title = {{Deep learning for identifying personal and family history of suicidal thoughts and behaviors from EHRs}},
  journal = {Npj Digit. Medicine},
  year = {2024},
  doi = {10.1038/s41746-024-01266-7},
}
Figure