Study design · Research feature

AI System Learns to Seek Patient Data Instead of Relying on Curated Inputs

A new AI framework actively gathers clinical evidence from patient records and imaging, outperforming curated inputs in real-world clinical reasoning tasks.

Adapted from research by Juncheng Wu, Letian Zhang, Yuhan Wang and colleagues.

arXiv preprint revision · 2026-10-16 · Attribution & reuse
In this article
Editorial illustration of aperture mechanism.

Editor’s introduction

The study evaluates ClinSeekAgent, a system designed to autonomously seek multimodal evidence from raw electronic health records and imaging tools during clinical decision-making. It compares performance against curated inputs in text-only and multimodal EHR tasks using benchmark datasets. ClinSeekAgent improves performance on both Claude Opus 5 and GPT-5.6 Sol, particularly in reasoning-intensive tasks, with gains attributed to iterative evidence gathering rather than broader data access. In training, a fine-tuned open-source model based on ClinSeekAgent trajectories achieves higher average F1 scores than existing models, including larger ones, on a clinical benchmark. The evidence shows that dynamic, multi-round evidence seeking enhances decision quality without requiring pre-curated data.

Introduction

Recent large language models (LLMs) and agentic systems have shown strong potential in medical question answering, diagnostic reasoning, and clinical decision support. However, many existing medical-agent settings remain overly simplistic, deviating from real-world clinical workflows. They often rely on general medical knowledge or short organized patient vignettes, whereas real-world clinical decision support requires actively seeking patient-specific longitudinal information from raw Electronic Health Record (EHR) tables and visual clues from medical imaging. Such a limitation is particularly salient for clinical decision support, where the key challenge is not only to reason over given evidence, but also to decide where to retrieve evidence from, what evidence to retrieve, and how different pieces of evidence can be integrated into a grounded decision.

A growing line of EHR-specific work has moved closer to this goal by adapting LLMs to structured patient records and multimodal clinical data. For example, recent EHR reasoning pipelines convert structured tables into textual contexts, retrieve task-related entities, and synthesize reasoning data from pre-extracted patient information. Multimodal clinical benchmarks also combine EHRs and medical images to support realistic prediction and question-answering tasks. These efforts are valuable, but they still largely depend on a fixed evidence-packaging process before inference: the relevant patient context is selected by benchmark construction, human priors, or task-specific rules. Recent studies of EHR agents have started to expose models to database tools, but they remain limited in task scope, tool coverage, or modality support. As a result, there is a need for a general agentic framework that automates the evidence search process, rather than assuming that the evidence has already been surfaced.

Multi-Source Tool Space

ClinSeekAgent exposes a unified tool space with 22 tools across two complementary evidence sources: EHR retrieval and medical image analysis. Specifically, it provides 16 EHR tools for accessing patient-specific longitudinal records, including schema inspection, temporal, keyword-, and value-based retrieval, SQL-based querying, and candidate-term grounding; and 6 image tools for extracting visual evidence through DICOM preprocessing, image visualization, chest X-ray classification, report generation, phrase grounding, and anatomical segmentation. The complete tool list is provided in Appendix F.

Agentic Evidence-Seeking Trajectories

Unlike rule-based retrieval pipelines, ClinSeekAgent does not impose an ordering over evidence sources. Depending on the task, the model may begin with schema inspection, EHR querying, image analysis, or candidate retrieval, and may interleave these tools across multiple turns. Thus, ClinSeekAgent standardizes the environment and tool interface, while the evidence-seeking policy is induced by the agentic model.

ClinSeek-Bench Construction

We construct ClinSeek-Bench to validate ClinSeekAgent as an inference-time evidence-seeking pipeline. Each example is paired into two settings with the same task definition and answer label: Curated Input, where the model answers from the evidence package provided by the source EHR reasoning benchmark, and Automated Evidence-Seeking, where this context is removed and the model must retrieve evidence from raw clinical data using ClinSeekAgent tools.

Curated Input Data Collection

We preserve the original EHR reasoning benchmark inputs as the Curated Input setting. These inputs reflect the evidence-packaging process of the source benchmarks, where task-relevant patient information is selected before inference. For EHR-Bench, the original setting uses rule-based templates to convert recent patient events into instruction-answer samples: models observe up to 100 events from the past 24 hours and predict either the next clinical event or a future risk outcome. For EHRXQA and MedMod, we keep the original task-specific EHR context, selected CXR studies, image identifiers, labels, and pairing rules from the official repositories.

Automated Evidence-Seeking Data Generation

We convert each curated example into an Automated Evidence-Seeking example by removing the curated context while keeping the same task instruction and answer label. The model is instead given the patient identifier, prediction-time cutoff, optional linked CXR identifiers, and access to ClinSeekAgent tools. For EHR-Bench, we use the timestamp of the last event in the original input as the reference cutoff, allowing the agent to access the patient’s full raw EHR history before that time. For multimodal tasks, we preserve the original patient-level task, label, and valid EHR-CXR linkage, but require the agent to retrieve EHR evidence and invoke imaging tools when needed.

