Li Jinfang, Xiao Libao, He Mingtong, et al. Method for Data Augmentation of Workpiece Defect Samples Based on Generative Sample Synthesis[J]. 2025, 42(3): 27-35.
Li Jinfang, Xiao Libao, He Mingtong, et al. Method for Data Augmentation of Workpiece Defect Samples Based on Generative Sample Synthesis[J]. 2025, 42(3): 27-35.DOI: 10.12052/gdutxb.240056.
Method for Data Augmentation of Workpiece Defect Samples Based on Generative Sample Synthesis
To address the problem of severe lack of defect data in workpieces to train the deep-learning-based defect visual detection systems
this paper introduces a generative sample synthesis method that integrates generative adversarial networks (GAN) with a physical-based rendering (PBR) pipeline for data augmentation. The method employs ConSinGAN as the defect feature generation model and enhances the discriminator by incorporating a coordinate attention (CA) mechanism
enabling more precise identification of defect features in images. Additionally
the loss function is adjusted by introducing a weighted combination of reconstruction loss and multi-scale structural similarity loss to alleviate the gradient vanishing in small sample training and improve the quality of generated samples. The PBR pipeline is used to output the augmented samples
which first constructs a 3D model for the workpiece to be augmented
and then use poisson blending to merge the generated defect features with the original model texture. Finally
defect samples of the workpiece are rendered in a simulated production environment using a virtual camera. Experimental results on public datasets demonstrate the effectiveness of the proposed method in augmenting small samples of workpiece defects.
关键词
Keywords
references
WANG H J, YANG C H, LYU Q. Review of metal surface defect detection methods based on machine vision[J]. Mirco/Nano Electronics and Intelligent Manufacturing, 2022, 4(4): 71-81.
JIN Y G, ZHANG T, YANG Y N, et al . Review of product defect detection methods based on deep learning[J ] . Journal of Dalian Minzu University, 2020, 22(5): 420-427.
LUO D L, CAI Y X, YANG Z H, et al . Survey on industrial defect detection with deep learning[J ] . Scientia Sinica Informationis, 2022, 52(6): 1002-1039
MUMUNI A, MUMUNI F. Data augmentation: a comprehensive survey of modern approaches[J]. Array, 2022, 16: 100258.
GOODFELLOW I, POPUGET-ABADIE J, MIRZA M, et al . Generative adversarial networks[J ] . Communications of the ACM, 2020, 63(11): 139-144.
SUN S K, FAN J, SUN Z Q, et al . Survey of image data augmentation techniques based on deep learning[J ] . Computer Science, 2024, 51(1): 150-167.
ZHUANG C Q, LI J W. Industrial defect detection of plastic labels based on YOLOv5 and generative adversarial networks[J]. Computer Measurement Control, 2023, 31(7): 91-98.
LUO Y T, DUAN C, JIANG P F, et al . An improved industrial defect data augmentation method based on pix2pix[J ] . Computer Engineering Science, 2022, 44(12): 2206-2212.
PHILLIP I, ZHU J Y, ZHOU T H, et al . Image-to-image translation with conditional adversarial networks[C ] //2017 IEEE Conference on Computer Vision and Pattern Recognition (CVPR) . Honolulu: IEEE, 2017: 5967-5976.
LIU J H, WANG C Y, SU H, et al . Multistage GAN for fabric defect detection[J ] . IEEE Transactions on Image Processing, 2019, 29: 3388-3400.
YAN Y D, SUN J D, YAO C, et al . CT image data amplification based on generative adversarial network[J ] . Computer Systems Applications, 2022, 31(12): 78-86.
TAMAR R S, TALI D, TOMER M. SinGAN: learning a generative model from a single natural image[C]//2019 IEEE/CVF International Conference on Computer Vision (ICCV) . Seoul: IEEE, 2019: 4569-4579.
HINZ T, FISHER M, WANG O, et al . Improved techniques for training single-image gans[C ] //2021 IEEE Winter Conference on Applications of Computer Vision (WACV) . Waikoloa: IEEE, 2021: 1299-1308.
PENG Y F, DENG J N, WANG G. Remote sensing image data enhancement based on improved SinGAN[J]. Chinese Journal of Liquid Crystals and Displays, 2023, 38(3): 387-396.
ZHAO X F, XIA Y T, XU Y B, et al . Joint data augmentation method for ground infrared target[J ] . Laser Infrared, 2023, 53(7): 1117-1124.
HUANG Q N, ZHU W G, LIU Y, et al . SAR ship target expansion based on multiscale GAN network[J ] . Ordnance Industry Automation, 2022, 41(7): 47-52.
ZHANG H, GOODFELLOW I, METAXAS D, et al . Self-attention generative adversarial networks[J ] . Proceedings of Machine Learning Research, 2019, 97: 7354-7363.
HU J, SHEN L, SUN G, et al . Squeeze-and-excitation networks[C ] //2018 IEEE/CVF Conference on Computer Vision and Pattern Recognition. Salt Lake City: IEEE, 2018: 7132-7141.
WOO S, PARK J, LEE J Y, et al . CBAM: convolutional block attention module[C ] //Computer Vision - ECCV 2018: 15th European Conference. Munich: Springer, 2018: 3-19.
HOU Q B, ZHOU D Q, FENG J S. Coordinate attention for efficient mobile network design[C]//2021 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) . Nashville: IEEE, 2021: 13708-13717.
ARJOVSKY M, CHINTALA S, BOTTOU L. Wasserstein generative adversarial networks[J]. Proceedings of Machine Learning Research, 2017, 70: 214-223.
GIRSHICK R. Fast R-CNN[C]//2015 IEEE International Conference on Computer Vision (ICCV) . Santiago: IEEE, 2015: 1440-1448.
WANG Z, SIMONCELLI E P, BOVIK A C. Multiscale structural similarity for image quality assessment[C]//The Thrity-Seventh Asilomar Conference on Signals, Systems Computers. Pacific Grove: IEEE, 2003: 1398-1402.
JIANG Y W, JIANG Z H. On the application of PBR method in virtual reality technology[J]. Journal of Heihe University, 2022, 13(6): 178-180.
PEREZ P, GANGNET M, BLAKE A. Poisson image editing[J]. ACM Transactions on Graphics, 2003, 22(3): 313-318.