PCB Defect Detection Method Based on Attention Mechanism and Improved YOLOv10
(Information Engineering Institute, Guangzhou Railway Polytechnic, Guangzhou 511300, China)
Received: 2025-02-06
Abstract
Under the macro background of accelerating the intelligent transformation of China's manufacturing industry, especially in the wave where the country is actively advocating and vigorously promoting the development of new quality productivity, all kinds of electronic equipment have ushered in unprecedented rapid development opportunities. As a result, the reliability requirements of Printed Circuit Board (PCB), the core component of electronic products, have been raised to a new level. Any defects on the PCB surface will directly affect the overall availability and long-term stability of the electronic device. However, the traditional method of relying on manual screening is not only inefficient, but also prone to missed detection. This bottleneck problem seriously restricts the production efficiency and product quality of enterprises. In this regard, a PCB defect detection method based on improved YOLOv10 is studied, including introducing CBAM Attention Mechanism, optimizing loss function and optimizing traditional target detection head by group convolution, so as to improve the learning ability and detection accuracy of the model for fine features in PCB images.
Keywords
PCB; defect detection; YOLOv10; CBAM Attention Mechanism; PIoU loss function
References
- [1] PARK J H,KIM Y S,SEO H,et al. Analysis of Training Deep Learning Models for PCB Defect Detection [J/OL].Sensors,2023,23(5):2766[2025-01-03].https://doi.org/10.3390/s23052766.
- [2] Yu Zhangfu. Research on PCB Defect Detection Algorithm Based on Improved YOLOv7 [D]. Yantai: Yantai University, 2024
- [3] Zhou Ying, Wang Xue, Liu Kun, et al. Research on Welding Defect Recognition Method Based on Wavelet Features and Support Vector Machine [J]. Journal of Hebei University of Technology, 2015, 44 (1): 6-11
- [4] Li Lin. Research on PCB Surface Defect Detection Model Based on Deep Learning [D]. Chongqing: Chongqing University of Technology, 2024
- [5] ZHANG L X,CHEN J S,CHEN J G,et al. LDD-Net: Lightweight Printed Circuit Board Defect Detection Network Fusing Multi-scale Features [J/OL].Engineering Ap-plications of Artificial Intelligence,2024,129:107628[2025-01-02].https://doi.org/10.1016/j.engappai.2023.107628.
- [6] Li Dan. Research on PCB Defect Detection Technology Based on Deep Learning [D]. Changsha: Hunan Normal University, 2021
- [7] Wu Kaiyong. Research on Improved PCB Defect Detection Algorithm Based on YOLOv7 [D]. Hangzhou: Hangzhou University of Electronic Science and Technology, 2024
- [8] XIN H J,CHEN Z B,WANG B Y. PCB Electronic Component Defect Detection Method Based on Improved YOLOv4 Algorithm [C]//Journal of Physics: Conference Series.Harbin:IOP Publishing,2021,1827(1):012167.
- [9] Xu Siang, Li Yijie, Liang Qiaokang, et al. PCB Bare Board Defect Detection Based on Improved YOLOv5 Algorithm [J]. Packaging Engineering, 2022, 43 (15): 33-41
- [10] WANG J,LIN B,LI G M,et al. YOLO-Xray: A Bubble Defect Detection Algorithm for Chip X-ray Images Based on Improved YOLOv5 [J/OL].Electronics,2023,12(14):3060[2025-01-09].https://doi.org/10.3390/electronics12143060.
- [11] ZHANG Z J,ZOU Y L,TAN Y F,et al. YOLOv8-seg-CP: a Lightweight Instance Segmentation Algorithm for Chip Pad Based on Improved YOLOv8-seg Model [J/OL].Scientific Reports,2024,14(1):27716[2025-01-01].https://doi.org/10.1038/s41598-024-78578-x.
- [12] CHEN S Y,LAI W G,YE J J,et al. A Fast and Low-power Detection System for the Missing Pin Chip Based on YOLOv4-Tiny Algorithm [J/OL].Sensors,2023,23(8):3918[2025-01-05].https://doi.org/10.3390/s23083918.
Funding
University Research Project of Guangzhou Education Bureau (2024312419)
About the authors
He Jiayong (2004-), male, Han ethnicity, from Jiangmen, Guangdong, with research interests in artificial intelligence and image processing; Corresponding author: Chen Weixun (1994-), male, Han nationality, from Zhaoqing, Guangdong, PhD, lecturer, research direction: pattern recognition, image processing.