Skip to main content
JAMA Network logoLink to JAMA Network
. 2024 Jan 2;178(3):313–315. doi: 10.1001/jamapediatrics.2023.5750

Diagnostic Accuracy of a Large Language Model in Pediatric Case Studies

Joseph Barile 1,✉, Alex Margolis 1, Grace Cason 1, Rachel Kim 1, Saia Kalash 1, Alexis Tchaconas 1, Ruth Milanaik 1
PMCID: PMC10762631  PMID: 38165685

Abstract

This diagnostic study evaluates the accuracy of a large language model against physician diagnoses in pediatric cases.


The capacity of large language models (LLMs) to process information and provide users with insights from vast amounts of data makes the technology well suited for algorithmic problem-solving. A recent study1 investigated the diagnostic accuracy of ChatGPT version 4 and found that the artificial intelligence (AI) chatbot rendered a correct diagnosis in 39% of New England Journal of Medicine (NEJM) case challenges. This suggests LLM-based chatbots could be used as a supplementary tool for clinicians in diagnosing and developing a differential list for complex cases. To our knowledge, no research has explored the accuracy of LLM-based chatbots in solely pediatric scenarios, which require the consideration of the patient’s age alongside symptoms. We assessed this accuracy across JAMA Pediatrics and NEJM pediatric case challenges.

Methods

JAMA Pediatrics and the NEJM were accessed for pediatric case challenges (N = 100). The text from each case was pasted into ChatGPT version 3.5 with the prompt List a differential diagnosis and a final diagnosis. All available JAMA Pediatrics clinical challenges were selected (n = 60). For NEJM cases (n = 40), Massachusetts General Hospital case records for “pediatrics” were randomly selected from the past 10 years. All cases were published from 2013 to 2023. Cases were entered into the chatbot from July 19 to 22, 2023.

The prespecified outcomes were whether the differentials and diagnosis supplied by the chatbot aligned with the case physician’s diagnosis. Two qualified physician researchers scored the chatbot-generated diagnoses as either correct, incorrect, or “did not fully capture diagnosis” compared to the reported case diagnosis. We followed the STARD reporting guideline where appropriate.

Results

The chatbot had a diagnostic error rate of 83% (83 of 100). Among the incorrect diagnoses, 72% (72 of 100) were incorrect and 11% (11 of 100) were clinically related but too broad to be considered a correct diagnosis (Table). Most of the incorrect diagnoses generated by the chatbot (47 of 83 [56.7%]) belonged to the same organ system as the correct diagnosis (eg, psoriasis and seborrheic dermatitis) but were not specific enough to be considered correct (eg, hypoparathyroidism and hungry bone syndrome). Additionally, 36% (36 of 100) of the final case report diagnoses were included in the LLM-generated differential list.

Table. Representative Cases and Diagnostic Outcome for a Large Language Model (LLM).

Representative case LLM diagnosis Physician diagnosis Artificial intelligence diagnosis outcome Outcome frequency (N = 100)
15-y-old girl with unexplained intracranial hypertension Adrenal insufficiency (Addison disease) Primary adrenal insufficient (Addison disease) Correct 17
Rash and arthralgias in a teenager with autism Immune thrombocytopenic purpura Scurvy Incorrect 72
Draining papule on the lateral neck of an infant Branchial cleft cyst Branchio-oto-renal syndrome Did not fully capture diagnosis 11

Discussion

Despite the high error rate of the chatbot, physicians should continue to investigate the applications of LLMs to medicine. LLMs and chatbots have potential as an administrative tool for physicians, demonstrating proficiency in writing research articles and generating patient instructions.2 In fact, electronic health record (EHR) vendor Epic has collaborated with Microsoft’s OpenAI to incorporate GPT-4 with the goal of automating components of clinical documentation.3 Several health systems have already signed up to adopt the new EHR software.3

However, the underwhelming diagnostic performance of the chatbot observed in this study underscores the invaluable role that clinical experience holds. The chatbot evaluated in this study—unlike physicians—was not able to identify some relationships, such as that between autism and vitamin deficiencies.4 To improve the generative AI chatbot’s diagnostic accuracy, more selective training is likely required. LLMs are typically nonspecifically trained on a massive amount of internet data, which can often be inaccurate.2 LLMs do not discriminate between reliable and unreliable information but simply regurgitate text from the training data to generate a response.2 However, some LLMs, like Google’s Med-PaLM 2, have been specifically trained on medical data and may be better equipped to provide accurate diagnoses.5

Another shortcoming of some LLMs and chatbots is a lack of real-time access to medical information. This prevents some chatbots from staying updated with new research, diagnostic criteria, and current health trends or disease outbreaks.2 Some suggest that physicians must take a more active role in generating data sets for LLMs to intentionally prepare them for medical functions—a process broadly referred to as tuning.6 This presents an opportunity for researchers to investigate if specific medical data training and tuning can improve the diagnostic accuracy of LLM-based chatbots.

Supplement.

Data sharing statement

References

  • 1.Kanjee Z, Crowe B, Rodman A. Accuracy of a generative artificial intelligence model in a complex diagnostic challenge. JAMA. 2023;330(1):78-80. doi: 10.1001/jama.2023.8288 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 2.Thirunavukarasu AJ, Ting DSJ, Elangovan K, Gutierrez L, Tan TF, Ting DSW. Large language models in medicine. Nat Med. 2023;29(8):1930-1940. doi: 10.1038/s41591-023-02448-8 [DOI] [PubMed] [Google Scholar]
  • 3.Capoot A. OpenAI-powered app from Microsoft is coming to Epic Systems to help save doctors time. CNBC . Published June 27, 2023. Accessed October 1, 2023. https://www.cnbc.com/2023/06/27/openai-powered-app-from-microsoft-is-coming-to-epic-systems.html
  • 4.Jacobsen A, DeNiro K. Rash and arthralgias in a teenager with autism. JAMA Pediatr. 2017;171(1):89-90. doi: 10.1001/jamapediatrics.2016.1565 [DOI] [PubMed] [Google Scholar]
  • 5.Singhal K, Azizi S, Tu T, et al. Large language models encode clinical knowledge. Nature. 2023;620(7972):172-180. doi: 10.1038/s41586-023-06291-2 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 6.Shah NH, Entwistle D, Pfeffer MA. Creation and adoption of large language models in medicine. JAMA. 2023;330(9):866-869. doi: 10.1001/jama.2023.14217 [DOI] [PubMed] [Google Scholar]

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Supplementary Materials

Supplement.

Data sharing statement


Articles from JAMA Pediatrics are provided here courtesy of American Medical Association

RESOURCES