iRaven

Paper · Open source and society · Version v1

A comparative analysis of accuracy and response stability in infectious disease cases: Grok AI, Claude, PubMed GPT and DeepSeek’s clinical decision support

First published: PLOS One, . Original

Copyright the authors. Licensed under Creative Commons Attribution 4.0 International.

This page holds the text of the paper, converted to HTML; figures may be left out.

Background: Infectious diseases pose major healthcare challenges because of pathogen diversity, overlapping clinical presentations, and antimicrobial resistance. Large language models (LLMs) are increasingly explored in medical education and clinical decision support, but comparative evaluations in infectious disease–specific case-based assessment remain limited. Method: This quantitative comparative study assessed four LLMs—Grok AI, Claude, PubMed GPT, and DeepSeek—on 160 case-based multiple-choice questions (MCQs) from 20 Infectious Diseases: A Case Study Approach. Accuracy, category-specific performance, and 24-hour response stability were evaluated using chi-square tests, ANOVA, McNemar’s test, and qualitative reviews by specialists. Result: Grok AI showed the highest observed accuracy at 69.4% (111/160), followed by Claude (68.1%), PubMed GPT (62.5%), and DeepSeek (61.3%). Performance was relatively stronger in symptoms and pathology, whereas treatment-related items showed lower accuracy across models (60.7%–66.3%). In the 24-hour re-run, Grok AI showed the lowest response-change rate (6.3%), whereas PubMed GPT showed the highest (15%). No pairwise accuracy difference remained statistically significant after adjustment for multiple comparisons. Conclusion: Grok AI showed the highest observed accuracy and the lowest 24-hour response-change rate in this dataset. Performance remained moderate across models with particular limitations in treatment-related questions. These findings suggest possible adjunctive educational value but do not establish human-equivalent performance. Dependable teaching performance and clinical readiness were also not demonstrated.

Introduction

Infectious diseases represent major challenges to global healthcare due to the diversity of pathogens, evolving Antimicrobial Resistance (AMR) and overlapping clinical manifestations, requiring rapid and accurate clinical decision-making [1]. The challenge of bacterial, viral, fungal, and parasitic infections is complicated by the requirement for accurate diagnosis and correct treatment, particularly in high-stakes settings such as hospitals or during epidemics [2]. AMR causes >700,000 deaths annually, underscoring the need for strong control strategies [3]. AI (Artificial Intelligence) especially large language models (LLMs) is reshaping healthcare by supporting diagnosis, treatment choices, and education [4]. Because infectious disease training leans on case-based Multiple-Choice Questions (MCQs), LLMs’ emerging clinical-reasoning abilities are directly relevant [5,6]. Beyond radiology/oncology gains in pattern recognition and prediction [7], AI in infectious diseases spans AMR prediction, stewardship optimization, outbreak response, sepsis outcome modeling, and guiding empirical therapy [8,9]. A growing literature shows LLMs can answer medical-exam questions and aid decisions; ChatGPT performs competitively on United States Medical Licensing Examination (USMLE)-style items, sometimes exceeding human baselines [10,11]. However, LLMs can have issues with domain-specific knowledge especially in complex areas such as infectious diseases where nuanced knowledge of pathogen-specific treatments is crucial [12]. Research on AI in medical education has shown more mixed results, where AI excelled in general knowledge but struggled with consistency and ambiguous or context-based situations [13]. These results indicate that although AI has potential, its performance is not consistent across tasks and domains and requires specific assessments.

The literature on AI in infectious diseases is still limited especially in comparative studies of multiple LLMs on specialized tasks [11]. Most studies are based on single models or general medical knowledge with few focusing on infectious disease specific scenarios or assessing response stability over time [14]. Direct comparisons of multiple LLMs using standardized infectious disease cases remain scarce. Limited comparative evidence makes assessment of model consistency and domain knowledge in education and clinical care more difficult. Understanding model capabilities and limitations in specialty domains is increasingly important as AI use expands [15,16]. The present study aimed to compare the accuracy and 24-hour response stability of Grok AI, Claude, PubMed GPT and DeepSeek using 160 MCQs from Infectious Diseases: A Case Study Approach. The study also involves assessing overall accuracy and performance across MCQ content categories and clinical disease groups alongside exploratory pairwise comparisons between models.

Materials and methods

Study design

Quantitative, comparative analysis with a brief qualitative review and two components were assessed: (1) accuracy on 160 MCQs derived from 20 clinical case studies and (2) response stability on a 24-hour re-run using the same 160 MCQs. The study was performed from 1st July to 26th October 2025.

Data source

Case studies were adapted from Infectious Diseases: A Case Study Approach (Cho, 2020) [17].

Case template

Each vignette used a fixed schema: chief complaint; history of present illness; past medical/surgical history; family/social history; allergies; home medications; physical exam; laboratory data; and diagnostic findings. This structure provided comprehensive clinical vignettes to contextualize MCQs which simulates real-world diagnostic and treatment scenarios.

Infectious disease case distribution

The source dataset consisted of 20 case studies covering a range of infectious diseases, categorized by clinical syndrome or pathogen type to ensure diverse representation. The case distribution was: respiratory infections (25%, 5 cases), neurological/systemic infections (30%, 6 cases), skin/soft tissue infections (20%, 4 cases), musculoskeletal/cardiovascular infections (15%, 3 cases) and genitourinary infections (10%, 2 cases). This distribution enabled evaluation of LLMs across varied clinical scenarios and pathogen-specific challenges. Because the questions were derived from a single textbook and were unevenly distributed across categories, the sample may overrepresent some syndromes and question types, particularly treatment items.

