English

Energy-Based Anomaly Detection and Localization

Machine Learning 2021-05-10 v1 Computer Vision and Pattern Recognition

Abstract

This brief sketches initial progress towards a unified energy-based solution for the semi-supervised visual anomaly detection and localization problem. In this setup, we have access to only anomaly-free training data and want to detect and identify anomalies of an arbitrary nature on test data. We employ the density estimates from the energy-based model (EBM) as normalcy scores that can be used to discriminate normal images from anomalous ones. Further, we back-propagate the gradients of the energy score with respect to the image in order to generate a gradient map that provides pixel-level spatial localization of the anomalies in the image. In addition to the spatial localization, we show that simple processing of the gradient map can also provide alternative normalcy scores that either match or surpass the detection performance obtained with the energy value. To quantitatively validate the performance of the proposed method, we conduct experiments on the MVTec industrial dataset. Though still preliminary, our results are very promising and reveal the potential of EBMs for simultaneously detecting and localizing unforeseen anomalies in images.

Keywords

Cite

@article{arxiv.2105.03270,
  title  = {Energy-Based Anomaly Detection and Localization},
  author = {Ergin Utku Genc and Nilesh Ahuja and Ibrahima J Ndiour and Omesh Tickoo},
  journal= {arXiv preprint arXiv:2105.03270},
  year   = {2021}
}

Comments

9 pages, 3 figures, as submitted to EBM ICLR 2021 workshop

R2 v1 2026-06-24T01:52:38.892Z