Temporal Filtering

Both data types are filtered by the same strict temporal policy: the model can only see records that were available before the prediction cutoff. Because diagnosis and procedure codes are assigned when an encounter is completed, they are treated as unavailable until then, and the codes of the encounter being predicted are always hidden. More details are provided in App. G, and App. H compares this policy with the temporal settings of the source benchmarks.

Automatic evidence seeking replaces hand-designed curation

ClinSeekAgent achieves this without the benchmark-specific curation rules that Curated Input relies on: the agent decides what to retrieve from the raw record. Models with stronger agentic capability benefit more from the pipeline: Claude Opus 4.6, GLM-5.2, and Kimi K2.6 improve by smaller margins, +5.1 (Opus 4.6) and +2.0 (Kimi K2.6) on ClinSeek-Bench-MM and +0.7 (GLM-5.2) on ClinSeek-Bench-Text, and only the gain of Opus 4.6 is significant (App. B).

Reasoning-intensive tasks benefit the most

The largest improvements appear on the decision-making tasks of ClinSeek-Bench-Text and on phenotype prediction in ClinSeek-Bench-MM. Decision-making tasks ask which clinical events come next, e.g., the diagnoses, medications, or orders, so the model must relate the findings in the record to the patient’s course and enumerate a set of concrete items. Predicting the next diagnoses, medications, and orders improves for both models (+8.3/+5.1/+13.3 for Opus 5, +3.0/+2.4/+5.8 for Sol); in addition, Opus 5 gains +11.5 on vitals and measurements and Sol gains +11.2 on laboratory and microbiology. Phenotype prediction asks for the set of chronic and acute conditions of an ICU stay, which has to be assembled from the radiograph together with several EHR tables; it improves by +10.5 for Opus 5 and +15.8 for Sol. Risk prediction, in contrast, only asks for a binary label and is already close to saturation under Curated Input; ClinSeekAgent maintains this high level on both benchmarks (ClinSeekAgent vs. Curated Input: 81.7 vs. 82.2 for Opus 5 and 79.6 vs. 78.2 for Sol over the 720 risk-prediction questions of ClinSeek-Bench-Text, and 87–97 F1 on decompensation and mortality in ClinSeek-Bench-MM).

Extended record access alone does not help

Single-Pass Retrieval can access the entire record, but it is no better than Curated Input either: its overall F1 differs from that of Curated Input by –3.2/–0.1 on ClinSeek-Bench-Text and –3.9/+1.2 on ClinSeek-Bench-MM, with no significant gain. Reading a longer prompt or issuing all queries in one turn thus adds little over Curated Input.

Medical Reasoning with Curated Evidence

Recent medical LLMs have shown strong performance in medical question answering and diagnostic reasoning, demonstrating that LLMs can encode medical knowledge and reason over clinical scenarios. These settings differ from real-world clinical decision support, where models must first identify and retrieve task-relevant evidence from longitudinal patient records, rather than only reason over provided patient vignettes, summarized clinical notes, or task-specific patient contexts. Recent EHR and multimodal clinical benchmarks move closer to real clinical data by grounding tasks in structured patient records, radiology reports, and medical images. However, these works still largely follow the curated-evidence paradigm: task-relevant records, reports, or multimodal inputs are selected before inference. In contrast, ClinSeekAgent focuses on automating this evidence-seeking step, allowing the agent to dynamically query raw EHR tables and invoke medical image analysis tools.

Agentic Evidence Seeking over Clinical Data

Recent medical agent systems have begun to move beyond single-pass reasoning by introducing tool use, search, and multi-agent collaboration into clinical tasks. MDAgents adaptively organizes multiple LLM agents for medical decision making, while DeepMed and Meissa train medical agents to perform multi-step evidence search or interaction for medical reasoning. Closer to EHR-based decision support, AgentEHR, MedAgentBench, and FHIR-AgentBench evaluate agents in interactive clinical record environments, requiring models to retrieve patient information and reason over structured records. AgentClinic further studies tool-using agents in simulated multimodal clinical environments. These works demonstrate the promise of agentic clinical AI, but their evidence-seeking processes are typically limited to medical knowledge search, multi-agent discussion, EHR-only interaction, or simulated clinical tools. In contrast, ClinSeekAgent provides a unified multimodal evidence-seeking pipeline over raw EHR tables and medical image analysis tools, and further validates this pipeline both at inference time and through trajectory-based training of open-source agents.

Conclusion