MCQ dataset and classification

The final dataset comprised 160 MCQs derived from 20 case studies, with approximately 7–10 MCQs per case, testing clinical reasoning, diagnosis, treatment, and pathophysiology. Answers were expert-validated by the casebook authors. MCQs were aligned with the case categories, ensuring comprehensive assessment of infectious disease knowledge. Subgroup analyses were based on clinical disease groups and MCQ content categories rather than basic, intermediate or advanced difficulty levels.

LLM selection

Four LLMs were selected based on their performance in medical domains and availability through free public interfaces: (1) Grok AI [Grok 3, xAI, 2025 release], (2) Claude [Claude Sonnet 4, Anthropic], (3) PubMed GPT [PubMedGPT, biomedical-domain model], and (4) DeepSeek [DeepSeek-R1-0528, Free web-tier]. All models were used in accordance with each provider’s terms of service. Prior exposure to the published casebook could not be ruled out because the training data of several proprietary models were not fully disclosed. The observed incorrect responses suggest that any such exposure did not guarantee correct retrieval or application of the material.

Phase 1: Performance evaluation and analysis

The 160 MCQs were administered once to each LLM at baseline. Standardized prompts included the clinical vignette and answer options to simulate clinical decision-making. Responses were collected through the model specific access routes (S1 File). A new chat was opened for each clinical case with each model and all MCQs from the same case were presented in that chat without resetting the conversation between questions. Each platform’s default settings were used at baseline and during the 24-hour reassessment. The investigators did not change temperature, top-p or penalty settings or add controls to make responses identical. Model versions could not be kept fixed over time across all platforms. The investigators did not add system prompts or apply fine-tuning or retrieval augmentation. Accuracy was defined as the percentage of answers that matched the expert-validated answer keys. The supplementary qualitative evaluations involved two infectious disease specialists who assessed response completeness and clinical relevance. Completeness concerned whether responses fully addressed the details of the vignette. Clinical relevance concerned alignment with guidelines from the Infectious Diseases Society of America (IDSA) and the Centers for Disease Control and Prevention (CDC).

Phase 2: Stability assessment

The 160 MCQs were administered once more to each LLM 24 hours after baseline using identical prompts to assess short-term response stability. Response consistency was measured as the proportion of identical answers between baseline and the 24-hour retest. Two infectious disease specialists conducted a supplementary qualitative review of clinically important answer changes such as shifts from correct to incorrect responses. The specialists assessed the clinical implications of these changes. A new chat was opened for each clinical case during the 24-hour reassessment and baseline chats were not reused. Both phases followed the same procedure with the conversation reset between cases but not between MCQs from the same case. Clinical implications were summarized descriptively. A response change was not automatically classified as a clinically important error.

Quality control

Two blinded infectious disease specialists reviewed responses for completeness and clinical relevance, and any differences in judgment were resolved by consensus or by a third reviewer when needed. However, because the original independent rating logs were not preserved as a separate dataset, formal inter-rater agreement statistics such as Cohen’s κ could not be calculated retrospectively. Prompt phrasing was standardized after a 20-MCQ pilot study to minimize sensitivity. The same prompt structure, question set and scoring criteria were used across models which supported consistent administration and scoring.

Statistical analysis

Accuracy percentages, response change rates, and error rates were summarized for each LLM by case category and MCQ type. Overall accuracy was reported with 95% confidence intervals calculated using the normal approximation (Wald method): p ± 1.96√[p(1 − p)/n], where p is the observed proportion correct and n = 160. These intervals described uncertainty around each model’s overall accuracy and were not used as tests of differences between models. Continuity-corrected McNemar tests were used for exploratory pairwise comparisons of LLM accuracy, with a test statistic of zero when the two discordant counts were equal. Each comparison used paired correctness scores from the same MCQs. To address multiplicity, Benjamini-Hochberg false-discovery-rate adjustment was applied across all 66 pairwise McNemar comparisons and adjusted q-values were used when interpreting statistical significance. The confidence intervals and pairwise tests did not adjust for dependence among MCQs from the same clinical case. Qualitative evaluations by specialists were descriptively summarized to identify error patterns (e.g., misidentification of pathogens). All analyses were performed in R (version 4.3.1)

Results

Grok AI, Claude, PubMed GPT and DeepSeek were evaluated on 160 infectious disease (corresponding to 20 case studies) MCQs. Grok AI led with an accuracy of 69.4% (111/160 correct, 95% CI: 62.2–76.5%), followed closely by Claude at 68.1% (109/160, 95% CI: 60.9–75.3%). PubMed GPT achieved 62.5% (100/160, 95% CI: 55.0–70.0%), and DeepSeek scored 61.3% (98/160, 95% CI: 53.7–68.8%). The overall LLM model responses are summarized in Table 1.

Table 1. Overall and category-wise accuracy of four AI models (Grok AI, Claude, PubMed GPT, DeepSeek) across 160 infectious disease case-based questions.

