Yolo-Sbc: Swin Transformer Combined with Modified Yolo Framework for Pcb Defect Detection

22 Pages Posted: 22 Apr 2025

See all articles by ShuaiShuai Han

ShuaiShuai Han

Wenzhou University

Di Zhou

Wenzhou University

Xiao Zhuang

Wenzhou University

Weifang Sun

Wenzhou University

Lin Li

Taiyuan University of Science and Technology

Zhenlong Chen

Wenzhou University

Jiawei Xiang

Wenzhou University - College of Mechanical and Electrical Engineering

Abstract

Surface defects generated during the manufacturing process of printed circuit boards (PCB) will adversely affect the quality of product, which in turn directly affects the stability and reliability of equipment performance. In recent years, as the layout of PCB boards has become more and more compact, how to accurately identify tiny surface defects under complex backgrounds becomes a great challenge for PCB industry. In this paper, an improved YOLO Swin Transformer-BiFormer-CARAFE (YOLO-SBC) new framework is proposed to realize high-precision detection of small defects on PCB boards. First, addressing the problem of weak feature extraction ability of small-size defects in PCB under complex background, the Swin Transformer module is introduced into the backbone network to enhance the feature extraction ability, which in turn better captures the long-distance dependencies and global information in the PCB images. Second, the BiFormer attention module is involved to perform bidirectional feature interactions in spatial and channel dimensions to fuse features at different scales and semantic levels to further enhance the feature representation capability of the model. Subsequently, content-aware reassembly of features (CARAFE) is used to replace the upsampling layer to fully aggregate the contextual semantic information of PCB images in a large receptive field. Finally, the detection head of the base YOLOv5 is optimized to improve the detection of small target defects by the proposed model. Experimental results on the public available PCB dataset show that the proposed YOLO-SBC model has significant advantages over other benchmark models. The mean average precision (mAP) of YOLO-SBC can reach 99.05%, which validates the effectiveness and superiority of the proposed YOLO-SBC.

Keywords: Printed Circuit Board (PCB), YOLO, Swin Transformer, small target detection

Suggested Citation

Han, ShuaiShuai and Zhou, Di and Zhuang, Xiao and Sun, Weifang and Li, Lin and Chen, Zhenlong and Xiang, Jiawei, Yolo-Sbc: Swin Transformer Combined with Modified Yolo Framework for Pcb Defect Detection. Available at SSRN: https://ssrn.com/abstract=5225944 or http://dx.doi.org/10.2139/ssrn.5225944

ShuaiShuai Han

Wenzhou University ( email )

276 Xueyuan Middle Rd
Chashan University Town
Wenzhou, 325035
China

Di Zhou

Wenzhou University ( email )

276 Xueyuan Middle Rd
Chashan University Town
Wenzhou, 325035
China

Xiao Zhuang (Contact Author)

Wenzhou University ( email )

276 Xueyuan Middle Rd
Chashan University Town
Wenzhou, 325035
China

Weifang Sun

Wenzhou University ( email )

276 Xueyuan Middle Rd
Chashan University Town
Wenzhou, 325035
China

Lin Li

Taiyuan University of Science and Technology ( email )

China

Zhenlong Chen

Wenzhou University ( email )

276 Xueyuan Middle Rd
Chashan University Town
Wenzhou, 325035
China

Jiawei Xiang

Wenzhou University - College of Mechanical and Electrical Engineering ( email )

Wenzhou, Zhejiang 325035
China

Do you have a job opening that you would like to promote on SSRN?

Paper statistics

Downloads
7
Abstract Views
72
PlumX Metrics