← Latest papers
⚡ electrical engineering

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

The paper introduces Dx-Rx, an explainable agent that leverages a multimodal large language model to iteratively diagnose and blindly restore multi-artifact 3-D MRI volumes, achieving restoration performance nearly matching ground-truth-guided methods while outperforming both standard image-only agents and expert rule-based pipelines.

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

Published 2026-11-04
📖 6 min read🧠 Deep dive

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

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). ✨ This is an AI-generated explanation of the paper below. It is not written or endorsed by the author. For technical accuracy, refer to the original paper. Read full disclaimer

Medical imaging relies on the clarity of a picture to reveal what lies beneath the skin. When a doctor orders a magnetic resonance imaging, or MRI, scan of a brain, they expect a sharp, clean view of the tissue. However, the process of capturing these images is fragile. The machine can introduce various types of visual distortions, known as artifacts, which blur the picture or create false patterns. These distortions might come from the patient moving slightly, from electrical interference in the room, or from the way the machine's magnetic field is not perfectly even. Often, a single scan suffers from several of these problems at once. If the image is too damaged, the only solution is to send the patient back for a new scan, which is time-consuming, costly, and stressful for the patient. For decades, scientists have tried to use computers to fix these damaged images automatically, but most existing methods are designed to fix only one specific type of problem at a time. They struggle when multiple issues appear together, and they cannot easily decide which problem is present or in what order to fix them.

A team of researchers from Istanbul Technical University has developed a new approach that changes how these repairs are attempted. Instead of forcing a computer to guess which fix to apply, they created an intelligent agent that acts more like a careful radiologist. This system, named Dx-Rx, does not simply look at a blurry image and try to sharpen it. Instead, it follows a strict rule: measure before you repair. The system is built on a multimodal large language model, a type of artificial intelligence that can understand both text and images. This agent is given a three-dimensional brain scan that may contain a mix of up to five different types of artifacts, or none at all. The agent has no prior knowledge of what is wrong with the image; it must discover the problems itself.

To do this, the agent uses a set of specialized diagnostic tools. These tools act like a series of tests, each designed to detect a specific type of distortion. One tool looks for random static noise, another searches for bright spots caused by electrical spikes, a third looks for faint duplicate images of the brain, a fourth checks for uneven shading, and a fifth measures how much the head might have moved. When the agent suspects a problem, it calls the relevant tool, which returns a clear answer: whether the artifact is present, how strong it is, and a visual example of the evidence. The agent then uses this information to decide which repair tool to use. It has four repair tools at its disposal, each capable of removing a specific type of distortion.

What makes this system unique is its ability to think in a loop. After applying a repair, the agent does not just assume the job is done. It immediately re-measures the image to see if the problem is actually gone. If the repair failed or made the image worse, the agent can rewind the process to an earlier version of the scan and try a different order of repairs. For instance, if fixing the noise first made the ghosting effect worse, the agent can go back, fix the ghosting first, and then handle the noise. This flexibility allows it to navigate complex situations where different fixes might interfere with one another. Once the agent is satisfied that the image is as good as it can be, it generates a report written in the style of a medical diagnosis. This report lists exactly what it found, what it did to fix it, and why it chose that specific order of actions, ensuring that every claim in the report is backed by the data it collected.

The researchers tested this system on 148 real-world brain scans that had been artificially damaged with up to five different types of artifacts. They calibrated the damage to match the severity levels that human radiologists use to judge real scans. The results showed that the agent was remarkably effective. When the agent used its diagnostic tools to measure the problems before fixing them, it removed an average of 64.5 percent of the error in the images. This performance was nearly identical to a theoretical "perfect" system that was told exactly what the problems were in advance, a scenario that is impossible in real clinical practice. In contrast, a version of the agent that only looked at the images without using the diagnostic tools managed to remove less than 20 percent of the error. This proved that the ability to measure the specific problem was the key to success, not just the ability to see the image.

Furthermore, the system was safe to use. In tests where other automated methods made 11 out of 148 scans worse, the new agent never degraded the quality of any image. It performed as well as, or better than, a traditional expert system built by humans with fixed rules for when to apply each fix. The researchers also found that the size of the artificial intelligence model mattered. The largest model they tested came closest to the performance of the perfect system, while smaller models performed slightly less well but still far better than systems that did not measure first. The agent also demonstrated a high level of honesty in its reporting, with its written explanations matching the actual steps it took in almost every case.

This work suggests that the future of medical image restoration lies not in more powerful image-processing algorithms alone, but in systems that can reason about what is wrong before they try to fix it. By combining the ability to measure specific defects with the flexibility to change its strategy, this agent offers a way to rescue damaged scans that would otherwise be discarded. The researchers have made their code and a demonstration of the system available to the public, allowing others to see how an artificial intelligence can learn to act like a careful diagnostician, measuring the problem before attempting the cure.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →