Skip to main content
AMIA Summits on Translational Science Proceedings logoLink to AMIA Summits on Translational Science Proceedings
. 2026 Jun 1;2026:408–417.

DynamiCare: A Dynamic Multi-Agent Framework for Interactive and Open-Ended Medical Decision-Making

Tianqi Shang 1, Weiqing He 1, Charles Zheng 1, Lingyao Li 2, Li Shen 1,†, Bingxin Zhao 1,†
PMCID: PMC13274293  PMID: 42317840

Abstract

The rise of Large Language Models (LLMs) has enabled the development of specialized AI agents with domain-specific reasoning and interaction capabilities, particularly in healthcare. While recent frameworks simulate medical decision-making, they largely focus on single-turn tasks where a doctor agent receives full case information upfront—diverging from the real-world diagnostic process, which is inherently uncertain, interactive, and iterative. In this paper, we introduce MIMIC-Patient, a structured dataset built from the MIMIC-III electronic health records (EHRs), designed to support dynamic, patient-level simulations. Building on this, we propose DynamiCare, a novel dynamic multi-agent framework that models clinical diagnosis as a multi-round, interactive loop, where a team of specialist agents iteratively queries the patient system, integrates new information, and dynamically adapts its composition and strategy. We demonstrate the feasibility and effectiveness of Dynami-Care through extensive experiments, establishing the first benchmark for dynamic clinical decision-making with LLM-powered agents. Our code is available at https://github.com/THEGREATICE/DynamiCare.

Introduction

The advent of Large Language Models (LLMs) has laid the foundation for developing advanced AI-driven methodologies that support complex reasoning and interactive decision-making in the healthcare domain1–11. Recent works have leveraged LLMs to simulate medical decision-making12–17, complemented by the creation of diverse datasets18–21 designed to mimic real-world medical scenarios and facilitate systematic evaluations.

However, most current AI agents focus on single-turn question-answering tasks12,17,22–26. In these scenarios, an LLM-based agent often receives a complete description of an illness at the beginning of the study and is expected to immediately provide a diagnosis. This approach deviates from real clinical practice in two significant ways. First, the “question” data does not reflect the real diagnostic process, where patients rarely present complete conditions at the start. Second, medical diagnosis involves interactive and iterative exchanges, where healthcare providers progressively elicit relevant details (e.g., symptoms, history, and lab test results) through multiple rounds of interactions.

While some recent studies13,27,28 have explored interactive diagnostic frameworks with incomplete initial information, they often lack true dynamism—the ability to adapt the composition and behavior of the doctor agent team based on newly acquired information. In contrast, real clinical environments necessitate continuous, context-aware adjustments, including modifications to the healthcare team structure in response to evolving patient needs and clinical complexity.

To address these limitations, we propose MIMIC-Patient (the left part of Figure 1), a patient-level dataset that compiles diverse medical information for each patient based on the MIMIC-III Clinical database29, and DynamiCare (the right part of Figure 1), a dynamic, interactive framework for simulating clinical decision-making. DynamiCare consists of a Patient System and a Doctor System, operating in a six-step loop: 1) Initialization: create a visit log using basic patient information from MIMIC-Patient; 2) Team Formation: a central agent re- cruits specialist agents based on the visit log; 3) Specialist Response: the team generates a diagnosis or follow-up question; 4) Patient Interaction: the Patient System answers the question using the patient record; 5) Log Update: the Q&A pair is added to the visit log; 6) Dynamic Adjustment: the central agent updates the team based on the new information, and the loop continues until a diagnosis is made or reaches the interaction round limit. Our contributions are summarized as follows:

  • We establish the MIMIC-Patient benchmark, a patient-centric benchmark dataset derived from MIMIC-III, which structures diverse medical information to support interactive and open-ended decision-making tasks.

  • We introduce DynamiCare, a novel multi-agent framework to model clinical reasoning as a dynamic, inter-active process that can adapt its structure and strategy based on newly acquired patient information.

  • We conduct extensive experiments using DynamiCare on MIMIC-Patient, establishing a benchmark that set a foundation for future research on dynamic medical agents.

Figure 1:

Figure 1:

Illustration of the MIMIC-Patient dataset and DynamiCare framework. Left: the construction process of MIMIC-Patient. Right: The DynamiCare framework, which consists of a Patient System and a Doctor System, operating in a six-step loop: 1) initialization; 2) team formation; 3) specialist response; 4) patient interaction; 5) log update; 6) dynamic adjustment.

Related Works

Clinical Dataset. Recent works30–33 have produced a wide range of benchmark datasets to evaluate the performance of LLMs in the clinical domain. Notable examples include MedQA19, PubMedQA18, and MedMCQA20, which feature question-answer pairs derived from medical licensing exams or biomedical literature. Additionally, several works34–36 have explored electronic health record (EHR) datasets. For example, Kweon et al. (2024) introduced EHRnoteQA, a QA dataset derived from discharge summaries in MIMIC-IV37. Although valuable for assessing the factual medical knowledge of LLMs, these datasets only include pre-defined questions and answers without the ability to support the dynamic, interactive modeling of real clinical encounters. To address this, Li et al. (2024b) proposed MedIQ, an interactive benchmark for medical evaluation. However, the construction is based on MedQA and Craft-MD38, which lacks the complexity of real-world clinical scenarios. In practice, clinical tasks often involve extracting, synthesizing, and reasoning over heterogeneous patient information—such as clinical notes, laboratory results, and timelines of care—which these benchmarks do not often capture.

