School of Electrical and Control Engineering, Shaanxi University of Science and Technology, Xi'an 710021, China.
School of Cyber Engineering, Xidian University, Xi'an 710126, China.
Sensors (Basel). 2022 Jul 8;22(14):5141. doi: 10.3390/s22145141.
In industrial production, flaws and defects inevitably appear on surfaces, resulting in unqualified products. Therefore, surface defect detection plays a key role in ensuring industrial product quality and maintaining industrial production lines. However, surface defects on different products have different manifestations, so it is difficult to regard all defective products as being within one category that has common characteristics. Defective products are also often rare in industrial production, making it difficult to collect enough samples. Therefore, it is appropriate to view the surface defect detection problem as a semi-supervised anomaly detection problem. In this paper, we propose an anomaly detection method that is based on dual attention and consistency loss to accomplish the task of surface defect detection. At the reconstruction stage, we employed both channel attention and pixel attention so that the network could learn more robust normal image reconstruction, which could in turn help to separate images of defects from defect-free images. Moreover, we proposed a consistency loss function that could exploit the differences between the multiple modalities of the images to improve the performance of the anomaly detection. Our experimental results showed that the proposed method could achieve a superior performance compared to the existing anomaly detection-based methods using the Magnetic Tile and MVTec AD datasets.
在工业生产中,表面不可避免地会出现缺陷和瑕疵,导致产品不合格。因此,表面缺陷检测对于保证工业产品质量和维护工业生产线至关重要。然而,不同产品的表面缺陷有不同的表现形式,因此很难将所有有缺陷的产品都归为一类,认为它们具有共同的特征。有缺陷的产品在工业生产中也往往很少见,难以收集到足够的样本。因此,将表面缺陷检测问题视为半监督异常检测问题是合适的。在本文中,我们提出了一种基于双注意力和一致性损失的异常检测方法,以完成表面缺陷检测任务。在重建阶段,我们同时使用了通道注意力和像素注意力,使网络能够学习更鲁棒的正常图像重建,从而有助于将缺陷图像与无缺陷图像区分开来。此外,我们提出了一种一致性损失函数,可以利用图像的多种模态之间的差异来提高异常检测的性能。我们的实验结果表明,与使用 Magnetic Tile 和 MVTec AD 数据集的现有基于异常检测的方法相比,所提出的方法能够实现更好的性能。