Hostname: page-component-76d6cb85b7-pn7tm Total loading time: 0 Render date: 2026-07-12T23:58:44.832Z Has data issue: false hasContentIssue false

Small target detection of surface defects on PCB boards: an improved YOLO method integrating attention mechanism and multi-scale feature focusing

Published online by Cambridge University Press:  05 February 2026

Wenxue Zhang
Affiliation:
Xiamen University of Technology, China
Bingjing Lin*
Affiliation:
Xiamen University of Technology, China
Saiqiang Wei
Affiliation:
Xiamen University of Technology, China
Junxi Wu
Affiliation:
Xiamen University of Technology, China
*
Corresponding author: Lin Bingjing; Email: lbj_002@163.com
Rights & Permissions [Opens in a new window]

Abstract

To address the challenges of low detection accuracy, missed detections, and high false detection rates for small targets in PCB defect detection tasks, this study proposes an enhanced YOLOv8 methodology incorporating feature focusing and multi-scale fusion techniques. Initially, a lightweight GTADH module is integrated into the detection head of YOLOv8, employing a shared convolution and task alignment mechanism to minimize model parameters while enhancing classification and localization accuracy. Subsequently, an adaptive feature-focusing module is introduced into the feature fusion network to bolster the detection capabilities for small targets via multi-scale feature fusion. Finally, the reverse residual moving block (iRMB) and attention mechanisms are combined within the backbone network to facilitate efficient extraction and fusion of feature information, preserving finer details of small targets. Experimental results demonstrate that the Improved YOLO algorithm achieves a 1.3% increase in detection accuracy and a 7.3% enhancement in mAP50:90 evaluation standards compared to the original YOLOv8s algorithm on the PCB defect dataset, while also reducing model size by 60%, thus showcasing its effectiveness in small target detection tasks.

Information

Type
Research Article
Creative Commons
Creative Common License - CCCreative Common License - BY
This is an Open Access article, distributed under the terms of the Creative Commons Attribution licence (http://creativecommons.org/licenses/by/4.0), which permits unrestricted re-use, distribution and reproduction, provided the original article is properly cited.
Copyright
© The Author(s), 2026. Published by Cambridge University Press
Figure 0

Figure 1. Block diagram of YOLOv8 structure.

Figure 1

Figure 2. C2f module structure diagram.

Figure 2

Figure 3. Structural diagram of GTADH detection head module.

Figure 3

Figure 4. Structure of task decomposition module.

Figure 4

Figure 5. Structure diagram of the adaptive feature-focused FDM module.

Figure 5

Figure 6. Multi-scale feature fusion aggregation network structure FFPN.

Figure 6

Figure 7. Improving the backbone network.

Figure 7

Figure 8. iRMB module structure.

Figure 8

Figure 9. A part of the pictures of each category.

Figure 9

Table 1. Partition of experimental datasets

Figure 10

Table 2. Comparison of ablation experimental results

Figure 11

Table 3. Comparison of GTADH and Detect

Figure 12

Table 4. Comparison of C2f and C2f- iRMB

Figure 13

Figure 10. Comparison of AP values of each category of the improved model with the previous model.

Figure 14

Table 5. Comparative tests of the models

Figure 15

Figure 11. Comparison of the metric curves of the improved model and the original model.

Figure 16

Figure 12. Comparison of the loss curves of the improved model and the original model.

Figure 17

Figure 13. Rendering of the improved receptive field of the model.

Figure 18

Figure 14. Renderings of the receptive field of the model before improvement.

Figure 19

Figure 15. Comparison of heat maps before and after the improved model.