# YOLOv8 Model for Weed Detection in Wheat Fields Based on a Visual Converter and Multi-Scale Feature Fusion

**Authors:** Yinzeng Liu, Fandi Zeng, Hongwei Diao, Junke Zhu, Dong Ji, Xijie Liao, Zhihuan Zhao

PMC · DOI: 10.3390/s24134379 · Sensors (Basel, Switzerland) · 2024-07-05

## TL;DR

This paper introduces YOLOv8-MBM, an improved model for accurately detecting weeds in wheat fields using a visual converter and multi-scale feature fusion.

## Contribution

The novel contribution is the integration of a lightweight visual converter and a bidirectional feature pyramid network into the YOLOv8s model for weed detection.

## Key findings

- The YOLOv8-MBM model achieved 92.7% accuracy in weed detection.
- The model outperformed other mainstream models like YOLOv7 and YOLOv9 in detection performance.
- Precision, recall, mAP1, and mAP2 improved by 10.6%, 8.9%, 9.7%, and 9.3% compared to the original YOLOv8s.

## Abstract

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.

## Full-text entities

- **Genes:** MOAP1 (modulator of apoptosis 1) [NCBI Gene 64112] {aka MAP-1, PNMA4}, EMG1 (EMG1 N1-specific pseudouridine methyltransferase) [NCBI Gene 10436] {aka C2F, Grcc2f, NEP1}
- **Diseases:** injury to people or property (MESH:C000719191)
- **Chemicals:** BiFPN (-)
- **Species:** Beta vulgaris subsp. vulgaris (field beet, subspecies) [taxon 3555], Solanum rostratum (species) [taxon 45839], Oryza sativa (Asian cultivated rice, species) [taxon 4530], Ananas comosus (pineapple, species) [taxon 4615], Homo sapiens (human, species) [taxon 9606], Artemisia (genus) [taxon 4219]

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/PMC11244458/full.md

## Figures

12 figures with captions in the complete paper: https://tomesphere.com/paper/PMC11244458/full.md

## References

31 references — full list in the complete paper: https://tomesphere.com/paper/PMC11244458/full.md

---
Source: https://tomesphere.com/paper/PMC11244458