MetricN (%)Grok-AIClaudePubMed GPTDeepSeek
Overall
Correct (N)160 (100%)11110910098
Accuracy (%)69.40%68.10%62.50%61.30%
Categories
Diagnosis25 (15.6%)20 (80.0%)17 (68.0%)13 (52.0%)15 (60.0%)
Disease Characteristics10 (6.3%)6 (60.0%)4 (40.0%)5 (50.0%)5 (50.0%)
Pathology23 (14.4%)18 (78.3%)18 (78.3%)18 (78.3%)16 (69.6%)
Symptoms13 (8.1%)9 (69.2%)11 (84.6%)9 (69.2%)8 (61.5%)
Treatment89 (55.6%)58 (65.2%)59 (66.3%)55 (61.8%)54 (60.7%)
Empiric Therapy33 (20.6%)24 (72.7%)21 (63.6%)23 (69.7%)19 (57.6%)
Definitive Therapy15 (9.4%)10 (66.7%)10 (66.7%)6 (40.0%)7 (46.7%)
Therapy Duration16 (10.0%)8 (50.0%)10 (62.5%)8 (50.0%)10 (62.5%)
Adjunctive / Supportive25 (15.6%)16 (64.0%)18 (72.0%)18 (72.0%)18 (72.0%)

Category-specific accuracy

The 160 MCQs were divided into five categories: diagnosis (25 MCQs, 15.6%), disease characteristics (10 MCQs, 6.3%), pathology (23 MCQs, 14.4%), symptoms (13 MCQs, 8.1%), and treatment (89 MCQs, 55.6%). Error rates were highest in disease characteristics and ranged from 40.0% to 60.0% across the models. Fig 1 presents the category-specific error rates for all four LLMs. Accuracy varied across models and question categories. Grok AI achieved the highest diagnostic accuracy at 80.0% (20/25), while Claude performed best in symptom-related questions at 84.6% (11/13). Grok AI, Claude, and PubMed GPT achieved identical accuracy in pathology at 78.3% (18/23). Treatment-related accuracy ranged from 60.7% to 66.3%, with Claude achieving the highest score at 66.3% (59/89). The infectious disease specialists identified incomplete treatment responses that sometimes lacked antibiotic recommendations appropriate to the clinical context. Accuracy was relatively higher in pathology and symptom-related questions than in disease characteristics and treatment. The category specific accuracy of all four models is presented in Fig 2.

Fig 1

Fig 1. Category-specific error rates (%) for DeepSeek, Grok AI, PubMed GPT and Claude on infectious disease MCQs.

Fig 2

Fig 2. Category-specific accuracy (%) for DeepSeek, Grok AI, PubMed GPT and Claude on infectious disease MCQs.

Disease- and system-specific performance

Accuracy across five disease categories, i.e., respiratory (23.8%, 38 MCQs), neurological/systemic (30%, 48 MCQs), skin/soft tissue (20.6%, 33 MCQs), musculoskeletal/cardiovascular (16.3%, 26 MCQs), and genitourinary (9.4%, 15 MCQs) varied across models. These results are summarized in Table 2. Skin/soft tissue infections achieved the highest accuracy (72.7–84.8%). Grok AI led at 84.8% (28/33). In diabetic foot infections, DeepSeek achieved 100% (8/8), Grok AI and Claude each achieved 87.5% (7/8), and PubMed GPT achieved 75.0% (6/8). Neurological/systemic infections showed consistent accuracy (68.8–72.9%). In HIV, Grok AI achieved 100% (9/9), DeepSeek 88.9% (8/9), and Claude and PubMed GPT each 77.8% (7/9). In febrile neutropenia, Grok AI, Claude, and PubMed GPT each achieved 100% (8/8), whereas DeepSeek achieved 87.5% (7/8). Genitourinary infections showed the lowest accuracy range (6.7–60.0%), but these estimates should be interpreted cautiously because this category contained only 15 questions. Respiratory infections showed moderate accuracy (57.9–71.1%). Claude excelled in community-acquired pneumonia (100%, 7/7). Interpretation of disease-level percentage differences should also remain cautious for smaller subgroups such as pyelonephritis (n = 8) and cystitis (n = 7).

Table 2. Disease- and system-specific performance of four AI models on 160 infectious disease case-based questions.

