Identifying signs and symptoms of urinary tract infection from emergency department clinical notes using large language models

被引:4
作者
Iscoe, Mark [1 ,2 ]
Socrates, Vimig [2 ,3 ]
Gilson, Aidan [4 ]
Chi, Ling [5 ]
Li, Huan [3 ]
Huang, Thomas [4 ]
Kearns, Thomas [1 ]
Perkins, Rachelle [1 ]
Khandjian, Laura [1 ]
Taylor, R. Andrew [1 ,2 ]
机构
[1] Yale Sch Med, Dept Emergency Med, New Haven, CT 06519 USA
[2] Yale Univ, Sch Med, Sect Biomed Informat & Data Sci, New Haven, CT USA
[3] Yale Univ, Program Computat Biol & Bioinformat, New Haven, CT USA
[4] Yale Sch Med, New Haven, CT 06519 USA
[5] Yale Sch Publ Hlth, Dept Biostat, New Haven, CT USA
关键词
emergency medicine; infectious diseases; informatics; large language models; named entity recognition; natural language processing; urinary tract infection; INFORMATION; AGREEMENT; CARE; EXTRACTION; MANAGEMENT; ACCURACY; CRITERIA;
D O I
10.1111/acem.14883
中图分类号
R4 [临床医学];
学科分类号
1002 ; 100602 ;
摘要
BackgroundNatural language processing (NLP) tools including recently developed large language models (LLMs) have myriad potential applications in medical care and research, including the efficient labeling and classification of unstructured text such as electronic health record (EHR) notes. This opens the door to large-scale projects that rely on variables that are not typically recorded in a structured form, such as patient signs and symptoms.ObjectivesThis study is designed to acquaint the emergency medicine research community with the foundational elements of NLP, highlighting essential terminology, annotation methodologies, and the intricacies involved in training and evaluating NLP models. Symptom characterization is critical to urinary tract infection (UTI) diagnosis, but identification of symptoms from the EHR has historically been challenging, limiting large-scale research, public health surveillance, and EHR-based clinical decision support. We therefore developed and compared two NLP models to identify UTI symptoms from unstructured emergency department (ED) notes.MethodsThe study population consisted of patients aged >= 18 who presented to an ED in a northeastern U.S. health system between June 2013 and August 2021 and had a urinalysis performed. We annotated a random subset of 1250 ED clinician notes from these visits for a list of 17 UTI symptoms. We then developed two task-specific LLMs to perform the task of named entity recognition: a convolutional neural network-based model (SpaCy) and a transformer-based model designed to process longer documents (Clinical Longformer). Models were trained on 1000 notes and tested on a holdout set of 250 notes. We compared model performance (precision, recall, F1 measure) at identifying the presence or absence of UTI symptoms at the note level.ResultsA total of 8135 entities were identified in 1250 notes; 83.6% of notes included at least one entity. Overall F1 measure for note-level symptom identification weighted by entity frequency was 0.84 for the SpaCy model and 0.88 for the Longformer model. F1 measure for identifying presence or absence of any UTI symptom in a clinical note was 0.96 (232/250 correctly classified) for the SpaCy model and 0.98 (240/250 correctly classified) for the Longformer model.ConclusionsThe study demonstrated the utility of LLMs and transformer-based models in particular for extracting UTI symptoms from unstructured ED clinical notes; models were highly accurate for detecting the presence or absence of any UTI symptom on the note level, with variable performance for individual symptoms.
引用
收藏
页码:599 / 610
页数:12
相关论文
共 27 条
  • [1] Identifying incarceration status in the electronic health record using large language models in emergency department settings
    Huang, Thomas
    Socrates, Vimig
    Gilson, Aidan
    Safranek, Conrad
    Chi, Ling
    Wang, Emily A.
    Puglisi, Lisa B.
    Brandt, Cynthia
    Taylor, R. Andrew
    Wang, Karen
    JOURNAL OF CLINICAL AND TRANSLATIONAL SCIENCE, 2024, 8 (01)
  • [2] A CASE OF RIGHT RENAL ARTERIOVENOUS MALFORMATION MIMICKING THE SYMPTOMS OF URINARY TRACT INFECTION IN THE EMERGENCY DEPARTMENT
    Lai, Yu-Nong
    Yu, Ching Juing
    Chung, Jui-Yuan
    JOURNAL OF EMERGENCY MEDICINE, 2020, 58 (02) : E55 - E57
  • [3] Effectiveness of a home hospitalization program for patients with urinary tract infection after discharge from an emergency department
    Gallardo, Maria Soledad
    Anton, Ane
    Herrero, Esther Pulido
    Itziar Larruscain, Miren
    Guinea Suarez, Rocio
    Garcia Gutierrez, Susana
    Sandoval Negral, Julio Cesar
    EMERGENCIAS, 2017, 29 (05): : 313 - 319
  • [4] Diagnostic uncertainty and urinary tract infection in the emergency department: a cohort study from a UK hospital
    Shallcross, Laura J.
    Rockenschaub, Patrick
    MCNulty, David
    Freemantle, Nick
    Hayward, Andrew
    Gill, Martin J.
    BMC EMERGENCY MEDICINE, 2020, 20 (01)
  • [5] Diagnostic uncertainty and urinary tract infection in the emergency department: a cohort study from a UK hospital
    Laura J. Shallcross
    Patrick Rockenschaub
    David McNulty
    Nick Freemantle
    Andrew Hayward
    Martin J. Gill
    BMC Emergency Medicine, 20
  • [6] Diagnostic value of symptoms and signs for identifying urinary tract infection in older adult outpatients: Systematic review and meta-analysis
    Gbinigie, Oghenekome A.
    Ordonez-Mena, Jose M.
    Fanshawe, Thomas R.
    Pluddemann, Annette
    Heneghan, Carl
    JOURNAL OF INFECTION, 2018, 77 (05) : 379 - 390
  • [7] Estimating depression severity in narrative clinical notes using large language models
    McCoy, Thomas H.
    Castro, Victor M.
    Perlis, Roy H.
    JOURNAL OF AFFECTIVE DISORDERS, 2025, 381 : 270 - 274
  • [8] Opportunities for Antibiotic Reduction in Pediatric Patients With Urinary Tract Infection After Discharge From the Emergency Department
    Hawkins, Stephanie
    Ericson, Jessica E.
    Gavigan, Patrick
    PEDIATRIC EMERGENCY CARE, 2023, 39 (03) : 184 - 187
  • [9] Identifying Type II workplace violence from clinical notes using natural language processing
    Byon, Ha Do
    Harris, Catherine
    Crandall, Mary
    Song, Jiyoun
    Topaz, Maxim
    WORKPLACE HEALTH & SAFETY, 2023, 71 (10) : 484 - 490
  • [10] Urinary tract infection pocket card effect on preferred antimicrobial prescribing for cystitis among patients discharged from the emergency department
    Mixon, Mark Anthony
    Dietrich, Scott
    Bushong, Benjamin
    Peksa, Gary D.
    Rogoszewski, Ryan
    Theiler, Alexander
    Spears, Lindsey
    Werth, Joshua
    Meister, Erin
    Martin, Matthew Steven
    AMERICAN JOURNAL OF HEALTH-SYSTEM PHARMACY, 2021, 78 (15) : 1417 - 1425