REB: Reducing Biases in Representation for Industrial Anomaly Detection

Read original: arXiv:2308.12577 - Published 5/20/2024 by Shuai Lyu, Dongmei Mo, Waikeung Wong
Total Score

0

Sign in to get full access

or

If you already have an account, we'll log you in

Overview

  • Existing methods for industrial anomaly detection typically involve two stages: extracting features using a pre-trained model and then using distance measures for anomaly detection.
  • K-nearest neighbor (KNN) retrieval-based anomaly detection methods have shown promising results, but the features are not fully exploited as they ignore domain bias of pre-trained models and the difference in local density in the feature space.
  • The paper proposes a method called Reducing Biases (REB) that addresses these limitations to improve anomaly detection performance.

Plain English Explanation

The paper introduces a new approach called Reducing Biases (REB) for industrial anomaly detection. Existing methods often use a two-step process: first, they extract features from an image using a pre-trained machine learning model, and then they use those features to detect anomalies by looking at how different they are from normal examples.

One popular technique for this second step is called K-nearest neighbor (KNN) retrieval, which looks at the closest normal examples to a given image and uses that to decide if it's an anomaly. However, these methods have some limitations. They don't fully take into account the biases that can exist in the pre-trained model, and they also don't account for differences in the local density of the feature space (i.e., some regions may have a lot of normal examples clustered together, while others are more spread out).

The REB method aims to address these issues. It has two key components:

  1. Reducing domain bias: REB uses a self-supervised learning approach, along with a novel "defect generation" strategy, to better adapt the pre-trained model to the specific industrial domain.
  2. Local density KNN: REB uses a modified version of KNN that takes into account the local density of the feature space, so it can better distinguish anomalies even in crowded regions.

The paper shows that REB achieves state-of-the-art results on several benchmark datasets for industrial anomaly detection, outperforming other representation-based approaches. This suggests the method could be very useful for practical industrial applications.

Technical Explanation

The paper proposes a new method called Reducing Biases (REB) to address limitations in existing representation-based industrial anomaly detection approaches.

REB has two key components:

  1. Reducing domain bias: Existing methods use pre-trained models to extract features, but these models may have biases that don't match the target industrial domain. REB uses a self-supervised learning approach to fine-tune the model and reduce this domain bias. It also introduces a "DefectMaker" strategy to generate diverse synthetic defects for this self-supervised training.

  2. Local density KNN: Existing KNN-based anomaly detection methods ignore differences in the local density of the feature space, which can limit their performance. REB introduces a "local density KNN" (LDKNN) approach that explicitly accounts for local density to better identify anomalies.

The paper evaluates REB on several benchmark datasets for industrial anomaly detection, including MVTec AD, MVTec LOCO AD, and BTAD. REB achieves state-of-the-art results, outperforming other representation-based methods. For example, on MVTec AD, REB achieves an impressive 99.5% image-level AUROC using relatively small backbone networks like VGG11 and ResNet18.

Critical Analysis

The paper provides a compelling solution to address limitations in existing representation-based industrial anomaly detection methods. The key innovations around reducing domain bias and accounting for local density in the feature space are well-motivated and appear to deliver significant performance improvements.

However, the paper does not discuss potential limitations or caveats of the REB approach. For example, it's unclear how sensitive the method is to the quality and diversity of the synthetic defects generated by the DefectMaker strategy. Additionally, the computational overhead of the self-supervised fine-tuning and LDKNN steps is not quantified, which could be an important consideration for real-world industrial deployment.

Furthermore, the paper focuses solely on image-based anomaly detection and does not consider the application of REB to other industrial data modalities, such as sensor readings or time series. Extending the method to handle more diverse industrial data types could broaden its real-world impact.

Overall, the REB method represents a promising advance in industrial anomaly detection, but further research is needed to fully understand its limitations and potential for broader applicability.

Conclusion

The Reducing Biases (REB) method proposed in this paper offers a significant improvement over existing representation-based approaches for industrial anomaly detection. By addressing the issues of domain bias in pre-trained models and local density differences in the feature space, REB achieves state-of-the-art results on several benchmark datasets.

The self-supervised fine-tuning and novel DefectMaker strategy help REB adapt the feature extractor to the target industrial domain, while the local density KNN technique enables more effective anomaly detection. These innovations make REB a promising solution for practical industrial applications that require reliable and efficient anomaly detection.

While the paper focuses on image-based anomaly detection, the core principles of REB could potentially be extended to other industrial data modalities. Further research is needed to fully understand the method's limitations and explore its wider applicability. Nevertheless, this work represents an important step forward in enhancing the robustness and accuracy of industrial anomaly detection systems.



This summary was produced with help from an AI and may contain inaccuracies - check out the links to read the original source documents!

Follow @aimodelsfyi on 𝕏 →

Related Papers

Total Score

0

REB: Reducing Biases in Representation for Industrial Anomaly Detection

Shuai Lyu, Dongmei Mo, Waikeung Wong

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.

Read more

5/20/2024

Learning Unified Reference Representation for Unsupervised Multi-class Anomaly Detection
Total Score

0

Learning Unified Reference Representation for Unsupervised Multi-class Anomaly Detection

Liren He, Zhengkai Jiang, Jinlong Peng, Liang Liu, Qiangang Du, Xiaobin Hu, Wenbing Zhu, Mingmin Chi, Yabiao Wang, Chengjie Wang

In the field of multi-class anomaly detection, reconstruction-based methods derived from single-class anomaly detection face the well-known challenge of learning shortcuts, wherein the model fails to learn the patterns of normal samples as it should, opting instead for shortcuts such as identity mapping or artificial noise elimination. Consequently, the model becomes unable to reconstruct genuine anomalies as normal instances, resulting in a failure of anomaly detection. To counter this issue, we present a novel unified feature reconstruction-based anomaly detection framework termed RLR (Reconstruct features from a Learnable Reference representation). Unlike previous methods, RLR utilizes learnable reference representations to compel the model to learn normal feature patterns explicitly, thereby prevents the model from succumbing to the learning shortcuts issue. Additionally, RLR incorporates locality constraints into the learnable reference to facilitate more effective normal pattern capture and utilizes a masked learnable key attention mechanism to enhance robustness. Evaluation of RLR on the 15-category MVTec-AD dataset and the 12-category VisA dataset shows superior performance compared to state-of-the-art methods under the unified setting. The code of RLR will be publicly available.

Read more

7/17/2024

Separating Novel Features for Logical Anomaly Detection: A Straightforward yet Effective Approach
Total Score

0

Separating Novel Features for Logical Anomaly Detection: A Straightforward yet Effective Approach

Kangil Lee, Geonuk Kim

Vision-based inspection algorithms have significantly contributed to quality control in industrial settings, particularly in addressing structural defects like dent and contamination which are prevalent in mass production. Extensive research efforts have led to the development of related benchmarks such as MVTec AD (Bergmann et al., 2019). However, in industrial settings, there can be instances of logical defects, where acceptable items are found in unsuitable locations or product pairs do not match as expected. Recent methods tackling logical defects effectively employ knowledge distillation to generate difference maps. Knowledge distillation (KD) is used to learn normal data distribution in unsupervised manner. Despite their effectiveness, these methods often overlook the potential false negatives. Excessive similarity between the teacher network and student network can hinder the generation of a suitable difference map for logical anomaly detection. This technical report provides insights on handling potential false negatives by utilizing a simple constraint in KD-based logical anomaly detection methods. We select EfficientAD as a state-of-the-art baseline and apply a margin-based constraint to its unsupervised learning scheme. Applying this constraint, we can improve the AUROC for MVTec LOCO AD by 1.3 %.

Read more

7/26/2024

A Recover-then-Discriminate Framework for Robust Anomaly Detection
Total Score

0

A Recover-then-Discriminate Framework for Robust Anomaly Detection

Peng Xing, Dong Zhang, Jinhui Tang, Zechao li

Anomaly detection (AD) has been extensively studied and applied in a wide range of scenarios in the recent past. However, there are still gaps between achieved and desirable levels of recognition accuracy for making AD for practical applications. In this paper, we start from an insightful analysis of two types of fundamental yet representative failure cases in the baseline model, and reveal reasons that hinder current AD methods from achieving a higher recognition accuracy. Specifically, by Case-1, we found that the main reasons detrimental to current AD methods is that the inputs to the recovery model contain a large number of detailed features to be recovered, which leads to the normal/abnormal area has-not/has been recovered into its original state. By Case-2, we surprisingly found that the abnormal area that cannot be recognized in image-level representations can be easily recognized in the feature-level representation. Based on the above observations, we propose a novel Recover-then-Discriminate (ReDi) framework for AD. ReDi takes a self-generated feature map and a selected prompted image as explicit input information to solve problems in case-1. Concurrently, a feature-level discriminative network is proposed to enhance abnormal differences between the recovered representation and the input representation. Extensive experimental results on two popular yet challenging AD datasets validate that ReDi achieves the new state-of-the-art accuracy.

Read more

6/10/2024