Author Login Chief Editor Login Reviewer Login Editor Login Remote Office

Computer Engineering ›› 2026, Vol. 52 ›› Issue (11): 456-468. doi: 10.19678/j.issn.1000-3428.0252017

• Interdisciplinary Integration and Engineering Applications • Previous Articles     Next Articles

Small Target Defect Detection of PCB Based on Multi-scale Feature Fusion

XU Xinhao1, LI Ziqi2, YIN Hefeng2, ZHANG Yonghong1,2   

  1. 1. School of Automation, Nanjing University of Information Science and Technology, Nanjing 210044, Jiangsu, China;
    2. School of Automation, Wuxi University, Wuxi 214105, Jiangsu, China
  • Received:2025-01-08 Revised:2025-03-20 Online:2026-11-15 Published:2025-05-19

基于多尺度特征融合的PCB小目标缺陷检测

许鑫豪1, 李子奇2, 尹贺峰2, 张永宏1,2   

  1. 1. 南京信息工程大学自动化学院, 江苏 南京 210044;
    2. 无锡学院自动化学院, 江苏 无锡 214105
  • 作者简介:许鑫豪,男,硕士研究生,主研方向为计算机视觉、深度学习;李子奇、尹贺峰,讲师;张永宏(通信作者),教授,E-mail:yhzhang@cwxu.edu.cn。
  • 基金资助:
    国家重点研发计划政府间国际科技创新合作重点专项(2021YFE0116900);国家自然科学基金面上项目(42175157);江苏省高等学校自然科学研究面上项目(22KJB520037,23KJB520036);无锡市“太湖之光”科技攻关项目(K20231003,K20231010);无锡学院引进人才科研启动专项(2021r032,2024r028)。

Abstract: The surfaces of Printed Circuit Boards (PCB) feature complex textures with defects that are small as well as diverse in type and shape. Typically, accurate detection of small targets necessities the addition of detection heads at smaller scales, which significantly increases the computational cost and reduces the detection speed. To address this issue, this study proposes PCB-Det, a multi-scale feature fusion learning model for small target defect detection on a PCB. Building on the YOLOv8 architecture, PCB-Det replaces the original backbone network with a lightweight backbone, PP-HGNet, and incorporates a GSPPFCSPC module for multi-level feature extraction, expanding the receptive field to enrich feature information. Meanwhile, a Progressive Bidirectional Feature Pyramid Network (Pro-BiFPN) multi-scale feature fusion network is designed to enhance the interactions between adjacent feature layers, optimizing the fusion of shallow detail information and deep semantic information. In addition, the model employs a shared feature branch to reduce the weight of the original detection head and introduces the Wise-IoU loss function, which dynamically adjusts loss weights to accelerate model convergence. The experimental results show that PCB-Det achieves an Average Precision (AP) of 98.1% on PCB_DATASET, representing a 3.5 percentage point improvement over the baseline model, effectively reducing missed detections and false alarms and enhancing the detection capability for small target PCB defects.

Key words: Printed Circuit Board (PCB), small target detection, multi-scale feature fusion, receptive field, defect detection

摘要: 印制电路板(PCB)表面纹理复杂,缺陷尺寸小且种类繁多、形状各异。为准确检测小目标,通常需要添加更小尺度的检测头,导致计算成本大幅提高,检测速度减慢。针对这一问题,提出一种多尺度特征融合学习的PCB小目标缺陷检测模型PCB-Det。该模型在YOLOv8架构的基础上,采用轻量级主干网络PP-HGNet替代原有主干网络,并结合GSPPFCSPC模块进行多层级特征提取,拓展感受野以丰富特征信息。同时,设计Pro-BiFPN多尺度特征融合网络,通过增强相邻层特征之间的交互,优化浅层细节信息和深层语义信息的融合效果。此外,模型还使用共享特征分支对原有检测头进行轻量化改进,并引入Wise-IoU损失函数,动态调整损失权重,加速模型收敛。实验结果表明,PCB-Det在PCB_DATASET缺陷数据集上的平均精度(AP)达到98.1%,相比基准模型提升了3.5百分点,有效减少了漏检与误检,提高了PCB小目标缺陷的检测能力。

关键词: 印制电路板, 小目标检测, 多尺度特征融合, 感受野, 缺陷检测

CLC Number: