REB: Reducing Biases in Representation for Industrial Anomaly Detection

Shuai Lyu, Dongmei Mo, Waikeung Wong
8/24/2023
cs.CVcs.AI

Official code: ShuaiLYU/REB (26 stars, Apache-2.0, last commit 2024-01-22).

Abstract

Existing representation-based methods usually conduct industrial anomaly detection in two stages: obtain feature representations with a pre-trained model and perform distance measures for anomaly detection. Among them, K-nearest neighbor (KNN) retrieval-based anomaly detection methods show promising results. However, the features are not fully exploited as these methods ignore domain bias of pre-trained models and the difference of local density in feature space, which limits the detection performance. In this paper, we propose Reducing Biases (REB) in representation by considering the domain bias and building a self-supervised learning task for better domain adaption with a defect generation strategy (DefectMaker) that ensures a strong diversity in the synthetic defects. Additionally, we propose a local-density KNN (LDKNN) to reduce the local density bias in the feature space and obtain effective anomaly detection. The proposed REB method achieves a promising result of 99.5\% Im.AUROC on the widely used MVTec AD, with smaller backbone networks such as Vgg11 and Resnet18. The method also achieves an impressive 88.8\% Im.AUROC on the MVTec LOCO AD dataset and a remarkable 96.0\% on the BTAD dataset, outperforming other representation-based approaches. These results indicate the effectiveness and efficiency of REB for practical industrial applications. Code:https://github.com/ShuaiLYU/REB.

View on arXivView PDF

Code Implementations(1)

ShuaiLYU/REBOfficial100%
Apache-2.0

REB:Reducing Biases in Representation for Industrial Anomaly Detection

266Shell, PythonAug 10, 20232 years agoApache-2.0

Cite this paper

@article{lyu2023reb,
  title  = {REB: Reducing Biases in Representation for Industrial Anomaly Detection},
  author = {Shuai Lyu and Dongmei Mo and Waikeung Wong},
  year   = {2023},
  eprint = {2308.12577},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2308.12577v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2308.12577.svg)](https://codeofpaper.com/paper/2308.12577)

Discussion