Category / DiseaseQuestions N (%)Grok-AI Correct Answers (%)Claude Correct Answers (%)PubMed GPTCorrect Answers (%)DeepSeek Correct Answers (%)
Respiratory Tract Infections
Overall38 (23.8%)26 (68.4%)27 (71.1%)22 (57.9%)23 (60.5%)
Bronchitis7 (4.4%)7 (100.0%)6 (85.7%)6 (85.7%)7 (100.0%)
Influenza9 (5.6%)6 (66.7%)5 (55.6%)5 (55.6%)5 (55.6%)
Pharyngitis8 (5.0%)3 (37.5%)5 (62.5%)3 (37.5%)4 (50.0%)
Community Acquired Pneumonia7 (4.4%)6 (85.7%)7 (100.0%)6 (85.7%)5 (71.4%)
Hospital Acquired Pneumonia7 (4.4%)4 (57.1%)4 (57.1%)2 (28.6%)2 (28.6%)
Genitourinary Tract Infections
Overall15 (9.4%)9 (60.0%)8 (53.3%)3 (20.0%)1 (6.7%)
Cystitis7 (4.4%)2 (28.6%)2 (28.6%)2 (28.6%)1 (14.3%)
Pyelonephritis8 (5.0%)7 (87.5%)6 (75.0%)1 (12.5%)0 (0.0%)
Skin and Soft Tissue Infections
Overall33 (20.6%)28 (84.8%)25 (75.8%)24 (72.7%)25 (75.8%)
Skin Soft Tissue Infection I9 (5.6%)7 (77.8%)6 (66.7%)5 (55.6%)6 (66.7%)
Skin Soft Tissue Infection II7 (4.4%)6 (85.7%)6 (85.7%)6 (85.7%)5 (71.4%)
Necrotizing Fasciitis9 (5.6%)8 (88.9%)6 (66.7%)7 (77.8%)6 (66.7%)
Diabetic Foot8 (5.0%)7 (87.5%)7 (87.5%)6 (75.0%)8 (100.0%)
Musculoskeletal and Cardiovascular Infections
Overall26 (16.3%)13 (50.0%)14 (53.8%)16 (61.5%)16 (61.5%)
Vertebral Osteomyelitis10 (6.3%)6 (60.0%)6 (60.0%)8 (80.0%)7 (70.0%)
Prosthetic Joint Infection7 (4.4%)4 (57.1%)4 (57.1%)5 (71.4%)6 (85.7%)
Infective Endocarditis9 (5.6%)3 (33.3%)4 (44.4%)3 (33.3%)3 (33.3%)
Neurological and Systemic Infections
Overall48 (30.0%)35 (72.9%)35 (72.9%)35 (72.9%)33 (68.8%)
Bacterial Meningitis8 (5.0%)5 (62.5%)6 (75.0%)6 (75.0%)4 (50.0%)
Viral Encephalitis7 (4.4%)2 (28.6%)2 (28.6%)2 (28.6%)2 (28.6%)
HIV9 (5.6%)9 (100.0%)7 (77.8%)7 (77.8%)8 (88.9%)
Sepsis7 (4.4%)7 (100.0%)7 (100.0%)6 (85.7%)7 (100.0%)
Febrile Neutropenia8 (5.0%)8 (100.0%)8 (100.0%)8 (100.0%)7 (87.5%)
Otitis Media9 (5.6%)4 (44.4%)5 (55.6%)6 (66.7%)5 (55.6%)

Pairwise model comparisons

Table 3 summarizes exploratory pairwise comparisons using McNemar’s test. While several raw p-values were nominally below 0.05, none remained statistically significant after Benjamini-Hochberg false-discovery-rate correction across all 66 pairwise comparisons (minimum q = 0.514). The differences presented should therefore be interpreted as descriptive rather than confirmatory particularly given the overlapping confidence intervals among the leading models. The differences presented should therefore be interpreted as descriptive rather than confirmatory particularly given the overlapping confidence intervals among the leading models.

Table 3. Pairwise statistical comparison of AI model performance using McNemar’s test (raw p-values, discordant pairs, and accuracy differences).

GroupNGrok AI vs ClaudeGrok AI vs PubMed GPTGrok AI vs DeepSeekClaude vs PubMed GPTClaude vs DeepSeekPubMed GPT vs DeepSeek
Overall1600.845 [disc 12/14; Δ=+1.3pp]0.082 [disc 11/22; Δ=+6.9pp]0.037 [disc 10/23; Δ=+8.1pp]0.124 [disc 9/18; Δ=+5.6pp]0.063 [disc 9/20; Δ=+6.9pp]0.831 [disc 10/12; Δ=+1.3pp]
Category
Respiratory381.000 [disc 4/3; Δ = −2.6pp]0.221 [disc 1/5; Δ=+10.5pp]0.450 [disc 2/5; Δ=+7.9pp]0.074 [disc 0/5; Δ=+13.2pp]0.289 [disc 2/6; Δ=+10.5pp]1.000 [disc 2/1; Δ = −2.6pp]
Genitourinary151.000 [disc 1/2; Δ=+6.7pp]0.077 [disc 1/7; Δ=+40.0pp]0.013 [disc 0/8; Δ=+53.3pp]0.131 [disc 1/6; Δ=+33.3pp]0.023 [disc 0/7; Δ=+46.7pp]0.480 [disc 0/2; Δ=+13.3pp]
Skin/Soft Tissue330.371 [disc 1/4; Δ=+9.1pp]0.221 [disc 1/5; Δ=+12.1pp]0.371 [disc 1/4; Δ=+9.1pp]1.000 [disc 3/4; Δ=+3.0pp]1.000 [disc 2/2; Δ=+0.0pp]1.000 [disc 4/3; Δ = −3.0pp]
Musculoskeletal/ Cardiovascular261.000 [disc 3/2; Δ = −3.8pp]0.371 [disc 4/1; Δ = −11.5pp]0.371 [disc 4/1; Δ = −11.5pp]0.617 [disc 3/1; Δ = −7.7pp]0.617 [disc 3/1; Δ = −7.7pp]1.000 [disc 1/1; Δ=+0.0pp]
Neuro/Systemic481.000 [disc 3/3; Δ=+0.0pp]1.000 [disc 4/4; Δ=+0.0pp]0.724 [disc 3/5; Δ=+4.2pp]1.000 [disc 2/2; Δ=+0.0pp]0.683 [disc 2/4; Δ=+4.2pp]0.724 [disc 3/5; Δ=+4.2pp]
Section
Diagnosis250.248 [disc 0/3; Δ=+12.0pp]0.023 [disc 0/7; Δ=+28.0pp]0.074 [disc 0/5; Δ=+20.0pp]0.221 [disc 1/5; Δ=+16.0pp]0.617 [disc 1/3; Δ=+8.0pp]0.480 [disc 2/0; Δ = −8.0pp]
Disease Characteristics100.480 [disc 0/2; Δ=+20.0pp]1.000 [disc 0/1; Δ=+10.0pp]1.000 [disc 0/1; Δ=+10.0pp]1.000 [disc 1/0; Δ = −10.0pp]1.000 [disc 2/1; Δ = −10.0pp]1.000 [disc 1/1; Δ=+0.0pp]
Pathology231.000 [disc 1/1; Δ=+0.0pp]1.000 [disc 1/1; Δ=+0.0pp]0.480 [disc 0/2; Δ=+8.7pp]1.000 [disc 2/2; Δ=+0.0pp]0.617 [disc 1/3; Δ=+8.7pp]0.617 [disc 1/3; Δ=+8.7pp]
Symptoms130.480 [disc 2/0; Δ = −15.4pp]1.000 [disc 1/1; Δ=+0.0pp]1.000 [disc 1/2; Δ=+7.7pp]0.480 [disc 0/2; Δ=+15.4pp]0.248 [disc 0/3; Δ=+23.1pp]1.000 [disc 0/1; Δ=+7.7pp]
Treatment891.000 [disc 9/8; Δ = −1.1pp]0.663 [disc 9/12; Δ=+3.4pp]0.522 [disc 9/13; Δ=+4.5pp]0.423 [disc 5/9; Δ=+4.5pp]0.302 [disc 5/10; Δ=+5.6pp]1.000 [disc 6/7; Δ=+1.1pp]

