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 条
  • [1] Lightweight Surface Defect Detection Algorithm Based on Improved YOLOv5
    Yang, Kaijun
    Chen, Tao
    2024 5TH INTERNATIONAL CONFERENCE ON MECHATRONICS TECHNOLOGY AND INTELLIGENT MANUFACTURING, ICMTIM 2024, 2024, : 798 - 802
  • [2] An improved lightweight object detection algorithm for YOLOv5
    Luo, Hao
    Wei, Jiangshu
    Wang, Yuchao
    Chen, Jinrong
    Li, Wujie
    PEERJ COMPUTER SCIENCE, 2024, 10
  • [3] Improved YOLOv5 Lightweight Mask Detection Algorithm
    Liu, Chonghao
    Pan, Lihu
    Yang, Fan
    Zhang, Rui
    Computer Engineering and Applications, 2023, 59 (07) : 232 - 241
  • [4] Improved Fabric Defect Detection Algorithm of YOLOv5
    Ma, Ahui
    Zhu, Shuangwu
    Li, Choudan
    Ma, Xiaotong
    Wang, Shihao
    Computer Engineering and Applications, 2023, 59 (10) : 244 - 252
  • [5] An Improved YOLOv5 Algorithm for Tyre Defect Detection
    Xie, Mujun
    Bian, Heyu
    Jiang, Changhong
    Zheng, Zhong
    Wang, Wei
    ELECTRONICS, 2024, 13 (11)
  • [6] A Lightweight PCB Defect Detection Algorithm Based on Improved YOLOv8-PCB
    Wang, Jianan
    Xie, Xin
    Liu, Guoying
    Wu, Liang
    SYMMETRY-BASEL, 2025, 17 (02):
  • [7] Lightweight object detection algorithm for robots with improved YOLOv5
    Liu, Gang
    Hu, Yanxin
    Chen, Zhiyu
    Guo, Jianwei
    Ni, Peng
    ENGINEERING APPLICATIONS OF ARTIFICIAL INTELLIGENCE, 2023, 123
  • [8] Lightweight Fire Detection Algorithm Based on Improved YOLOv5
    Zhang, Dawei
    Chen, Yutang
    INTERNATIONAL JOURNAL OF ADVANCED COMPUTER SCIENCE AND APPLICATIONS, 2024, 15 (06) : 809 - 816
  • [9] Lightweight UAV Detection Algorithm Based on Improved YOLOv5
    Peng Y.
    Tu X.
    Yang Q.
    Li R.
    Hunan Daxue Xuebao/Journal of Hunan University Natural Sciences, 2023, 50 (12): : 28 - 38
  • [10] Application of Improved YOLOv5 Algorithm in Lightweight Transmission Line Small Target Defect Detection
    Yu, Zhilong
    Lei, Yanqiao
    Shen, Feng
    Zhou, Shuai
    ELECTRONICS, 2024, 13 (02)