Mechanical and Electronic Engineering College, Shandong Agriculture and Engineering University, Jinan 250100, China.
School of Agricultural Engineering and Food Science, Shandong University of Technology, Zibo 255000, China.
Sensors (Basel). 2024 Jul 5;24(13):4379. doi: 10.3390/s24134379.
Accurate weed detection is essential for the precise control of weeds in wheat fields, but weeds and wheat are sheltered from each other, and there is no clear size specification, making it difficult to accurately detect weeds in wheat. To achieve the precise identification of weeds, wheat weed datasets were constructed, and a wheat field weed detection model, YOLOv8-MBM, based on improved YOLOv8s, was proposed. In this study, a lightweight visual converter (MobileViTv3) was introduced into the C2f module to enhance the detection accuracy of the model by integrating input, local (CNN), and global (ViT) features. Secondly, a bidirectional feature pyramid network (BiFPN) was introduced to enhance the performance of multi-scale feature fusion. Furthermore, to address the weak generalization and slow convergence speed of the CIoU loss function for detection tasks, the bounding box regression loss function (MPDIOU) was used instead of the CIoU loss function to improve the convergence speed of the model and further enhance the detection performance. Finally, the model performance was tested on the wheat weed datasets. The experiments show that the YOLOv8-MBM proposed in this paper is superior to Fast R-CNN, YOLOv3, YOLOv4-tiny, YOLOv5s, YOLOv7, YOLOv9, and other mainstream models in regards to detection performance. The accuracy of the improved model reaches 92.7%. Compared with the original YOLOv8s model, the precision, recall, mAP1, and mAP2 are increased by 10.6%, 8.9%, 9.7%, and 9.3%, respectively. In summary, the YOLOv8-MBM model successfully meets the requirements for accurate weed detection in wheat fields.
精确的杂草检测对于麦田杂草的精确控制至关重要,但杂草和小麦相互遮蔽,且没有明确的尺寸规格,因此很难准确检测麦田中的杂草。为了实现杂草的精确识别,构建了小麦-杂草数据集,并提出了一种基于改进 YOLOv8s 的小麦田杂草检测模型 YOLOv8-MBM。在这项研究中,引入了轻量级视觉转换器(MobileViTv3)到 C2f 模块中,通过整合输入、局部(CNN)和全局(ViT)特征来提高模型的检测精度。其次,引入了双向特征金字塔网络(BiFPN)来增强多尺度特征融合的性能。此外,为了解决 CIoU 损失函数在检测任务中弱泛化和收敛速度慢的问题,使用边界框回归损失函数(MPDIOU)代替 CIoU 损失函数,以提高模型的收敛速度,进一步增强检测性能。最后,在小麦-杂草数据集上测试了模型性能。实验表明,本文提出的 YOLOv8-MBM 在检测性能方面优于 Fast R-CNN、YOLOv3、YOLOv4-tiny、YOLOv5s、YOLOv7、YOLOv9 等主流模型。改进后的模型精度达到 92.7%。与原始的 YOLOv8s 模型相比,精度、召回率、mAP1 和 mAP2 分别提高了 10.6%、8.9%、9.7%和 9.3%。总之,YOLOv8-MBM 模型成功满足了麦田杂草精确检测的要求。