Where;

Each cell format: p-value [disc a/b; Δ = pp]. Each cell shows the raw p-value of the continuity-corrected McNemar test. Equal discordant counts give p = 1.000. The minimum Benjamini-Hochberg-adjusted q-value across the 66 comparisons was 0.514. Confidence-interval overlap was considered descriptive and was not used as a formal criterion for pairwise significance; inferential interpretation was based on McNemar testing with false-discovery-rate (FDR) adjustment. The values inside the brackets provide additional context: disc a/b = number of discordant responses, i.e., the number of questions where Model A was wrong but Model B was right (a), versus the number where Model A was right but Model B was wrong (b). Δ = x pp = difference in accuracy within the stated group between the two models, expressed in percentage points (pp).

Thematic error distribution

All models had 100% error rates in multi-select questions (3/3) indicating difficulty with complex answer formats. All three multi-select items were scored as incorrect across models. This pattern may reflect both reasoning difficulty and format sensitivity, but given the very small number of such items (n = 3), it should be interpreted cautiously. High errors occurred in therapy duration (40.0–53.3%, 6–8/15) and definitive therapy (0.0–60.0%, 0–3/5) particularly for PubMed GPT and DeepSeek. Diagnosis-related subthemes, such as laboratory/microbiology (36.4–45.5%, 4–5/11) and imaging/procedures (50.0–62.5%, 4–5/8), showed moderate errors. No errors occurred in assessment: severity/classification (0%, 0/2) across all models, suggesting strength in straightforward evaluations. These error patterns indicate that current performance remains uneven across subthemes and does not support describing any model as dependable for infectious disease teaching. Supplementary Table 1 summarizes the thematic distribution of incorrect responses across subthemes.

Response stability in 24-hour re-run

Table 4 summarizes 24-hour response stability results across the four models. Response change rates ranged from 6.3% (Grok AI, 10/160) to 15.0% (PubMed GPT, 24/160). PubMed GPT showed the highest response change rates in diagnosis (24.0%, 6/25) and treatment (15.7%, 14/89). Grok AI showed no answer changes in disease characteristics or pathology. Specialist review identified clinically important changes involving inappropriate antibiotic recommendations. Such changes could lead to unsuitable treatment choices if accepted without clinical review. These observations concern potential clinical consequences rather than measured patient outcomes. Response change rates describe all changed answers and do not quantify the frequency of clinically important errors. The reported directions of answer changes during the 24-hour reassessment are presented in Figure 3.

Table 4. Stability of AI model responses upon re-validation (re-run) of 160 infectious disease case-based questions.

CategoryNGrok AIChanges n/N (%)ClaudeChanges n/N (%)PubMed GPTChanges n/N (%)DeepSeekChanges n/N (%)
Diagnosis252/25 (8.0%)1/25 (4.0%)6/25 (24.0%)4/25 (16.0%)
Disease characteristics100/10 (0.0%)1/10 (10.0%)0/10 (0.0%)0/10 (0.0%)
Pathology230/23 (0.0%)1/23 (4.3%)2/23 (8.7%)2/23 (8.7%)
Symptoms131/13 (7.7%)0/13 (0.0%)2/13 (15.4%)2/13 (15.4%)
Treatment897/89 (7.9%)10/89 (11.2%)14/89 (15.7%)8/89 (9.0%)
Overall16010/160 (6.3%)13/160 (8.1%)24/160 (15.0%)16/160 (10.0%)

Where; Values show changed answers divided by the number of questions in each category. Response changes are not counts of clinically important errors; clinical implications are described separately in the Results.

Fig 3

Fig 3. Distribution of changed answers in validation re-run across AI models: Incorrect→Correct vs Correct→Incorrect, with Change Rates and Net Δ Correct.

