Lightweight improved YOLOv5 algorithm for PCB defect detection

被引:0
|
作者
Xie, Yinggang [1 ,2 ]
Zhao, Yanwei [1 ]
机构
[1] Beijing Informat Sci & Technol Univ, Key Lab Informat & Commun Syst, Minist Informat Ind, Beijing 100101, Peoples R China
[2] Beijing Informat Sci & Technol Univ, Key Lab Minist Educ Optoelect Measurement Technol, Beijing 100101, Peoples R China
来源
JOURNAL OF SUPERCOMPUTING | 2025年 / 81卷 / 01期
基金
北京市自然科学基金;
关键词
YOLOv5; algorithm; GSConv; Detection layer improvement; BiFPN; Attention mechanism;
D O I
10.1007/s11227-024-06739-w
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
A lightweight YOLOv5 improved algorithm-based inspection model is proposed to address the problems of defective printed circuit boards (PCBs), which are difficult to identify. First, the detection part of YOLOv5 is changed to dual-head detection to significantly improve the inference speed of the model on edge devices and adapt to the real-time target detection requirements. Second, the introduction of GSConv in the Neck part helps to further reduce the number of parameters of the model and improve the computational efficiency, which can enhance the model's capture ability. Finally, BiFPN is introduced to fuse multi-scale information to enhance the model's detection ability for targets of different sizes. The experimental results show that the improved lightweight YOLOv5 algorithm in this paper achieves 94.9% in the average accuracy mean (mAP@0.5), which is only 0.5 percentage points less compared to the original YOLOv5 algorithm. However, the improved algorithm has 56.2% fewer floating point operations (GFLOPs) and 53.7% fewer parameters. This improvement not only makes the algorithm more accurate and lightweight, but also significantly improves the efficiency of PCB inspection, which better meets the needs of industrial production.
引用
收藏
页数:21
相关论文
共 50 条
  • [41] Improved glove defect detection algorithm based on YOLOv5 framework 2022
    Wang, Huibai
    Wang, Yuxuan
    2022 IEEE 6TH ADVANCED INFORMATION TECHNOLOGY, ELECTRONIC AND AUTOMATION CONTROL CONFERENCE (IAEAC), 2022, : 1192 - 1197
  • [42] Fabric Defect Detection Method with Improved YOLOv5
    Zhu, Lei
    Wang, Qianqian
    Yao, Lina
    Pan, Yang
    Zhang, Bo
    Computer Engineering and Applications, 2024, 60 (20) : 302 - 311
  • [43] An Improved Lightweight YOLOv5 Algorithm for Detecting Strawberry Diseases
    Chen, Shunlong
    Liao, Yinghua
    Lin, Feng
    Huang, Bo
    IEEE ACCESS, 2023, 11 : 54080 - 54092
  • [44] Road Defect Detection Based on Yolov5 Algorithm
    Lei, Yankun
    Wang, Baoping
    Zhang, Nan
    Sun, Qin
    PROCEEDINGS OF THE 13TH INTERNATIONAL CONFERENCE ON COMPUTER ENGINEERING AND NETWORKS, VOL II, CENET 2023, 2024, 1126 : 488 - 493
  • [45] A Lightweight Detection Method for Blueberry Fruit Maturity Based on an Improved YOLOv5 Algorithm
    Xiao, Feng
    Wang, Haibin
    Xu, Yueqin
    Shi, Zhen
    AGRICULTURE-BASEL, 2024, 14 (01):
  • [46] A lightweight small object detection algorithm based on improved YOLOv5 for driving scenarios
    Wen, Zonghui
    Su, Jia
    Zhang, Yongxiang
    Li, Mingyu
    Gan, Guoxi
    Zhang, Shenmeng
    Fan, Deyu
    INTERNATIONAL JOURNAL OF MULTIMEDIA INFORMATION RETRIEVAL, 2023, 12 (02)
  • [47] A lightweight small object detection algorithm based on improved YOLOv5 for driving scenarios
    Zonghui Wen
    Jia Su
    Yongxiang Zhang
    Mingyu Li
    Guoxi Gan
    Shenmeng Zhang
    Deyu Fan
    International Journal of Multimedia Information Retrieval, 2023, 12
  • [48] Lightweight traffic sign detection algorithm based on improved YOLOv5 in snowy environments
    Wang, Zhanyu
    Qu, Mengmeng
    Wang, Ning
    Liu, Lintao
    Su, Hongyang
    SIGNAL IMAGE AND VIDEO PROCESSING, 2025, 19 (05)
  • [49] A fast and lightweight detection algorithm for passion fruit pests based on improved YOLOv5
    Li, Kangshun
    Wang, Jiancong
    Jalil, Hassan
    Wang, Hui
    COMPUTERS AND ELECTRONICS IN AGRICULTURE, 2023, 204
  • [50] YOLO-HLT: improved lightweight printed circuit board surface defect detection algorithm based on YOLOv5
    Yang, Bohao
    Liu, Wei
    Wang, Zhenzhen
    INSIGHT, 2024, 66 (10) : 628 - 638