YOLO-CornSeg: A Lightweight Segmentation Model for Corn Seedlings with an Indirect Weed Detection Strategy
Abstract
1. Introduction
2. Materials and Methods
2.1. Dataset
2.2. YOLO-CornSeg
2.2.1. C2f_DWR Module
2.2.2. Segment_Efficient Head
2.3. Weed Detection Strategy
2.4. Experiment Design
3. Results
3.1. Ablation Experiment Results
3.2. Performance Comparison Between YOLOv8n and YOLO-CornSeg
3.3. Comparison of YOLO-CornSeg with Other State-of-the-Art Segmentation Algorithms
3.4. Verification of Weed Detection in Corn Seedlings
4. Discussion
4.1. Effectiveness of the Proposed Modules
4.2. Lightweight Advantages of YOLO-CornSeg
4.3. Advantages of Corn Segmentation-Based Weed Detection Strategy
4.4. Limitations and Future Work
5. Conclusions
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
References
- Shiferaw, B.; Prasanna, B.M.; Hellin, J.; Bänziger, M. Crops that feed the world 6: Past successes and future challenges to the role played by maize in global food security. Food Secur. 2011, 3, 307–327. [Google Scholar] [CrossRef]
- FAOSTAT. Crops and Livestock Products. Available online: https://www.fao.org/faostat/ (accessed on 30 April 2026).
- García-Lara, S.; Serna-Saldivar, S.O. Corn history and culture. In Corn: Chemistry and Technology, 3rd ed.; Serna-Saldivar, S.O., Ed.; Elsevier: Amsterdam, The Netherlands, 2019; pp. 1–18. [Google Scholar]
- Swanton, C.J.; Weise, S.F. Integrated weed management: The rationale and approach. Weed Technol. 1991, 5, 657–663. [Google Scholar] [CrossRef]
- Oerke, E.-C.; Dehne, H.-W. Safeguarding production—Losses in major crops and the role of crop protection. Crop Prot. 2004, 23, 275–285. [Google Scholar] [CrossRef]
- Doğan, M.N.; Ünay, A.; Boz, Ö.; Albay, F. Determination of optimum weed control timing in maize (Zea mays L.). Turk. J. Agric. For. 2004, 28, 349–354. [Google Scholar]
- Soltani, N.; Dille, J.A.; Burke, I.C.; Everman, W.J.; VanGessel, M.J.; Davis, V.M.; Sikkema, P.H. Potential corn yield losses from weeds in North America. Weed Technol. 2016, 30, 979–984. [Google Scholar] [CrossRef]
- Page, E.R.; Cerrudo, D.; Westra, P.; Loux, M.M.; Smith, K.L.; Foresman, C.; Wright, H.A.; Swanton, C.J. Why early season weed control is important in maize. Weed Sci. 2012, 60, 423–430. [Google Scholar] [CrossRef]
- Gunsolus, J.L. Mechanical and cultural weed control in corn and soybeans. Am. J. Altern. Agric. 1990, 5, 114–119. [Google Scholar] [CrossRef]
- Upadhyaya, M.K.; Blackshaw, R.E. Non-Chemical Weed Management: Principles, Concepts and Technology; CABI: Wallingford, UK, 2007. [Google Scholar]
- Venkataraju, A.; Arumugam, D.; Stepan, C.; Kiran, R.; Peters, T. A review of machine learning techniques for identifying weeds in corn. Smart Agric. Technol. 2023, 3, 100102. [Google Scholar]
- Harker, K.N.; O’Donovan, J.T. Recent weed control, weed management, and integrated weed management. Weed Technol. 2013, 27, 1–11. [Google Scholar] [CrossRef]
- Pimentel, D. Environmental and economic costs of the application of pesticides primarily in the United States. Environ. Dev. Sustain. 2005, 7, 229–252. [Google Scholar] [CrossRef]
- MacLaren, C.; Storkey, J.; Menegat, A.; Metcalfe, H.; Dehnen-Schmutz, K. An ecological future for weed science to sustain crop production and the environment. Agron. Sustain. Dev. 2020, 40, 31. [Google Scholar] [CrossRef]
- Åstrand, B.; Baerveldt, A.-J. An agricultural mobile robot with vision-based perception for mechanical weed control. Auton. Robot. 2002, 13, 21–35. [Google Scholar] [CrossRef]
- Monteiro, A.; Santos, S. Sustainable approach to weed management: The role of precision weed management. Agronomy 2022, 12, 118. [Google Scholar] [CrossRef]
- LeCun, Y.; Bengio, Y. Convolutional networks for images, speech, and time series. In The Handbook of Brain Theory and Neural Networks; MIT Press: Cambridge, MA, USA, 1995. [Google Scholar]
- LeCun, Y.; Bengio, Y.; Hinton, G. Deep learning. Nature 2015, 521, 436–444. [Google Scholar] [CrossRef] [PubMed]
- Kamilaris, A.; Prenafeta-Boldú, F.X. Deep learning in agriculture: A survey. Comput. Electron. Agric. 2018, 147, 70–90. [Google Scholar] [CrossRef]
- Szegedy, C.; Vanhoucke, V.; Ioffe, S.; Shlens, J.; Wojna, Z. Rethinking the inception architecture for computer vision. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Las Vegas, NV, USA, 26 June–1 July 2016; pp. 2818–2826. [Google Scholar]
- Jin, X.; Bagavathiannan, M.; Maity, A.; Chen, Y.; Yu, J. Deep learning for detecting herbicide weed control spectrum in turfgrass. Plant Methods 2022, 18, 94. [Google Scholar] [CrossRef]
- Tian, X.; Huang, L.; Zhai, M.; Zhang, M.; Hu, P.; Li, M.; Ren, L. Non-destructive prediction of apple SSC/TAC and firmness based on multilayer autoencoder and multilayer perceptron. Intell. Robot. 2025, 5, 181–201. [Google Scholar]
- Lin, F.; Zhang, D.; Huang, Y.; Wang, X.; Chen, X. Detection of corn and weed species by the combination of spectral, shape and textural features. Sustainability 2017, 9, 1335. [Google Scholar] [CrossRef]
- Chen, C.J.; Huang, Y.Y.; Li, Y.S.; Chang, C.Y.; Huang, Y.M. An AIoT-based smart agricultural system for pests detection. IEEE Access 2020, 8, 180750–180761. [Google Scholar]
- Liakos, K.G.; Busato, P.; Moshou, D.; Pearson, S.; Bochtis, D. Machine learning in agriculture: A review. Sensors 2018, 18, 2674. [Google Scholar] [CrossRef]
- Phang, S.K.; Chiang, T.H.A.; Happonen, A.; Chang, M.M.L. From satellite to UAV-based remote sensing: A review on precision agriculture. IEEE Access 2023, 11, 127057–127076. [Google Scholar] [CrossRef]
- Olson, D.; Anderson, J. Review on unmanned aerial vehicles, remote sensors, imagery processing, and their applications in agriculture. Agron. J. 2021, 113, 971–992. [Google Scholar] [CrossRef]
- Ahmadi, P.; Mansor, S.; Farjad, B.; Ghaderpour, E. Unmanned aerial vehicle (UAV)-based remote sensing for early-stage detection of Ganoderma. Remote Sens. 2022, 14, 1239. [Google Scholar]
- Kumar, A.; Taparia, M.; Rajalakshmi, P.; Guo, W.; Naik, B.; Marathi, B.; Desai, U.B. UAV-based remote sensing for tassel detection and growth stage estimation of maize crop using multispectral images. In Proceedings of the IEEE International Geoscience and Remote Sensing Symposium (IGARSS 2020), Waikoloa, HI, USA, 26 September–2 October 2020; pp. 1588–1591. [Google Scholar]
- Tirado, S.B.; Hirsch, C.N.; Springer, N.M. UAV-based imaging platform for monitoring maize growth throughout development. Plant Direct 2020, 4, e00230. [Google Scholar]
- Dyrmann, M.; Karstoft, H.; Midtiby, H.S. Plant species classification using deep convolutional neural networks. Biosyst. Eng. 2016, 151, 72–80. [Google Scholar] [CrossRef]
- Yu, J.; Sharpe, S.M.; Schumann, A.W.; Boyd, N.S. Deep learning for image-based weed detection in turfgrass. Eur. J. Agron. 2019, 104, 78–84. [Google Scholar] [CrossRef]
- Jin, X.; Che, J.; Chen, Y. Weed identification using deep learning and image processing in vegetable plantation. IEEE Access 2021, 9, 10940–10950. [Google Scholar] [CrossRef]
- Hamuda, E.; McGinley, B.; Glavin, M.; Jones, E. Automatic crop detection under field conditions using the HSV colour space and morphological operations. Comput. Electron. Agric. 2017, 133, 97–107. [Google Scholar] [CrossRef]
- Bakhshipour, A.; Jafari, A. Evaluation of support vector machine and artificial neural networks in weed detection using shape features. Comput. Electron. Agric. 2018, 145, 153–160. [Google Scholar] [CrossRef]
- Liu, T.; Jin, X.; Han, K.; He, F.; Wang, J.; Chen, X.; Kong, X.; Yu, J. Semantic segmentation for weed detection in corn. Pest Manag. Sci. 2024, 81, 1512–1528. [Google Scholar] [CrossRef] [PubMed]
- Jin, X.; Sun, Y.; Che, J.; Bagavathiannan, M.; Yu, J.; Chen, Y. A novel deep learning-based method for detection of weeds in vegetables. Pest Manag. Sci. 2022, 78, 1861–1869. [Google Scholar]
- Kong, X.; Liu, T.; Chen, X.; Jin, X.; Li, A.; Yu, J. Efficient crop segmentation net and novel weed detection method. Eur. J. Agron. 2024, 161, 127367. [Google Scholar] [CrossRef]
- Cui, J.; Tan, F.; Bai, N.; Fu, Y. Improving U-net network for semantic segmentation of corns and weeds during corn seedling stage in field. Front. Plant Sci. 2024, 15, 1344958. [Google Scholar] [CrossRef]
- Zhai, Y.; Gao, Z.; Li, J.; Zhou, Y.; Xu, Y. An Enhanced SegNeXt with adaptive ROI for a robust navigation line extraction in multi-growth-stage maize fields. Agriculture 2026, 16, 367. [Google Scholar]
- Fu, H.; Li, X.; Zhu, L.; Pan, X.; Wu, T.; Li, W.; Feng, Y. DSC-DeepLabv3+: A lightweight semantic segmentation model for weed identification in maize fields. Front. Plant Sci. 2025, 16, 1647736. [Google Scholar]
- Liu, L.; Li, G.; Du, Y.; Li, X.; Wu, X.; Qiao, Z.; Wang, T. CS-net: Conv-simpleformer network for agricultural image segmentation. Pattern Recognit. 2024, 147, 110140. [Google Scholar]
- Redmon, J.; Divvala, S.; Girshick, R.; Farhadi, A. You only look once: Unified, real-time object detection. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Las Vegas, NV, USA, 26 June–1 July 2016; pp. 779–788. [Google Scholar]
- Jin, X.; Bagavathiannan, M.; McCullough, P.E.; Chen, Y.; Yu, J. A deep learning-based method for classification, detection, and localization of weeds in turfgrass. Pest Manag. Sci. 2022, 78, 4809–4821. [Google Scholar]
- Bai, Q.; Gao, R.; Li, Q.; Wang, R.; Zhang, H. Recognition of the behaviors of dairy cows by an improved YOLO. Intell. Robot. 2024, 4, 1–19. [Google Scholar] [CrossRef]
- Sohan, M.; Sai Ram, T.; Rami Reddy, C.V. A review on YOLOv8 and its advancements. In Proceedings of the International Conference on Data Intelligence and Cognitive Informatics; Springer: Singapore, 2024; pp. 529–545. [Google Scholar]
- Chitraningrum, N.; Banowati, L.; Herdiana, D.; Mulyati, B.; Sakti, I.; Fudholi, A.; Andria, A. Comparison study of corn leaf disease detection based on deep learning YOLO-v5 and YOLO-v8. J. Eng. Technol. Sci. 2024, 56, 61–70. [Google Scholar] [CrossRef]
- Sapkota, R.; Ahmed, D.; Karkee, M. Comparing YOLOv8 and Mask R-CNN for instance segmentation in complex orchard environments. Artif. Intell. Agric. 2024, 13, 84–99. [Google Scholar] [CrossRef]
- Qin, Z.; Wang, W.; Dammer, K.H.; Guo, L.; Cao, Z. Ag-YOLO: A real-time low-cost detector for precise spraying with case study of palms. Front. Plant Sci. 2021, 12, 753603. [Google Scholar]
- Badgujar, C.M.; Poulose, A.; Gan, H. Agricultural object detection with You Only Look Once (YOLO) algorithm: A bibliometric and systematic literature review. Comput. Electron. Agric. 2024, 223, 109090. [Google Scholar] [CrossRef]
- Han, H.; Xue, X.; Li, Q.; Gao, H.; Wang, R.; Jiang, R.; Ren, Z.; Meng, R.; Li, M.; Guo, Y.; et al. Pig-ear detection from thermal infrared images based on improved YOLOv8n. Intell. Robot. 2024, 4, 20–38. [Google Scholar] [CrossRef]
- Sikati, J.; Nouaze, J.C. YOLO-NPK: A lightweight deep network for lettuce nutrient deficiency classification based on improved YOLOv8 nano. Eng. Proc. 2023, 58, 31. [Google Scholar]
- Wu, T.; Miao, Z.; Huang, W.; Han, W.; Guo, Z.; Li, T. SGW-YOLOv8n: An improved YOLOv8n-based model for apple detection and segmentation in complex orchard environments. Agriculture 2024, 14, 1958. [Google Scholar]
- Wei, H.; Liu, X.; Xu, S.; Dai, Z.; Dai, Y.; Xu, X. DWRSeg: Rethinking efficient acquisition of multi-scale contextual information for real-time semantic segmentation. arXiv 2022, arXiv:2212.01173. [Google Scholar]
- Krizhevsky, A.; Sutskever, I.; Hinton, G.E. ImageNet classification with deep convolutional neural networks. In Proceedings of the 26th International Conference on Neural Information Processing Systems (NIPS), Lake Tahoe, NV, USA, 3–6 December 2012; pp. 1097–1105. [Google Scholar]
- Zeiler, M.D.; Fergus, R. Visualizing and understanding convolutional networks. In Proceedings of the European Conference on Computer Vision (ECCV); Springer: Cham, Switzerland, 2014. [Google Scholar]
- Sokolova, M.; Lapalme, G. A systematic analysis of performance measures for classification tasks. Inf. Process. Manag. 2009, 45, 427–437. [Google Scholar] [CrossRef]
- Baldi, P.; Brunak, S.; Chauvin, Y.; Andersen, C.A.F.; Nielsen, H. Assessing the accuracy of prediction algorithms for classification: An overview. Bioinformatics 2000, 16, 412–424. [Google Scholar] [CrossRef] [PubMed]
- PyTorch. PyTorch. Available online: https://pytorch.org (accessed on 30 April 2026).
- Meyes, R.; Lu, M.; De Puiseau, C.W.; Meisen, T. Ablation studies in artificial neural networks. arXiv 2019, arXiv:1901.08644. [Google Scholar] [CrossRef]
- Xie, S.; Tu, Z. Holistically-nested edge detection. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), Santiago, Chile, 7–13 December 2015. [Google Scholar]
- Selvaraju, R.R.; Cogswell, M.; Das, A.; Vedantam, R.; Parikh, D.; Batra, D. Grad-CAM: Visual explanations from deep networks via gradient-based localization. Int. J. Comput. Vis. 2020, 128, 336–359. [Google Scholar]