Discussion

This study evaluated the performance and stability of four LLMs i.e., Grok AI, Claude, PubMed GPT, and DeepSeek on 160 infectious disease case-based MCQs addressing a gap in comparative AI assessments for specialized medical domains. Grok AI showed the highest observed overall accuracy at 69.4% followed by Claude at 68.1%, PubMed GPT at 62.5%, and DeepSeek at 61.3% with only modest numerical differences between models. However, none of the pairwise comparisons remained statistically significant after Benjamini-Hochberg false-discovery-rate correction across all 66 McNemar comparisons. Category-specific trends showed relative strengths in symptoms and pathology (up to 84.6% and 78.3%) but more limited performance in treatment-related items (60.7–66.3%), while 24-hour response stability varied, with Grok AI showing the lowest change rate (6.3%).

The performance of LLMs in this study showed both similarities and differences compared with previous research on AI in medical application with overall accuracy ranged from 61.3% to 69.4%. Kung et al. (2023) reported that ChatGPT performed at or near the USMLE passing threshold [10]. Differences in question content and study methods should be considered when comparing these findings. Singhal et al. (2023) demonstrated that LLMs can encode substantial clinical knowledge [6]. However, treatment accuracy in the present study ranged from 60.7% to 66.3%, while accuracy in genitourinary infections ranged from 6.7% to 60.0%. These findings are consistent with the challenges in infectious disease consultations described by Schwartz et al. (2024) [12]. Goh et al. (2024) also investigated the influence of LLMs on diagnostic reasoning [18]. In the present study, Claude achieved the highest accuracy in symptom-related questions at 84.6%. Grok AI, Claude, and PubMed GPT each achieved 78.3% accuracy in pathology. Accuracy ranged from 77.8% to 100% for HIV and from 87.5% to 100.0% for febrile neutropenia. Respiratory infection accuracy ranged from 57.9% to 71.1%. Peiffer-Smadja et al. (2020) examined the potential of machine learning for clinical decision support in infectious diseases [8]. The variation in accuracy across clinical categories highlights the need for further evaluation of LLMs in infectious disease management. This is particularly relevant to antimicrobial stewardship and the broader challenges of antimicrobial resistance discussed by O’Neill (2016) [3]. The study did not include physicians or trainees as a comparison group so findings do not establish human equivalent performance or readiness for clinical use.

Exploratory pairwise comparisons showed numerical differences between models in overall accuracy and genitourinary infections. However, none of these differences remained statistically significant after Benjamini-Hochberg false-discovery-rate adjustment across all 66 McNemar comparisons. These findings should therefore be interpreted as descriptive differences within the dataset rather than evidence of model superiority. Grok AI achieved higher accuracy than DeepSeek in genitourinary infections (raw p = 0.013, q = 0.514, Δ = +53.3 percentage points). Claude also showed higher accuracy than DeepSeek in this category (raw p = 0.023, Δ = +46.7 percentage points). Neither difference remained statistically significant after adjustment. DeepSeek recorded the lowest accuracy in genitourinary infections at 6.7%. De Vito et al. (2025) evaluated standard ChatGPT-4 and a trained version using bacterial infection questions and clinical cases. Approximately 70% of true/false responses were correct across the evaluated groups. Both model versions also showed limitations in antibiotic selection during clinical case assessments [19]. Błecha et al. (2025) reported 85/119 correct answers for GPT-4o and 88/119 for DeepSeek-R1 on infectious disease specialty examination MCQs, corresponding to 71.4% and 73.9%, respectively [20]. Differences in models and assessment methods limit direct comparisons across studies. These findings suggest that model performance may vary across clinical scenarios and support the need for further evaluation using diverse infectious disease cases.

Grok AI had higher observed diagnostic accuracy than PubMed GPT (raw p = 0.023, q = 0.514, Δ = +28.0 percentage points). The difference did not remain significant after adjustment and should be interpreted as specific to this dataset rather than evidence of general model superiority. Goh et al. (2024) reported a median diagnostic reasoning score of 92% for GPT-4 alone [18]. This score is not directly comparable with accuracy on the present MCQs. Grok AI and Claude showed no significant overall accuracy difference (raw p = 0.845, q = 1.000, Δ = +1.3 percentage points). Rojas-Carabali et al. (2024) reported 60% diagnostic accuracy for ChatGPT compared with 60–92% among uveitis-trained ophthalmologists [21]. The present study did not include a human comparison group and does not establish human-equivalent performance or dependable teaching performance.

The error analysis identified difficulties with question format and treatment-related decisions. All four LLMs answered the three explicitly identified multi-select questions incorrectly. This finding may reflect sensitivity to the response format as well as limitations in clinical reasoning. However, the small number of multi-select questions limits further interpretation. Errors in therapy-duration questions ranged from 40.0% to 53.3%. The infectious disease specialists also identified inappropriate or incomplete antibiotic recommendations in treatment-related responses. These findings raise concerns about the reliability of LLM-generated treatment recommendations. Abd-Alrazaq et al. (2023) similarly highlighted the challenges of using LLMs for context-dependent tasks in medical education [13].

