Skip to content
Conference

An adaptive CNN–transformer feature fusion framework for multi-class PCB surface defect detection

Sep 2026 · International Conference on Frontiers of Applied Optics and Computer Engineering · Vol 14346, pp. 143460H - 143460H-7 · 0 citations · 16 references
Engineering

TL;DR

Experimental results show that the proposed framework outperforms Faster R-CNN, YOLOv5, RetinaNet, EfficientDet and the original Swin Transformer and has almost the same accuracy as a pure Transformer-based system but at a lower computational cost; thus, it is more feasible in practice.

Abstract

PCBs are required in the final products of electronic manufacturing, and quality inspection must be carried out. Uncorrected surface defects may persist through subsequent production stages and degrade device performance. Convolutional Neural Networks (CNNs) have been widely applied to PCB defect detection because of their excellent local-texture- capturing capabilities, but they are still relatively poor at modelling long-range spatial dependencies across the entire board. Transformer-based models address this problem by learning global context representations, but they are generally much more computationally expensive. To use the combined strengths of both architectures, a hybrid feature fusion framework for multi-class PCB defect detection is proposed in this paper. A lightweight CNN branch extracts fine-grained local features of the defect region, and a Transformer-style encoder obtains global context from the shared feature backbone. The above features are integrated via an attention-based fusion module with adaptive weighting and reduce redundant computations through a shared extraction path. Then, the fused representation is used by the classification and localization networks to jointly predict defect categories and locations. The mean Average Precision (mAP) of the proposed framework on the public PCB defect benchmark dataset reaches 96.847%. Experimental results show that the proposed framework outperforms Faster R-CNN, YOLOv5, RetinaNet, EfficientDet and the original Swin Transformer. It has almost the same accuracy as a pure Transformer-based system but at a lower computational cost; thus, it is more feasible in practice.

View source

Similar papers

Open access 2026

An Efficient Machine Learning-Enhanced YOLOv11 Network for Small-Scale Defect Recognition in PCB Inspection

Accurate detection of small and low-contrast printed circuit board (PCB) defects remains challenging. To address this problem, we propose SDL-YOLO, a YOLO11n-based detector designed to improve small-defect representation while controlling computational cost. A Detection-Optimized Sparse Mixture-of-Experts (DS-MOE) modu...

Hua-Ying Li, Huan Li, M. Alam · 0 citations
Open access Sep 2026

A Lightweight PCB Defect Detection Method Based on Heterogeneous Feature Enhancement and Discrepancy-Guided Fusion

Accurate detection of small and weak defects is essential for ensuring the manufacturing quality and operational reliability of printed circuit boards (PCBs). Existing detectors, however, remain constrained by insufficient fine-grained feature representation, interference from repetitive conductive backgrounds, localiz...

Yu-Jie Pei, Xue-Hong Gao, Shen-Yuan Gao et al. · 0 citations
Conference Oct 2026

DINO for PCB defect detection: adaptive feature pyramid and hard negative contrastive alignment

The proposed PCBDETR framework provides a practical balance between accuracy and model complexity for high-precision PCB inspection, and decouples high-response background features in the encoder memory through contrastive regularization, thereby suppressing pseudo-defects.

Lin-Chang Zhao, Ming-Chao Deng, Hao Long et al. · 0 citations
Conference Sep 2026

An Improved YOLOv11 Model with Dual-Backbone Architecture and SimAM Attention for Adaptive PCB Defect Detection

Printed Circuit Board (PCB) defect detection is a critical task in electronics manufacturing quality control. However, existing detection methods face significant challenges in identifying extremely small defects (below 0.5 mm) and balancing detection accuracy with real-time performance. This paper proposes an improved...

Jia-Hao Guo, Yan Cao, Zhen-Yang Dou et al. · 0 citations
Conference Open access Sep 2026

Object Surface Defect Segmentation using Vision Transformers and Hybrid Models

An empirical comparison between three deep learning frameworks for pixel-based surface defect detection: a baseline CNN architecture known as U-Net, Vision Transformer (ViT) based on patch-wise attention mechanism, and TransUNet that combines CNN and transformer architecture.

Santhya C, VS Sneha Chowdary, Beaulah Jeyavathana · 0 citations
Conference Open access 2026

A Hybrid YOLOv11–Faster R-CNN Approach for PCB Defect Detection

Printed circuit board (PCB) defect detection is critical for ensuring the performance and reliability of electronic products. However, traditional inspection methods suffer from low efficiency and poor stability. In recent years, the development of deep learning models has proceeded at a rapid pace. But existing deep l...

Yi-Fan Tang · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.