Skip to main content
medRxiv
  • Home
  • About
  • Submit
  • ALERTS / RSS
Advanced Search

Identifying Signs and Symptoms of Urinary Tract Infection from Emergency Department Clinical Notes Using Large Language Models

View ORCID ProfileMark Iscoe, View ORCID ProfileVimig Socrates, View ORCID ProfileAidan Gilson, Ling Chi, Huan Li, Thomas Huang, View ORCID ProfileThomas Kearns, Rachelle Perkins, View ORCID ProfileLaura Khandjian, View ORCID ProfileR. Andrew Taylor
doi: https://doi.org/10.1101/2023.10.20.23297156
Mark Iscoe
1Department of Emergency Medicine, Yale School of Medicine, New Haven, CT
2Section for Biomedical Informatics and Data Science, Yale University School of Medicine, New Haven, CT
MD, MHS
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • ORCID record for Mark Iscoe
  • For correspondence: mark.iscoe{at}yale.edu
Vimig Socrates
2Section for Biomedical Informatics and Data Science, Yale University School of Medicine, New Haven, CT
4Program of Computational Biology and Bioinformatics, Yale University, New Haven, CT
MS
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • ORCID record for Vimig Socrates
Aidan Gilson
3Yale School of Medicine, New Haven, CT
BS
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • ORCID record for Aidan Gilson
Ling Chi
3Yale School of Medicine, New Haven, CT
BS
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Huan Li
4Program of Computational Biology and Bioinformatics, Yale University, New Haven, CT
MS
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Thomas Huang
3Yale School of Medicine, New Haven, CT
BS
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Thomas Kearns
1Department of Emergency Medicine, Yale School of Medicine, New Haven, CT
MD
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • ORCID record for Thomas Kearns
Rachelle Perkins
1Department of Emergency Medicine, Yale School of Medicine, New Haven, CT
MD
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Laura Khandjian
1Department of Emergency Medicine, Yale School of Medicine, New Haven, CT
MD
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • ORCID record for Laura Khandjian
R. Andrew Taylor
1Department of Emergency Medicine, Yale School of Medicine, New Haven, CT
2Section for Biomedical Informatics and Data Science, Yale University School of Medicine, New Haven, CT
MD, MHS
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • ORCID record for R. Andrew Taylor
  • Abstract
  • Full Text
  • Info/History
  • Metrics
  • Data/Code
  • Preview PDF
Loading

Abstract

Objectives Symptom characterization is critical to urinary tract infection (UTI) diagnosis, but identification of symptoms from the electronic health record (EHR) is challenging, limiting large-scale research, public health surveillance, and EHR-based clinical decision support. We therefore developed and compared two natural language processing (NLP) models to identify UTI symptoms from unstructured emergency department (ED) notes.

Methods The study population consisted of patients aged ≥ 18 who presented to the (ED) in a north-eastern United States health system between June 2013 and August 2021 and had a urinalysis performed. We annotated a random subset of 1,250 ED clinician notes from these visits for a list of 17 UTI symptoms. We then developed two task-specific large language models (LLMs) to perform the task of named entity recognition (NER): a convolutional neural network (CNN)-based model (SpaCy) and a transformer-based model designed to process longer documents (Longformer). Models were trained on 1,000 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.

Results 8,135 entities were identified in 1,250 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.

Conclusions The 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.

Competing Interest Statement

The authors have declared no competing interest.

Funding Statement

This publication was made possible by the Yale School of Medicine Fellowship for Medical Student Research.

Author Declarations

I confirm all relevant ethical guidelines have been followed, and any necessary IRB and/or ethics committee approvals have been obtained.

Yes

The details of the IRB/oversight body that provided approval or exemption for the research described are given below:

