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

Psychiatric research and clinical practice Pub Date : 2026-01-21 eCollection Date: 2026-01-01 DOI:10.1176/appi.prcp.20250047
Maxwell Levis, Monica Dimambro, Joshua Levy, Brian Shiner
{"title":"Developing a Natural Language Processing Strategy to Avoid Biased Data in Electronic Health Record Suicide Risk Modeling.","authors":"Maxwell Levis, Monica Dimambro, Joshua Levy, Brian Shiner","doi":"10.1176/appi.prcp.20250047","DOIUrl":null,"url":null,"abstract":"<p><strong>Objective: </strong>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.</p><p><strong>Methods: </strong>We selected all Veterans Affairs patients who died by suicide with EHR data during 5-day before reported death date (<i>n</i> = 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.</p><p><strong>Results: </strong>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.</p><p><strong>Conclusions: </strong>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.</p>","PeriodicalId":74592,"journal":{"name":"Psychiatric research and clinical practice","volume":"8 2","pages":"82-87"},"PeriodicalIF":0.0000,"publicationDate":"2026-01-21","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://www.ncbi.nlm.nih.gov/pmc/articles/PMC13250754/pdf/","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Psychiatric research and clinical practice","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1176/appi.prcp.20250047","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"2026/1/1 0:00:00","PubModel":"eCollection","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

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.

发展一种自然语言处理策略以避免电子健康记录自杀风险建模中的数据偏差。
目的:非结构化电子健康记录(EHR)数据越来越多地用于加强自杀风险建模。不幸的是,电子病历报告的死亡日期经常不准确。包括患者死亡后或自杀行为导致死亡后的电子病历数据,可能会对自杀预测模型产生偏差。与之前隐瞒死亡报告前5天的所有数据的方法相反,本研究使用自然语言处理来提高检测EHR报告的死亡日期的准确性。方法:选取2017-2018年所有自杀的退伍军人事务部患者(n = 1620),并提取所有间隔时间的EHR文本(文本= 9127)。我们随机选择语料库来开发代码,以识别文本是在死亡或自杀行为之前还是之后编写的,并在我们的整个语料库中使用了这种方法。结果:在整个语料库中,我们确定了1742篇在报告死亡日期输入的文本,274篇在死亡日期之后输入的文本,以及1556篇不涉及死亡或自杀行为,但按时间顺序在其他提示死亡的文本之后输入的文本。与先前排除所有区间文本的方法相比,我们的导出方法保留了60.9%的区间数据。结论:我们的方法提高了患者死亡前有效电子病历数据的检测。与临床实践的相关性:本研究实现了一种方法来检测即时的死前电子病历数据,这可能有助于减少自杀风险建模的偏差。这种利用可以改善风险预测,进而加强预防服务。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
CiteScore
5.10
自引率
0.00%
发文量
0
审稿时长
16 weeks
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信
小红书