Developing a Natural Language Processing Strategy to Avoid Biased Data in Electronic Health Record Suicide Risk Modeling

Objective Unstructured electronic health record (EHR) data is increasingly used to enhance suicide risk modeling. Unfortunately, EHR reported death dates are frequently inaccurate. Including EHR data from after patients' deaths, or after suicidal actions which led to their deaths, potentially biases suicide prediction models. In contrast to prior methods which withheld all data from 5‐day before reported death, this study investigates using natural language processing to improve the accuracy of detecting EHR reported death dates. Methods We selected all Veterans Affairs patients who died by suicide with EHR data during 5‐day before reported death date ( n = 1620) during 2017–2018 and extracted all interval EHR texts (texts = 9127). We randomly sub‐selected corpus to develop code to identify if texts were written before or after death or suicidal action and utilized this approach in our full corpus. Results In the full corpus, we identified 1742 texts entered on reported death date, 274 texts after death date, and 1556 texts that did not reference death or suicidal action but were entered chronologically after other texts indicating death. In contrast to the prior method, which excluded all interval texts, our derived approach retained 60.9% of interval data. Conclusions Our approach improved detection of valid EHR data in the interval before patient death. Relevance to clinical practice: This study operationalizes a method to detect immediate pre‐mortem EHR data that could contribute to less bias in suicide risk modeling. This utilization can improve risk prediction and in turn bolster prevention services.

Authors

Institutions

Publication Details

Journal
Psychiatric Research and Clinical Practice
Published
2026-01-21
DOI
https://doi.org/10.1176/appi.prcp.20250047
Primary Topic
Suicide and Self-Harm Studies
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Developing a Natural Language Processing Strategy to Avoid Biased Data in Electronic Health Record Suicide Risk Modeling

Joshua Levy, Brian Shiner, Maxwell Levis, Monica Dimambro
Psychiatric Research and Clinical Practice
Suicide and Self-Harm Studies
article

Developing a Natural Language Processing Strategy to Avoid Biased Data in Electronic Health Record Suicide Risk Modeling

Joshua Levy, Brian Shiner, Maxwell Levis, Monica Dimambro
article en

Abstract

Objective Unstructured electronic health record (EHR) data is increasingly used to enhance suicide risk modeling. Unfortunately, EHR reported death dates are frequently inaccurate. Including EHR data from after patients' deaths, or after suicidal actions which led to their deaths, potentially biases suicide prediction models. In contrast to prior methods which withheld all data from 5‐day before reported death, this study investigates using natural language processing to improve the accuracy of detecting EHR reported death dates. Methods We selected all Veterans Affairs patients who died by suicide with EHR data during 5‐day before reported death date ( n = 1620) during 2017–2018 and extracted all interval EHR texts (texts = 9127). We randomly sub‐selected corpus to develop code to identify if texts were written before or after death or suicidal action and utilized this approach in our full corpus. Results In the full corpus, we identified 1742 texts entered on reported death date, 274 texts after death date, and 1556 texts that did not reference death or suicidal action but were entered chronologically after other texts indicating death. In contrast to the prior method, which excluded all interval texts, our derived approach retained 60.9% of interval data. Conclusions Our approach improved detection of valid EHR data in the interval before patient death. Relevance to clinical practice: This study operationalizes a method to detect immediate pre‐mortem EHR data that could contribute to less bias in suicide risk modeling. This utilization can improve risk prediction and in turn bolster prevention services.

Psychiatric Research and Clinical Practice
Dartmouth College (US), White River Junction VA Medical Center (US), National Center for Post Traumatic Stress Disorder (US)
Quality Education
Openalex Percentile: Top 84%
Suicide and Self-Harm Studies
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.