LLM Agents in Medical Decision Making. A growing body of research5,39 has proposed frameworks that lever-age single or multiple LLM agents to support medical decision-making. These approaches typically rely on prompt engineering to guide LLMs in completing clinical tasks. Notable paradigms include role-playing22,23, de-bate24,40, voting25, multi-disciplinary collaboration17, and group discussion26. While these agentic frameworks have demonstrated performance improvements in specific settings, they are often built around a fixed and pre-defined set of agents, making them inherently static. To address this rigidity, Kim et al.12 introduced MDAgents, a more adaptive framework that employs a complexity assessment to determine the appropriate number of agents for a given task. However, MDAgents can fall short of capturing the dynamic nature of real-world clinical work-flows, where the composition and involvement of specialist agents should evolve over the course of multi-turn interactions between clinicians and patients.

Methods

In this section, we describe the construction of the MIMIC-Patient datasets and present the details of the dynamic multi-agent framework, DynamiCare.

Dataset: MIMIC-Patient

We build MIMIC-Patient, a dataset derived from the MIMIC-III database29. MIMIC-III is a large, publicly available dataset containing de-identified clinical data from over 40,000 patients admitted to critical care units at the Beth Israel Deaconess Medical Center between 2001 and 2012. MIMIC-III provides comprehensive and abundant patient information from admission to discharge, making it especially suitable for our task of predicting diagnoses based on patient data. However, it can be extremely challenging for our dynamic scenarios given the inherent complexity of clinical records. For instance, individual patient admission may include hundreds of diagnoses—far exceeding the input capacity of current LLMs. Moreover, the clinical data are distributed across multiple relational tables, complicating effective integration and interpretation. To address these challenges, we adopt a two-stage data processing approach (the left part of Figure 1) to construct a more structured and analysis-friendly dataset called MIMIC-Patient.

Data Selection. MIMIC-III contains 58,976 hospital admissions, each representing a unique hospital stay of a single patient with associated clinical data. We begin by selecting admissions that met all three criteria:

  • The admission has fewer than five diagnosed diseases. In the MIMIC-III dataset, some admissions have a large number of multimorbidities, which can introduce excessive complexity and noise.

  • The admission is neither for a newborn nor deceased. Newborns often follow different clinical pathways and have distinct data structures, while deceased patients may have incomplete or atypical medical records that could bias the results.

  • The admission has sufficient clinical data available, i.e., at least containing all structured data and a discharge summary, to ensure that both the doctor and patient agents have access to meaningful and informative input for decision-making.

After filtering for valid admissions, 2,597 remained. We then randomly select 500 admissions from this subset. Since each admission corresponds to only one specific patient, we refer to our dataset as patient-level and use the term “patient” interchangeably with the corresponding admission in the following descriptions.

Clinical Data Merging. In the MIMIC-III database, clinical data are distributed across multiple tables and have varying structures. To centralize and structure this information, we extract and merge the relevant data for each patient into a single JSON file. As shown in Table 1, we categorize the data into three distinct types with different extraction strategies:

  • Structured Data: These represent tabular records where each entry is explicitly labeled and contains a single data point, making it straightforward to match and integrate the entries based on patient IDs.

  • Semi-Structured Data: These tables contain textual reports with relatively fixed structures and consistent section headers. Therefore, we use rule-based methods to segment the full text into smaller sections identified by known headers, such as Impression and Findings in radiology reports.

  • Unstructured Data: These texts are longer, more complex documents, which typically lack consistent headers across files. Thus, we employ GPT-441 to parse the content effectively and generate structured JSON representations.

Table 1:

Clinical information included in the patient JSON.

Data Type Clinical Info
Structured Data Admission Info
Demographics
Diagnoses
Prescription
Procedure†
Chart Data
Lab Data
Semi-Structured Text ECG reports†
Echo reports†
Radiology reports
Unstructured Text Discharge Summary

As a result, the final dataset comprises 500 JSON files—one for each patient visit—containing a variety of clinical records, from demographic details to lab results. Figure 2 illustrates the richness and variability of clinical information for each patient case. Moreover, the variation in length of stay highlights how the volume of information naturally scales with the duration of hospitalization.

Figure 2:

Figure 2:

Distribution of structured patient JSON length (in characters) and corresponding hospital length of stay (in days) for the MIMIC-Patient dataset.

Multi-agent framework: DynamiCare

