arXiv:2611.03996eess.IVNov 2026

Manuscript Offprint

arXiv:2611.03996

Measure Before You Repair: An Explainable Agent for Blind Restoration of Multi-Artifact 3-D MRI

Necati Sefercioglu, Mehmet Ozan Unal, Metin Ertas, Altan Cakir, Isa Yildirim

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

A brain MRI scan can carry an unknown mix of artifacts, so restoration has to be blind, yet most deep-learning methods are built to correct one known artifact. We present Dx-Rx, an agent in which a multimodal large language model (MLLM) measures suspected artifacts before it repairs them. To our knowledge, it is the first agent to restore whole 3-D MRI volumes, whereas earlier MRI agents restore 2-D slices. In a loop, it looks at slices of the 3-D volume, calls five diagnostic tools (noise, spike, ghosting, bias field, motion) and four restoration tools in any order it chooses, checks each repair, can return to any earlier version to change the order, and ends with a radiology-style report of its diagnostic reasons, the repairs it applied and their results. We simulated up to five artifacts on 148 whole 3-D T1-weighted volumes, at levels calibrated to radiologists' grades of real scans. An MLLM that only looked at the image, as earlier MRI agents do, removed at most 19.7 % of the artifact error. With the best of five MLLMs, Dx-Rx removed a mean 64.5 %, nearly matching the 64.6 % of the same tools given the ground-truth artifacts, which are never known for a clinical scan. With all five models, it made no volume worse and was on par with or better than an expert rule-based pipeline built from the same tools (62.3 %). Code and demo are public at https://itu-biai.github.io/measure-before-you-repair.

Index Terms— 3-D brain MRI, agentic AI, mixed artifacts, medical image restoration, explainability

1. INTRODUCTION

Artifacts from thermal noise, radio-frequency spikes, ghosting, coil shading (bias field) and head motion degrade brain MRI and can force a rescan [1,2]. A scan may carry several of them at once, and which ones are present is not known in advance. The restoration has to be blind. Deep learning has been very successful at correcting one artifact, but such methods do not generalize beyond it, which limits them in the clinic where several occur together [3]. Running every repair on every scan is not safe: on our test set it made 11 volumes worse. An expert pipeline instead runs each repair only when an artifact is detected, in a fixed order. These rules are set by hand and stay fixed, so the pipeline cannot reorder its repairs when one interferes with another.

Agents built on large language models, which reason and call tools in a loop [4], offer another way. AgenticIR restores natural images with a language model that plans and reschedules and a vision-language model that judges quality [5]. For MRI, AgentMRI lets a vision-language model name the corruption and dispatch a restoration model [6]; MRI-AgentNet coordinates several such agents for

motion, undersampling and noise [7]; ResMAP restores MRI with mixed artifacts by cascading prompt retrieval [3]. Yet AgentMRI and MRI-AgentNet only look, through a vision-language model, and such models are least reliable on mild degradations [8]. In MRI quality assessment, MMRQA grades a scan better when its vision-language model is informed by the scan's global quality metrics [9].

We test the idea, measure before you repair, on whole 3-D volumes with up to five artifacts. Our main contributions are:

  • Dx-Rx, an MLLM agent that measures with diagnostic tools, repairs, checks each repair, and can return to any earlier version and change the order (Fig. 1).

• To our knowledge, the first agent to restore whole 3-D MRI volumes. Earlier MRI agents restore 2-D slices [6, 7].

  • A radiology-style report that gives the measured evidence for each finding and explains each repair and its order, and is checked deterministically against the run log for hallucinations.

• An ablation showing how much the diagnostic tools, the loop and a larger MLLM each add to the agent.

References (24)