首页|期刊导航|江苏农业学报|基于YOLO-GLBW模型的复杂田间环境下玉米田杂草检测

基于YOLO-GLBW模型的复杂田间环境下玉米田杂草检测OA

Weed detection in maize fields under complex field conditions based on the YOLO-GLBW model

中文摘要英文摘要

针对实际农田复杂环境中玉米苗与杂草相互遮挡、形态相似、杂草分布密集,导致杂草目标定位困难,且现有检测模型存在长程依赖建模不足、检测精度不高、推理效率偏低等问题,本研究以 YOLO v8n 为基础,提出一种改进模型 YOLO-GLBW.首先,在主干网络特征提取模块(C2f)以及颈部网络全部 C2f 模块中嵌入幽灵卷积(GhostConv)结构,有效降低模型的参数量与运算量,同时保留完备的特征表达能力.在快速空间金字塔池化(SP-PF)模块中引入大型可分离核注意力机制(LSKA),有效弥补模型长程依赖不足的缺陷,增强对小目标的感知能力.其次,选用加权双向特征金字塔网络(BiFPN),提升模型对多尺度目标的感知能力与定位精度.最后,引入明智交并比(WIoU)损失函数,优化复杂场景下的定位精度与分类效果,加快模型的收敛速度,增强泛化能力.本次试验采用自行构建的田间玉米苗图像与杂草图像数据集开展测试,结果表明,YOLO-GLBW 模型mAP50达83.9%,模型的参数量为 2.47 M,1.0×109 次浮点运算次数(GFLOPs)为 6.3,与原始模型 YOLOv8 相比,YOLO-GLBW 模型精确率、召回率、mAP50和 mAP50-95分别提高了 1.4 个百分点、2.1 个百分点、1.6 个百分点、0.5 个百分点,同时参数量和运算量分别降低17.9%和22.2%.YOLO-GLBW 模型在显著降低运算开销、实现模型轻量化的同时,进一步提升了目标检测精度.面对田间玉米苗与杂草密集分布、形态相近、相互遮挡的复杂场景,该模型仍可保持稳定的检测精度,解决了模型识别精度与效率难以兼顾的问题,具备良好的田间落地应用价值.

To address the issues of mutual occlusion between maize seedlings and weeds,similar morphology,and dense weed distribution in complex field environments,which lead to difficulties in weed target localization,as well as the problems of insufficient long-range dependency modeling,low detection accuracy,and low inference efficiency in existing detection models,this study proposed an improved model,YOLO-GLBW,based on YOLOv8n.First,we embedded the ghost convolution(GhostConv)structure into the C2f modules of both the backbone feature extraction network and all C2f modules of the neck network,which effectively reduced the model's parameter count and computational cost while preserving its full feature representation capabil-ity.We introduced the large separable kernel attention(LSKA)mechanism into the fast spatial pyramid pooling(SPPF)module,which effectively compensated for the model's deficiency in long-range dependency and enhanced its perception capability for small targets.Second,we adopted a bidirectional feature pyramid network(BiFPN)to improve multi-scale target detection and localization performance.Finally,we introduced the wise intersection over union(WIoU)loss function to optimize localization and classification performance in complex scenarios,accelerate the convergence speed,and enhance the generalization ability.In this experiment,we tested the proposed model on a self-constructed dataset of maize seedling and weed images collected from field environments.The results showed that YOLO-GLBW achieved mAP50 of 83.9%,with 2.47 M parameters and a computational cost of 6.3 GFLOPs(1.0×109 floating-point operations).Compared with the original YOLOv8 model,YOLO-GLBW improved precision,recall,mAP50,and mAP50-95 by 1.4 percentage points,2.1 percentage points,1.6 percentage points,and 0.5 percentage points,respectively,while reducing the parameter count and computa-tional cost by 17.9%and 22.2%,respectively.The YOLO-GLBW model significantly reduced computational cost and achieved a lightweight design,while further improving object detection accuracy.In the face of complex scenarios character-ized by dense distribution,morphological similarity,and mutual occlusion between maize seedlings and weeds,the model maintains stable detection accuracy,resolves the trade-off between recognition precision and efficiency,and demonstrates considerable potential for practical field deployment.

刘希岩;赵秋实;杨锦锋;刘铱凡;隋新

哈尔滨理工大学计算机科学与技术学院,黑龙江 哈尔滨 150080哈尔滨理工大学计算机科学与技术学院,黑龙江 哈尔滨 150080哈尔滨理工大学计算机科学与技术学院,黑龙江 哈尔滨 150080哈尔滨理工大学计算机科学与技术学院,黑龙江 哈尔滨 150080黑龙江省农垦科学院农业工程研究所,黑龙江 哈尔滨 150086

信息技术与安全科学

YOLOv8n 模型玉米田杂草目标检测

YOLOv8n modelmaize fieldweedsobject detection

《江苏农业学报》 2026 (8)

1584-1596,13

黑龙江省自然科学基金项目(LH2023F048)

10.3969/j.issn.1000-4440.2026.08.008

评论