A CAM-based Weakly Supervised Method for Surface Defect Inspection
Xiaojun Wu,Tuo Wang,Yiming Li,Peng Li,Yunhui Liu
DOI: https://doi.org/10.1109/tim.2022.3168895
IF: 5.6
2022-01-01
IEEE Transactions on Instrumentation and Measurement
Abstract:Product surface defect detection is vital to ensure the quality, efficiency, and reliability of industrial production. Deep-learning-based product surface defect inspection algorithms have been gradually used because of their higher detection accuracy and better generalization performance. However, the current deep-learning-based algorithms require a large amount of training samples and high-cost manual annotation work, which is inefficient and costly. In this article, we propose a weakly supervised defect segmentation algorithm of image-level labels based on a classification activation map (CAM). First, we use a Siamese network to narrow the gap between image-level and pixel-level supervision. Then, three modules are improved to enhance the inspection performance, i.e., auto-focused subregion loss, max-pooling-based nonlocal attention, and log summation exponential global pooling, which are used to boost the segmentation without additional computation complexity. To evaluate the performance of the proposed method, we conduct comparison experiments on two public datasets: Deutsche Arbeitsgemeinschaft fuer Mustererkennung (DAGM) and KolektorSDD. The experimental results showed that the proposed method is superior and generalized than state-of-the-art weakly supervised methods. Furthermore, our method outperforms some early fully supervised segmentation algorithms.
engineering, electrical & electronic,instruments & instrumentation