CoChat

Large language models improve the identification of emergency department visits for symptomatic kidney stones

Open access

Published version of a preprint

The DOI matches its Crossref record; 48 of the 48 references it cites were found in a registry or an index.

Abstract

Background: Recent advancements of large language models (LLMs) like Generative Pre-trained Transformer 4 (GPT-4) have generated significant interest among the scientific community. Yet, the potential of these models to be utilized in clinical settings remains largely unexplored. This study investigated the abilities of multiple LLMs and traditional machine learning models to analyze emergency department (ED) reports and determine if the corresponding visits were caused by symptomatic kidney stones. Methods: Leveraging a dataset of manually annotated ED reports, we developed strategies to enhance the performance of GPT-4, GPT-3.5, and Llama-2 including prompt optimization, zero- and few-shot prompting, fine-tuning, and prompt augmentation. Further, we implemented fairness assessment and bias mitigation methods to investigate the potential disparities by these LLMs with respect to race and gender. A clinical expert manually assessed the explanations generated by GPT-4 for its predictions to determine if they were sound, factually correct, unrelated to the input prompt, or potentially harmful. The evaluation includes a comparison between LLMs, traditional machine learning models (logistic regression, extreme gradient boosting, and light gradient boosting machine), and a baseline system utilizing International Classification of Diseases (ICD) codes for kidney stones. Results: The best results were achieved by GPT-4 (macro-F1=0.833, 95% confidence interval [CI]=0.826-0.841) and GPT-3.5 (macro-F1=0.796, 95% CI=0.796-0.796), both being statistically significantly better than the ICD-based baseline result (macro-F1=0.71). Ablation studies revealed that the initial pre-trained GPT-3.5 model benefits from fine-tuning when using the same parameter configuration. Adding demographic information and prior disease history to the prompts allows LLMs to make more accurate decisions. The evaluation of bias found that GPT-4 exhibited no racial or gender disparities, in contrast to GPT-3.5, which failed to effectively model racial diversity. The analysis of explanations provided by GPT-4 demonstrates advanced capabilities of this model in understanding clinical text and reasoning with medical knowledge.

Overview

The claims and statistics of this paper haven’t been checked yet.

Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.

A few free checks a day · papers already verified open instantly · results are public

Integrity signals

Registry

Crossref · 10.1038/s41598-025-86632-5

Cites

48 of 48 references verified0 citation errors · 0 not checkable

Statistics

Figures

Fig. 1 Overview of the study workflow.
Fig. 1 Overview of the study workflow.CC BY-NC-ND · PubMed Central
Fig. 2 LLM results under various settings. (A) Prompt optimization results using zero-shot prompts. Prompts #9, #7, and #2 achieved the best macro-averaged F1 scores for Llama-2, GPT-3.5, and GPT-4, respectively. (B) Ablation study results leveraging few-shot prompting (N = 1…5). (C) Ablation study comparing a fine-tuned GPT-3.5 model against the initial pre-trained GPT-3.5 model. The evaluation was performed on a random fold of a ten-fold cross-validation framework over the training set. (D) Ablation study assessing the impact of prompt augmentation with demographic information and previous history of kidney stone. (E) Race and gender distribution over the test dataset (N = 100). (F) Macro-averaged F1 scores achieved by all the models implemented to identify ED visits for symptomatic kidney stones over the test set. (G–J) Racial and gender bias assessment on the test set before and after prompt augmentation with race and gender information. The fairness reference values for disparate impact (DI) and equal opportunity difference (EOD) are 1 and 0, respectively.
Fig. 2 LLM results under various settings. (A) Prompt optimization results using zero-shot prompts. Prompts #9, #7, and #2 achieved the best macro-averaged F1 scores for Llama-2, GPT-3.5, and GPT-4, respectively. (B) Ablation study results leveraging few-shot prompting (N = 1…5). (C) Ablation study comparing a fine-tuned GPT-3.5 model against the initial pre-trained GPT-3.5 model. The evaluation was performed on a random fold of a ten-fold cross-validation framework over the training set. (D) Ablation study assessing the impact of prompt augmentation with demographic information and previous history of kidney stone. (E) Race and gender distribution over the test dataset (N = 100). (F) Macro-averaged F1 scores achieved by all the models implemented to identify ED visits for symptomatic kidney stones over the test set. (G–J) Racial and gender bias assessment on the test set before and after prompt augmentation with race and gender information. The fairness reference values for disparate impact (DI) and equal opportunity difference (EOD) are 1 and 0, respectively.CC BY-NC-ND · PubMed Central

Verification

Claims the paper makes

The claims and statistics of this paper haven’t been checked yet.

Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.

A few free checks a day · papers already verified open instantly · results are public

Claims other papers make about this one

Each is checked against this paper’s own text: does it say what the citing paper says it does?

Self-check

Percentages, sums and reported differences re-computed from the paper’s own numbers.

The self-check needs the paper’s full text.

Citations

Cites

Research works printed but not linked: 2

  1. Hardt, M., Price, E. & Srebro, N. Equality of opportunity in supervised learning. In Advances in Neural Information Processing Systems 29 (Nips 2016), 29 (2016).
  2. Grgic-Hlaca, N., Zafar, M. B., Gummadi, K. P. & Weller, A. The case for process fairness in learning: Feature selection for fair decision making. In Symposium on Machine Learning and the Law at the 29th Conference on Neural Information Processing Systems (NIPS 2016) (2016).

Cited by

See all 8

Metadata

Authors
Bejan, C. A., Reed, A. M., Mikula, M., Zhang, S., Xu, Y., Fabbri, D., Embí, P. J., & Hsi, R. S.
Affiliations
  • Vanderbilt University (US)
  • Vanderbilt University Medical Center (US)
Corresponding author
Bejan, Cosmin A.
Venue
Scientific Reports
Published
2025-01-28
Volume
15
Issue
1
Pages
3503-3503
ISSN
2045-2322 (ISSN-L)
OpenAlex
W4406886568
Cited by
8
References
47
Citations by year
2026: 4 · 2025: 4
FWCI
3.21
Type
journal article
Language
en
Open access
Licence
Locations
  • Scientific Reports (publishedVersion, cc-by-nc-nd)
  • medRxiv (acceptedVersion)
  • PubMed Central (publishedVersion, cc-by-nc-nd)
  • PubMed (publishedVersion)
  • PubMed Central (submittedVersion)
  • DOAJ (DOAJ: Directory of Open Access Journals) (submittedVersion, cc-by-sa)
Funders
  • National Institute of Diabetes and Digestive and Kidney Diseases (R21DK127075)
  • Eunice Kennedy Shriver National Institute of Child Health and Human Development (R21HD113234)
  • National Center for Advancing Translational Sciences (UL1TR002243)
  • Chris and Helga Holland (donation)
Topics
  • Physical Sciences › Computer Science › Artificial Intelligence › Machine Learning in Healthcare
  • Health Sciences › Medicine › Health Informatics › Artificial Intelligence in Healthcare and Education
  • Health Sciences › Health Professions › Health Information Management › Artificial Intelligence in Healthcare
Keywords
large language models, GPT-4, GPT-3.5, emergency department visits, prompt engineering, few-shot prompting, fine-tuning, FAIRness assessment, algorithmic bias, racial and gender disparities, explainability, clinical decision support

About these checks

Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.

Statistics and arithmetic are recomputed, not judged.

Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.

What counts as a claim ›How we measure confidence ›How we check this ›

Are you an author, or do you see a problem with this page? Request a review

Data sources

Bibliographic data: Semantic Scholar, OpenAlex, Crossref.

Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).

Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.