The Yale University institutional review board approved this research and waived the need for informed consent (HIC# 1602017249).

I confirm that all necessary patient/participant consent has been obtained and the appropriate institutional forms have been archived, and that any patient/participant/sample identifiers included were not known to anyone (e.g., hospital staff, patients or participants themselves) outside the research group so cannot be used to identify individuals.

Yes

I understand that all clinical trials and any other prospective interventional studies must be registered with an ICMJE-approved registry, such as ClinicalTrials.gov. I confirm that any such study reported in the manuscript has been registered and the trial registration ID is provided (note: if posting a prospective study registered retrospectively, please provide a statement in the trial ID field explaining why the study was not registered in advance).

Yes

I have followed all appropriate research reporting guidelines, such as any relevant EQUATOR Network research reporting checklist(s) and other pertinent material, if applicable.

Yes

Data Availability

All data produced in the present study are available upon reasonable request to the authors.

Copyright 
The copyright holder for this preprint is the author/funder, who has granted medRxiv a license to display the preprint in perpetuity. It is made available under a CC-BY-ND 4.0 International license.
Back to top
PreviousNext
Posted October 26, 2023.
Download PDF
Data/Code
Email

Thank you for your interest in spreading the word about medRxiv.

NOTE: Your email address is requested solely to identify you as the sender of this article.

Enter multiple addresses on separate lines or separate them with commas.
Identifying Signs and Symptoms of Urinary Tract Infection from Emergency Department Clinical Notes Using Large Language Models
(Your Name) has forwarded a page to you from medRxiv
(Your Name) thought you would like to see this page from the medRxiv website.
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.
Share
Identifying Signs and Symptoms of Urinary Tract Infection from Emergency Department Clinical Notes Using Large Language Models
Mark Iscoe, Vimig Socrates, Aidan Gilson, Ling Chi, Huan Li, Thomas Huang, Thomas Kearns, Rachelle Perkins, Laura Khandjian, R. Andrew Taylor
medRxiv 2023.10.20.23297156; doi: https://doi.org/10.1101/2023.10.20.23297156
Twitter logo Facebook logo LinkedIn logo Mendeley logo
Citation Tools
Identifying Signs and Symptoms of Urinary Tract Infection from Emergency Department Clinical Notes Using Large Language Models
Mark Iscoe, Vimig Socrates, Aidan Gilson, Ling Chi, Huan Li, Thomas Huang, Thomas Kearns, Rachelle Perkins, Laura Khandjian, R. Andrew Taylor
medRxiv 2023.10.20.23297156; doi: https://doi.org/10.1101/2023.10.20.23297156

Citation Manager Formats

  • BibTeX
  • Bookends
  • EasyBib
  • EndNote (tagged)
  • EndNote 8 (xml)
  • Medlars
  • Mendeley
  • Papers
  • RefWorks Tagged
  • Ref Manager
  • RIS
  • Zotero
  • Tweet Widget
  • Facebook Like
  • Google Plus One

Subject Area

  • Emergency Medicine
Subject Areas
All Articles
  • Addiction Medicine (349)
  • Allergy and Immunology (668)
  • Allergy and Immunology (668)
  • Anesthesia (181)
  • Cardiovascular Medicine (2648)
  • Dentistry and Oral Medicine (316)
  • Dermatology (223)
  • Emergency Medicine (399)
  • Endocrinology (including Diabetes Mellitus and Metabolic Disease) (942)
  • Epidemiology (12228)
  • Forensic Medicine (10)
  • Gastroenterology (759)
  • Genetic and Genomic Medicine (4103)
  • Geriatric Medicine (387)
  • Health Economics (680)
  • Health Informatics (2657)
  • Health Policy (1005)
  • Health Systems and Quality Improvement (985)
  • Hematology (363)
  • HIV/AIDS (851)
  • Infectious Diseases (except HIV/AIDS) (13695)
  • Intensive Care and Critical Care Medicine (797)
  • Medical Education (399)
  • Medical Ethics (109)
  • Nephrology (436)
  • Neurology (3882)
  • Nursing (209)
  • Nutrition (577)
  • Obstetrics and Gynecology (739)
  • Occupational and Environmental Health (695)
  • Oncology (2030)
  • Ophthalmology (585)
  • Orthopedics (240)
  • Otolaryngology (306)
  • Pain Medicine (250)
  • Palliative Medicine (75)
  • Pathology (473)
  • Pediatrics (1115)
  • Pharmacology and Therapeutics (466)
  • Primary Care Research (452)
  • Psychiatry and Clinical Psychology (3432)
  • Public and Global Health (6527)
  • Radiology and Imaging (1403)
  • Rehabilitation Medicine and Physical Therapy (814)
  • Respiratory Medicine (871)
  • Rheumatology (409)
  • Sexual and Reproductive Health (410)
  • Sports Medicine (342)
  • Surgery (448)
  • Toxicology (53)
  • Transplantation (185)
  • Urology (165)