@article{WU2023, 
author = {Junhua WU and Xiaoyu YAN and Lusheng GE},
title = {Fast PCB defects detection method based on improved YOLOv5},
year = {2023},
journal = {Journal of Measurement Science and Instrumentation},
volume = {14},
number = {3},
pages = {340-349},
keywords = {deep learning, printed circuit board (PCB) detection, lightweight network, attention mechanism},
url = {https://www.sciopen.com/article/10.62756/jmsi.1674-8042.2023039},
doi = {10.62756/jmsi.1674-8042.2023039},
abstract = {A fast printed circuit board (PCB) defects detection method based on improved YOLOv5 is proposed to solve the problems of poor detection accuracy and low efficiency in detecting PCB defects in the industrial production process. Firstly, for the path aggregation network module (PANet), an improved attention mechanism module, parallel residual Ghostconv-convolutional block attention module (PRG-CBAM), is introduced, which eliminates the priority of the channel attention module and spatial attention module to increase the accuracy of object detection. Secondly, replacing the general convolution in the PANet module with ghost convolution (Ghostconv) can reduce the number of network parameters and the amount of calculation to improve the efficiency of object detection. The experimental results show that the proposed method compresses the parameters of YOLOv5s model by 18.8%, and detection speed of the algorithm for PCB board defects reaches 58.342 frame/s, which is 120.6%, 55.4% and 40.1% higher than that of single shot multiBox detector (SSD), YOLOv4 and YOLOv5s algorithms, respectively. The average detection accuracy reaches 99.0%, which is 28.1%, 2.0% and 1.5% higher than that of SSD, YOLOv4 and YOLOv5s algorithms, respectively. It indicates that the proposed board method has a remarkable real-time and high-precision detection effect, so it can be applied to the real-time detection of PCB defects in actual industrial production.}
}