Identifying incarceration status in the electronic health record using large language models in emergency department settings
Open Access
- 11 March 2024
- journal article
- research article
- Published by Cambridge University Press (CUP) in Journal of Clinical and Translational Science
- Vol. 8 (1) , e53
Abstract
Background: Incarceration is a significant social determinant of health, contributing to high morbidity, mortality, and racialized health inequities. However, incarceration status is largely invisible to health services research due to inadequate clinical electronic health record (EHR) capture. This study aims to develop, train, and validate natural language processing (NLP) techniques to more effectively identify incarceration status in the EHR. Methods: The study population consisted of adult patients (≥ 18 y.o.) who presented to the emergency department between June 2013 and August 2021. The EHR database was filtered for notes for specific incarceration-related terms, and then a random selection of 1,000 notes was annotated for incarceration and further stratified into specific statuses of prior history, recent, and current incarceration. For NLP model development, 80% of the notes were used to train the Longformer-based and RoBERTa algorithms. The remaining 20% of the notes underwent analysis with GPT-4. Results: There were 849 unique patients across 989 visits in the 1000 annotated notes. Manual annotation revealed that 559 of 1000 notes (55.9%) contained evidence of incarceration history. ICD-10 code (sensitivity: 4.8%, specificity: 99.1%, F1-score: 0.09) demonstrated inferior performance to RoBERTa NLP (sensitivity: 78.6%, specificity: 73.3%, F1-score: 0.79), Longformer NLP (sensitivity: 94.6%, specificity: 87.5%, F1-score: 0.93), and GPT-4 (sensitivity: 100%, specificity: 61.1%, F1-score: 0.86). Conclusions: Our advanced NLP models demonstrate a high degree of accuracy in identifying incarceration status from clinical notes. Further research is needed to explore their scaled implementation in population health initiatives and assess their potential to mitigate health disparities through tailored system interventions.Keywords
This publication has 27 references indexed in Scilit:
- New Coding Guidelines Reduce Emergency Department Note Bloat But More Work Is NeededAnnals of Emergency Medicine, 2023
- Cancer incidence among incarcerated and formerly incarcerated individuals: A statewide retrospective cohort studyCancer Medicine, 2023
- Incarceration and mortality in the United StatesSSM - Population Health, 2021
- Perceived Discrimination Based on Criminal Record in Healthcare Settings and Self-Reported Health Status among Formerly Incarcerated IndividualsJournal of Urban Health, 2019
- Challenges and Opportunities for Patients Released from Correctional Facilities: a Qualitative AnalysisJournal of General Internal Medicine, 2019
- Mass incarceration, public health, and widening inequality in the USAThe Lancet, 2017
- Studying Health Disparities by Including Incarcerated and Formerly Incarcerated IndividualsJAMA, 2011
- When Prisoners Come HomeParole and Prisoner Reentry2009
- Release from Prison — A High Risk of Death for Former InmatesThe New England journal of medicine, 2007
- Hospital-Based Violence Intervention Programs Work2006