To enable interactive medical decision-making, DynamiCare (the right part of Figure 1) is designed to comprise two components: the Patient System and the Doctor System. At a high level, the Patient System responds to queries from the Doctor System, which in turn updates its strategy based on the received information. In this section, we first introduce the Patient System, followed by the Doctor System. We then describe the overall workflow and explain how DynamiCare facilitates dynamic interactions.

Patient System. To enable interactive querying of patient information by a doctor agent (e.g., an LLM), we build a Patient System capable of responding to natural language questions using structured patient records. Importantly, doctor queries vary in complexity—some map directly to specific data fields, while others require interpretation and integration across multiple record types. In order to ensure the response reliability and minimize LLM hallucinations, we propose a two-stage answering process (the green part of Figure 1) that combines rule-based keyword matching with fallback LLM inference.

For each query, the Patient System first extracts relevant keywords using regular expression-based tokenization. These keywords are then mapped to specific sections of the patient’s structured JSON file—such as demographics, prescriptions, or lab results—based on a predefined keyword-to-section mapping dictionary. Once the relevant section is located, the Patient System retrieves the corresponding information and uses GPT-4.142 to formulate a response in the patient’s voice. By providing only the minimal subset of data needed to generate each answer, we significantly reduce both computational overhead and the likelihood of hallucinations43–45 caused by irrelevant or excessive context.

To handle cases where no section is matched or the retrieved information is ambiguous or missing, the system falls back to direct LLM inference. In such scenarios, the patient JSON (de-identified) is provided as context to GPT-4.1, which then generates an answer based on the broader clinical context. The Patient System is explicitly prompted to respond with “I don’t know” when encountering a query for which no information is available in the available case data. The generated answer is then passed to the Doctor System to support real-time adaptation of its composition and strategy.

Doctor System. Previous studies12,46–48 have shown that flexible adaptation of specialist teams to varying patient conditions is both effective and promising for multi-agent system design. Moreover, as the doctor agent actively guides the interaction to gather additional information, the patient’s condition representation may evolve. This highlights the need for a dynamic Doctor System capable of adjusting its composition in real time. There are two main components in the Doctor System.

  • Dynamic Specialist Team. In DynamiCare, the Doctor System (the yellow section of Figure 1) incorporates a Central Agent that acts as a senior medical coordinator, dynamically managing a Specialist Team based on the evolving context of each patient case. The Central Agent continuously reviews the Visit Log and decides whether to update the composition of the Specialist Team. This dynamic process ensures that the team remains aligned with the most current information, adding or removing specialists as needed.

  • Collaborative Decision Protocols. For simpler cases, the Central Agent may assign a single specialist, while more complex scenarios may involve multiple specialists with complementary expertise. The specialist team then decides whether to issue a diagnosis or request additional information. In the single-specialist setting, the agent analyzes the visit log, evaluates diagnostic confidence, and either provides a diagnosis (if confidence is high) or asks a follow-up question (if confidence is low). In the multi-specialist setting, each agent inde- pendently proposes a response (diagnosis or question) along with a confidence score. Specialists then vote on each other’s proposals; the first response to meet a predefined agreement threshold is accepted. If no consen- sus is reached, the response with the highest confidence is selected. This adaptable framework ensures that diagnostic reasoning is both context-aware and continuously updated in response to new patient information.

Dynamic Interaction Workflow. The interaction between the Patient and Doctor Systems follows a dynamic, iterative workflow that enables real-time information gathering and diagnosis. Figure 3 gives a detailed illustration with a concrete example for this workflow. The process proceeds in six steps:

  1. Initialize Visit Log: A visit log is created using the patient’s basic information, which contains demographics, basic relevant symptoms, and the reason for the visit.

  2. Specialist Team Formation: The Central Agent receives the initial visit log. Based on this input, the Central Agent initializes an appropriate Specialist Team tailored to the current case complexity.

  3. Specialist Response Generation: The Specialist Team analyzes the current visit log and, following the protocols described above, generates a response. This response can be either a follow-up question or a diagnostic conclusion.

  4. Patient Interaction: If the response is a diagnosis, it is treated as the final decision, and the interaction ends. If the response is a question, the Patient System is queried to retrieve an appropriate answer.

  5. Update Visit Log: The current question-answer pair is appended to the visit log to maintain a comprehensive record of the evolving case.

  6. Dynamic Adjustment: The Central Agent re-evaluates the current visit log and the performance of the existing specialist team. Based on new information or shifting diagnostic needs, it may revise the team composition before returning to Step 2 for next-round analysis.

Figure 3:

Figure 3:

Illustrative example of DynamiCare with a multi-specialist team. The figure presents three rounds of interaction, where in each round the specialist team poses a question to the patient. In Rounds 1 and 2, the team consists of a neurologist and a neurosurgeon. Notably, in Round 3, the Central Agent recruits an additional specialist—a radiologist—to assist with analyzing the patient’s CT scans.

Additionally, to ensure termination, a manual stopping criterion is defined: if the system reaches a predefined maximum number of interaction rounds without a conclusive diagnosis, the current specialist team is prompted to generate the best possible diagnosis with the available information, thereby concluding the session.

Experiments and Results

