InsightX Agent: An LMM-based Agentic Framework with Integrated Tools for Reliable X-ray NDT Analysis

Jiale Liu, Huan Wang, Yue Zhang, Xiaoyu Luo, Jiaxiang Hu, Zhiliang Liu, Min XiearXiv 2025 · DOI

Introduction

Industrial non-destructive testing (NDT) is a critical process where inspectors search for microscopic defects in complex components, such as airplane engines or automotive wheels. While deep learning has significantly automated this task, current systems often operate as "black boxes." They provide bounding boxes and confidence scores but lack the ability to explain their reasoning or acknowledge uncertainty. This lack of transparency can hinder trust in safety-critical environments.

A recent study, "InsightX Agent: An LMM-based Agentic Framework with Integrated Tools for Reliable X-ray NDT Analysis," introduces a paradigm shift from passive detection to active reasoning. By utilizing a Large Multimodal Model (LMM) as an intelligent orchestrator, the researchers have developed a system that not only identifies defects but also provides human-interpretable justifications for its findings.

The Challenge of X-ray Inspection

Traditional deep learning models for X-ray inspection excel at pattern matching but often fail at "sanity checking." These models face three primary hurdles:

  1. Interpretability: Operators receive detection boxes without context, making it difficult to verify the AI's decisions.
  2. Interactivity: Standard detectors cannot engage in dialogue to clarify ambiguous regions or imaging artifacts.
  3. Reliability: Models are prone to false positives in complex geometries and lack the domain-specific "common sense" to identify physically impossible detections.

While standalone LMMs possess strong reasoning capabilities, they are often imprecise at spatial grounding and prone to hallucinations, making them unsuitable for direct use in safety-critical industrial applications.

The InsightX Agent Framework

The InsightX Agent addresses these limitations by positioning the LMM as a central orchestrator that coordinates specialized tools. This agentic approach allows the system to leverage the precision of dedicated detectors alongside the high-level reasoning of multimodal models.

Overview of the InsightX Agent framework, showing the integration of the SDMSD detector, the EGR reflection protocol, and the LMM core for interactive analysis.

The framework is built upon two core components:

  • Sparse Deformable Multi-Scale Detector (SDMSD): Serving as the "eyes" of the system, this transformer-based detector is optimized for the small, dense, and clustered defects common in X-ray imagery. Rather than providing final results, it generates initial "hypotheses" or proposals.
  • Evidence-Grounded Reflection (EGR): Acting as the "brain," the EGR tool executes a five-step reasoning protocol to validate the detector's proposals: context assessment, individual defect analysis, false positive elimination, confidence recalibration, and final quality assurance.

To tailor the LMM (specifically Qwen2.5-VL) for this task, the authors employed Low-Rank Adaptation (LoRA) to fine-tune it on a specialized corpus of NDT knowledge and structured response templates.

Specialized Tools for Detection and Reflection

The InsightX Agent treats detections as proposals requiring secondary validation, mimicking the workflow of a human expert. Through the EGR protocol, the system performs "Chain-of-Thought" reasoning to catch its own errors. For instance, it can determine if two overlapping bounding boxes represent a single defect or if a detected pattern is merely an imaging artifact—a distinction purely geometric detectors often miss.

Furthermore, the integration of an LMM enables interactive debugging. Operators can ask for clarification on specific detections, bridging the gap between automated AI analysis and human expertise. This dialogue-based interaction enhances the transparency and utility of the system in real-world inspection lines.

Experimental Results

The framework was rigorously evaluated using the GDXray+ dataset, focusing on industrial aluminum casting inspection. The results demonstrate that the InsightX Agent significantly outperforms traditional methods across multiple dimensions.

Comparison of InsightX Agent against traditional CV, standard DL detectors, and other LMM-based approaches across various performance and usability metrics.

Key performance highlights include:

  • State-of-the-Art Accuracy: The system achieved a peak F1-score of 96.54%, surpassing established models like Faster R-CNN (89.73%), YOLOX (95.76%), and DINO (94.41%).
  • Enhanced Precision: The introduction of the EGR reflection stage improved precision from 92.68% to 94.77% by effectively filtering out false alarms.
  • Small Defect Detection: The system showed marked improvements in identifying small defects, which are typically the most challenging to distinguish from noisy X-ray backgrounds.
  • Qualitative Transparency: Beyond metrics, the agent generates detailed "Reflection Logs" that provide evidence-based explanations for every detection, fostering greater trust with human operators.

Discussion and Future Work

While the InsightX Agent represents a significant advancement in reliable NDT analysis, some challenges remain. The primary hurdle is latency; the LMM's reasoning process currently takes 45-60 seconds per image, which is suitable for batch quality control but may be too slow for high-speed, real-time assembly lines.

Future research will focus on optimizing the system's speed and testing its generalization capabilities across different materials, such as steel welds or complex electronic assemblies. Additionally, formal user studies are planned to quantify the impact of the agent's explanations on the decision-making process of human inspectors in industrial settings.

Paper Citation: Liu, J., Wang, H., et al. "InsightX Agent: An LMM-based Agentic Framework with Integrated Tools for Reliable X-ray NDT Analysis." IEEE Transactions on Reliability, 2025.

Summary updated

BibTeX
@misc{liu2025insightx,
  author = {Jiale Liu and Huan Wang and Yue Zhang and Xiaoyu Luo and Jiaxiang Hu and Zhiliang Liu and Min Xie},
  title = {{InsightX Agent: An LMM-based Agentic Framework with Integrated Tools for Reliable X-ray NDT Analysis}},
  year = {2025},
  eprint = {2507.14899},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.14899},
}
Figure