A separate pattern of errors was observed in questions involving disease characteristics and diagnostic interpretation. Error rates ranged from 40.0% to 60.0% for disease-characteristics questions and from 36.4% to 45.5% for laboratory and microbiology questions. These errors included difficulties in interpreting disease progression and identifying pathogens in clinical cases. Thirunavukarasu et al. (2023) also discussed the limitations of LLMs in context-dependent medical tasks [22]. Croskerry (2003) described the role of cognitive errors in clinical diagnosis [23]. Kim et al. (2025) further examined the influence of cognitive biases on LLM reasoning [24]. Although these studies provide relevant context, the present study did not directly investigate the mechanisms underlying incorrect model responses. These findings highlight the need for further evaluation of diagnostic reasoning and interpretation of clinical information in infectious disease applications.

The 24-hour reassessment in the present study revealed differences in response stability among the four LLMs. Grok AI showed the lowest response-change rate at 6.3% (10/160 questions), while PubMed GPT had the highest rate at 15.0% (24/160 questions). PubMed GPT changed 24.0% of diagnosis responses and 15.7% of treatment responses. These percentages describe answer changes rather than the frequency of clinically important errors. The specialists’ observations of inappropriate antibiotic recommendations raise concern about unsuitable treatment choices if responses are adopted without clinical review. This 24-hour interval was chosen deliberately to evaluate near-term reproducibility while reducing the risk of confounding from undocumented backend model or version changes over longer intervals. Greater response stability for Grok AI during this retest does not establish clinical reliability because a consistently incorrect answer would also be stable. The qualitative concerns support clinical validation and clinician review before reliance on generated recommendations. Such safeguards are relevant to calls for stronger evidence in infectious disease applications [14] and regulatory oversight of healthcare LLMs [25]. The broader limitations of LLMs in medical practice also warrant caution [22]. Accordingly, these findings should be interpreted as evidence of short-term stability only and should not be extrapolated to week-to-week or month-to-month performance.

This study compared four LLMs using 160 validated infectious disease MCQs from a clinical casebook. The evaluation across categories like diagnosis and treatment offered insights into model performance and stability. Accuracy and response-change rates were summarized descriptively. McNemar’s test compared paired accuracy outcomes between models. However, the study has limitations. The dataset was drawn from a single textbook and contained disproportionately more treatment questions. The absence of accuracy results by MCQ difficulty limits conclusions about model performance across difficulty levels. No human comparators were included and possible overlap with undisclosed model training data could not be assessed. Default temperature, top-p and penalty settings were not standardized across platforms. Potential effects on accuracy and response stability were not assessed separately so performance differences cannot be attributed solely to model capability. MCQs belonging to the same clinical case were presented within a single conversation. Earlier responses may have included a diagnosis or identified a pathogen or provided a treatment rationale. This information could have influenced subsequent answers and changed the effective difficulty of later questions. Accuracy and 24-hour response stability should therefore be interpreted as findings from case-based conversational testing rather than independent MCQ administration. The item-level confidence intervals and exploratory McNemar tests did not account for dependence between questions from the same clinical case. Additionally, testing LLMs in a controlled setting rather than real-time clinical environments limits insights into their practical use. Stability was assessed only over a 24-hour interval. This short interval was intended to reduce the potential influence of backend model changes but does not establish longer-term stability. Future studies should prospectively retain independent reviewer ratings so that formal inter-rater agreement statistics can be reported, while also incorporating broader and more representative case sets and longer follow-up intervals.

Conclusion

The present findings suggest possible adjunctive value of LLMs for structured case-based infectious disease learning, with Grok AI showing the highest observed performance in this dataset and relatively greater stability in the 24-hour retest. However, the observed accuracy range remained moderate, and these results do not support claims that any model currently provides dependable teaching performance or clinical readiness. Medical students may use these tools for self-assessment on infectious disease cases and to receive immediate feedback on their clinical reasoning. However, the models struggle with nuanced tasks such as picking the right antibiotic or dealing with less common infections which means that they're not yet ready to inform real-world clinical decisions without careful oversight. To make LLMs more useful, future research should test them with a broader range of cases, drawing from a wider range of sources to reflect the complexity of the real world. Evaluation in real clinical settings, including inpatient care and outbreak-related scenarios, may better characterize model performance under applied conditions. Fine-tuning LLMs with detailed infectious disease data think comprehensive pathogen profiles or up-to-date treatment guidelines could boost their accuracy and consistency. By addressing these gaps, we can develop smarter, more reliable AI tools to support doctors and educators in tackling the challenges of infectious diseases, ultimately improving patient care in a world where AMR and complex cases demand precision.

