使用卷积自动编码器检测印刷电路板缺陷
Using Convolutional Autoencoders to Detect Defects in Printed Circuit Board
摘要: 在制造印刷电路板(PCB)过程中,由于诸如设备、环境、原料和人工操作等无法控制的影响,从而导致在生产各个环节中都有可能使产品存在缺陷,因此,检测并定位印刷电路板中的所有缺陷至关重要。传统人工目检存在检测效率低与检测缺陷不全等问题,为有效解决上述问题,提出了一种基于无监督学习的卷积自动编码器模型对印刷电路板的质量进行检测,并结合生成对抗网络将生成器作为卷积自动编码器模型的解码器。该网络模型仅通过无缺陷产品图像进行训练并学习无缺陷产品的特征,通过将缺陷图像重构为无缺陷图像,再与缺陷图像相减,获得包含缺陷信息的残差图,定位出缺陷位置。实验结果表明:该方法能够很好地识别印刷电路板缺陷,准确率达到96.15%,且具有较好的泛化能力和鲁棒性。
Abstract: In the process of manufacturing a printed circuit board (PCB), due to uncontrollable influences such as equipment, environment, raw materials and manual operations, which can cause defects in the product at all stages of production, it is essential to detect and locate all defects in the printed circuit board. In order to effectively solve the problems of low detection efficiency and incomplete detection defects in traditional manual eye inspection, a convolutional autoencoder model based on unsupervised learning was proposed to detect the quality of printed circuit boards, and the generator was used as the decoder of the convolutional autoencoder model combined with generative adversative network. The network model is trained and learns the features of defect-free products only through the image of defect-free products. By reconstructing the defect image into a defect-free image and subtracting the defect image, the residual map containing the defect information is obtained and the defect location is located. Experimental results show that the proposed method can identify PCB defects with an accuracy of 96.15%, and has good generalization ability and robustness.
文章引用:刘江. 使用卷积自动编码器检测印刷电路板缺陷[J]. 仪器与设备, 2024, 12(4): 647-655. https://doi.org/10.12677/iae.2024.124086

参考文献

[1] 何止戈. 基于深度学习方法的PCB图像缺陷检测[D]: [硕士学位论文]. 成都: 电子科技大学, 2020.
[2] 刘金桥, 吴金强. 机器视觉系统发展及其应用[J]. 机械工程与自动化, 2010(1): 215-216.
[3] 沈非尧. 基于深度学习的PCB裸板缺陷检测技术研究[D]: [硕士学位论文]. 成都: 西华大学, 2020.
[4] 穆莉莉, 伍习东, 丰韦. 基于深度学习的PCB缺陷检测方法研究[J]. 佳木斯大学学报(自然科学版), 2022, 40(1): 116-119.
[5] 张宏伟, 谭全露, 陆帅, 葛志强, 徐健. U型去噪卷积自编码器色织衬衫裁片缺陷检测[J]. 西安电子科技大学学报, 2021, 48(3): 123-130.
[6] 刘珈彤, 余建波. 晶圆表面缺陷模式识别的二维主成分分析卷积自编码器[J]. 计算机辅助设计与图形学学报, 2020, 32 3): 425-436.
[7] 罗月童, 卞景帅, 张蒙, 饶永明, 闫峰. 基于卷积去噪自编码器的芯片表面弱缺陷检测方法[J]. 计算机科学, 2020, 47(2): 118-125.
[8] Goodfellow, I., Pouget-Abadie, J., Mirza, M., Xu, B., Warde-Farley, D., Ozair, S., et al. (2014) Generative Adversarial Nets. 27th International Conference on Neural Information Processing Systems (NIPS), Montreal, 8-13 December 2014, 2672-2680.
[9] Schlegl, T., Seeböck, P., Waldstein, S.M., Schmidt-Erfurth, U. and Langs, G. (2017) Unsupervised Anomaly Detection with Generative Adversarial Networks to Guide Marker Discovery. Information Processing in Medical Imaging, Boone, 25-30 June 2017, 146-157. [Google Scholar] [CrossRef
[10] Akcay, S., Atapour-Abarghouei, A. and Breckon, T.P. (2019) GANomaly: Semi-Supervised Anomaly Detection via Adversarial Training. Computer VisionACCV 2018, Perth, 2-6 December 2018, 622-637. [Google Scholar] [CrossRef
[11] Zenati, H., Romain, M., Foo, C., Lecouat, B. and Chandrasekhar, V. (2018) Adversarially Learned Anomaly Detection. 2018 IEEE International Conference on Data Mining (ICDM), Singapore, 17-20 November 2018, 727-736. [Google Scholar] [CrossRef
[12] 来杰, 王晓丹, 向前, 等. 自编码器及其应用综述[J]. 通信学报, 2021, 42(9): 218-230.
[13] Creswell, A. and Bharath, A.A. (2018) Inverting the Generator of a Generative Adversarial Network (II). arXiv: 1802.05701. [Google Scholar] [CrossRef
[14] 冯志涛. 基于生成对抗网络的表面缺陷异常检测[D]: [硕士学位论文]. 大连: 大连理工大学, 2021.