Large language models improve the identification of emergency department visits for symptomatic kidney stones
Open accessPublished 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.
Integrity signals
Registry
Cites
Statistics
Figures


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.
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?
The source backs part of the claim, not all of it — or backs it for a different population, condition or comparison.
In the citing paper
“In healthcare applications, these models have already shown exceptional proficiency in extracting linguistic patterns that convey complex clinical information including clinical phenotypes, assertion status, and relationships between medical concepts (e.g., drug–adverse reaction).12,20, 21, 22, 23, 24”
From irAE-GPT: leveraging large language models to identify immune-related adverse events in electronic health records and clinical trial datasets (2026) · cites this paper as [21]
Experimental — accuracy not yet measured
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
Dissecting racial bias in an algorithm used to manage the health of populations
Obermeyer, Z., Powers, B., Vogeli, C., & Mullainathan, S. (2019) · Science · doi:10.1126/science.aax2342 · Cited by 7,137
Large language models encode clinical knowledge
Singhal, K., Azizi, S., Tu, T., Mahdavi, S. S., Wei, J., Chung, H. W., Scales, N., Tanwani, A., Cole-Lewis, H., Pfohl, S., et al. (2023) · Nature · doi:10.1038/s41586-023-06291-2 · Cited by 4,083
Retrieval-Augmented Generation for Knowledge-Intensive NLP Tasks
Lewis, P., Perez, E., Piktus, A., Petroni, F., Karpukhin, V., Goyal, N., Küttler, H., Lewis, M., Yih, W.-T., Rocktäschel, T., et al. (2020) · arXiv · doi:10.48550/arxiv.2005.11401 · Cited by 3,101
Advances in Neural Information Processing Systems 27 (NIPS 2014)
Zhong, M., Goddard, N., & Sutton, C. A. (2014) · Cited by 2,636
Llama 2: Open Foundation and Fine-Tuned Chat Models
Touvron, H., Martin, L., Stone, K., Albert, P., Almahairi, A., Babaei, Y., Bashlykov, N., Batra, S., Bhargava, P., Bhosale, S., et al. (2023) · arXiv · doi:10.48550/arxiv.2307.09288 · Cited by 2,604
Advances in Neural Information Processing Systems 32 (NeurIPS 2019)
Wallach, H., Larochelle, H., Beygelzimer, A., d’Alché–Buc, F., Fox, E. B., & Garnett, R. (2020) · HAL · Cited by 2,451
Certifying and Removing Disparate Impact
Feldman, M., Friedler, S. A., Moeller, J., Scheidegger, C., & Venkatasubramanian, S. (2015) · Proceedings of the 21th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining · doi:10.1145/2783258.2783311 · Cited by 1,827
Bias and Fairness in Large Language Models: A Survey
Gallegos, I. O., Rossi, R. A., Barrow, J., Tanjim, M. M., Kim, S., Dernoncourt, F., Yu, T., Zhang, R., & Ahmed, N. K. (2024) · Computational Linguistics · doi:10.1162/coli_a_00524 · Cited by 1,245
Fairness definitions explained
Verma, S., & Rubin, J. (2018) · Proceedings of the International Workshop on Software Fairness · doi:10.1145/3194770.3194776 · Cited by 1,124
Kusner, M. J., Loftus, J. R., Russell, C., & Silva, R. (2017) · arXiv · doi:10.48550/arxiv.1703.06856 · Cited by 995
Computer Intensive Methods for Testing Hypotheses: An Introduction
Evans, K. J., & Noreen, E. W. (1990) · Journal of the Operational Research Society · doi:10.2307/2582908 · Cited by 651
Zack, T., Lehman, E., Suzgun, M., Rodriguez, J. A., Celi, L. A., Gichoya, J., Jurafsky, D., Szolovits, P., Bates, D. W., Abdulnour, R.-E. E., et al. (2024) · The Lancet Digital Health · doi:10.1016/s2589-7500(23)00225-x · Cited by 510
Health system-scale language models are all-purpose prediction engines
Jiang, L. Y., Liu, X. C., Nejatian, N. P., Nasir-Moin, M., Wang, D., Abidin, A., Eaton, K., Riina, H. A., Laufer, I., Punjabi, P., et al. (2023) · Nature · doi:10.1038/s41586-023-06160-y · Cited by 460
Accuracy of a Generative Artificial Intelligence Model in a Complex Diagnostic Challenge
Kanjee, Z., Crowe, B., & Rodman, A. (2023) · JAMA · doi:10.1001/jama.2023.8288 · Cited by 449
Creation and Adoption of Large Language Models in Medicine
Shah, N. H., Entwistle, D., & Pfeffer, M. A. (2023) · JAMA · doi:10.1001/jama.2023.14217 · Cited by 435
Leveraging large language models for decision support in personalized oncology
Benary, M., Wang, X. D., Schmidt, M., Soll, D., Hilfenhaus, G., Nassir, M., Sigler, C., Knödler, M., Keller, U., Beule, D., et al. (2023) · JAMA Network Open · doi:10.1001/jamanetworkopen.2023.43689 · Cited by 306
Digital Health Equity as a Necessity in the 21st Century Cures Act Era
Rodriguez, J. A., Clark, C. R., & Bates, D. W. (2020) · JAMA · doi:10.1001/jama.2020.7858 · Cited by 287
Water-responsive supercontractile polymer films for bioelectronic interfaces
Yi, J., Zou, G., Huang, J., Ren, X., Tian, Q., Yu, Q., Wang, P., Yuan, Y., Tang, W., Wang, C., et al. (2023) · Nature · doi:10.1038/s41586-023-06732-y · Cited by 240
True Few-Shot Learning with Language Models
Perez, E., Kiela, D., & Cho, K. (2021) · arXiv · doi:10.48550/arxiv.2105.11447 · Cited by 226
Fwu, C.-W., Eggers, P. W., Kimmel, P. L., Kusek, J. W., & Kirkali, Z. (2013) · Kidney International · doi:10.1038/ki.2012.419 · Cited by 221
Do Prompt-Based Models Really Understand the Meaning of Their Prompts?
Webson, A., & Pavlick, E. (2022) · Proceedings of the 2022 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies · doi:10.18653/v1/2022.naacl-main.167 · Cited by 203
Urinary Stone Disease: Advancing Knowledge, Patient Care, and Population Health
Scales, C. D., Tasian, G. E., Schwaderer, A. L., Goldfarb, D. S., Star, R. A., & Kirkali, Z. (2016) · Clinical Journal of the American Society of Nephrology · doi:10.2215/cjn.13251215 · Cited by 182
Use of a Large Language Model to Assess Clinical Acuity of Adults in the Emergency Department
Williams, C. Y. K., Zack, T., Miao, B. Y., Sushil, M., Wang, M., Kornblith, A. E., & Butte, A. J. (2024) · JAMA Network Open · doi:10.1001/jamanetworkopen.2024.8895 · Cited by 148
Boyce, C. J., Pickhardt, P. J., Lawrence, E. M., Kim, D. H., & Bruce, R. J. (2010) · The Journal of Urology · doi:10.1016/j.juro.2009.11.047 · Cited by 137
GPT versus Resident Physicians — A Benchmark Based on Official Board Scores
Katz, U., Cohen, E., Shachar, E., Somer, J., Fink, A., Morse, E., Shreiber, B., & Wolf, I. (2024) · NEJM AI · doi:10.1056/aidbp2300192 · Cited by 135
Comparison of Methods to Reduce Bias From Clinical Prediction Models of Postpartum Depression
Park, Y., Hu, J., Singh, M., Sylla, I., Dankwa-Mullan, I., Koski, E., & Das, A. K. (2021) · JAMA Network Open · doi:10.1001/jamanetworkopen.2021.3909 · Cited by 116
Comparative Evaluation of LLMs in Clinical Oncology
Rydzewski, N. R., Dinakaran, D., Zhao, S. G., Ruppin, E., Turkbey, B., Citrin, D. E., & Patel, K. R. (2024) · NEJM AI · doi:10.1056/aioa2300151 · Cited by 106
Bejan, C. A., Angiolillo, J., Conway, D., Nash, R., Shirey-Rice, J. K., Lipworth, L., Cronin, R. M., Pulley, J., Kripalani, S., Barkin, S., et al. (2018) · Journal of the American Medical Informatics Association · doi:10.1093/jamia/ocx059 · Cited by 106
Self-citationGPT-4 for Information Retrieval and Comparison of Medical Oncology Guidelines
Ferber, D., Wiest, I. C., Wölflein, G., Ebert, M. P., Beutel, G., Eckardt, J.-N., Truhn, D., Springfeld, C., Jäger, D., & Kather, J. N. (2024) · NEJM AI · doi:10.1056/aics2300235 · Cited by 92
Glicksberg, B. S., Timsina, P., Patel, D., Sawant, A., Vaid, A., Raut, G., Charney, A. W., Apakama, D., Carr, B. G., Freeman, R., et al. (2024) · Journal of the American Medical Informatics Association · doi:10.1093/jamia/ocae103 · Cited by 82
Zero-shot interpretable phenotyping of postpartum hemorrhage using large language models
Alsentzer, E., Rasmussen, M. J., Fontoura, R., Cull, A. L., Beaulieu-Jones, B., Gray, K. J., Bates, D. W., & Kovacheva, V. P. (2023) · npj Digital Medicine · doi:10.1038/s41746-023-00957-x · Cited by 69
Pneumonia identification using statistical feature selection
Bejan, C. A., Xia, F., Vanderwende, L., Wurfel, M. M., & Yetisgen-Yildiz, M. (2012) · Journal of the American Medical Informatics Association · doi:10.1136/amiajnl-2011-000752 · Cited by 67
Self-citationModeling the behavior of the 4/5ths rule for determining adverse impact: Reasons for caution.
Roth, P. L., Bobko, P., & Switzer, F. S. (2006) · Journal of Applied Psychology · doi:10.1037/0021-9010.91.3.507 · Cited by 58
Bias and Fairness in Large Language Models: A SurveyPreprint
Gallegos, I. O., Rossi, R. A., Barrow, J., et al. (2023) · arXiv (Cornell University) · doi:10.48550/arxiv.2309.00770 · Cited by 58
Abraham, A., Le, B. L., Kosti, I., Straub, P., Velez-Edwards, D. R., Davis, L. K., Newton, J. M., Muglia, L. J., Rokas, A., Bejan, C. A., et al. (2022) · BMC Medicine · doi:10.1186/s12916-022-02522-x · Cited by 57
Self-citationEmergency Department Revisits for Patients with Kidney Stones in California
Scales, C. D., Lin, L., Saigal, C. S., Bennett, C. J., Ponce, N. A., Mangione, C. M., Litwin, M. S., & the NIDDK Urologic Diseases in America Project (2015) · Academic Emergency Medicine · doi:10.1111/acem.12632 · Cited by 54
Asymptomatic Nephrolithiasis Detected by Ultrasound
Bansal, A. D., Hui, J., & Goldfarb, D. S. (2009) · Clinical Journal of the American Society of Nephrology · doi:10.2215/cjn.05181008 · Cited by 53
D’Costa, M. R., Pais, V. M., & Rule, A. D. (2018) · Current Opinion in Nephrology & Hypertension · doi:10.1097/mnh.0000000000000478 · Cited by 46
Improving ascertainment of suicidal ideation and suicide attempt with natural language processing
Bejan, C. A., Ripperger, M. A., Wilimitis, D., Ahmed, R., Kang, J., Robinson, K., Morley, T. J., Ruderfer, D. M., & Walsh, C. G. (2022) · Scientific Reports · doi:10.1038/s41598-022-19358-3 · Cited by 40
Self-citationMachine Learning Models to Predict 24 Hour Urinary Abnormalities for Kidney Stone Disease
Kavoussi, N., Floyd, C., Abraham, A., Sui, W., Bejan, C. A., Capra, J. A., & Hsi, R. S. (2022) · Urology · doi:10.1016/j.urology.2022.07.008 · Cited by 30
Self-citationLorenzoni, G., Gregori, D., Bressan, S., Ocagli, H., Azzolina, D., Dalt, L. D., & Berchialla, P. (2024) · JAMA Network Open · doi:10.1001/jamanetworkopen.2024.13208 · Cited by 21
Scalable incident detection via natural language processing and probabilistic language models
Walsh, C. G., Wilimitis, D., Chen, Q., Wright, A. P., Kolli, J., Robinson, K., Ripperger, M. A., Johnson, K. B., Carrell, D., Desai, R. J., et al. (2024) · Scientific Reports · doi:10.1038/s41598-024-72756-7 · Cited by 16
Self-citationLarge Language Models Seem Miraculous, but Science Abhors Miracles
Szolovits, P. (2024) · NEJM AI · doi:10.1056/aip2300103 · Cited by 12
Bejan, C. A., Lee, D. J., Xu, Y., & Hsi, R. S. (2019) · Urology · doi:10.1016/j.urology.2019.07.007 · Cited by 11
Self-citationForbes, C. M., Nimmagadda, N., Kavoussi, N., Xu, Y., Bejan, C. A., Miller, N. L., & Hsi, R. S. (2022) · Urology · doi:10.1016/j.urology.2022.11.009 · Cited by 10
Self-citationEvaluation of Genetic Associations with Clinical Phenotypes of Kidney Stone Disease
Hsi, R. S., Zhang, S., Triozzi, J. L., Hung, A. M., Xu, Y., & Bejan, C. A. (2024) · European Urology Open Science · doi:10.1016/j.euros.2024.07.109 · Cited by 5
Self-citationAI for Oncology Drug Data Harmonization — Amazon versus OpenAI
Ronquillo, J. G., South, B. R., Wiemken, T. L., Jadhav, A., WATT, S. J., Jesus, M. D., & Habtezion, A. (2024) · NEJM AI · doi:10.1056/aics2400661 · Cited by 2
OpenAI, Achiam, J., Adler, S., Agarwal, S., Ahmad, L., Akkaya, I., Aleman, F. L., Almeida, D., Altenschmidt, J., Altman, S., et al. (2023) · arXiv · doi:10.48550/arxiv.2303.08774
Research works printed but not linked: 2
- Hardt, M., Price, E. & Srebro, N. Equality of opportunity in supervised learning. In Advances in Neural Information Processing Systems 29 (Nips 2016), 29 (2016).
- 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
Du, X., Zhou, Z., Wang, Y., Chuang, Y.-W., Li, Y., Yang, R., Hong, P., Bates, D. W., & Zhou, L. (2026) · International Journal of Medical Informatics · doi:10.1016/j.ijmedinf.2025.106091 · Cited by 26
Berikol, G. B., Kanbakan, A., İlhan, B., & Doğanay, F. (2025) · Turkish Journal of Emergency Medicine · doi:10.4103/tjem.tjem_45_25 · Cited by 29
Bejan, C. A., Wang, M., Venkateswaran, S., Bergmann, E. A., Hiles, L., Xu, Y., Chandler, G. S., Brondfield, S., Silverstein, J., Wright, F., et al. (2026) · eBioMedicine · doi:10.1016/j.ebiom.2026.106227 · Cited by 24
Self-citationPasquadibisceglie, V., Appice, A., Malerba, D., & Fiameni, G. (2025) · Expert systems with applications · doi:10.1016/j.eswa.2025.128224 · Cited by 14
Clinical Management of Wasp Stings Using Large Language Models: Cross-Sectional Evaluation Study
Pan, W., Zhang, S., Wang, Y., Quan, Z., Zhu, Y., Fang, Z., & Yang, X. (2025) · Journal of Medical Internet Research · doi:10.2196/67489 · Cited by 7
“LLMs, such as ChatGPT, demonstrate great potential in providing high-quality medical information across a wide range of medical conditions [27], including general oncology consultations [28], management of immune-related adverse events [29], and precise diagnosis of complex pediatric cases [30-32].”
Self-citation
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)
- PMC
- PMC11775227
- OpenAlex
- W4406886568
- Cited by
- 8
- References
- 47
- Citations by year
- 2026: 4 · 2025: 4
- FWCI
- 3.21
- Type
- journal article
- Language
- en
- Open access
- gold
- doi.org
- Licence
- cc-by-nc-nd
- creativecommons.org/licenses/by-nc-nd/4.0 (tdm)
- creativecommons.org/licenses/by-nc-nd/4.0 (vor)
- 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.