Hostname: page-component-857557d7f7-v48vw Total loading time: 0 Render date: 2025-11-21T16:18:26.802Z Has data issue: false hasContentIssue false
Accepted manuscript

CD-YOLO-Based deep learning method for weed detection in vegetables

Published online by Cambridge University Press:  21 November 2025

Wenpeng Zhu
Affiliation:
Intern, Peking University Institute of Advanced Agricultural Sciences, Shandong Laboratory of Advanced Agricultural Sciences in Weifang, Shandong, China Visiting Student, National Engineering Research Center of Biomaterials, Nanjing Forestry University, Nanjing, China
Qiuyu Zu
Affiliation:
Research Assistant, Peking University Institute of Advanced Agricultural Sciences, Shandong Laboratory of Advanced Agricultural Sciences in Weifang, Shandong, China
Jinxu Wang
Affiliation:
Research Assistant, Peking University Institute of Advanced Agricultural Sciences, Shandong Laboratory of Advanced Agricultural Sciences in Weifang, Shandong, China
Teng Liu
Affiliation:
Research Assistant, Peking University Institute of Advanced Agricultural Sciences, Shandong Laboratory of Advanced Agricultural Sciences in Weifang, Shandong, China
Aniruddha Maity
Affiliation:
Assistant Professor, Department of Crop, Soil and Environmental Sciences, Auburn University, Alabama, USA
Jihong Sun
Affiliation:
Research Assistant, Peking University Institute of Advanced Agricultural Sciences, Shandong Laboratory of Advanced Agricultural Sciences in Weifang, Shandong, China
Mian Li
Affiliation:
Research Assistant, Peking University Institute of Advanced Agricultural Sciences, Shandong Laboratory of Advanced Agricultural Sciences in Weifang, Shandong, China
Xiaojun Jin*
Affiliation:
Associate Professor, National Engineering Research Center of Biomaterials, Nanjing Forestry University, Nanjing, China
Jialin Yu*
Affiliation:
Professor and Principal Investigator, Peking University Institute of Advanced Agricultural Sciences, Shandong Laboratory of Advanced Agricultural Sciences in Weifang, Shandong
*
Author for correspondence: Xiaojun Jin; Email: xjin@njfu.edu.cn, Jialin Yu; Email: jialin.yu@pku-iaas.edu.cn
Author for correspondence: Xiaojun Jin; Email: xjin@njfu.edu.cn, Jialin Yu; Email: jialin.yu@pku-iaas.edu.cn
Rights & Permissions [Opens in a new window]

Abstract

Core share and HTML view are not available for this content. However, as you have access to this content, a full PDF is available via the ‘Save PDF’ action button.

Computer vision-based precision weed control has proven effective in reducing herbicide usage, lowering weed management costs, and enhancing sustainability in modern agriculture. However, developing deep learning models remains challenging due to the effort required for weed dataset annotation and the difficulty of identifying weeds at different stages and densities in complex field conditions. To address these challenges, this study introduces an indirect weed detection method that combines deep learning and image processing techniques. The proposed approach first employs an object detection network to identify and label crops within the images. Subsequently, image processing techniques are applied to segment the remaining green pixels, thereby enabling indirect detection of weeds. Furthermore, a novel detection network–CD-YOLOv10n (You Only Look Once version 10 nano)–was developed based on the YOLOv10 framework to optimize computational efficiency. By redesigning the backbone (C2f-DBB) and integrating an optimized upsampling module (DySample), the network achieved higher detection accuracy while maintaining a lightweight structure. Specifically, the model achieved a mean average precision (mAP50) of 98.1%, which is a 1.4% percentage-point increase compared with the YOLOv10n baseline, a relevant improvement given the already strong baseline performance. At the same time, compared to YOLOv10n, its GFLOPs were reduced by 22.62%, and the number of parameters decreased by 15.87%. These innovations make CD-YOLOv10n highly suitable for deployment on resource-constrained platforms.

Information

Type
Research Article
Creative Commons
Creative Common License - CCCreative Common License - BYCreative Common License - NCCreative Common License - ND
This is an Open Access article, distributed under the terms of the Creative Commons Attribution-NonCommercial-NoDerivatives licence (http://creativecommons.org/licenses/by-nc-nd/4.0/), which permits non-commercial re-use, distribution, and reproduction in any medium, provided the original work is unaltered and is properly cited. The written permission of Cambridge University Press must be obtained for commercial re-use or in order to create a derivative work.
Copyright
© The Author(s), 2025. Published by Cambridge University Press on behalf of Weed Science Society of America