A Two-Stage Weed Stem Localization Method Based on Crop Region Exclusion in Maize Seedling Fields
Abstract
1. Introduction
2. Materials and Methods
2.1. Data Collection and Dataset Construction

2.2. MSDNet
2.2.1. ShuffleNetV2 Network
2.2.2. C2f-MBSE Network
2.2.3. CA Mechanism
2.2.4. Loss Function
2.3. Crop Area Exclusion and Weed Area Segmentation
2.4. PCA Algorithm
2.5. Weed Stem Localization Based on Crop Region Exclusion
2.6. Evaluation Metric Settings
3. Results and Analysis
3.1. Experimental Design
3.2. Ablation Experiment
3.3. Comparative Experiments on Lightweight Networks
3.4. Comparison of Segmentation Algorithms
3.5. Weed Stem Positioning Experiment
4. Discussion
5. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Data Availability Statement
Conflicts of Interest
References
- Benvenuti, S.; Baldoni, G. Weed Flora Evolution in the Era of Climate Change: New Agronomic Issues as a Threat to Sustainable Agriculture. Agronomy 2026, 16, 764. [Google Scholar] [CrossRef] [Scilit]
- Blanc, L.; Lampurlanés, J.; Miquel, G.S.; Bonilla, D.P. Divergent weed control performance of wheat-legume and rapeseed-pea intercrops in conventional Mediterranean systems. Crop Prot. 2026, 208, 107670. [Google Scholar] [CrossRef] [Scilit]
- Cirillo, V.; Pollaro, N.; Russo, C.; Punzo, P.; Pane, M.; Maggio, A. Lack of neighbor perception in soft wheat increases weed-induced yield losses. J. Plant Physiol. 2025, 314, 154603. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Dhruw, J.; Victor, V.M.; Malathi, K.M. Techno Economic Evaluation of Different Types of Power Weeder in Chhattisgarh Region. J. Sci. Res. Rep. 2025, 31, 1–13. [Google Scholar] [CrossRef] [Scilit]
- Gagliardi, L.; Fontanelli, M.; Luglio, S.M.; Frasconi, C.; Peruzzi, A.; Raffaelli, M. Evaluation of Sustainable Strategies for Mechanical Under-Row Weed Control in the Vineyard. Agronomy 2023, 13, 3005. [Google Scholar] [CrossRef] [Scilit]
- Sun, D.; Chen, H.; Quan, L. Design and Experiment of Intelligent Mechanical Weeding System Based on DEM–MBD Coupling. Agriculture 2026, 16, 613. [Google Scholar] [CrossRef] [Scilit]
- Upadhyay, A.; Singh, K.P.; Jhala, K.B.; Kumar, M.; Salem, A. Non-chemical weed management: Harnessing flame weeding for effective weed control. Heliyon 2024, 10, e32776-. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Zheng, S.; Zhao, X.; Fu, H.; Tan, H.; Zhai, C.; Chen, L. Design and Experimental Evaluation of a Smart Intra-Row Weed Control System for Open-Field Cabbage. Agronomy 2025, 15, 112. [Google Scholar] [CrossRef] [Scilit]
- Aharon, S.; Lati, R.; Eizenberg, H.; Cohen, Y. Using planetscope imagery to evaluate herbicide efficacy in maize (Zea mays) through post-application weed detection. Precis. Agric. 2026, 27, 76. [Google Scholar] [CrossRef] [Scilit]
- Ge, B.; Jia, Z.; Guo, A.; Chen, W.; Wang, J.; Song, S.; Zhou, G. WeedsDetectNet: A green attention and adaptive joint feature fusion network for weed detection in agricultural fields. Crop Prot. 2026, 206, 107646. [Google Scholar] [CrossRef] [Scilit]
- Khan, F.; Tahir, M.N.; Aqib, M.; Lan, Y.; Zafar, N.; Saleem, S.; Haroon, Z.; Huang, W. Design and development of a low-cost industrial prototype of spot-specific spraying system for potato weed detection using deep learning. Comput. Electron. Agric. 2026, 247, 111736. [Google Scholar] [CrossRef] [Scilit]
- Li, W.; Zhu, W.; Wang, Q.; Gao, F.; Han, K.; Jin, X. Incorporating Crop-Centric Segmentation and Enhanced YOLOv10 for Indirect Weed Detection in Bok Choy Fields. Agronomy 2026, 16, 907. [Google Scholar] [CrossRef] [Scilit]
- Tan, D.; Beck, M.; Bidinosti, C.P.; Gulden, R.H.; Henry, C.J. Generative diffusion models for agricultural AI: Plant image generation, indoor-to-outdoor translation, and expert preference alignment. Comput. Electron. Agric. 2026, 249, 111862. [Google Scholar] [CrossRef] [Scilit]
- Li, M.; Song, X.; Zhao, Y.; Latif, A.A.A.E. Space-frequency-based multichannel dual encryption for quantum color images using chaotic system and quantum walks. Quantum Inf. Process. 2025, 24, 266. [Google Scholar] [CrossRef] [Scilit]
- Romeo, L.; Devanna, R.P.; Matranga, G.; Biddoccu, M.; Milella, A. Depth-aware scale normalization for robust semantic segmentation in vineyard images. Smart Agric. Technol. 2026, 14, 102161. [Google Scholar] [CrossRef] [Scilit]
- Subuh, A.A.; Kaboli, S.H.A.; Vallée, F. A hybrid CNN-LSTM model for accurate day-ahead wind power output forecasting with outliers detection using FCM-mahalanobis distance-ANN. E-Prime Nexus Electr. Electron. Intell. Eng. 2026, 17, 201194. [Google Scholar] [CrossRef] [Scilit]
- Torres, R.; Hernandez, J.; Gaweda, A.; Levinson, C.A. Leveraging artificial intelligence to personalize treatment for eating disorders: A proof-of-concept study. J. Affect. Disord. 2026, 406, 121681. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Wang, W.J.; Zhao, J.; Liu, H.Q.; Jiang, F. Improved inverse distance weighting with Mahalanobis distance for pose-dependent dynamics prediction in high-precision assembly robots. J. Mech. Sci. Technol. 2026, 40, 2557–2565. [Google Scholar] [CrossRef] [Scilit]
- Xue, S.; Li, N.; Li, Z.; Wang, D.; Zhu, T.; Jing, X.; Guo, H.; Ni, C. S2G-Net: An asymmetric cross-modal network for tiny cotton terminal-bud detection and sparse depth completion in real fields. Comput. Electron. Agric. 2026, 250, 111875. [Google Scholar] [CrossRef] [Scilit]
- Yu, S.J.; Ting, W.W.; Fei, Y.P.; Hao, Z. Quantum steganography scheme and circuit design based on the synthesis of three grayscale images in the HSI color space. Quantum Inf. Process. 2023, 22, 1–26. [Google Scholar] [CrossRef] [Scilit]
- Daraghmi, Y.A.; Naser, W.; Daraghmi, E.Y.; Fouchal, H. Drone-Assisted Plant Stress Detection Using Deep Learning: A Comparative Study of YOLOv8, RetinaNet, and Faster R-CNN. AgriEngineering 2025, 7, 257. [Google Scholar] [CrossRef] [Scilit]
- Sumon, S.I.; Chowdhury, M.E.H.; Chowdhury, J.U.K.; Ashraf, A.; Kashem, S.B.A.; Majid, M.E.; Nashbat, M.; Khandakar, A.; Zia, M.H.; Kunju, A.K.A. Floating waste detection using deep learning: A comparative study of YOLO, RT-DETR, and faster R-CNN. Neural Comput. Appl. 2026, 38, 293. [Google Scholar] [CrossRef] [Scilit]
- Zhu, P.; Li, H.; Chen, J.; Guo, C. Research on detection technology of biofouling organisms on marine aquaculture cages based on image enhancement algorithms and improved Faster R-CNN detection algorithms. Smart Agric. Technol. 2026, 14, 101419. [Google Scholar] [CrossRef] [Scilit]
- Dong, J.; Li, P.; Liu, J.; Qu, H.; Wang, C.; Zhang, H.; Du, D.; Bi, H.; Meng, Q. A DRCF-YOLO based method for rice seedling detection and density distribution mapping in UAV imagery. Smart Agric. Technol. 2026, 14, 102160. [Google Scholar] [CrossRef] [Scilit]
- Kamat, P.; Gite, S.; Chandekar, H.; Dlima, L.; Pradhan, B. Multi-class fruit ripeness detection using YOLO and SSD object detection models. Discov. Appl. Sci. 2025, 7, 931. [Google Scholar] [CrossRef] [Scilit]
- Liang, C.; Chen, Y.; Hu, J.; Zhou, Z. HGV-YOLO: A Detection Method for Floating Seedlings and Missed Transplanting Based on the Morphological Characteristics of Rice Seedlings. Agronomy 2026, 16, 678. [Google Scholar] [CrossRef] [Scilit]
- Haug, S.; Biber, P.; Michaels, A.; Ostermann, J. Plant Stem Detection and Position Estimation using Machine Vision. In Proceedings of the 2014 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), Chicago, IL, USA, 14–18 September 2014. [Google Scholar] [PubMed]
- Lottes, P.; Behley, J.; Chebrolu, N.; Milioto, A.; Stachniss, C. Robust joint stem detection and crop-weed classification using image sequences for plant-specific treatment in precision farming. J. Field Robot. 2020, 37, 20–34. [Google Scholar] [CrossRef] [Scilit]
- Liu, M.; Xu, X.; Tian, T.; Shang, M.; Song, Z.; Tian, F.; Yan, Y. A keypoint-based method for detecting weed growth points in corn field environments. Plant Phenomics 2025, 7, 100072. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Zhang, X.; Li, N.; Ge, L.; Xia, X.; Ding, N. A Unified Model for Real-Time Crop Recognition and Stem Localization Exploiting Cross-Task Feature Fusion. In Proceedings of the 2020 IEEE International Conference on Real-time Computing and Robotics (RCAR); IEEE: Piscataway, NJ, USA, 2020; pp. 327–332. [Google Scholar] [CrossRef] [Scilit]
- Xu, L.; Hu, S.; Yang, J.; Che, Z.; Gao, X.; Pang, H.; Huang, T.; Xu, Z.; Liang, L.; Cui, M.; et al. RBSS-YOLOv8: Multi-scale feature enhancement for high-density pig aggression detection. Comput. Electron. Agric. 2026, 249, 111871. [Google Scholar] [CrossRef] [Scilit]
- Rekha, C.; Nagarajan, M.; Yellampalli, D.S.R.; Kumari, G.R.N. A New Automated Threat Detection Framework Using Adaptive and Multi-Head Cross Attention-Based ShuffleNetV2 for Abnormality Classification Along with Object Detection and Tracking Procedures. Cybern. Syst. 2026, 57, 694–729. [Google Scholar] [CrossRef] [Scilit]
- Lottes, P.; Behley, J.; Chebrolu, N.; Milioto, A.; Stachniss, C. Joint Stem Detection and Crop-Weed Classification for Plant-Specific Treatment in Precision Farming. In Proceedings of the 2018 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS), Madrid, Spain, 1–5 October 2018; pp. 8233–8238. [Google Scholar] [CrossRef] [Scilit]
- Bac, C.W.; Hemming, J.; Henten, E.J.v. Stem localization of sweet-pepper plants using the support wire as a visual cue. Comput. Electron. Agric. 2014, 105, 111–120. [Google Scholar] [CrossRef] [Scilit]
- Li, J.; Güldenring, R.; Nalpantidis, L. Real-Time Joint-Stem Prediction for Agricultural Robots in Grasslands Using Multi-Task Learning. Agronomy 2023, 13, 2365. [Google Scholar] [CrossRef] [Scilit]















