Facebook pixel tracking

The Science and Information (SAI) Organization publishes open-access peer-reviewed journals in computer science and artificial intelligence.

Contact Info
Website thesai.org
Follow Us
Contact Info
Follow Us
Research Article | Open Access |

Enhancing GANomaly-Based Anomaly Detection for X-Ray Cargo Inspection

Author 1: Kholoud Alotaibi Author 2: Nasser Nasrabadi
International Journal of Advanced Computer Science and Applications (IJACSA) · Vol. 17, No. 3 · Published 2026

DOI: 10.14569/IJACSA.2026.0170302

Abstract

Anomaly detection in X-ray cargo imagery is challenging due to complex scene structures, object overlap, and limited labeled abnormal data. Reconstruction-based methods address this problem by learning normal cargo patterns and identifying deviations during testing. This study investigates how feature-level reconstruction objective functions influence detection performance within the GANomaly framework. Five objective configurations are evaluated on the CargoX dataset: a pixel-based baseline and three perceptual loss variants using Visual Geometry Group 16-layer network (VGG16) feature supervision at different depths (i.e., Rectified Linear Unit layers ReLU2_2, ReLU3_3, ReLU4_3, and multi-scale), and an encoder replacement using a ResNet50 with and without perceptual supervision. Performance is assessed using Receiver Operating Characteristic Area Under Curve (ROC-AUC), precision, recall, and F1-score, supported by qualitative analysis of reconstructions and residual maps. Results show that mid-level perceptual supervision (ReLU3_3) achieves the best performance. It improves ROC-AUC from 0.7182 to 0.7548 and demonstrates enhanced sensitivity to structural anomalies. Replacing the original GANomaly encoder with ResNet50 increases ROC-AUC to 0.7312 and improves precision. Combining ResNet50 with perceptual supervision achieves a ROC-AUC of 0.7517. However, it does not surpass the original ReLU3_3 configuration in recall or F1-score. Shallow features (ReLU2_2) and multi-scale aggregation do not improve detection. Failure analysis highlights challenges with low-contrast anomalies and structurally complex normal cargo scenes. These findings show that anomaly detection performance depends on both reconstruction supervision and encoder design. Therefore, loss selection and feature extraction should be analyzed together in reconstruction-based models.

Keywords

How to Cite this Article

Alotaibi, K., & Nasrabadi, N. (2026). Enhancing GANomaly-Based Anomaly Detection for X-Ray Cargo Inspection. International Journal of Advanced Computer Science and Applications, 17(3). https://doi.org/10.14569/IJACSA.2026.0170302

Alotaibi, Kholoud, and Nasser Nasrabadi. "Enhancing GANomaly-Based Anomaly Detection for X-Ray Cargo Inspection." International Journal of Advanced Computer Science and Applications, vol. 17, no. 3, 2026, https://doi.org/10.14569/IJACSA.2026.0170302.

@article{Alotaibi2026,
  title     = {Enhancing GANomaly-Based Anomaly Detection for X-Ray Cargo Inspection},
  journal   = {International Journal of Advanced Computer Science and Applications},
  volume    = {17},
  number    = {3},
  year      = {2026},
  publisher = {The Science and Information Organization},
  author    = {Kholoud Alotaibi and Nasser Nasrabadi},
  doi       = {10.14569/IJACSA.2026.0170302},
  url       = {https://doi.org/10.14569/IJACSA.2026.0170302}
}

Open Access — licensed under a Creative Commons Attribution 4.0 International License. Unrestricted use, distribution, and reproduction in any medium, even commercially, as long as the original work is properly cited.

Call for Papers - Important Dates

Volume 17 No. 12, December 2026
Paper Submission Due November 25, 2026
Review Notification December 15, 2026
Publication Date December 31, 2026