In this paper, we introduce ClinSeekAgent, an automated agentic framework for dynamic multimodal evidence seeking in clinical decision support, which lets an agentic model gather evidence from raw EHR records and chest X-ray analysis tools instead of relying on curated inputs. As an inference-time pipeline, ClinSeekAgent improves two frontier models over curated inputs on both text-only and multimodal clinical tasks without any benchmark-specific curation, with the largest gains on reasoning-intensive tasks. Ablations show that these gains come from multi-round evidence seeking rather than from access to more of the patient record, and that they grow with the length of the record. As a training pipeline, ClinSeekAgent trajectories teach an open-source model, ClinSeek-35B-A3B, to write more complex queries and to ground its reasoning in the patient record, outperforming all evaluated open-source models on AgentEHR-Bench. Our results suggest that moving from passive evidence consumption to active evidence acquisition is a promising direction for building more flexible, grounded, and capable clinical AI agents.

Reproducibility statement

Data. All benchmarks are built from public, credentialed-access datasets (MIMIC-IV and MIMIC-CXR on PhysioNet) and existing benchmarks (EHR-Bench, EHRXQA, MedMod, and AgentEHR-Bench). Because the patient data cannot be redistributed, we will release the scripts that rebuild ClinSeek-Bench from these sources, together with the question identifiers of every sampled example. Section 3.1 describes how the benchmark is constructed, Tab. 5 lists its task categories, and App. G specifies the temporal policy that determines which records the model may see; App. H compares this policy with the temporal settings of the source benchmarks.

Training. Section 4.1 and App. J describe the training data and the full fine-tuning configuration of ClinSeek-35B-A3B, which is evaluated with the same inference settings as its base model. We will release the model weights, the training trajectories, and the code for the agent, training, scoring, and analysis.

AgentEHR-Bench

AgentEHR-Bench filters each table by its first time column and keeps the selected rows in full. In MIMIC-IV, a single row can combine an event time with fields completed later. For example, an admissions row selected by admittime also contains the discharge time, discharge location, and in-hospital death flag, and the same table holds a copy of the discharge summary text. Rows of labevents are selected by charttime, the specimen collection time, whereas results become available at storetime. Tables without a time column are kept in full. In our setting, discharge and death fields are withheld until discharge, the copied summary text is removed, lab results are filtered by storetime, and tables without a time column keep only the rows linked to visible parent records, such as visible orders and medication administrations.

EHR-Bench

EHR-Bench also orders and selects records by event time. Discharge summaries are selected by charttime rather than storetime, so a summary stored after the prediction time can appear in the input. Adjacent chartevents records are merged into groups, and each group is selected by its start time and shown in full. A group that starts inside the observation window can therefore include measurements taken after the window ends. Continuous treatments are also selected by start time and can show their final duration or total amount before they end. In our setting, each row is filtered by its availability time before the Curated Input prompt is rendered, and the duration and amount of a treatment are withheld until the treatment is completed.

Examples

The following two questions receive different inputs under the two settings. The first is an AgentEHR-Bench diagnosis prediction question (subject_id=16081909) with prediction time 2129-03-07 17:47. The discharge summary of this admission has a chart time of midnight on the same day and a store time of 18:19. Under the original setting the summary is visible at the prediction time, and it states the discharge diagnosis, a Crohn’s flare. The second is an EHR-Bench in-hospital mortality question (subject_id=13001645, idx=5633) with prediction time 2187-02-09 16:18, 24 hours after admission. The patient died at 21:56 on the same day. Under the original setting the input contains a discharge summary with a chart time of midnight and a store time of 2187-02-10 08:19, and the summary records the death. Our setting withholds both summaries because they were stored after the prediction time.

Metric

On ClinSeek-Bench-Text, labels are matched after whitespace and case normalization; tasks with a fixed candidate list (e.g., admission type, care unit) require the answer to be one of the candidates, and medication tasks with ATC labels are matched on the ATC name.

Inference Settings

All models are accessed through one OpenAI-compatible inference gateway in front of the providers’ deployments; ClinSeek-35B-A3B and its base model are served locally with vLLM behind the same interface. Tab. 10 lists the settings shared across models and inference modes. Reasoning is enabled for every model: extended thinking with a 4,096-token budget for Claude models, high reasoning effort for GPT-5.6, and the native reasoning mode of GLM-5.2 and Kimi K2.6. The Claude and GPT-5.6 APIs do not accept a sampling temperature when reasoning is enabled; temperature 0 is used wherever it is accepted. Every question is run once.

ClinSeekAgent

The agent sees the task instruction, the patient identifier, and the prediction time, and interacts with 16 EHR tools (schema exploration, time-, keyword-, and value-based retrieval, SQL, candidate lookup, think, and finish); multimodal questions add six image tools (visualizer, DICOM processor, CXR classifier, report generator, phrase grounding, segmentation), for 22 tools in total. Each tool result is truncated to 100,000 characters, and a question ends when the agent calls finish or after 200 rounds. GLM-5.2 and Kimi K2.6 frequently exhaust the output budget inside their reasoning trace before emitting an answer, in both settings. For these two models we append one answer-only round to every such question: the conversation so far is replayed and the model is asked to call finish from the evidence already gathered, with no further retrieval.