基于改进YOLOv5的O型密封圈缺陷检测方法
CSTR:
作者:
作者单位:

作者简介:

通讯作者:

中图分类号:

TP391

基金项目:

国家自然科学基金资助项目(52075340,52105525)


Defect detection method of O-ring based on improved YOLOv5
Author:
Affiliation:

Fund Project:

  • 摘要
  • |
  • 图/表
  • |
  • 访问统计
  • |
  • 参考文献
  • |
  • 相似文献
  • |
  • 引证文献
  • |
  • 资源附件
  • |
  • 文章评论
    摘要:

    针对O型密封圈缺陷难以人工识别的问题,提出一种基于改进YOLOv5的表面缺陷自动检测方法。在数据预处理阶段,采用半自动标注方法减少人工标注成本,同时将拼接图片改为9张以实现Mosaic数据增强方法。在网络预测层引入标签平滑方法以减少模型过度依赖标签。在骨干网络中添加卷积注意力机制模块,强化有效信息,使骨干网络提取更加细致的局部特征信息。同时,针对缺陷类型尺度变化大的特点,引入剪枝的双向特征金字塔网络,以解决大小缺陷在特征提取过程中的丢失问题。实验结果表明,基于改进的YOLOv5与原YOLOv5相比,O型圈表面缺陷检测平均精度均值提高了4.26%,并且检测速度在25 ms之内,能够满足实际生产需要。

    Abstract:

    Aiming at the difficulty of manual identification of O-ring defects, an automatic detection method of surface defects based on the improved YOLOv5 was proposed. In the data preprocessing stage, the semi-automatic labeling method was used to reduce the cost of manual labeling, and the number of mosaic images used was changed to nine to realize the mosaic data enhancement method. A label smoothing method was introduced in the network prediction layer to reduce the model's over-reliance on labels. The convolutional attention mechanism module was added to the backbone network to highlight the valid information, so that the backbone network could extract more detailed local feature information. At the same time, because of the characteristics of large scale changes of defect types, a pruned bidirectional feature pyramid network was introduced to tackle the loss of both large and small defects in the feature extraction process. The experimental results show that compared with the original YOLOv5, the average accuracy of O-ring surface defect detection in the improved YOLOv5 is increased by 4.26%, and the detection speed is within 25 ms, which can meet the actual production needs.

    参考文献
    相似文献
    引证文献
引用本文

朱文博,夏林聪,陈龙,吴晨睿,陈红光.基于改进YOLOv5的O型密封圈缺陷检测方法[J].上海理工大学学报,2022,44(5):440-448.

复制
分享
相关视频

文章指标
  • 点击次数:
  • 下载次数:
  • HTML阅读次数:
  • 引用次数:
历史
  • 收稿日期:2022-04-13
  • 最后修改日期:
  • 录用日期:
  • 在线发布日期: 2022-11-18
  • 出版日期:
文章二维码