Weed and rice seedling detection in field based on MAL-YOLOv5 model
Abstract
Weeds severely reduce rice yield and quality, making reliable in-field detection of weed and rice seedling essential for automated weed management. Although deep learning-based object detection techniques have shown significant potential in automatically distinguishing crops from weeds, existing models often suffer from large model sizes, high computational complexity, and insufficient feature extraction. To address these issues, this study proposes a lightweight multi-angle object detection model named MAL-YOLOv5 (Multi-Angle Lightweight YOLOv5), based on the YOLOv5 (You Only Look Once version 5) framework, which effectively reduces model complexity while maintaining detection performance. Specifically, the lightweight MobileNetV3 architecture is adopted to replace the original backbone network, significantly decreasing the number of parameters without compromising accuracy. Furthermore, the neck network of MAL-YOLOv5 is enhanced by integrating spatial and channel reconstruction convolution (SCConv) and a single-shot feature aggregation module (SCCSP), which reduces spatial and channel redundancies in the convolutional module, thereby compressing the neck network and improving feature representation. Additionally, a rotated bounding box with angular information is introduced for annotating and detecting rice seedling and weed, which effectively mitigates the interference from background and non-target objects, enabling more precise identification. Experimental results show that the precision, recall, and mAP of the MAL-YOLOv5 model are 93.1%, 91.9%, and 93.4%, respectively. Compared to YOLOv5s_obb, the MAL-YOLOv5 model reduces the number of parameters by 80.1% and computational cost in GFLOPs (Giga Floating-Point Operations) by 81.5%, significantly minimizing model size with only marginal loss in accuracy, conserving computational and storage costs while lowering the hardware requirements for intelligent mechanical weeding equipment.
Keywords: rice seedling and weed detection, YOLOv5, lightweight, SCConv, SCCSP, rotated bounding box
DOI: 10.25165/j.ijabe.20261903.9496
Citation: Yang Y Q, Zhu D Q, Zhang K, Chen M H, Xing R X, Xiong W, et al. Weed and rice seedling detection in field based on MAL-YOLOv5 model. Int J Agric & Biol Eng, 2026; 19(3): 256–266.
References
[1] Li W B, He Z F, Wu L P, Liu S J, Luo L C, Ye X X, et al. Impacts of co-culture of rice and aquatic animals on rice yield and quality: A meta-analysis of field trials. Field Crops Research, 2022; 280: 108468.
[2] Shao Y Y, Guan X L, Xuan G T, Gao F R, Feng W J, Gao G L, et al. GTCBS-YOLOv5s: A lightweight model for weed species identification in paddy fields. Computers and Electronics in Agriculture, 2023; 215: 108461.
[3] Rao A N, Singh R G, Mahajan G, Wani S P. Weed research issues, challenges, and opportunities in India. Crop Protection, 2020; 134: 104451.
[4] Vijayakumar V, Ampatzidis Y, Schueller J K, Burks T. Smart spraying technologies for precision weed management: A review. Smart Agricultural Technology, 2023; 6: 100337.
[5] Ghatrehsamani S, Jha G, Dutta W, Molaei F, Nazrul F, Fortin M, et al. Artificial intelligence tools and techniques to combat herbicide resistant weeds-A review. Sustainability, 2023; 15(3): 1843.
[6] Tudi M, Ruan H D, Wang L, Lyu J, Sadler R, Connell D, et al. Agriculture development, pesticide application and its impact on the environment. International Journal of Environmental Research and Public Health, 2021; 18(3): 1112.
[7] Li Y, Guo Z Q, Shuang F, Zhang M, Li X H. Key technologies of machine vision for weeding robots: A review and benchmark. Computers and Electronics in Agriculture, 2022; 196: 106880.
[8] Zheng J Q, Xu Y L. Development of plant protection methods and advances in pesticide application technology in agro-forestry production. Agriculture, 2023; 13(11): 2165.
[9] Liao J, Chen M H, Zhang K, Zhou H Y, Zou Y, Xiong W, et al. SC-Net: A new strip convolutional network model for rice seedling and weed segmentation in paddy field. Computers and Electronics in Agriculture, 2024; 220: 108862.
[10] Singh V, Singh D. Development of an approach for early weed detection with UAV imagery. In: Proceedings of the IEEE International Geoscience and Remote Sensing Symposium, 2022; pp. 4879–4882.
[11] Abouzahir S, Sadik M, Sabir E. Bag-of-visual-words-augmented histogram of oriented gradients for efficient weed detection. Biosystems Engineering, 2021; 202: 179–194.
[12] Dadashzadeh M, Abbaspour-Gilandeh Y, Mesri-Gundoshmian T, Sabzi S, Hernández-Hernández J L, Hernández-Hernández M, et al. Weed classification for site-specific weed management using an automated stereo computer-vision machine-learning system in rice fields. Plants, 2020; 9(5): 559.
[13] Chen Y J, Wu Z N, Zhao B, Fan C X, Shi S W. Weed and corn seedling detection in field based on multi feature fusion and support vector machine. Sensors, 2021; 21(1): 212.
[14] Naik N S, Chaubey H K. Weed detection and classification in sesame crops using region-based convolution neural networks. Neural Computing and Applications, 2024; 36(30): 18961–18977.
[15] Daşkın Z D, Alam M S, Khan M U. Ensemble transfer learning using MaizeSet: A dataset for weed and maize crop recognition at different growth stages. Crop Protection, 2024; 184: 106849.
[16] Jiang H H, Zhang C Y, Qiao Y L, Zhang Z, Zhang W J, Song C Q. CNN feature based graph convolutional network for weed and crop recognition in smart farming. Computers and Electronics in Agriculture, 2020; 174: 105450.
[17] Li J Y, Zhang W, Zhou H, Yu C T, Li Q D. Weed detection in soybean fields using improved YOLOv7 and evaluating herbicide reduction efficacy. Frontiers in Plant Science, 2024; 14: 1284338.
[18] Chen J, Wang H, Zhang H, Luo T, Wei D, Li T, et al. Weed detection in sesame fields using a YOLO model with an enhanced attention mechanism and feature fusion. Computers and Electronics in Agriculture, 2022; 202: 107412.
[19] Wang Y. Wang F, Li K, Feng X, Hou W, Liu L,et al.Low-light wheat image enhancement using an explicit inter-channel sparse transformer. Computers and Electronics in Agriculture, 2024; 224: 109169.
[20] Li J, Qiao Y, Liu S, Zhang J, Yang Z, Wang M. An improved YOLOv5-based vegetable disease detection method. Computers and Electronics in Agriculture, 2022; 202: 107345.
[21] Zhang Y, Zhang H, Huang Q, Han Y, Zhao M. DsP-YOLO: An anchor-free network with DsPAN for small object detection of multiscale defects. Expert Systems with Applications, 2024; 241: 122669.
[22] Howard A, Sandler M, Chu G, Chen L C, Chen B, Tan M, et al. Searching for MobileNetV3. In: Proceedings of the IEEE/CVF International Conference on Computer Vision, 2019; pp. 1314–1324.
[23] Zhou G, Liu W, Zhu Q, Lu Y, Liu Y. ECA-MobileNetV3(Large)+SegNet model for binary sugarcane classification of remotely sensed images. IEEE Transactions on Geoscience and Remote Sensing, 2022; 60: 1–15.
[24] Gennari M, Fawcett R, Prisacariu V A. DSConv: Efficient convolution operator. In: Proceedings of the IEEE/CVF International Conference on Computer Vision, 2019; pp. 5148–5157.
[25] Wang H, Bhaskara V, Levinshtein A, Tsogkas S, Jepson A. Efficient super-resolution using MobileNetV3. In: Proceedings of the European Conference on Computer Vision, 2020; pp. 87–102.
[26] Li K, Wang J, Jalil H, Wang H. A fast and lightweight detection algorithm for passion fruit pests based on improved YOLOv5. Computers and Electronics in Agriculture, 2023; 204: 107534.
[27] Li H, Xiong P, Fan H, Sun J. DFANet: Deep feature aggregation for real-time semantic segmentation. In: Proceedings of the IEEE/CVF International Conference on Computer Vision, 2019; pp. 9522–9531.
[28] Yu X, Lin M, Lu J, Ou L. Oriented object detection in aerial images based on area ratio of parallelogram. Journal of Applied Remote Sensing, 2022; 16(3): 034510.
[29] Yang X, Yan J. Arbitrary-oriented object detection with circular smooth label. In: Proceedings of the European Conference on Computer Vision, 2020; pp. 671–687.
[30] Selvaraju R R, Cogswell M, Das A, Vedantam R, Parikh D, Batra D. Grad-CAM: Visual explanations from deep networks via gradient-based localization. International Journal of Computer Vision, 2020; 128: 336–359.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 International Journal of Agricultural and Biological Engineering

This work is licensed under a Creative Commons Attribution 4.0 International License.
IJABE is an international peer reviewed, open access journal, adopting Creative Commons Copyright Notices as follows.
Authors who publish with this journal agree to the following terms:
- Authors retain copyright and grant the journal right of first publication with the work simultaneously licensed under a Creative Commons Attribution License that allows others to share the work with an acknowledgement of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgement of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) prior to and during the submission process, as it can lead to productive exchanges, as well as earlier and greater citation of published work (See The Effect of Open Access).