NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Computer Vision on X-ray Data in Industrial Production and Security Applications: A Comprehensive Survey

Mehdi Rafiei, Jenni Raitoharju, Alexandros IosifidisarXiv 2022 · DOI

TL;DR

This paper provides a comprehensive roadmap of how computer vision (CV) and deep learning are revolutionizing non-medical X-ray analysis. It bridges the gap between industrial production (like detecting defects in welds and 3D-printed parts) and security (identifying threats in cluttered baggage), while highlighting the urgent need for standardized evaluation protocols in the field.

What Problem Does This Paper Address?

X-ray imaging is the gold standard for non-destructive testing because it reveals the internal structure of objects without damaging them. Historically, experts manually inspected these images—a process that is slow, subjective, and prone to human error due to fatigue.

While computer vision has transformed natural image processing (like facial recognition or self-driving cars), applying it to X-ray data presents unique challenges. Unlike standard photos, X-ray "colors" represent material density rather than surface reflection. Furthermore, in security contexts, objects are often overlapping and occluded, creating a "clutter" problem that standard algorithms struggle to solve. This paper synthesizes a fragmented research landscape, covering everything from additive manufacturing to airport security, to show where we stand and what’s missing.

FIGURE 2. X-ray imaging technology.

Methods

The authors categorize X-ray CV techniques into two main eras:

  1. Traditional Machine Learning: These methods rely on manual feature extraction using tools like SIFT (Scale Invariant Feature Transform), HOG (Histogram of Oriented Gradients), and LBP (Local Binary Pattern). These features are then fed into "shallow" classifiers like Support Vector Machines (SVM) or Random Forests.
  2. Deep Learning (DL): This is the current state-of-the-art. The paper details the use of:
  3. Classification & Backbones: VGG and ResNet are commonly used to identify if a part is "defective" or "intact."
    • Object Detection: Architectures like Faster R-CNN, YOLO (You Only Look Once), and SSD are used to locate and identify specific threats (guns, knives) or defects (pores in a weld).
  4. Segmentation: U-Net and Mask R-CNN are employed when pixel-perfect outlines of defects are required, such as measuring the exact volume of a pore in a 3D-printed metal part.

The survey also highlights the use of Generative Adversarial Networks (GANs) to synthesize X-ray data, helping to overcome the chronic shortage of labeled training images in specialized industrial niches.

Examples of CV tasks: binary classification for casting, object detection for security, and segmentation for welding/CT scans.

Datasets

The paper reviews several pivotal datasets that have moved the field forward:

  • GDXray: A foundational database containing casting, welding, and baggage images.
  • SIXray: A massive security dataset with over a million images, specifically designed to test "class imbalance" (where threats are rare compared to normal items).
  • OPIXray & CLCXray: Newer benchmarks focused specifically on the "overlap" problem in security, featuring high-quality annotations for occluded prohibited items.
  • CoCr AM XCT: A specialized dataset for 3D defect segmentation in additive manufacturing.

Key Insights and Ideas

  • Density as Data: In X-ray imaging, intensity is inversely proportional to material density. This allows multi-energy X-rays to produce "pseudo-colored" images where different colors represent different atomic numbers (e.g., organic vs. inorganic materials).
  • The Overlap Hurdle: In security, the biggest challenge isn't just recognizing a knife; it's recognizing a knife buried under a laptop and a power bank. This has led to the development of "De-occlusion Attention Modules" and "Lateral Inhibition Modules" in recent DL architectures.
  • Task Versatility: Many techniques developed for natural images (like YOLO for detection) are surprisingly effective on X-ray data, provided they are tuned for the grayscale or pseudo-colored nature of the input.
  • The "Wild West" of Evaluation: Perhaps the most critical insight is that current research is highly fragmented. Different papers use different data splits, different classes, and different metrics, making it nearly impossible to say which algorithm is truly "the best."
FIGURE 3. Different X-ray imaging techniques based on the number of beam sources: a) mono-energy, b) multi-energy.

Key Results

The survey provides a massive performance comparison across various benchmarks. Key takeaways include:

  • Deep Learning Dominance: In almost every category (casting, welding, security), DL-based methods significantly outperform traditional feature-based methods.
  • Faster R-CNN vs. YOLO: For high-stakes security, Faster R-CNN often provides higher accuracy (mAP), while YOLO variants are preferred for real-time industrial production lines where speed is paramount.
  • Segmentation Success: On the CoCr AM XCT dataset, 3D U-Net variants achieved mean Intersection over Union (mIoU) scores as high as 0.884 for pore segmentation.

Limitations and Future Work

The authors identify several roadblocks:

  • Lack of Standardization: There is a dire need for unified experimental protocols. The authors recommend that future researchers use standard data splits and report specific versions of metrics like mAP.
  • Data Scarcity: While security datasets are growing, many industrial applications (like electronics or material science) still rely on small, private datasets.
  • Human-in-the-Loop: Future systems should focus on "trustable" AI that assists human operators rather than just replacing them, especially in high-security environments.
  • 3D Analysis: Most current work is 2D. Moving toward 3D X-ray (CT) analysis using computer vision is a major frontier for industrial quality control.

Summary updated

BibTeX
@misc{rafiei2022computer,
  author = {Mehdi Rafiei and Jenni Raitoharju and Alexandros Iosifidis},
  title = {{Computer Vision on X-ray Data in Industrial Production and Security Applications: A Comprehensive Survey}},
  year = {2022},
  eprint = {2211.05565},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2211.05565},
}
Figure