# Benchmark of THReD: Evaluating an LLM Agent and Its Preprocessing Tools for Turning Electronic Health Records into AI-Ready Datasets

DevFeed: [Benchmark of THReD: Evaluating an LLM Agent and Its Preprocessing Tools for Turning Electronic Health Records into AI-Ready Datasets](<https://devfeed.tech/articles/benchmark-of-thred-evaluating-an-llm-agent-and-its-preprocessing-tools-for-turning-electronic-health-records-into-ai-ready-datasets-115314.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.02484>)

Author: Javad Mohammad Alizadeh, Huanmei Wu

Published: 2026-11-03T05:00:00Z

Content type: news

Language: en

Sources: [arXiv: Artificial Intelligence](<https://devfeed.tech/sources/arxiv-artificial-intelligence.md>)

Topics: [AI Agent](<https://devfeed.tech/topics/ai-agent.md>), [AI Chat](<https://devfeed.tech/topics/ai-chat.md>), [AI-Ready Data](<https://devfeed.tech/topics/ai-ready-data.md>), [Data pipelines](<https://devfeed.tech/topics/data-pipelines.md>), [big-data](<https://devfeed.tech/topics/big-data.md>)

Tags: [abstract](<https://devfeed.tech/tags/abstract.md>), [advice](<https://devfeed.tech/tags/advice.md>), [agent](<https://devfeed.tech/tags/agent.md>), [agents](<https://devfeed.tech/tags/agents.md>), [ai](<https://devfeed.tech/tags/ai.md>), [analysis](<https://devfeed.tech/tags/analysis.md>), [arxiv](<https://devfeed.tech/tags/arxiv.md>), [benchmark](<https://devfeed.tech/tags/benchmark.md>), [builder](<https://devfeed.tech/tags/builder.md>), [chat](<https://devfeed.tech/tags/chat.md>), [classes](<https://devfeed.tech/tags/classes.md>), [claude](<https://devfeed.tech/tags/claude.md>), [claude-haiku-5-5](<https://devfeed.tech/tags/claude-haiku-5-5.md>), [completion](<https://devfeed.tech/tags/completion.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [datasets](<https://devfeed.tech/tags/datasets.md>), [electronic-health-records](<https://devfeed.tech/tags/electronic-health-records.md>), [health](<https://devfeed.tech/tags/health.md>), [llm](<https://devfeed.tech/tags/llm.md>), [records](<https://devfeed.tech/tags/records.md>), [tools](<https://devfeed.tech/tags/tools.md>)

## AI overview

THReD's agent completed 92.7% of benchmark tasks on its first answer across 2,550 episodes with Claude Haiku 5.5, abstained on all advice requests, recovered from every injected fault, and did not follow planted instructions in data. Completion fell to 58.0% without the data profile, and goal-level requests were hardest at 80.6%. The system requires user confirmation before proposed preprocessing steps run. Tool evaluations report 99.0% correct mapping across 2,208 raw dictionary variants and byte-identical outputs for all 2,176 replays under pinned dependencies. Masked reconstruction accuracy was 91-92% for patient classes and 99.7-99.8% for vital-sign labels. A same-day consolidation rule shifted measured 90-day emergency revisit rates by up to 3.2 percentage points, while cohort composition shifted by no more than one point. Processing scaled roughly linearly to 5.5 million records; these findings come from synthetic benchmarks and six tool experiments, including records from two chronic-disease cohorts.

## Source excerpt

arXiv:2611.02484v1 Announce Type: new Abstract: LLM agents are increasingly built into data-analysis software, yet little evidence shows how reliably they preprocess clinical data or whether the tools they invoke give correct, reproducible output. We report a benchmark of THReD, a web-based system that turns electronic health record (EHR) extracts into AI-ready datasets through a chat agent whose proposed steps run only after user confirmation. The agent benchmark has 141 tasks (100 templates) in seven categories, including goal-level requests, failure recovery, requests calling for no action, schema variation and prompt injection through the data, on synthetic tables calibrated to a regional health information exchange; success is judged by checks on the produced data. Over 2,550 episodes with Claude Haiku 5.5 in four context configurations, the deployed agent completed 92.7% (95% CI 88.1-96.4) of tasks on its first answer, abstained on every advice request, recovered from every injected fault, and never proposed an action requested by planted text. Without the data profile, completion fell to 58.0%; goal-level requests were hardest (80.6%). Six experiments on real records of two chronic-disease cohorts and on synthetic data at scale validate the tools: 91-92% of inferred patient classes and 99.7-99.8% of inferred vital-sign labels were correct in masked reconstruction; a dictionary builder combining curated dictionaries with LLM suggestions mapped 99.0% of 2,208 raw variants correctly; all 2,176 replays of 128 saved pipelines gave byte-identical files under pinned dependencies; subgroup differences in inference accuracy vanished within facility and lookup key; and the same-day consolidation rule changed 90-day emergency revisit rates by up to 3.2 points without shifting cohort composition by more than one point. Processing time grew roughly linearly to 5.5 million records while the prompt stayed at about 13 thousand tokens.