
YOLOv5-MDS:Target Detection Model for PCB Defect Inspection Based on YOLOv5 Integrated with Mamba Architecture
Author(s) -
Deming Guo,
Qi Xi,
Long Zhang,
Jing Wang,
Yilong Ye,
Ziyi Zeng
Publication year - 2025
Publication title -
ieee access
Language(s) - English
Resource type - Magazines
SCImago Journal Rank - 0.587
H-Index - 127
eISSN - 2169-3536
DOI - 10.1109/access.2025.3591987
Subject(s) - aerospace , bioengineering , communication, networking and broadcast technologies , components, circuits, devices and systems , computing and processing , engineered materials, dielectrics and plasmas , engineering profession , fields, waves and electromagnetics , general topics for engineers , geoscience , nuclear engineering , photonics and electrooptics , power, energy and industry applications , robotics and control systems , signal processing and analysis , transportation
The Printed Circuit Board (PCB), which serves as the foundational component of numerous electronic devices, exhibits a complex relationship between its quality and the lifespan and performance of those products. However, annual losses are significantly contributed to by PCB defects arising from various production factors. PCB defects present significant challenges in detection, due to their small size and irregular distribution. Existing methods struggle to effectively detect these minute and scattered defects, especially in the context of industrial production, where high accuracy and speed are paramount. To address this issue, YOLOv5-MDS has been proposed, a convolutional neural network (CNN) specifically designed for image segmentation and classification. This model is derived from and enhanced on the YOLOv5 model. Our primary objective was to refine the neck section of the YOLOv5 model by integrating the Mamba architecture within it. Additionally, we optimized the intersection over union (IoU) calculation method and the upsampling module. This strategic integration aims to overcome the inherent limitation of convolutional operations’ local receptive fields, thereby enabling the model to capture features more effectively. Our proposed improvements enhance detection accuracy while maintaining computational efficiency.Experimental results demonstrate that our model achieves significant improvements in accuracy for PCB defect detection tasks compared to the baseline model. Compared to the baseline model, our proposed model achieves a 34.3% performance improvement. When benchmarked on edge devices, YOLOv5-MDS demonstrates superior detection capabilities with mAP95 values exceeding YOLOv8n by 11.0% and YOLOv11n by 0.9%, while simultaneously showing significant efficiency advantages - operating 29% faster than YOLOv8n and 57% faster than YOLOv11n in inference speed. These comparative results comprehensively validate the practical applicability of YOLOv5-MDS in industrial deployment scenarios.
Accelerating Research
Robert Robinson Avenue,
Oxford Science Park, Oxford
OX4 4GP, United Kingdom
Address
John Eccles HouseRobert Robinson Avenue,
Oxford Science Park, Oxford
OX4 4GP, United Kingdom