Erasing-inpainting-based data augmentation using denoising diffusion probabilistic models with limited samples for generalized surface defect inspection

被引:12
作者
Tao, Huanjie [1 ,2 ,3 ]
机构
[1] Northwestern Polytech Univ, Sch Comp Sci, Xian 710129, Peoples R China
[2] Minist Educ, Engn Res Ctr Embedded Syst Integrat, Xian 710129, Peoples R China
[3] Natl Engn Lab Integrated Aerosp Ground Ocean Big D, Xian 710129, Peoples R China
基金
中国国家自然科学基金;
关键词
Data augmentation; Defect generation; Defect classification; Defect segmentation; Denoising diffusion probabilistic model;
D O I
10.1016/j.ymssp.2023.111082
中图分类号
TH [机械、仪表工业];
学科分类号
0802 ;
摘要
Surface defect inspection aims to identify defective regions in product surface images to ensure product quality. Existing deep learning methods have developed rapidly on surface defect inspection. However, their excellent performances rely on a large number of training samples, which are hard to acquire in practical industrial scenarios due to the continuous improvements of the production line. To solve this issue, we propose an erasing-inpainting-based data augmentation method using a denoising diffusion probabilistic model (DDPM) with limited samples for generalized surface defect inspection. Our method is based on the idea that a defect image is difficult to recover to its previous state after undergoing a large-scale erasure operation, thus diverse defect images can be generated using different settings in the inpainting model. Specifically, we first train a DDPM model using limited defective images. Then, we erase large-scale parts of an input image to obtain a degraded image and restore the erased areas using the trained DDPM. Finally, the repaired images are further used for updating the DDPM. The main advantage of our method is to generate diverse images by only being trained using limited training samples. On the one hand, our method fundamentally avoids the dimension inconsistency between the sampled noise and the generated image by sampling from a two-dimensional noise map with the same resolution as the output image based on DDPM. On the other hand, the proposed erasing-inpainting operation promotes the recombination of the real features from the training set and the learned features from the trained DDPM to fully use the limited defective samples and the easily obtainable defect-free samples. Extensive experiments demonstrated the effectiveness and advantages of our model on data augmentation for generalized surface defect inspection.
引用
收藏
页数:19
相关论文
共 60 条
  • [1] SegNet: A Deep Convolutional Encoder-Decoder Architecture for Image Segmentation
    Badrinarayanan, Vijay
    Kendall, Alex
    Cipolla, Roberto
    [J]. IEEE TRANSACTIONS ON PATTERN ANALYSIS AND MACHINE INTELLIGENCE, 2017, 39 (12) : 2481 - 2495
  • [2] Seeing What a GAN Cannot Generate
    Bau, David
    Zhu, Jun-Yan
    Wulff, Jonas
    Peebles, William
    Strobelt, Hendrik
    Zhou, Bolei
    Torralba, Antonio
    [J]. 2019 IEEE/CVF INTERNATIONAL CONFERENCE ON COMPUTER VISION (ICCV 2019), 2019, : 4501 - 4510
  • [3] A magnetoelectric-ultrasonic multimodal system for synchronous NDE of surface and internal defects in metal
    Chang, Jianglei
    Chu, Zhaoqiang
    Gao, Xiangyu
    Soldatov, A. I.
    Dong, Shuxiang
    [J]. MECHANICAL SYSTEMS AND SIGNAL PROCESSING, 2023, 183
  • [4] DeVries T, 2017, Arxiv, DOI [arXiv:1708.04552, DOI 10.48550/ARXIV.1708.04552]
  • [5] Dhariwal P, 2021, ADV NEUR IN, V34
  • [6] Du Z., 2022, IEEE Transactions on Instrumentation and Measurement, V72, P1
  • [7] Fusion of multi-light source illuminated images for effective defect inspection on highly reflective surfaces
    Fu, Guizhong
    Jia, Shukai
    Zhu, Wenbin
    Yang, Jiangxin
    Cao, Yanlong
    Yang, Michael Ying
    Cao, Yanpeng
    [J]. MECHANICAL SYSTEMS AND SIGNAL PROCESSING, 2022, 175
  • [8] Simple Copy-Paste is a Strong Data Augmentation Method for Instance Segmentation
    Ghiasi, Golnaz
    Cui, Yin
    Srinivas, Aravind
    Qian, Rui
    Lin, Tsung-Yi
    Cubuk, Ekin D.
    Le, Quoc, V
    Zoph, Barret
    [J]. 2021 IEEE/CVF CONFERENCE ON COMPUTER VISION AND PATTERN RECOGNITION, CVPR 2021, 2021, : 2917 - 2927
  • [9] Goodfellow IJ, 2014, ADV NEUR IN, V27, P2672
  • [10] Deep Residual Learning for Image Recognition
    He, Kaiming
    Zhang, Xiangyu
    Ren, Shaoqing
    Sun, Jian
    [J]. 2016 IEEE CONFERENCE ON COMPUTER VISION AND PATTERN RECOGNITION (CVPR), 2016, : 770 - 778