Experimental Setup

To verify DynamiCare’s performance, we evaluate both our proposed Doctor System and its single-agent variant on the MIMIC-Patient dataset (500 patient records) using GPT-4.1 and GPT-4o-mini. In the single-agent setting, the multi-agent specialist team is disabled, and only one agent performs diagnostics per round. For the Patient System, GPT-4.1 is used for answer generation. Max interaction round is set to 10. For comparison with external baselines, we test our model on the MEDIQ benchmark13, using all 140 samples from iCraftMD and 200 randomly selected cases from iMedQA, following MEDIQ’s interactive multiple-choice setting and using GPT-4.1 for all runs.

Effectiveness of the multi-agent framework

Table 2 presents the performance of our proposed Doctor System, including its multi- and single-agent variants (with the specialist team fixed to the single-agent version). The backbone models use GPT-4.1 and GPT-4o-mini. The results demonstrate the effectiveness of the dynamic multi-agent setting across multiple metrics and model variants.

Table 2:

Performance comparison between the proposed multi-agent Doctor System and a single-agent variant across two LLMs (GPT-4.1 and GPT-4o-mini). Metrics include Hit@K, Rec@K, and Ave-Q (average number of questions asked).

Agent GPT Version Hit@5 Hit@10 Rec@5 Rec@10 Ave-Q
Multi GPT-4.1 63.4 71.6 43.2 58.8 7.55
GPT-4o-mini 51.4 58.6 30.2 43.2 2.78
Single GPT-4.1 58.0 63.2 31.0 41.7 3.83
GPT-4o-mini 47.8 54.8 24.9 31.8 0.74

Evaluation method. We evaluate the results using the top-k hit rate (Hit@5, Hit@10) † and recall (Rec@5, Rec@10) †, which measure the system’s ability to rank correct diagnoses among its predictions. As the doctor agent is prompted to return a list of up to 10 most likely diagnoses, and the ground truth typically includes between 1 to 5 correct labels, Hit@K metrics help assess how well the system captures correct diagnoses within a ranked list, whereas Rec@K offers a perspective on how many ground truth diagnoses are successfully identified.

To standardize diagnosis terminology and enable consistent comparison, we map all predicted diagnoses to ICD-9 codes using the BioPortal API49. We consider a prediction correct if the first three digits of the predicted ICD-9 code match any of the ground truth codes. The first three digits of an ICD-9 code indicate the general diagnosis or condition (e.g., pneumonia, diabetes, hypertension), which reflects a clinically meaningful level of accuracy and mitigates discrepancies caused by minor differences in clinical terminology or code specificity.50,51. It is worth noting that, even under this relatively relaxed criterion, the classification task remains extremely challenging, with over 1,000 possible 3-digit ICD-9 code groups in the prediction space.

Multi-agent system improves the performance. From Table 2, we observe that the proposed dynamic multi-agent system consistently outperforms the single-agent variant across all metrics and LLM models. These improvements indicate that dynamically adjusting the specialist team based on patient complexity—as implemented in the multi- agent setting—enhances diagnostic performance, especially in our setting involving open-ended medical diagnosis with rich and often ambiguous patient information.

Additionally, model quality plays a significant role. GPT-4.1 consistently outperforms GPT-4o-mini across all settings, emphasizing the importance of a strong language model backbone in achieving accurate medical reasoning. This is further supported by Ave-Q, the average number of questions asked per patient case, where we observe more questions asked with stronger models and more complex settings, reflecting a more interactive diagnostic process.

Cross Comparison with MEDIQ

To further validate the effectiveness of our dynamic multi-agent setting, we conduct additional evaluations on the MEDIQ interactive benchmark13, which includes two interactive QA tasks: iMedQA and iCraftMD. These tasks are framed as multiple-choice question answering (MCQ), which is relatively simpler than our open-ended diagnosis generation task. For evaluation, we use the full iCraftMD dataset (140 samples) and randomly select 200 cases from iMedQA. Prompt templates for our Doctor System are appropriately adapted to match the multiple- choice format, all experiments use GPT-4.1. It is worth noting that few existing approaches are sufficiently similar to ours to serve as effective baselines; indeed, MEDIQ is the only other interactive multi-turn medical framework at the time of our study. As shown in Table 3, our Doctor System significantly outperforms the best MEDIQ baseline in both datasets, further demonstrating the capability of our model.

Table 3:

Accuracy comparison on multiple-choice question answering tasks from the MEDIQ benchmark, across two datasets (iMedQA and iCraftMD). Our dynamic multi-agent system (DyamiCare) outperforms the MedIQ baseline under the same GPT-4.1 setup.

Agent Dataset Accuracy
MedIQ iMedQA 67.0
iCraftMD 72.1
DynamiCare iMedQA 92.0
iCraftMD 96.4

Patient System Evaluation

