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 条
  • [21] Research on lightweight algorithm for gangue detection based on improved Yolov5
    Yuan, Xinpeng
    Fu, Zhibo
    Zhang, Bowen
    Xie, Zhengkun
    Gan, Rui
    SCIENTIFIC REPORTS, 2024, 14 (01)
  • [22] Lightweight Algorithm for Apple Detection Based on an Improved YOLOv5 Model
    Sun, Yu
    Zhang, Dongwei
    Guo, Xindong
    Yang, Hua
    PLANTS-BASEL, 2023, 12 (17):
  • [23] Research on lightweight algorithm for gangue detection based on improved Yolov5
    Xinpeng Yuan
    Zhibo Fu
    Bowen Zhang
    Zhengkun Xie
    Rui Gan
    Scientific Reports, 14
  • [24] A Lightweight Military Target Detection Algorithm Based on Improved YOLOv5
    Du, Xiuli
    Song, Linkai
    Lv, Yana
    Qiu, Shaoming
    ELECTRONICS, 2022, 11 (20)
  • [25] Railway fastener defect detection based on improved YOLOv5 algorithm
    Su, Zhitong
    Han, Kai
    Song, Wei
    Ning, Keqing
    2022 IEEE 6TH ADVANCED INFORMATION TECHNOLOGY, ELECTRONIC AND AUTOMATION CONTROL CONFERENCE (IAEAC), 2022, : 1923 - 1927
  • [26] GRP-YOLOv5: An Improved Bearing Defect Detection Algorithm Based on YOLOv5
    Zhao, Yue
    Chen, Bolun
    Liu, Bushi
    Yu, Cuiying
    Wang, Ling
    Wang, Shanshan
    SENSORS, 2023, 23 (17)
  • [27] A rail fastener defect detection algorithm based on improved YOLOv5
    Wang, Ling
    Zang, Qiuyu
    Zhang, Kehua
    Wu, Lintong
    PROCEEDINGS OF THE INSTITUTION OF MECHANICAL ENGINEERS PART F-JOURNAL OF RAIL AND RAPID TRANSIT, 2024, 238 (07) : 851 - 862
  • [28] An Improved YOLOv5 Algorithm for Wood Defect Detection Based on Attention
    Han, Siyu
    Jiang, Xiangtao
    Wu, Zhenyu
    IEEE ACCESS, 2023, 11 : 71800 - 71810
  • [29] Improved Yolov5 Algorithm for Surface Defect Detection of Solar Cell
    Li, Pengjie
    Shan, Shuo
    Zeng, Pengzhong
    Wei, Haikun
    2023 35TH CHINESE CONTROL AND DECISION CONFERENCE, CCDC, 2023, : 3601 - 3605
  • [30] Surface defect detection of steel based on improved YOLOv5 algorithm
    Jiang, Yiwen
    MATHEMATICAL BIOSCIENCES AND ENGINEERING, 2023, 20 (11) : 19858 - 19870