JOURNAL ARTICLE

Improved YOLOv8-based surface defect detection algorithm for bare printed circuit board

Abstract

A PCB surface defect detection algorithm based on YOLOv8 is proposed to address the challenges of small object size and low detection accuracy. This algorithm effectively enhances detection accuracy while ensuring real-time detection speed. Firstly, the conventional convolutional layers in YOLOv8 are substituted with the SPD-Conv module, enabling finer feature extraction for small defects. Secondly, to improve the detection accuracy of small targets, an extra small detection head is incorporated into the Head section. This modification enables the network to prioritize small objects by combining shallow and deep feature maps. Meanwhile, in the neck section, the lightweight upsampling operator named CARAFE is utilized to gather contextual information across a broader receptive field, thus improving the network's ability to fuse features. Finally, this original CIOU loss function was improved to Wise-IOU. Compared to traditional CIOU, Wise-IOU considers not only the relative positions and size differences between objects but also introduces an intelligent weight adjustment mechanism that can adaptively adjust weight coefficients, thereby improving the accuracy and robustness. Experiment shows that the improved model reaches an [email protected] of 91.6%, a 10.1% progress over the original YOLOv8, with a model size of 6.80MB, meeting lightweight requirements, and a detection speed of 108fps, meeting the real-time requirements of PCB defect inspection applications.

Keywords:
Upsampling Robustness (evolution) Computer science Object detection Feature extraction Artificial intelligence Fuse (electrical) Algorithm Convolution (computer science) Printed circuit board Convolutional neural network Computer vision Pattern recognition (psychology) Artificial neural network Image (mathematics) Engineering

Metrics

0
Cited By
0.00
FWCI (Field Weighted Citation Impact)
0
Refs
0.19
Citation Normalized Percentile
Is in top 1%
Is in top 10%

Topics

Industrial Vision Systems and Defect Detection
Physical Sciences →  Engineering →  Industrial and Manufacturing Engineering
Advanced Neural Network Applications
Physical Sciences →  Computer Science →  Computer Vision and Pattern Recognition
Visual Attention and Saliency Detection
Physical Sciences →  Computer Science →  Computer Vision and Pattern Recognition
© 2026 ScienceGate Book Chapters — All rights reserved.