To assess the quality of the responses generated by our Patient System, we conduct a manual evaluation of 100 randomly selected patients’ question-answer history (multi-agent setting, GPT-4.1). Each Q&A log is independently annotated by three medical students along two dimensions: Truthfulness and Relevance.

  • Truthfulness measures whether the patient’s response is consistent with his/her JSON record, using a 3-point scale: 0 = incorrect, 1 = partially correct, 2 = fully correct.

  • Relevance assesses whether the answer directly and adequately responds to the doctor’s question, also using a 3-point scale: 0 = irrelevant, 1 = somewhat related, 2 = highly relevant.

The scores from the three annotators were averaged across all questions per patient and reported separately for each annotator (A, B, C), along with the overall mean as shown in Table 4. This evaluation provides a quantitative estimate of the reliability and contextual appropriateness of the patient agent’s responses, ensuring that it supports trustworthy and contextually appropriate interactions throughout the diagnostic process.

Table 4:

Manual evaluation of simulated patient responses across 100 patient sessions. Each response was rated by three annotators on Truthfulness and Relevance using a 3-point scale (0–2). The table reports the average scores per annotator and the overall mean across annotators.

Metric A B C Average
Truthfulness 1.99 1.95 1.92 1.95
Relevance 1.84 1.75 1.79 1.79

Disease Case Study

We observe substantial variation in diagnostic performance across ICD-9 classes, with top-5 accuracy ranging from 32% to 100% (mean: 63.4%), and top-10 accuracy from 40% to 100% (mean: 71.6%). Excluding classes with insufficient sample size, high-performing categories include diagnoses like musculoskeletal diseases and circulatory system disorders, whereas lower performance is seen in neoplasms, external causes of injury, and symptoms or ill-defined conditions. These differences stem from the following three main factors.

  • Case complexity plays a key role52,53. Conditions with well-defined, localized symptoms—such as musculoskeletal or circulatory disorders—tend to involve fewer comorbidities and more predictable clinical patterns, enabling the model to identify the correct diagnosis with fewer reasoning steps. In contrast, complex conditions like neoplasms or non-specific symptom clusters often involve overlapping or ambiguous presentations that require integration of contextual or longitudinal information, making accurate diagnosis considerably more challenging within a constrained Q&A framework.

  • Disease prevalence and representation can influence GPT’s performance54. Although the system is not fine-tuned, its base knowledge reflects conditions that are more frequently discussed in medical literature and clinical practice. As a result, the model tends to perform better on prevalent diseases with well-defined patterns (e.g., cardiovascular and circulatory diseases).

  • Disease-specific nature of Q&A interactions influences diagnostic success. Diseases with clear symptomatology allow for efficient question targeting, enabling quick narrowing of the differential diagnosis. Conversely, vague or multi-system conditions—such as those classified under neoplasms or ill-defined symptoms—require broader questioning and yield more diffuse information, often resulting in longer differential lists where the correct diagnosis may be deprioritized. Additionally, categories requiring contextual or social information (e.g., external causes of injury) are more likely to be missed when such details are not explicitly elicited.

It is also important to highlight that our dataset reflects the true disease distribution and clinical prevalence of the underlying MIMIC-III patient population due to unbiased random sampling and each high-level ICD-9 code group represents numerous specific diagnoses. Thus, the apparent imbalance at the group level should not be misconstrued as a lack of diagnostic variety at the individual disease level.

Discussion

Conclusion. This study introduces a dynamic multi-agent framework for clinical decision-making, grounded in a realistic simulation of the diagnostic process. Unlike prior works that rely on single-turn or static multi-agent setups, our system dynamically adapts its specialist composition in response to evolving patient information. Experiments on the MIMIC-derived open-ended diagnosis benchmark demonstrate that our model consistently outperforms a single-agent variant, particularly when reasoning over complex and ambiguous cases. Moreover, our patient system was shown to produce responses that are both truthful and relevant, supporting a coherent and trustworthy dialogue process.

Limitations and future work. While our approach shows promising results, several limitations remain, opening opportunities for future research and improvement. First, our system currently operates on textual and tabular data only. Incorporating other clinically significant modalities such as medical imaging, genomics, or sensor data could enable richer and more accurate diagnostic reasoning. Second, real patients may volunteer important information even if not directly asked. Future versions of the patient system could be designed to simulate such proactive behavior, improving the realism of interactions. Third, while our dynamic framework already improves reasoning, further enhancement may come from integrating retrieval-augmented generation (RAG), external medical knowledge bases, or modular expert components fine-tuned for specific specialties.

Acknowledgments

Research reported in this publication was supported by National Institute of Mental Health under Award Number R01MH136055; National Institute on Aging under Award Numbers RF1AG082938, R01AG085581, and P30AG073105; and National Science Foundation Award Number 2500343. The content is solely the responsi- bility of the authors and does not necessarily represent the official views of the National Institutes of Health and the National Science Foundation. The study has also been partially supported by funding from the Department of Statistics and Data Science at the University of Pennsylvania, Wharton Dean’s Research Fund, Analytics at Whar- ton, Wharton AI & Analytics Initiative, Perelman School of Medicine CCEB Innovation Center Grant, and the University Research Foundation at the University of Pennsylvania. We would like to thank the research computing and IT group at the Wharton School of the University of Pennsylvania for providing computational resources and support that have contributed to these research results.

