Weed detection in cornfields based on improved lightweight neural network model
Accurate weed detection in cornfields is a basis for their prevention and control. Machine vision technology is an effective method for accurate weed detection. Thus, this paper selects weeds growing with corn at the seedling stage as the research object. Based on the original YOLOv4, an improved lightweight weed detection model, YOLOv4-weeds, is proposed. By changing the main YOLOv4 feature extraction network into MobileNetV3-Small, combined with the depthwise separable convolution and inverse residual structure, and introducing a lightweight attention mechanism, this model reduces the image processing memory size and improves detection efficiency. The YOLOv4-weeds mAP reaches 88.5 %, which is significantly higher than that of YOLOv3, YOLOv4 and YOLOv4-tiny. The innovation of this research lies in the idea of "replacing the backbone extraction network of the detection model". Specifically, the original CSPDarknet-53 backbone extraction network of the YOLOv4 model structure is replaced with MobileNetV3-Small. By improving the original YOLOv4 model structure, the complexity of the original YOLOv4 model is simplified. While ensuring the precise detection of small target objects such as corn seedlings and 13 types of weeds in the image, the model structure becomes more lightweight, better meeting the configuration requirements of embedded devices. Therefore, this research not only provides a theoretical basis and technical guidance for corn yield prediction and the development of a visual system for disease identification but also sets a good example for identifying other species.
Authors
- Shanping Wang (ORCID: https://orcid.org/0000-0003-1313-369X)
- Hengzhi Wan
Publication Details
- Journal
- Alexandria Engineering Journal
- Published
- 2025-03-17
- DOI
- https://doi.org/10.1016/j.aej.2025.03.016
- Citations
- 3
- Primary Topic
- Smart Agriculture and AI
- Type
- article
- Field-Weighted Citation Impact
- 5.25