欢迎访问《图学学报》 分享到:

图学学报 ›› 2023, Vol. 44 ›› Issue (2): 346-356.DOI: 10.11996/JG.j.2095-302X.2023020346

• 图像处理与计算机视觉 • 上一篇    下一篇

基于改进YOLOv5的智能除草机器人蔬菜苗田杂草检测研究

张伟康(), 孙浩, 陈鑫凯, 李叙兵, 姚立纲, 东辉()   

  1. 福州大学机械工程及自动化学院,福建 福州 350108
  • 收稿日期:2022-07-11 接受日期:2022-09-07 出版日期:2023-04-30 发布日期:2023-05-01
  • 通讯作者: 东辉(1985-),女,教授,博士。主要研究方向为图像处理及机器学习方法等。E-mail:hdong@fzu.edu.cn
  • 作者简介:张伟康(1997-),男,硕士研究生。主要研究方向为机器人技术及目标检测。E-mail:wkzhang7167@163.com
  • 基金资助:
    国家自然科学基金项目(62173093);福建省自然科学基金项目(2020J01456)

Research on weed detection in vegetable seedling fields based on the improved YOLOv5 intelligent weeding robot

ZHANG Wei-kang(), SUN Hao, CHEN Xin-kai, LI Xu-bing, YAO Li-gang, DONG Hui()   

  1. School of Mechanical Engineering and Automation, Fuzhou University, Fuzhou Fujian 350108, China
  • Received:2022-07-11 Accepted:2022-09-07 Online:2023-04-30 Published:2023-05-01
  • Contact: DONG Hui (1985-), professor, Ph.D. Her main research interests cover image processing and machine learning, etc. E-mail:hdong@fzu.edu.cn
  • About author:ZHANG Wei-kang (1997-), master student. His main research interests cover robotics and object detection. E-mail:wkzhang7167@163.com
  • Supported by:
    National Natural Science Foundation of China(62173093);National Natural Science Foundation of Fujian Province(2020J01456)

摘要:

杂草精准检测是自动化除草装备的关键技术。针对田间杂草分布复杂和种类繁多导致的检测复杂度高和鲁棒性差等问题,基于自研移动机器人平台,提出一种改进YOLOv5算法和图像处理的蔬菜苗田杂草检测方法。通过识别蔬菜间接检测杂草的方式降低杂草检测复杂度,进而提高检测精度和鲁棒性。在YOLOv5目标检测算法主干特征提取网络中引入卷积块注意力模块(CBAM)提高网络对蔬菜目标的关注度,加入Transformer模块增强模型对全局信息的捕捉能力。结果表明,改进YOLOv5算法对蔬菜目标的平均检测准确率可达95.7%,与Faster R-CNN,SSD,EfficientDet,RetinaNet,YOLOv3,YOLOv4和YOLOv5算法相比,分别提高了5.8%,6.9%,10.3%,13.1%,9.0%,5.2%和3.2%。算法单幅图像平均检测时间11 ms,具有较好的实时性。采用改进YOLOv5算法检测蔬菜,将蔬菜边框之外绿色植物定义为杂草,超绿特征(ExG)结合OTSU阈值分割法将杂草与土壤背景分割,最后标记杂草连通域输出杂草质心和检测框。本研究方法可为农业自动化精准除草提供借鉴。

关键词: 除草机器人, 杂草检测, 蔬菜识别, YOLOv5, 注意力机制

Abstract:

Accurate detection of weeds is a key technology for developing automated weeding equipment. To address the problems of high detection complexity and poor robustness resulting from the complex distribution and variety of weeds, we proposed a weed detection approach for vegetable seedling based on the improved YOLOv5 algorithm and image processing, implemented on a self-developed mobile robot platform. The weed detection complexity was reduced by indirectly detecting weeds through identifying vegetables, thus improving the detection accuracy and robustness. The convolutional block attention module (CBAM) attention module was added to the backbone feature extraction network of the YOLOv5 object detection algorithm to enhance the focus of the network on vegetable targets, and the Transformer module was added to enhance the global information capture capability. The results showed that the average detection accuracy of the improved YOLOv5 algorithm for vegetable targets could reach 95.7%, which was increased by 5.8%, 6.9%, 10.3%, 13.1%, 9.0%, 5.2%, and 3.2% compared with Faster R-CNN, SSD, EfficientDet, RetinaNet, YOLOv3, YOLOv4, and YOLOv5, respectively. The average detection time of the algorithm for a single run was 11 ms, indicating good real-time performance. The method defined green plants outside the vegetable border as weeds, and combined the extreme green (ExG) with the OTSU threshold segmentation method to segment weeds from the soil background. Finally, the weed connectivity domain was marked, followed by outputting the weed plasmids and detection frames. The proposed method could provide a technical reference for automated precision weeding in agriculture.

Key words: weeding robot, weed detection, vegetable identification, YOLOv5, attention mechanism

中图分类号: