《计算机应用》唯一官方网站 ›› 2024, Vol. 44 ›› Issue (3): 983-988.DOI: 10.11772/j.issn.1001-9081.2023030349

• 前沿与综合应用 • 上一篇    下一篇

面向牵引座焊缝表面质量检测的轻量型深度学习算法

黄子杰1, 欧阳2, 江德港1, 郭彩玲3(), 李柏林4   

  1. 1.西南交通大学 唐山研究生院, 河北 唐山 063000
    2.成都大学 机械工程学院, 成都 610106
    3.河北省智能装备数字化设计及过程仿真重点实验室(唐山学院), 河北 唐山 063000
    4.西南交通大学 机械工程学院, 成都 610031
  • 收稿日期:2023-03-31 修回日期:2023-06-02 接受日期:2023-06-05 发布日期:2023-06-28 出版日期:2024-03-10
  • 通讯作者: 郭彩玲
  • 作者简介:黄子杰(1995—),男,广西百色人,硕士研究生,CCF会员,主要研究方向:机器视觉
    欧阳(1991—),男,四川渠县人,讲师,博士,主要研究方向:图像处理、模式识别
    江德港(1999—),男,四川泸州人,硕士研究生,主要研究方向:机器视觉
    李柏林(1962—),男,四川成都人,教授,博士,主要研究方向:机器视觉。
  • 基金资助:
    四川省重大科技专项(2022ZDZX0007)

Lightweight deep learning algorithm for weld seam surface quality detection of traction seat

Zijie HUANG1, Yang OU2, Degang JIANG1, Cailing GUO3(), Bailin LI4   

  1. 1.Graduate School of Tangshan,Southwest Jiaotong University,Tangshan Hebei 063000,China
    2.School of Mechanical Engineering,Chengdu University,Chengdu Sichuan 610106,China
    3.Hebei Key Lab of Intelligent Equipment Digital Design and Process Simulation (Tangshan University),Tangshan Hebei 063000,China
    4.School of Mechanical Engineering,Southwest Jiaotong University,Chengdu Sichuan 610031,China
  • Received:2023-03-31 Revised:2023-06-02 Accepted:2023-06-05 Online:2023-06-28 Published:2024-03-10
  • Contact: Cailing GUO
  • About author:HUANG Zijie, born in 1995, M. S. candidate. His research interests include machine vision.
    OU Yang, born in 1991, Ph. D., lecturer. His research interests include image processing, pattern recognition.
    JIANG Degang, born in 1999, M. S. candidate. His research interests include machine vision.
    LI Bailin, born in 1962, Ph. D., professor. His research interests include machine vision.
  • Supported by:
    Science and Technology Major Project of Sichuan Province(2022ZDZX0007)

摘要:

针对人工和传统自动化算法检测牵引座焊缝表面存在检测精度低、速度低的问题,提出一种轻量型的牵引座焊缝表面质量检测算法YOLOv5s-G2CW。首先,用GhostBottleneckV2模块替换YOLOv5s中的C3模块以降低模型的参数量;其次,在YOLOv5s模型的Neck部分引入CBAM(Convolutional Block Attention Module),在通道和空间两个维度上融合焊缝特征;然后将YOLOv5s的定位损失函数改进为Wise-IoU以聚焦普通质量锚框的预测回归;最后移除YOLOv5s模型中用于大物体检测的13×13特征层以进一步降低模型的参数量。实验结果表明,与YOLOv5s模型相比,YOLOv5s-G2CW的模型大小减小了53.9%,帧率提高了8.0%,平均精度均值(mAP)提高了0.8个百分点,能够满足牵引座焊缝表面质量检测的准确性和实时性要求。

关键词: 轻量化模型, YOLOv5s, 焊缝检测, 注意力机制, Wise-IoU

Abstract:

In order to address the low accuracy and speed of detection by manual and traditional automation methods for the weld seam surface of traction seat, a lightweight weld seam quality detection algorithm YOLOv5s-G2CW was proposed for the weld seam surface of traction seat. Firstly, the GhostBottleneckV2 module was applied as a replacement for the C3 module in YOLOv5s to reduce the number of parameters used in the model. Then, the CBAM (Convolutional Block Attention Module) was introduced into the Neck of the YOLOv5s model for integration of the weld features in two dimensions: channel and space. Also, the positioning loss function of the YOLOv5s model was improved into Wise-IoU, focusing on the predictive regression of ordinary quality anchor frames. Finally, the 13×13 feature layer used for the detection of large-sized objects in the YOLOv5s model was removed to further reduce the number of parameters used in the model. Experimental results show that, compared with the YOLOv5s model, the size of YOLOv5s-G2CW model reduces by 53.9%, the number of frames transmitted per second increases by 8.0%, and the mAP (mean Average Precision) value increases by 0.8 percentage points. It can be seen that the model is applicable to meet the requirements for real-time and accurate detection of the weld seam surface for traction seat.

Key words: lightweight model, YOLOv5s, weld seam detection, attention mechanism, Wise-IoU

中图分类号: