• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊

计算机工程与科学 ›› 2026, Vol. 48 ›› Issue (3): 434-443.

• 图形与图像 • 上一篇    下一篇

基于改进YOLOv8的农作物与藜草检测模型:MES-YOLO

文韬,王天一,黄诗锐,周江龙   

  1. (贵州大学大数据与信息工程学院,贵州 贵阳 550025)
  • 收稿日期:2024-06-21 修回日期:2024-08-29 出版日期:2026-03-25 发布日期:2026-03-25
  • 基金资助:
    黔科合支撑[2021]一般176号

An improved YOLOv8-based model for crop and pigweed detection:MES-YOLO

WEN Tao,WANG Tianyi,HUANG Shirui,ZHOU Jianglong   

  1. (College of Big Data and Information Engineering,Guizhou University,Guiyang 550025,China)
  • Received:2024-06-21 Revised:2024-08-29 Online:2026-03-25 Published:2026-03-25

摘要: 随着现代农业技术的快速发展,对农作物的精准管理和杂草的有效控制变得尤为重要。针对藜草这一影响农作物生长的常见杂草,提出了一种基于 YOLOv8改进的轻量级农作物与藜草检测模型MES-YOLO。首先,改进主干网络,将MS-Block模块融入C2f模块;通过异构卷积将之应用于YOLOv8模型的主干网络中,从而提高整体的目标检测精度和效率;其次,将高效局部注意力机制引入高级筛选特征金字塔结构中,来增强对目标特征的表达能力;最后,应用Inner-SIoU损失函数加快收敛速度。实验结果表明,相较于YOLOv8n,MES-YOLO模型在mAP@0.5指标上提升了2.1个百分点,计算量从8.2×109下降为6.5×109,参数量仅为YOLOv8n模型的62%。改进后的模型更适用于低算力环境,并且能兼顾高精度的部署需求。

关键词: 深度学习, 杂草识别, 异构卷积, 特征金字塔结构, 损失函数

Abstract: With the rapid development of modern agricultural technology, the precise management of crops and the effective control of weeds have become particularly important. Aiming at pigweed, a common weed that affects crop growth, an improved lightweight crop and pigweed detection algorithm based on YOLOv8, called MES-YOLO, is proposed. Firstly, MS-Block module and C2f module are fused and applied to the backbone network of the model by heterogeneous convolution, so as to improve the accuracy and efficiency of the overall target detection. Secondly, the feature pyramid structure HSFPN is improved to ELA-HSFPN and applied to the feature fusion network of the model to enhance the ability of the model to express the target features. Finally, the Inner-SIoU loss function is used to accelerate the convergence of the model. Experimental results demonstrate that, compared to YOLOv8n, the MES-YOLO detection algorithm achieves  2.1 percentage points  improvement in the mAP@0.5 metric, reduces computational complexity from 8.2×109 to 6.5×109, and has a parameter count that is only 62% of that of the YOLOv8n model. The improved model is more suitable for low-computational-power environments while meeting high-precision deployment requirements. 

Key words: deep learning, weed identification, heterogeneous convolution, feature pyramid structure, loss function