X-ray Image Generation as a Method of Performance Prediction for Real-Time Inspection: a Case Study

Vladyslav Andriiashen, Robert van Liere, Tristan van Leeuwen, Kees Joost BatenburgarXiv 2024 · DOI · arXiv

TL;DR

This paper proposes a data-driven framework to predict the performance of industrial X-ray inspection systems using simulated images instead of exhaustive physical experiments. By calibrating a computationally efficient image generator to match a specific hardware setup, the authors demonstrate that they can accurately predict an inspection algorithm's "Probability of Detection" (POD) across various exposure times, significantly speeding up system design and optimization.

What Problem Does This Paper Address?

Designing an automated X-ray inspection system for a factory—such as one detecting bone fragments in chicken fillets—is a balancing act. Engineers must juggle throughput (conveyor belt speed), safety (radiation dose), and accuracy. Faster belts mean shorter X-ray exposure times, which leads to noisier images and lower detection rates.

Currently, finding the "sweet spot" for these settings requires expensive, time-consuming trial-and-error with physical samples. Furthermore, because every product (apples, grain, poultry) interacts with X-rays differently, a setup that works for one line might fail on another. The authors tackle the challenge of predicting how changes in hardware settings (like exposure time) will impact the final accuracy of deep-learning-based inspection algorithms without needing to run a new experiment for every permutation.

Methods

The researchers developed a "digital twin" approach for X-ray image generation:

  1. Physics-Based Generation: They used Beer’s Law to model how X-rays attenuate through objects, but added a crucial layer of realism by modeling the specific detector's noise.
  2. System Calibration: Instead of a generic simulation, they calibrated their generator by measuring the specific gain, darkfield signal, and electronic noise of a real-world detector. They also modeled the "blur" (Point Spread Function) inherent in the hardware.
  3. Performance Equivalence: The core philosophy is that a generator doesn't need to be visually perfect; it just needs to be "performance-equivalent." If an AI model performs the same on a generated image as it does on a real one, the generator is a success.
  4. POD Curves: They used Probability of Detection (POD) curves—a standard tool in non-destructive testing—to quantify performance. These curves plot the likelihood of detecting a foreign object against its contrast level.
  5. Deep Learning: They employed a Deep Convolutional Neural Network (DCNN), specifically a DeepLabV3+ architecture, to perform the actual segmentation and detection of bone fragments.

Datasets

The study focused on a poultry inspection case study:

  • Training Set: 163 X-ray projections of chicken fillets containing rib bone fragments and 91 projections of boneless fillets.
  • Test/Validation Set: A narrower, controlled dataset of 84 projections involving two specific fillets and two small bone fragments (2mm and 3mm) placed in various locations.
  • Multi-Exposure Data: To validate the model, they acquired real images at four different exposure times: 1s (high quality), 100ms, 50ms, and 20ms. The 1s images served as the "ground truth" templates for the image generator.

Key Insights and Ideas

  • The "Good Enough" Simulator: The authors argue that high-fidelity, computationally expensive Monte-Carlo simulations are overkill for performance prediction. A simpler, calibrated noise model is sufficient to predict how a DCNN will fail or succeed.
  • Noise as a Performance Driver: In high-throughput settings, noise is the primary factor limiting accuracy. By accurately characterizing the detector's noise profile, the simulation can mimic the "difficulty" of the task for the AI.
  • Quantifying the Throughput Trade-off: The methodology allows engineers to see exactly how much contrast a foreign object needs to remain detectable as exposure time drops. For example, they showed that as exposure time decreases from 100ms to 20ms, the required contrast for a 90% detection rate nearly doubles.

Key Results

  • Matching POD Curves: The POD curves generated from simulated data were nearly indistinguishable from those generated using real experimental data for the 100ms and 50ms exposure settings.
  • Predictive Accuracy: At 50ms exposure, the contrast value required for a 90% detection rate was calculated at 0.13 for generated data and 0.14 for real data—a very close match within the margin of uncertainty.
  • Efficiency: The calibrated generator allows for testing "what-if" scenarios (like 75ms or 200ms exposures) for which no physical data was ever collected, providing a continuous view of system performance.

Limitations and Future Work

  • Extreme Noise Limits: At the very lowest exposure time (20ms), the variance in the performance estimate increased, suggesting the generator's accuracy might degrade under extreme noise conditions.
  • Morphological Constraints: The system currently relies on high-quality reference scans of real objects. It does not yet procedurally generate new object shapes or orientations, which limits the variety of the "virtual" test samples.
  • Feature Linkage: The authors noted that POD curves are currently linked to image properties (like contrast) rather than physical properties (like bone thickness). Future work could aim to bridge this gap to make the results even more intuitive for industrial designers.

Summary updated

Abstract

X-ray imaging can be efficiently used for high-throughput in-line inspection of industrial products. However, designing a system that satisfies industrial requirements and achieves high accuracy is a challenging problem. The effect of many system settings is application-specific and difficult to predict in advance. Consequently, the system is often configured using empirical rules and visual observations. The performance of the resulting system is characterized by extensive experimental testing. We propose to use computational methods to substitute real measurements with generated images corresponding to the same experimental settings. With this approach, it is possible to observe the influence of experimental settings on a large amount of data and to make a prediction of the system performance faster than with conventional methods. We argue that a high accuracy of the image generator may be unnecessary for an accurate performance prediction. We propose a quantitative methodology to characterize the quality of the generation model using POD curves. The proposed approach can be adapted to various applications and we demonstrate it on the poultry inspection problem. We show how a calibrated image generation model can be used to quantitatively evaluate the effect of the X-ray exposure time on the performance of the inspection system.
BibTeX
@misc{andriiashen2024x,
  author = {Vladyslav Andriiashen and Robert van Liere and Tristan van Leeuwen and Kees Joost Batenburg},
  title = {{X-ray Image Generation as a Method of Performance Prediction for Real-Time Inspection: a Case Study}},
  year = {2024},
  eprint = {2401.16847},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2401.16847},
}

Loading related content...

Figure