Auditable agentic AI for evidence-grounded thyroid ultrasound diagnosis and reporting

Haifan Gong, Shiyu Chen, Bodong Wang, Yuqi Wang, Shijie Wang, Guoliang You, Xinyu Xiong, Haowei Wang, Mingzhi Mao, Dexing Kong, Qinghua Liu, Wei Lou, Fei Chen, Guanbin LiarXiv 2026

TL;DR

This paper introduces ThyroidXAgent, an interactive, agentic AI system that reframes thyroid ultrasound diagnosis by shifting the focus from black-box predictions to an auditable, clinician-editable "evidence record." By orchestrating specialized computer vision and radiomics tools through an LLM-based controller, the system achieves state-of-the-art diagnostic performance while significantly improving reporting efficiency and diagnostic consistency for radiologists.

What Problem Does This Problem Address?

Thyroid ultrasound diagnosis is a complex, multi-step workflow. Clinicians must localize and measure nodules, characterize sonographic features (like margins and echogenic foci), determine risk tiers (such as TI-RADS), and generate a structured report.

Most existing medical AI systems approach these tasks in isolation—offering standalone segmentation or classification models. On the other hand, end-to-end multimodal language models often output final reports as opaque text blocks. This "endpoint-oriented" design introduces two major issues:

  1. Lack of Auditability: Clinicians cannot easily verify if a final diagnosis is supported by correct intermediate measurements or feature extractions.
  2. No Room for Correction: If an AI makes an error early in the pipeline (e.g., misidentifying a nodule boundary), the clinician cannot correct it to update downstream risk stratification or report generation.

Methods

Instead of using a single general-purpose model to interpret images, ThyroidXAgent acts as an agentic workflow controller that manages a suite of specialized tools.

ThyroidXAgent Multicenter Data and Evidence Workflow

1. Agentic Planner-Executor Framework

The system uses a Large Language Model (LLM) planner that receives image priors and generates a staged task graph. A ReAct-style execution loop then dynamically invokes specialized tools via a Model Context Protocol (MCP) server based on intermediate observations.

2. Specialized Tool Routing

  • Segmentation & Classification: The agent routes images to a heterogeneous pool of DINOv3-based expert models trained under varying resolutions and configurations.
  • Radiomics & Explainability: Features are extracted using PyRadiomics and passed to AutoGluon-tabular classifiers. Explainability is provided via SHAP feature attributions and Grad-CAM maps.

3. The Case-Level Evidence Record

All tool outputs are stored in a structured, centralized JSON evidence record. Crucially, this record is inspectable and editable. If a clinician manually adjusts a predicted nodule mask, ThyroidXAgent automatically recomputes the radiomic features, SHAP attributions, and classification confidence scores downstream.

4. Controlled Report Assembly

To eliminate the risk of text hallucination common in pure language models, reports are generated using a training-free data-to-text assembly method. The system uses BM25 template retrieval from a verified library, fills slots with structured facts from the evidence record, and combines clauses into a final report.

5. ThyClinScore

The authors introduce ThyClinScore, a novel semantic evaluation metric. Traditional NLP metrics like BLEU or ROUGE only evaluate surface-level word overlap. ThyClinScore parses both ground-truth and generated reports into structured schemas, matches corresponding lesions using bipartite matching, and scores clinically relevant attributes (size, vascularity, morphology, and completeness).

Datasets

The authors compiled OpenThyroidDB, a massive multicenter, multitask resource integrating roughly 300,000 ultrasound images and 24,000 paired reports across several cohorts:

  • Internal Training/Validation: TN3K, TN5K, ThyroidXL, and PKTN.
  • External Validation: DDTI (Colombia), RJH-7K, ZJH-8K, and a massive private multi-center cohort, NHC-MISD-TUS (consisting of 8,721 cases from 35 different centers).
  • Advanced Stratification: LymphUs (for lymph-node metastasis) and public datasets from Dai et al. (for follicular vs. papillary carcinoma classification).

Key Insights and Ideas

  • Orchestration > Direct Interpretation: General-purpose vision-language models underperform when directly interpreting medical images. A better division of labor uses the LLM as a coordinator that routes tasks to domain-specific computer vision and tabular tools.
  • The Evidence Record as the Core Object: Treating intermediate data (masks, measurements, descriptors) as a shared, mutable state allows for true human-AI collaboration. Clinician corrections seamlessly propagate to update downstream logic.
  • Lexical Metrics Fail Clinical Reality: Reports can have high BLEU or ROUGE scores while containing catastrophic clinical errors (e.g., swapping the left and right thyroid lobes). Structuring text into clinical schemas is essential for meaningful evaluation.

Key Results

ThyroidXAgent was evaluated against multiple state-of-the-art baselines across heterogeneous datasets:

  • Image Analysis: Achieved a mean Dice score of 87.21% for nodule segmentation and a mean AUROC of 0.9466 for benign-malignant classification, outperforming models like MedSAM2 and UltraFedFM.
  • Malignant Stratification: Successfully adapted to advanced tasks, achieving an AUROC of 0.864 for lateral lymph-node metastasis (LNM) prediction and 0.805 for FTC vs. PTC subtype classification.
  • Report Generation: Outperformed multimodal language models (including GPT-5 and Gemini-2.5-Pro) across three cohorts. ThyClinScore showed the strongest correlation ($r = 0.696, p < 0.001$) with a location-aware LLM judge.
  • Clinical Efficiency: In a reader study with physicians, AI assistance reduced nodule segmentation time by 35.9% and reporting time by 27.4%, while boosting report diagnostic consistency from 70.3% to 86.2%.
Figure 2. Agent-routed evidence for thyroid nodule segmentation, benign-malignant classification and clinician

Limitations and Future Work

While highly performant, the authors note several limitations:

  • Retrospective Evaluation: The datasets were evaluated retrospectively; prospective clinical trials are required to measure real-world utility and patient-level clinical benefits.
  • Tool Dependency: The agent's performance is fundamentally bounded by the calibration and accuracy of its underlying expert tools. It cannot fully compensate for systematically biased segmentation or poor metadata.
  • Template Adaptability: The template-based reporting mechanism requires local adaptation to match the specific writing conventions of different healthcare institutions.

Summary updated

BibTeX
@misc{gong2026auditable,
  author = {Haifan Gong and Shiyu Chen and Bodong Wang and Yuqi Wang and Shijie Wang and Guoliang You and Xinyu Xiong and Haowei Wang and Mingzhi Mao and Dexing Kong and Qinghua Liu and Wei Lou and Fei Chen and Guanbin Li},
  title = {{Auditable agentic AI for evidence-grounded thyroid ultrasound diagnosis and reporting}},
  year = {2026},
  eprint = {2608.12590},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2608.12590},
}
Figure