References

  1. Antimicrobial Resistance Collaborators. Global burden of bacterial antimicrobial resistance in 2019: A systematic analysis. Lancet. 2022;399(10325):629–55. doi: 10.1016/S0140-6736(21)02724-0
  2. Spellberg B, Guidos R, Gilbert D, Bradley J, Boucher HW, Scheld WM, et al. The epidemic of antibiotic-resistant infections: A call to action for the medical community from the Infectious Diseases Society of America. Clin Infect Dis. 2008;46(2):155–64. doi: 10.1086/524891
  3. O’Neill J. Tackling drug-resistant infections globally: Final report and recommendations. 2016.
  4. Topol EJ. High-performance medicine: the convergence of human and artificial intelligence. Nat Med. 2019;25(1):44–56. doi: 10.1038/s41591-018-0300-7
  5. Thistlethwaite JE, Davies D, Ekeocha S, Kidd JM, MacDougall C, Matthews P, et al. The effectiveness of case-based learning in health professional education. A BEME systematic review: BEME Guide No. 23. Medical teacher. 2012;34(6):e421–e44.
  6. Singhal K, Azizi S, Tu T, Mahdavi SS, Wei J, Chung HW, et al. Large language models encode clinical knowledge. Nature. 2023;620(7972):172–80. doi: 10.1038/s41586-023-06291-2
  7. Hosny A, Parmar C, Quackenbush J, Schwartz LH, Aerts HJWL. Artificial intelligence in radiology. Nat Rev Cancer. 2018;18(8):500–10. doi: 10.1038/s41568-018-0016-5
  8. Peiffer-Smadja N, Rawson TM, Ahmad R, Buchard A, Georgiou P, Lescure F-X, et al. Machine learning for clinical decision support in infectious diseases: a narrative review of current applications. Clin Microbiol Infect. 2020;26(5):584–95. doi: 10.1016/j.cmi.2019.09.009
  9. Fleuren LM, Klausch TLT, Zwager CL, Schoonmade LJ, Guo T, Roggeveen LF, et al. Machine learning for the prediction of sepsis: A systematic review and meta-analysis of diagnostic test accuracy. Intensive Care Med. 2020;46(3):383–400. doi: 10.1007/s00134-019-05872-y
  10. Kung TH, Cheatham M, Medenilla A, Sillos C, De Leon L, Elepaño C, et al. Performance of ChatGPT on USMLE: Potential for AI-assisted medical education using large language models. PLOS Digit Health. 2023;2(2):e0000198. doi: 10.1371/journal.pdig.0000198
  11. Gilson A, Safranek CW, Huang T, Socrates V, Chi L, Taylor RA, et al. How does ChatGPT Perform on the United States Medical Licensing Examination (USMLE)? The implications of large language models for medical education and knowledge assessment. JMIR Med Educ. 2023;9:e45312. doi: 10.2196/45312
  12. Schwartz IS, Link KE, Daneshjou R, Cortés-Penfield N. Black box warning: Large language models and the future of infectious diseases consultation. Clin Infect Dis. 2024;78(4):860–6. doi: 10.1093/cid/ciad633
  13. Abd-Alrazaq A, AlSaad R, Alhuwail D, Ahmed A, Healy PM, Latifi S, et al. Large language models in medical education: Opportunities, challenges, and future directions. JMIR Med Educ. 2023;9:e48291. doi: 10.2196/48291
  14. Gao C, Satheakeerthy S, Guo C, Pradhan A, Booth AEC, Chan WO, et al. Large language models for infectious diseases require evidence generation and regulation. Intern Med J. 2025;55(7):1198–202. doi: 10.1111/imj.70072
  15. Zhang D, Shi Y, Zhang J, Liu J, Wu G, Zhang J, et al. Systematically investigating and identifying unmodified bacteriocins in the human gut microbiome. bioRxiv. 2024;2024:15.603639.
  16. Rajpurkar P, Chen E, Banerjee O, Topol EJ. AI in health and medicine. Nat Med. 2022;28(1):31–8. doi: 10.1038/s41591-021-01614-0
  17. Cho J. Infectious diseases case study approach. McGraw Hill Professional; 2020.
  18. Goh E, Gallo R, Hom J, Strong E, Weng Y, Kerman H, et al. Large language model influence on diagnostic reasoning: A randomized clinical trial. JAMA Netw Open. 2024;7(10):e2440969. doi: 10.1001/jamanetworkopen.2024.40969
  19. De Vito A, Geremia N, Marino A, Bavaro DF, Caruana G, Meschiari M, et al. Assessing ChatGPT’s theoretical knowledge and prescriptive accuracy in bacterial infections: A comparative study with infectious diseases residents and specialists. Infection. 2025;53(3):873–81. doi: 10.1007/s15010-024-02350-6
  20. Błecha Z, Jasiński D, Jaworski A, Latkowska A, Jaworski W, Sysło O, et al. Performance of GPT-4o and DeepSeek-R1 in the polish infectious diseases specialty exam. Cureus. 2025;17(4):e82870. doi: 10.7759/cureus.82870
  21. Rojas-Carabali W, Cifuentes-González C, Wei X, Putera I, Sen A, Thng ZX, et al. Evaluating the diagnostic accuracy and management recommendations of ChatGPT in Uveitis. Ocul Immunol Inflamm. 2024;32(8):1526–31. doi: 10.1080/09273948.2023.2253471
  22. Thirunavukarasu AJ, Ting DSJ, Elangovan K, Gutierrez L, Tan TF, Ting DSW. Large language models in medicine. Nat Med. 2023;29(8):1930–40. doi: 10.1038/s41591-023-02448-8
  23. Croskerry P. The importance of cognitive errors in diagnosis and strategies to minimize them. Acad Med. 2003;78(8):775–80. doi: 10.1097/00001888-200308000-00003
  24. Kim SH, Ziegelmayer S, Busch F, Mertens CJ, Keicher M, Adams LC. Llm reasoning does not protect against clinical cognitive biases-an evaluation using biasmedqa. medRxiv. 2025;2025:22.25330078.
  25. Meskó B, Topol EJ. The imperative for regulatory oversight of large language models (or generative AI) in healthcare. NPJ Digit Med. 2023;6(1):120. doi: 10.1038/s41746-023-00873-0