| Dataset Type | Image Count | Percentage |
|---|---|---|
| Training | 1200 | 60% |
| Validation | 400 | 20% |
| Testing | 400 | 20% |
| Model | C2f_DWR | Segment_Efficient | Epoch | Batch Size | Initial Learning Rate | Weight Decay Coefficient |
|---|---|---|---|---|---|---|
| YOLOv8n | 100 | 16 | 0.01 | 0.0005 | ||
| VM1 | √ | 100 | 16 | 0.01 | 0.0005 | |
| VM2 | √ | 100 | 16 | 0.01 | 0.0005 | |
| Ours (YOLO-CornSeg) | √ | √ | 100 | 16 | 0.01 | 0.0005 |
| Deep Learning Algorithm | Backbone | Epoch | Batch Size | Initial Learning Rate | Weight Decay Coefficient | Model Stage Type |
|---|---|---|---|---|---|---|
| DeepLabv3 (R18) | ResNet18 | 100 | 16 | 0.01 | 0.0005 | Two stages |
| DeepLabv3 (R50) | ResNet50 | 100 | 16 | 0.01 | 0.0005 | Two stages |
| BiseNet (R18) | ResNet18 | 100 | 16 | 0.01 | 0.0005 | Two stages |
| BiseNet (R50) | ResNet50 | 100 | 16 | 0.01 | 0.0005 | Two stages |
| Swin Transformer | Vision Transformer | 100 | 16 | 0.01 | 0.0005 | Two stages |
| FastFCN | ResNet50 | 100 | 16 | 0.01 | 0.0005 | Two stages |
| Ours (YOLO-CornSeg) | CSPDarknet | 100 | 16 | 0.01 | 0.0005 | One stage |
| Model | C2f_DWR | Segment_ Efficient | mIoU50 (%) | mIoU50-95 (%) | Precision (%) | Recall (%) | Parameters | GFLOPs (G) |
|---|---|---|---|---|---|---|---|---|
| YOLOv8n | 89.2 | 60.7 | 91.0 | 81.0 | 3258259 | 12.0 | ||
| VM1 | √ | 90.0 | 61.5 | 90.5 | 82.6 | 3197203 | 11.9 | |
| VM2 | √ | 90.0 | 60.8 | 91.0 | 82.1 | 4086035 | 11.9 | |
| Ours(YOLO-CornSeg) | √ | √ | 91.1 | 63.1 | 90.8 | 84.5 | 4024979 | 11.8 |
| Deep Learning Algorithm | mIoU (%) | Precision (%) | Recall (%) | Model Size (M) |
|---|---|---|---|---|
| DeepLabv3 (R18) | 78.2 | 87.8 | 87.3 | 112 |
| DeepLabv3 (R50) | 79.0 | 88.4 | 88.2 | 545.2 |
| BiseNet (R18) | 75.6 | 84.4 | 84.4 | 107.5 |
| BiseNet (R50) | 76.3 | 85.4 | 85.4 | 474.3 |
| Swin Transformer | 84.6 | 91.7 | 91.7 | 719.9 |
| FastFCN | 75.4 | 81.9 | 81.9 | 551.0 |
| Ours (YOLO-CornSeg) | 91.1 | 90.8 | 84.5 | 8.3 |
| Input Image | Bounding Box Method Pixel Count | Segmentation Mask Method Pixel Count | Difference (Pixel) | Percentage Difference (%) |
|---|---|---|---|---|
| Image 1 | 45,372 | 47,148 | 1776 | 3.76 |
| Image 2 | 28,207 | 31,897 | 3690 | 11.57 |
| Image 3 | 112,430 | 200,503 | 88,073 | 43.93 |
| Image 4 | 5044 | 38,068 | 33,024 | 86.75 |
| Image 5 | 8251 | 14,388 | 6137 | 42.65 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Lei, J.; Yu, J.; Han, K.; Li, M.; Jin, X.; Yin, H. YOLO-CornSeg: A Lightweight Segmentation Model for Corn Seedlings with an Indirect Weed Detection Strategy. Agronomy 2026, 16, 1091. https://doi.org/10.3390/agronomy16111091
Lei J, Yu J, Han K, Li M, Jin X, Yin H. YOLO-CornSeg: A Lightweight Segmentation Model for Corn Seedlings with an Indirect Weed Detection Strategy. Agronomy. 2026; 16(11):1091. https://doi.org/10.3390/agronomy16111091
Chicago/Turabian StyleLei, Jinglin, Jialin Yu, Kang Han, Mian Li, Xiaojun Jin, and Honglian Yin. 2026. "YOLO-CornSeg: A Lightweight Segmentation Model for Corn Seedlings with an Indirect Weed Detection Strategy" Agronomy 16, no. 11: 1091. https://doi.org/10.3390/agronomy16111091
APA StyleLei, J., Yu, J., Han, K., Li, M., Jin, X., & Yin, H. (2026). YOLO-CornSeg: A Lightweight Segmentation Model for Corn Seedlings with an Indirect Weed Detection Strategy. Agronomy, 16(11), 1091. https://doi.org/10.3390/agronomy16111091