| Model | ShuffleNetV2 | C2f-MBSE | CA | mAP@0.5/% | Precision/% | Recall/% | GPU Speed/ms | Model Size/MB | Params/M | |
|---|---|---|---|---|---|---|---|---|---|---|
| YOLOv8n | 84.7 | 90.1 | 87.8 | 1.7 | 6.3 | 3.21 | ||||
| Model-1 | 86.5 | 91.3 | 89.1 | 1.6 | 4.9 | 2.35 | ||||
| Model-2 | 89.9 | 92.1 | 90.3 | 1.8 | 6.2 | 3.05 | ||||
| Model-3 | 91.4 | 91.9 | 90.6 | 1.8 | 6.4 | 3.23 | ||||
| Model-4 | 88.7 | 93.2 | 91.1 | 1.6 | 4.7 | 2.26 | ||||
| Model-5 | 90.9 | 93.0 | 91.3 | 1.7 | 5.0 | 2.37 | ||||
| Model-6 | 91.7 | 94.2 | 92.8 | 1.9 | 6.5 | 3.17 | ||||
| Model-7 | 92.6 | 94.9 | 93.2 | 1.6 | 4.8 | 2.29 | ||||
| MSDNet | 93.4 | 94.3 | 93.7 | 1.6 | 4.8 | 2.29 |
| Model | mAP@0.5/% | Precision/% | Recall/% | Model Size/MB | Params/M |
|---|---|---|---|---|---|
| YOLOv8n | 84.7 | 90.1 | 87.8 | 6.3 | 3.21 |
| EfficientNet-Lite | 85.9 | 86.1 | 87.9 | 5.8 | 2.84 |
| GhostNet | 84.2 | 91.3 | 87.4 | 5.3 | 2.62 |
| MobileNetV2 | 84.4 | 89.6 | 87.9 | 5.8 | 2.71 |
| MobileNetV3 | 85.8 | 90.6 | 88.7 | 5.2 | 2.56 |
| ShuffleNetV2 | 86.5 | 91.3 | 89.1 | 4.9 | 2.35 |
| Segmentation Algorithm | MPA/% | mIoU/% | Average Processing Time/s |
|---|---|---|---|
| G-channel thresholding + OTSU | 84.6 | 76.6 | 0.07 |
| H-channel thresholding + OTSU | 89.7 | 82.4 | 0.05 |
| HSV thresholding + morphological processing | 97.6 | 93.8 | 0.08 |
| Setting | H-Range | MPA/% | mIoU/% | Green Area Ratio/% |
|---|---|---|---|---|
| HSV-1 | [30, 60] | 96.8 | 92.6 | 18.9 |
| HSV-2 | [32, 58] | 97.2 | 93.1 | 18.1 |
| HSV-3 Original | [35, 55] | 97.6 | 93.8 | 17.4 |
| HSV-4 | [38, 52] | 97.1 | 93.0 | 16.6 |
| HSV-5 | [40, 50] | 96.4 | 91.9 | 15.8 |
| Images | Category | |||
|---|---|---|---|---|
| A 2 | B 2 | C 2 | D 2 | |
| The number of weeds/unit | 20 | 13 | 29 | 36 |
| Number of annotated bounding boxes/unit | 18 | 13 | 26 | 32 |
| Number of misclassifications/unit | 0 | 0 | 0 | 0 |
| Number of misses/unit | 2 | 0 | 3 | 4 |
| Miss rate/% | 10% | 0% | 10.34% | 11.11% |
| Accuracy of marking/% | 90% | 100% | 89.66% | 88.89% |
| Numbers | Numbers of Weeds Stems/Plant | P/% | D/% | M/% | Average ED/Pixel | Standard Deviation/Pixels | RMSE/Pixel | MAE/Pixel |
|---|---|---|---|---|---|---|---|---|
| Group 1 | 72 | 91.4 | 88.9 | 11.1 | 9.8 | 4.3 | 12.02 | 10.65 |
| Group 2 | 163 | 93.7 | 90.8 | 9.2 | 9.1 | 4.9 | ||
| Group 3 | 248 | 92.2 | 91.1 | 8.9 | 10.6 | 5.8 | ||
| Group 4 | 356 | 92.5 | 90.2 | 9.8 | 11.8 | 5.9 | ||
| Group 5 | 447 | 92.8 | 89.9 | 10.1 | 10.2 | 5.3 | ||
| Group 6 | 511 | 92.3 | 89.6 | 10.4 | 10.9 | 5.6 |
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
Zhang, Y.; Wang, X.; Liu, Y.; Fu, L.; Xu, Y. A Two-Stage Weed Stem Localization Method Based on Crop Region Exclusion in Maize Seedling Fields. Agronomy 2026, 16, 1716. https://doi.org/10.3390/agronomy16171716
Zhang Y, Wang X, Liu Y, Fu L, Xu Y. A Two-Stage Weed Stem Localization Method Based on Crop Region Exclusion in Maize Seedling Fields. Agronomy. 2026; 16(17):1716. https://doi.org/10.3390/agronomy16171716
Chicago/Turabian StyleZhang, Yuqi, Xuehai Wang, Yanan Liu, Lili Fu, and Yanlei Xu. 2026. "A Two-Stage Weed Stem Localization Method Based on Crop Region Exclusion in Maize Seedling Fields" Agronomy 16, no. 17: 1716. https://doi.org/10.3390/agronomy16171716
APA StyleZhang, Y., Wang, X., Liu, Y., Fu, L., & Xu, Y. (2026). A Two-Stage Weed Stem Localization Method Based on Crop Region Exclusion in Maize Seedling Fields. Agronomy, 16(17), 1716. https://doi.org/10.3390/agronomy16171716