Footnotes

†

Clinical procedures performed, with codes and timestamps.

†

Electrocardiogram reports and interpretations.

†

Echocardiogram results, including measurements such as ejection fraction.

†

Hit@K measures whether at least one of the matched (ground truth) items appears in the top K results returned by the model.

†

Recall@K measures the proportion of all matched items that are found in the top K results.

Figures & Tables

Table 5:

Diagnostic accuracy across ICD-9 code categories. Each row represents a high-level disease group, along with its corresponding accuracy and sample size. Categories with accuracy above the overall mean (Hit@5: 63.4%, Hit@10: 71.6%) are displayed in italics. Sample size indicates the number of patient–diagnosis instances assigned to each ICD-9 category; since each patient may have multiple codes, the total exceeds the number of unique patients.

ICD-9 codes Definition Hit@5 Hit@10 Sample Size
630-679 complications of pregnancy, childbirth, and the puerperium 100 100 1
760-779 certain conditions originating in the perinatal period 85.71 85.71 7
710-739 diseases of the musculoskeletal system and connective tissue 76.00 76.00 25
390-459 diseases of the circulatory system 74.09 81.73 301
740-759 congenital anomalies 69.23 76.92 26
240-279 endocrine, nutritional and metabolic diseases, and immunity disorders 67.27 77.58 165
520-579 diseases of the digestive system 63.77 72.46 69
460-519 diseases of the respiratory system 62.90 72.58 62
320-389 diseases of the nervous system and sense organs 61.22 71.43 49
290-319 mental disorders 57.97 69.57 69
280-289 diseases of the blood and blood-forming organs 55.56 75.00 36
800-999 injury and poisoning 50.56 59.55 89
580-629 diseases of the genitourinary system 50.00 66.67 12
680-709 diseases of the skin and subcutaneous tissue 50.00 50.00 6
780-799 symptoms, signs, and ill-defined conditions 48.78 68.29 41
E and V codes external causes of injury and supplemental classification 48.28 57.93 145
140-239 neoplasms 32.00 40.00 50
001–139 infectious and parasitic diseases - - 0

