Journal of Computer Applications ›› 2026, Vol. 46 ›› Issue (9): 2977-2986.DOI: 10.11772/j.issn.1001-9081.2025081034

• Multimedia computing and computer simulation • Previous Articles    

Small-object defect detection method for printed circuit boards based on dual-branch feature extraction

Yufeng OU1, Chia-Hung WANG1,2()   

  1. 1.School of Computing and Data Science,Fujian University of Technology,Fuzhou Fujian 350118,China
    2.Fujian Provincial Key Laboratory of Big Data Mining and Applications (Fujian University of Technology),Fuzhou Fujian 350118,China
  • Received:2025-09-08 Revised:2025-10-20 Accepted:2025-10-23 Online:2025-11-07 Published:2026-09-10
  • Contact: Chia-Hung WANG
  • About author:OU Yufeng, born in 2000, M. S. candidate. His research interests include artificial intelligence, simulation optimization.
    WANG Chia-Hung, born in 1979, Ph. D., associate professor. His research interests include artificial intelligence, big data analytics.
  • Supported by:
    Fujian Provincial Natural Science Foundation(2021J011070)

基于双分支特征提取的印刷电路板小目标缺陷检测方法

欧宇枫1, 王嘉宏1,2()   

  1. 1.福建理工大学 计算机与数据科学学院,福州 350118
    2.福建省大数据挖掘与应用技术重点实验室(福建理工大学),福州 350118
  • 通讯作者: 王嘉宏
  • 作者简介:欧宇枫(2000—),男,福建福州人,硕士研究生,CCF会员,主要研究方向:人工智能、仿真优化
    王嘉宏(1979—),男,台湾台南人,副教授,博士,CCF会员,主要研究方向:人工智能、大数据分析。
  • 基金资助:
    福建省自然科学基金资助项目(2021J011070)

Abstract:

To address the challenges of detecting small-object defects on Printed Circuit Board (PCB) surfaces, such as low contrast, irregular shapes, and susceptibility to background interference, a dual-branch feature detection model named Dual branch feature Extraction-Spatial attention Detection (DES-Det) was proposed. First, a dual-branch collaboration was used to extract global contextual and local detailed features, thereby enhancing the discriminative capability for low-pixel defects. Second, a deformable attention mechanism was introduced to achieve adaptive feature focusing, thereby improving the localization accuracy for blurred edges and irregular defects. At the same time, a detection head based on spatial attention and depthwise separable convolution was designed to reduce model complexity significantly while maintaining detection performance. Experimental results on two public PCB defect datasets demonstrate that DES-Det achieves precisions of 93.6% and 98.4%, respectively, representing improvements of 5.7 and 1.4 percentage points, respectively, compared to the baseline model YOLOv8, with the number of parameters reduced by 26.7%. Cross-scenario generalization experimental results further validate the method's effectiveness and robustness in complex industrial environments.

Key words: Printed Circuit Board (PCB), small-object defect detection, attention mechanism, multi-scale feature extraction, depthwise separable convolution

摘要:

针对印刷电路板(PCB)表面小目标缺陷检测中存在的低对比度、形态不规则及易受背景干扰等难题,提出一种双分支特征检测模型DES-Det(Dual branch feature Extraction-Spatial attention Detection)。首先,通过双分支结构协同提取全局上下文与局部细节特征,增强对低像素缺陷的判别能力;其次,引入可变形注意力机制实现自适应特征聚焦,提升对模糊边缘与不规则缺陷的定位精度;并设计基于空间注意力与深度可分离卷积的检测头,在保障检测性能的同时显著降低模型复杂度。在2个公开的PCB缺陷数据集上的实验结果表明,DES-Det的精确率分别达到93.6%与98.4%,相较于基线模型YOLOv8分别提升了5.7与1.4个百分点,参数量下降了26.7%。跨场景泛化实验的结果进一步验证了该方法在复杂工业环境中的有效性与鲁棒性。

关键词: 印刷电路板, 小目标缺陷检测, 注意力机制, 多尺度特征提取, 深度可分离卷积

CLC Number: