[Paper Review] Industrial Anomaly Detection with Domain Shift: A Real-world Dataset and Masked Multi-scale Reconstruction
This paper introduces the Aero-engine Blade Anomaly Detection (AeBAD) dataset, addressing domain shift in industrial anomaly detection through non-aligned, multi-scale blade images with illumination and viewpoint variations. It proposes Masked Multi-scale Reconstruction (MMR), a method that enhances causality modeling across patches via masked reconstruction, achieving state-of-the-art performance on AeBAD and competitive results on MVTec AD.
Industrial anomaly detection (IAD) is crucial for automating industrial quality inspection. The diversity of the datasets is the foundation for developing comprehensive IAD algorithms. Existing IAD datasets focus on the diversity of data categories, overlooking the diversity of domains within the same data category. In this paper, to bridge this gap, we propose the Aero-engine Blade Anomaly Detection (AeBAD) dataset, consisting of two sub-datasets: the single-blade dataset and the video anomaly detection dataset of blades. Compared to existing datasets, AeBAD has the following two characteristics: 1.) The target samples are not aligned and at different scales. 2.) There is a domain shift between the distribution of normal samples in the test set and the training set, where the domain shifts are mainly caused by the changes in illumination and view. Based on this dataset, we observe that current state-of-the-art (SOTA) IAD methods exhibit limitations when the domain of normal samples in the test set undergoes a shift. To address this issue, we propose a novel method called masked multi-scale reconstruction (MMR), which enhances the model's capacity to deduce causality among patches in normal samples by a masked reconstruction task. MMR achieves superior performance compared to SOTA methods on the AeBAD dataset. Furthermore, MMR achieves competitive performance with SOTA methods to detect the anomalies of different types on the MVTec AD dataset. Code and dataset are available at https://github.com/zhangzilongc/MMR.
Motivation & Objective
- Address the lack of domain shift diversity in existing industrial anomaly detection (IAD) datasets, particularly in real-world scenarios involving varying illumination and viewpoints.
- Develop a new benchmark dataset, AeBAD, focused on aero-engine blades to reflect real-world challenges such as scale variation and misalignment.
- Identify limitations of current SOTA IAD methods under domain shift, especially in generalization to unseen normal distributions.
- Propose a novel method, Masked Multi-scale Reconstruction (MMR), to improve causality modeling in normal samples under domain shift.
- Demonstrate MMR's effectiveness on both the new AeBAD dataset and standard benchmarks like MVTec AD, showing robustness and generalization.
Proposed method
- Introduce the AeBAD dataset, comprising two sub-datasets: AeBAD-S (single blade images with scale and alignment variation) and AeBAD-V (video sequences of rotating blades with view differences).
- Design a masked reconstruction task that reconstructs missing patches across multiple scales to enforce structural and contextual consistency in normal samples.
- Utilize a vision transformer (ViT) backbone pre-trained on ImageNet via masked autoencoding to improve feature representation and generalization.
- Integrate multi-scale features from different layers of the encoder to enhance detection of fine-grained defects, with ablation showing intermediate layers are most informative.
- Apply a causal transformer-based module to model relationships among image patches, improving the model's ability to infer normal structure despite domain shift.
- Train the model end-to-end with a reconstruction loss on normal data, enabling it to learn robust normal patterns even when test data distribution shifts.
Experimental results
Research questions
- RQ1How do current SOTA IAD methods perform when normal samples in the test set exhibit domain shifts due to illumination and viewpoint changes?
- RQ2To what extent does the lack of alignment and scale consistency in real-world industrial data degrade the performance of existing anomaly detection models?
- RQ3Can a masked reconstruction task across multiple scales improve the model's ability to infer causality among patches in normal samples under domain shift?
- RQ4How does the choice of pre-training and feature scale fusion affect the detection performance on challenging, real-world IAD benchmarks?
- RQ5Can the proposed MMR method generalize to standard benchmarks like MVTec AD while maintaining strong performance on the new AeBAD dataset?
Key findings
- Current SOTA IAD methods suffer from high false positive rates when domain shifts occur, particularly due to reliance on training-set-specific normal distributions.
- Training ViT from scratch on the AeBAD dataset leads to overfitting and inferior performance (75.1% AUROC) compared to using ImageNet-pretrained models (84.7% AUROC).
- The MMR method achieves 84.7% mean AUROC and 89.1% mean PRO on the AeBAD dataset, outperforming SOTA methods under domain shift.
- Multi-scale feature fusion, especially combining intermediate layers (layer2 and layer3), yields the best performance (85.0% AUROC, 88.1% PRO), indicating optimal scale for defect detection.
- MMR maintains competitive performance on MVTec AD (84.7% AUROC), demonstrating generalization beyond the new dataset.
- Despite strong performance, MMR has lower throughput (118.1 images/s) than methods like ReverseDistillation (190.4 images/s), limiting real-time deployment due to dual-model inference and memory-intensive modules.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.