References

  • 1.Clusmann J, Kolbinger FR, Muti HS, Carrero ZI, Eckardt JN, Laleh NG, et al. The future landscape of large language models in medicine. Communications medicine. 2023;3(1):141. doi: 10.1038/s43856-023-00370-1. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 2.Kim Y, Xu X, McDuff D, Breazeal C, Park HW. Health-llm: Large language models for health prediction via wearable sensor data. arXiv preprint arXiv:240106866. 2024.
  • 3.Saab K, Tu T, Weng WH, Tanno R, Stutz D, Wulczyn E, et al. Capabilities of gemini models in medicine. arXiv preprint arXiv:240418416. 2024.
  • 4.Truhn D, Eckardt JN, Ferber D, Kather JN. Large language models and multimodal foundation models for precision oncology. NPJ Precision Oncology. 2024;8(1):72. doi: 10.1038/s41698-024-00573-2. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 5.Zhou H, Liu F, Gu B, Zou X, Huang J, Wu J, et al. A survey of large language models in medicine: Progress, application, and challenge. arXiv preprint arXiv:231105112. 2023.
  • 6.Shang T, Yang S, He W, Zhai T, Li D, Hou B, et al. Leveraging social determinants of health in alzheimer’s research using llm-augmented literature mining and knowledge graphs. AMIA Summits on Translational Science Proceedings. 2025;2025:491. [PMC free article] [PubMed] [Google Scholar]
  • 7.Lee J, Shang T, Baik JY, Duong-Tran D, Yang S, Li L, et al. Investigating LLMs in clinical triage: promising capabilities, persistent intersectional biases. arXiv e-prints. 2025:arXiv-2504.
  • 8.Shang T, He W, et al. Integrating social determinants of health into knowledge graphs: Evaluating prediction bias and fairness in healthcare. AMIA Summits on Translational Science Proceedings. 2025;2025:481. [PMC free article] [PubMed] [Google Scholar]
  • 9.Shang T, Yang S, Zhai T, He W, Mamourian E, Zhang J, et al. A novel computational analysis integrating social determinants information from EHR and literature with Alzheimer’s disease biological knowledge through large language models and knowledge graphs. Innovation in Aging. 2025;9(1):S2–S13. doi: 10.1093/geroni/igaf102. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 10.He W, Hou B, et al. Advanced topic modeling with large language models: Analyzing social media content from dementia caregivers. Innovation in Aging. 2025;9(1):S38–47. doi: 10.1093/geroni/igaf120. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 11.He W, Hou B, Demiris G, Shen L. Interpretability study for long interview transcripts from behavior intervention sessions for family caregivers of dementia patients. AMIA Summits on Translational Science Proceedings. 2024;2024:201. [PMC free article] [PubMed] [Google Scholar]
  • 12.Kim Y, Park C, Jeong H, Chan YS, Xu X, McDuff D, et al. Mdagents: An adaptive collaboration of llms for medical decision-making. Advances in Neural Information Processing Systems. 2024;37:79410–52. [Google Scholar]
  • 13.Li S, Balachandran V, Feng S, Ilgen J, Pierson E, Koh PWW, et al. Mediq: Question-asking llms and a benchmark for reliable interactive clinical reasoning. Advances in Neural Information Processing Systems. 2024;37:28858–88. [Google Scholar]
  • 14.Fan Z, Tang J, Chen W, Wang S, Wei Z, Xi J, et al. Ai hospital: Interactive evaluation and collaboration of llms as intern doctors for clinical diagnosis. arXiv e-prints. 2024:arXiv-2402.
  • 15.Jin Q, Wang Z, Yang Y, Zhu Q, Wright D, Huang T, et al. Agentmd: Empowering language agents for risk prediction with large-scale clinical tool learning. arXiv preprint arXiv:240213225. 2024. [DOI] [PMC free article] [PubMed]
  • 16.Li J, Lai Y, Li W, Ren J, Zhang M, Kang X, et al. Agent hospital: A simulacrum of hospital with evolvable medical agents. arXiv preprint arXiv:240502957. 2024.
  • 17.Tang X, Zou A, Zhang Z, Li Z, Zhao Y, Zhang X, et al. Medagents: Large language models as collaborators for zero-shot medical reasoning. arXiv preprint arXiv:231110537. 2023.
  • 18.Jin Q, Dhingra B, Liu Z, Cohen WW, Lu X. Pubmedqa: A dataset for biomedical research question answering. arXiv preprint arXiv:190906146. 2019.
  • 19.Jin D, Pan E, Oufattole N, Weng WH, Fang H, Szolovits P. What disease does this patient have? a large-scale open domain question answering dataset from medical exams. Applied Sciences. 2021;11(14):6421. [Google Scholar]
  • 20.Pal A, Umapathi LK, Sankarasubbu M. Medmcqa: A large-scale multi-subject multi-choice dataset for medical domain question answering. Conference on health, inference, and learning. PMLR. 2022:p.248–60. [Google Scholar]
  • 21.Chen H, Fang Z, Singla Y, Dredze M. Benchmarking large language models on answering and explaining challenging medical questions. Proceedings of the 2025 Conference of the Nations of the Americas Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers) 2025:p.3563–99. [Google Scholar]
  • 22.Li G, Hammoud H, Itani H, Khizbullin D, Ghanem B. Camel: Communicative agents for” mind” exploration of large language model society. Advances in Neural Information Processing Systems. 2023;36:51991–2008. [Google Scholar]
  • 23.Wu Q, Bansal G, Zhang J, Wu Y, Li B, Zhu E, et al. Autogen: Enabling next-gen llm applications via multi-agent conversation. arXiv preprint arXiv:230808155. 2023.
  • 24.Du Y, Li S, Torralba A, Tenenbaum JB, Mordatch I. Improving Factuality and Reasoning in Language Models through Multiagent Debate. International Conference on Machine Learning. PMLR. 2024:p.11733–63. [Google Scholar]
  • 25.Wang X, Wei J, Schuurmans D, Le Q, Chi E, Narang S, et al. Self-consistency improves chain of thought reasoning in language models. arXiv preprint arXiv:220311171. 2022.
  • 26.Chen JCY, Saha S, Bansal M. Reconcile: Round-table conference improves reasoning via consensus among diverse llms. arXiv preprint arXiv:230913007. 2023.
  • 27.Hu Z, Liu C, Feng X, Zhao Y, Ng SK, Luu AT, et al. Uncertainty of thoughts: Uncertainty-aware planning enhances information seeking in large language models. arXiv preprint arXiv:240203271. 2024.
  • 28.Schmidgall S, Ziaei R, Harris C, Reis E, Jopling J, Moor M. AgentClinic: a multimodal agent benchmark to evaluate AI in simulated clinical environments. arXiv preprint arXiv:240507960. 2024.
  • 29.Johnson AE, Pollard TJ, Shen L, Lehman LwH, Feng M, Ghassemi M, et al. MIMIC-III, a freely accessible critical care database. Scientific data. 2016;3(1):1–9. doi: 10.1038/sdata.2016.35. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 30.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. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 31.Singhal K, Tu T, Gottweis J, Sayres R, Wulczyn E, Amin M, et al. Toward expert-level medical question answering with large language models. Nature Medicine. 2025:1–8. doi: 10.1038/s41591-024-03423-7. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 32.Nori H, King N, McKinney SM, Carignan D, Horvitz E. Capabilities of gpt-4 on medical challenge problems. arXiv preprint arXiv:230313375. 2023.
  • 33.Liévin V, Hother CE, Motzfeldt AG, Winther O. Can large language models reason about medical questions? Patterns. 2024;5(3) doi: 10.1016/j.patter.2024.100943. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 34.Pampari A, Raghavan P, Liang J, Peng J. emrqa: A large corpus for question answering on electronic medical records. arXiv preprint arXiv:180900732. 2018.
  • 35.Fan J. Annotating and characterizing clinical sentences with explicit why-QA cues. Proceedings of the 2nd Clinical Natural Language Processing Workshop. 2019. pp. p.101–6.
  • 36.Kweon S, Kim J, et al. Ehrnoteqa: An llm benchmark for real-world clinical practice using discharge summaries. Advances in Neural Information Processing Systems. 2024;37:124575–611. [Google Scholar]
  • 37.Johnson AE, Bulgarelli L, Shen L, Gayles A, Shammout A, Horng S, et al. MIMIC-IV, a freely accessible electronic health record dataset. Scientific data. 2023;10(1):1. doi: 10.1038/s41597-022-01899-x. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 38.Johri S, Jeong J, Tran BA, Schlessinger DI, Wongvibulsin S, Cai ZR, et al. Craft-md: A conversational evaluation framework for comprehensive assessment of clinical llms. AAAI 2024 Spring Symposium on Clinical Foundation Models. 2024.
  • 39.Wang L, Ma C, Feng X, Zhang Z, Yang H, Zhang J, et al. A survey on large language model based autonomous agents. Frontiers of Computer Science. 2024;18(6):186345. [Google Scholar]
  • 40.Liang T, He Z, Jiao W, Wang X, Wang Y, Wang R, et al. Encouraging divergent thinking in large language models through multi-agent debate. arXiv preprint arXiv:230519118. 2023.
  • 41.Achiam J, Adler S, Agarwal S, Ahmad L, Akkaya I, Aleman FL, et al. Gpt-4 technical report. arXiv preprint arXiv:230308774. 2023.
  • 42.OpenAI Introducing GPT-4.1 in the API. 2025. Accessed May 2025. https://openai.com/index/gpt-4-1/
  • 43.Huang L, Yu W, et al. A survey on hallucination in large language models: Principles, taxonomy, challenges, and open questions. ACM Transactions on Information Systems. 2025;43(2):1–55. [Google Scholar]
  • 44.Zhang Y, Li Y, Cui L, Cai D, Liu L, Fu T, et al. Siren’s song in the ai ocean: A survey on hallucination in large language models. Computational Linguistics. 2025:1–45. [Google Scholar]
  • 45.Liu Y, Yao Y, Ton JF, Zhang X, Guo R, Cheng H, et al. Trustworthy llms: a survey and guideline for evaluating large language models’ alignment. arXiv preprint arXiv:230805374. 2023.
  • 46.Gilboy N, Tanabe P, Travers D, Rosenau AM, et al. Emergency Severity Index (ESI): a triage tool for emergency department care, version 4. Implementation handbook. 2012;2012:12–0014. [Google Scholar]
  • 47.Christ M, Grossmann F, Winter D, Bingisser R, Platz E. Modern triage in the emergency department. Deutsches Á rzteblatt International. 2010;107(50):892. doi: 10.3238/arztebl.2010.0892. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 48.Wuerz RC, Milne LW, Eitel DR, Travers D, Gilboy N. Reliability and validity of a new five-level triage instrument. Academic emergency medicine. 2000;7(3):236–42. doi: 10.1111/j.1553-2712.2000.tb01066.x. [DOI] [PubMed] [Google Scholar]
  • 49.Whetzel PL, Noy NF, Shah NH, Alexander PR, Nyulas C, Tudorache T, et al. BioPortal: enhanced functionality via new Web services from the National Center for Biomedical Ontology to access and use ontologies in software applications. Nucleic Acids Research. 2011;39(2):W541–5. doi: 10.1093/nar/gkr469. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 50.Rajkomar A, Oren E, Chen K, Dai AM, Hajaj N, Hardt M, et al. Scalable and accurate deep learning with electronic health records. NPJ digital medicine. 2018;1(1):18. doi: 10.1038/s41746-018-0029-1. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 51.Shi H, Xie P, Hu Z, Zhang M, Xing EP. Towards automated ICD coding using deep learning. arXiv preprint arXiv:171104075. 2017.
  • 52.Khan MP, O’Sullivan ED. A comparison of the diagnostic ability of large language models in challenging clinical cases. Frontiers in Artificial Intelligence. 2024;7:1379297. doi: 10.3389/frai.2024.1379297. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 53.McDuff D, Schaekermann M, Tu T, Palepu A, Wang A, Garrison J, et al. Towards accurate differential diagnosis with large language models. Nature. 2025:1–7. doi: 10.1038/s41586-025-08869-4. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 54.Sandmann S, Riepenhausen S, Plagwitz L, Varghese J. Systematic analysis of ChatGPT, Google search and Llama 2 for clinical decision support tasks. Nature Communications. 2024;15(1):2050. doi: 10.1038/s41467-024-46411-8. [DOI] [PMC free article] [PubMed] [Google Scholar]

Articles from AMIA Summits on Translational Science Proceedings are provided here courtesy of American Medical Informatics Association

RESOURCES