[论文解读] Industrial Anomaly Detection with Domain Shift: A Real-world Dataset and Masked Multi-scale Reconstruction
本文提出了航空发动机叶片异常检测(AeBAD)数据集,通过非对齐、多尺度的叶片图像以及光照和视角变化,解决了工业异常检测中的领域偏移问题。提出了一种掩码多尺度重建(MMR)方法,通过掩码重建增强跨图像块的因果建模,实现了AeBAD数据集上的最先进性能,并在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.
研究动机与目标
- 解决现有工业异常检测(IAD)数据集中领域偏移多样性不足的问题,特别是在涉及光照和视角变化的真实场景中。
- 构建一个新的基准数据集AeBAD,聚焦于航空发动机叶片,以反映真实世界中尺度变化和错位等挑战。
- 识别当前SOTA IAD方法在领域偏移下的局限性,特别是在泛化到未见正常分布时的表现。
- 提出一种新方法——掩码多尺度重建(MMR),以改善在领域偏移下正常样本中的因果建模能力。
- 在新提出的AeBAD数据集和标准基准(如MVTec AD)上验证MMR的有效性,展示其鲁棒性与泛化能力。
提出的方法
- 引入AeBAD数据集,包含两个子集:AeBAD-S(具有尺度和对齐变化的单张叶片图像)和AeBAD-V(具有视角差异的旋转叶片视频序列)。
- 设计一种掩码重建任务,通过在多个尺度上重建缺失的图像块,以强制在正常样本中保持结构和上下文一致性。
- 采用在ImageNet上通过掩码自编码预训练的视觉Transformer(ViT)主干网络,以提升特征表示能力和泛化性能。
- 融合编码器不同层的多尺度特征,以增强对细微缺陷的检测能力,消融实验表明中间层最具信息量。
- 引入基于因果Transformer的模块,建模图像块之间的关系,提升模型在领域偏移下推断正常结构的能力。
- 在正常数据上端到端训练模型,使用重建损失,使其即使在测试数据分布发生偏移时,也能学习到鲁棒的正常模式。
实验结果
研究问题
- RQ1当测试集中的正常样本因光照和视角变化而出现领域偏移时,当前SOTA IAD方法的表现如何?
- RQ2真实工业数据中缺乏对齐和尺度一致性在多大程度上会降低现有异常检测模型的性能?
- RQ3在领域偏移下,跨多个尺度的掩码重建任务是否能提升模型在正常样本中推断块间因果关系的能力?
- RQ4预训练策略和特征尺度融合的选择在多大程度上影响模型在具有挑战性的现实IAD基准上的检测性能?
- RQ5所提出的MMR方法是否能在保持在新AeBAD数据集上强性能的同时,泛化到标准基准(如MVTec AD)?
主要发现
- 当前SOTA IAD方法在发生领域偏移时,误报率显著升高,尤其由于其对训练集特定正常分布的依赖。
- 在AeBAD数据集上从零开始训练ViT导致过拟合且性能较差(AUROC为75.1%),而使用ImageNet预训练模型则表现更优(AUROC为84.7%)。
- MMR方法在AeBAD数据集上达到84.7%的平均AUROC和89.1%的平均PRO,优于SOTA方法在领域偏移下的表现。
- 多尺度特征融合,特别是结合中间层(第2层和第3层),性能最佳(AUROC为85.0%,PRO为88.1%),表明该尺度对缺陷检测最为合适。
- MMR在MVTec AD上也保持了具有竞争力的性能(AUROC为84.7%),证明其在新数据集之外的泛化能力。
- 尽管性能优异,MMR的吞吐量较低(118.1张/秒),低于ReverseDistillation等方法(190.4张/秒),由于双模型推理和内存密集型模块,限制了其在实时部署中的应用。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。