PIDray: A Large-scale X-ray Benchmark for Real-World Prohibited Item Detection

Libo Zhang, Lutao Jiang, Ruyi Ji, Heng FanarXiv 2022 · DOI

Introduction

Automating security inspections at transit hubs like airports and subways is a critical yet challenging task for computer vision. Unlike standard natural images, X-ray images are formed by high-energy rays penetrating objects, leading to unique visual properties. Materials absorb X-rays differently, resulting in translucent, overlapping colors rather than solid surfaces. Furthermore, prohibited items are often deliberately concealed behind cluttered objects or wrapped in materials that distort their contours.

Comparison between instance segmentation in natural images (top row) and X-ray security images (bottom row).

Existing research has long been hindered by a "data desert." Previous datasets were often too small, lacked category diversity, or omitted "normal" (non-threat) images, causing models to over-predict threats. The PIDray dataset addresses these gaps, providing a large-scale benchmark designed to mirror the complexities of real-world security scenarios.

The PIDray Dataset

PIDray is currently the largest X-ray benchmark for prohibited item detection, containing 124,486 images across 12 categories: Gun, Knife, Wrench, Pliers, Scissors, Hammer, Handcuffs, Baton, Sprayer, Power Bank, Lighter, and Bullet.

The 12 categories of prohibited items featured in the PIDray dataset.

A key feature of PIDray is the division of its test set into Easy, Hard, and Hidden subsets. The "Hidden" subset specifically targets deliberate concealment, allowing researchers to measure how well models handle intentionally obscured threats. Additionally, the inclusion of a large volume of "normal" images is a significant contribution; the authors found that training with clean images reduced the false-positive error rate from 21.4% to 4.8%.

Methodology: Divide-and-Conquer

To address the "long-tailed" distribution of data and the difficulty of overlapping objects, the authors propose a Divide-and-Conquer Pipeline. This approach utilizes a tree-structured architecture to separate the detection process into two distinct stages:

  1. Node $\mathcal{R}_0$ (The Gatekeeper): This node performs a coarse-grained binary classification to determine if an image contains any prohibited item. By filtering out the vast majority of "normal" data first, the pipeline balances the influence of common versus rare items.
  2. Node $\mathcal{R}_1$ (The Specialist): If a threat is flagged, the image proceeds to this node for fine-grained tasks, including object detection, instance segmentation, and multi-label classification.

To further combat occlusion, the authors integrated Dense Attention Modules (DAMs) into the Feature Pyramid Network (FPN). These modules utilize channel-wise and spatial-wise attention along with dependency refinement. This allows the model to capture long-range pixel relationships and focus on the discriminative features of a prohibited item even when its edges are fragmented by overlapping clutter.

Results and Discussion

The proposed pipeline, implemented on a Cascade Mask R-CNN baseline, demonstrated superior performance across the PIDray benchmark. It achieved 66.6% Detection AP and 53.4% Segmentation AP, significantly outperforming standard models like FCOS and RetinaNet.

Notably, on the challenging "Hidden" subset, the method provided an absolute 3.9% AP boost over the next best performing model. This validates the effectiveness of the attention-based approach in identifying intentionally concealed items. Furthermore, the model showed performance gains on standard datasets like COCO and PASCAL VOC, suggesting that the divide-and-conquer architecture offers generalizable improvements for object detection beyond the X-ray domain.

Conclusion

PIDray represents a significant step forward in X-ray security research. By providing a massive, diverse dataset and a specialized divide-and-conquer pipeline, the authors offer a robust framework for tackling the real-world challenges of material-dependent appearance and deliberate concealment. Future work will focus on expanding the dataset with 3D CT scans and optimizing the pipeline for real-time deployment in high-throughput transit environments.

Summary updated

BibTeX
@misc{zhang2022pidray,
  author = {Libo Zhang and Lutao Jiang and Ruyi Ji and Heng Fan},
  title = {{PIDray: A Large-scale X-ray Benchmark for Real-World Prohibited Item Detection}},
  year = {2022},
  eprint = {2211.10763},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2211.10763},
}
Figure