Cookie Consent by PrivacyPolicies.com
Quality Automation with AI and Relimetrics

Knowledge Hub

What, How, why?
User Guide
Installation
Playbooks

Version 2.0.1.1

Quality Automation with AI and Relimetrics

Object Detection in X-Ray Baggage Inspection

The task is to detect hammers, scissors, guns and knives in pseudo-colored x-ray baggage images for airport security application. This is a multi-class Object Detection task and can be performed using a single AI model.

Dataset

The dataset contains 406 X-Ray images that contain 1045 target objects of 4 types (scissors, hammers, guns and knives). All target objects are annotated using LabelMe format. Sample annotated images are shown below.

Data Loading & Annotation

You have 2 options:

  • 1. Download the data annotated with LabelMe format. Load the imageset and the annotations that you downloaded, using ReliVision. To do that, import the imageset using “Import Data” and the annotation file per image folder using the “Import Annotated Dataset” (with the LabelMe annotation format option). Your annotated dataset will be available in the gallery.
  • 2. Load the raw imageset and annotate the data yourself in any industry standard format you like using the ReliVision’s intuitive annotation functions. To do that, download the image folder only. Follow the ReliVision Knowledge Hub User Guide (ReliTrainer: Data) to define the labels (which are “hammer”, “scissors”, “gun” or “knife”), to annotate the objects (using rectangle annotation tool as the task is object detection) and to save them in an appropriate industry standard format (for which LabelMe is a good option). A sample annotation of an X-ray image with a gun (red contour) and knife (yellow contour) is shown below.

X-Ray Object Detection Model Training

Follow the ReliVision Knowledge Hub User Guide (ReliTrainer: Models) to train your AI model for X-Ray object detection. The main steps, detailed in the User Guide, include

  • Model type selection: Object Detection
  • Annotated dataset selection
  • Automated or manual train/test split which essentially spares some data for training validation purposes.
  • Hyper parameter setting: We have chosen the following in this use case:
  • Epochs: 500
  • X-Y Resolution: 640 (default)
  • Learning Rate: 0.01 (default)
  • Momentum: 0.937 (default)
  • Weight Decay: 0.005 (default)

Training and Validation loss and IOU curves as a function of epochs:

Reviewing Results

Follow the ReliVision Knowledge Hub User Guide (ReliTrainer: Models) to test your AI model for X-Ray object detection. Testing involves running the trained model on a given dataset using the “Prediction” tab. Each image in your test dataset will be augmented/annotated with your AI model’s output mask. Sample output masks are as follows:

Sample detection output in case of gun and scissors:

Sample detection output in case of knife and hammer:

Sample Training and Testing Performance:

  • False Positive Rate (FPR) = 0.2%
  • Sensitivity = 95.6%
Contact Us