组合机床与自动化加工技术2024,Issue(10) :109-114.DOI:10.13462/j.cnki.mmtamt.2024.10.022

基于改进YOLOv5算法的堆叠工件检测方法

Stacked Workpiece Detection Based on Improved YOLOv5 Algorithm

郭宏 畅晨吕 张德华 王旭强
组合机床与自动化加工技术2024,Issue(10) :109-114.DOI:10.13462/j.cnki.mmtamt.2024.10.022

基于改进YOLOv5算法的堆叠工件检测方法

Stacked Workpiece Detection Based on Improved YOLOv5 Algorithm

郭宏 1畅晨吕 1张德华 2王旭强3
扫码查看

作者信息

  • 1. 太原科技大学机械工程学院,太原 030024
  • 2. 山西平阳重工机械有限公司,临汾 043000
  • 3. 洛阳矿山机械工程设计研究院有限责任公司,洛阳 471039
  • 折叠

摘要

在当前复杂的装配场景下,各种工件堆叠在一起,给装配机器人的准确识别带来了挑战,为解决该问题,提出一种改进的YOLOv5 模型用于堆叠工件的检测和识别.采用EIFM边缘信息融合模块对目标样本进行轮廓信息的增强;在特征提取网络末端添加MAM多尺度注意力模块来加强对复杂场景和较小目标的检测;将原YOLOv5 的Neck网络中的PANet路径聚合网络替换为BiFPN双向特征金字塔融合结构,对高、低特征信息进行加权特征融合;最后,将传统非极大抑制算法改为DI-OU_NMS,来减少因工件相互遮挡而产生的漏检.通过算法对比实验、堆叠程度对比实验表明,改进后的YOLOv5 算法的mAP达到97.8%,比改进前提升了7.25%;在低、中、高堆叠工件数据集中,目标检测的 mAP 达到了 98.76%、97.93%和 94.96%,比改进前的 YOLOv5 算法分别提升了0.67%、1.56%、4.41%.相比较原YOLOv5 算法,改进后的算法模型对堆叠程度较高的工件实现了更精确的识别与定位.

Abstract

In the current complex assembly scenarios,various workpieces are stacked together,which brings challenges to the accurate recognition of assembly robots.To solve the problem,this paper proposes an im-proved YOLOv5 model for the detection and recognition of stacked workpieces.The EIFM edge informa-tion fusion module is used to enhance the contour information of the target samples;the MAM multi-scale attention module is added at the end of the feature extraction network to enhance the detection of complex scenes and smaller targets;the PANet path aggregation network in the original YOLOv5's Neck network is replaced with the BiFPN bi-directional feature pyramid fusion structure,which performs weighted feature fusion on high and low feature information;finally,the traditional non-great feature fusion network is re-placed with a BiFPN bi-directional feature pyramid fusion structure.fusion;finally,the traditional non-great suppression algorithm is changed to DIOU_NMS to reduce the leakage of detection due to mutual occlusion of artifacts.The algorithm comparison experiments and stacking degree comparison experiments show that:the mAP of the improved YOLOv5 algorithm reaches 97.8%,which is 7.25%higher than the pre-im-provement;the mAP of the target detection in the low,medium and high stacked workpiece datasets reaches 98.76%,97.93%and 94.96%,which is 0.67%,1.56%,4.41%higher than the pre-improvement YOLOv5 algorithm,respectively.Compared with the original YOLOv5 algorithm,the improved algorithm model achieves more accurate identification and localization of workpieces with high stacking degree.

关键词

遮挡工件检测/YOLOv5s/轮廓信息/多尺度注意力机制

Key words

blocking workpiece detection/YOLOv5s/contour information/multi scale attention mechanism

引用本文复制引用

基金项目

山西省重点研发项目(202102150401009)

出版年

2024
组合机床与自动化加工技术
大连组合机床研究所 中国机械工程学会生产工程分会

组合机床与自动化加工技术

CSTPCD北大核心
影响因子:0.671
ISSN:1001-2265
段落导航相关论文