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:
- 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).
- 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.
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.
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