Multi-Class Weed Quantification Based on U-Net Convolutional Neural Networks Using UAV Imagery
Source abstract
Abstract
Weed identification and quantification are processes that are usually manual, subjective, and error-prone. Weeds compete with crops for nutrients, minerals, physical space, sunlight, and water. Thus, weed identification is a crucial component of precision agriculture for autonomous removal and site-specific treatments, efficient weed control, and sustainability. Convolutional Neural Networks (CNNs) are very common in weed identification. This work implemented CNN models for semantic segmentation based on the U-Net architecture for automatically segmenting and quantifying weeds in potato crops using RGB images acquired by a drone at 9–10 m height, flying at 1 m/s. Remote sensing images are affected by factors that degrade image quality and the model’s accuracy. Five U-Net variants were evaluated: the original U-Net, Residual U-Net, Double U-Net, Modified U-Net, and AU-Net. The models were trained using the TensorFlow/Keras frameworks on Google Colab Pro+, following the Knowledge Discovery in Databases (KDD) methodology for image analysis. Each model was trained using a diverse custom dataset in uncontrolled environments, considering six classes: background, Broadleaf dock (Rumex obtusifolius), Dandelion (Taraxacum officinale), Kikuyu grass (Cenchrus clandestinum), other weed species, and the crop potato (Solanum tuberosum L.). The models’ segmentation was widely assessed using Mean Dice Coefficient, Mean IoU, and Dice Loss metrics. The results showed that the Residual U-Net model performed the best in multi-class segmentation, achieving a Mean IoU of 0.8021, a performance comparable to or superior to that reported by other authors. Additionally, a Student’s t-test was applied to complement the data analysis, suggesting that the model is reliable for weed quantification.
Source: crossref · Quality: baseline
Research context
OpenAlex topics: Smart Agriculture and AI · Remote Sensing in Agriculture · Plant Disease Management Techniques
SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.
Affiliations
Departamento de Sistemas Informáticos y Computación, Universitat Politècnica de València, 46022 Valencia, Spain
Universidad Técnica del Norte, Ibarra 100150, Ecuador
Funding
Universidad Técnica del Norte
References (85)
Show source-provided references
1. FAO (2006). Recommendations for Improved Weed Management, FAO. Available online: https://www.fao.org/4/a0884e/a0884e.pdf.
2. Weed management in conventional and organic potato production
3. Mechanisms of plant competition for nutrients, water and light10.1111/1365-2435.12081 ↗
4. Image Analysis Based on Heterogeneous Architectures for Precision Agriculture: A Systematic Literature Review
5. Zimdahl, R.L. (2018). Weed Reproduction and Dispersal. Fundamentals of Weed Science, Academic Press. [5th ed.].10.1016/B978-0-12-811143-7.00005-6 ↗
6. Cross-domain transfer learning for weed segmentation and mapping in precision farming using ground and UAV images10.1016/j.eswa.2023.122980 ↗
7. Crop yield prediction in agriculture: A comprehensive review of machine learning and deep learning approaches, with insights for future research and sustainability10.1016/j.heliyon.2024.e40836 ↗
8. Deep Convolution Neural Network sharing for the multi-label images classification
9. Cevallos, M., Sandoval-Pillajo, L., Caranqui-Sánchez, V., Ortega-Bustamante, C., Pusdá-Chulde, M., and García-Santillán, I. (2025). Morphological Defects Classification in Coffee Beans Based on Convolutional Neural Networks. Communications in Computer and Information Science, Springer.10.1007/978-3-031-75702-0_1 ↗
10. Chacua, B., Garcia, I., Rosero, P., Suarez, L., Ramirez, I., Simbana, Z., and Pusdá-Chulde, M. (2019). People Identification through Facial Recognition using Deep Learning. Proceedings of the 2019 IEEE Latin American Conference on Computational Intelligence (LA-CCI), Guayaquil, Ecuador, 11–15 November 2019, IEEE.10.1109/LA-CCI47412.2019.9037043 ↗
11. Montenegro, S., Pusdá-Chulde, M., Caranqui-Sánchez, V., Herrera-Tapia, J., Ortega-Bustamante, C., and García-Santillán, I. (2023). Android Mobile Application for Cattle Body Condition Score Using Convolutional Neural Networks. Communications in Computer and Information Science, Springer.10.1007/978-3-031-32213-6_7 ↗
12. Salazar-Fierro, F., Cumbal, C., Trejo-España, D., León-Fernández, C., Pusdá-Chulde, M., and García-Santillán, I. (2025). Detection of Scoliosis in X-Ray Images Using a Convolutional Neural Network. Communications in Computer and Information Science, Springer.10.1007/978-3-031-75702-0_13 ↗
13. Ulloa, F., Sandoval-Pillajo, L., Landeta-López, P., Granda-Peñafiel, N., Pusdá-Chulde, M., and García-Santillán, I. (2025). Identification of Diabetic Retinopathy from Retinography Images Using a Convolutional Neural Network. Communications in Computer and Information Science, Springer.10.1007/978-3-031-75702-0_10 ↗
14. Mobile app for real-time academic attendance registration based on MobileFaceNet Convolutional neural network10.56294/dm2025193 ↗
15. Binary classification of defects in multiple coffee beans using lightweight convolutional neural networks for embedded systems10.56294/dm2025840 ↗
16. Convolutional Neural Network applications in additive manufacturing: A review
17. Towards weeds identification assistance through transfer learning10.1016/j.compag.2020.105306 ↗
18. Mixtures of Lightweight Deep Convolutional Neural Networks: Applied to Agricultural Robotics10.1109/LRA.2017.2667039 ↗
19. Automatic weed quantification in potato crops based on a modified convolutional neural network using drone images10.56294/dm2025194 ↗
20. Zhang, Y., Cai, H., Ye, J., Pan, F., Wu, S., Zhang, B., Qi, L., and Ma, R. (2025). Exploiting adversarial style for generalized and robust weed segmentation in rice paddy field. Front. Plant Sci., 16.10.3389/fpls.2025.1703811 ↗
21. Leveraging deep semantic segmentation for assisted weed detection
22. On-line crop/weed discrimination through the Mahalanobis distance from images in maize fields10.1016/j.biosystemseng.2017.11.003 ↗
23. Ronneberger, O., Fischer, P., and Brox, T. (2015). U-Net: Convolutional Networks for Biomedical Image Segmentation. arXiv.10.1007/978-3-319-24574-4_28 ↗
24. Review of weed recognition: A global agriculture perspective10.1016/j.compag.2024.109499 ↗
25. WeedVision: A single-stage deep learning architecture to perform weed detection and segmentation using drone-acquired images10.1016/j.compag.2024.108792 ↗
26. Bitou bush detection and mapping using UAV-based multispectral and hyperspectral imagery and artificial intelligence
27. Weed detection based on deep learning from UAV imagery: A review10.1016/j.atech.2025.101147 ↗
28. YOLOv8-RD: High-Robust Pine Wilt Disease Detection Method Based on Residual Fuzzy YOLOv810.1109/JSTARS.2024.3494838 ↗
29. Weed database development: An updated survey of public weed datasets and cross-season weed detection adaptation10.1016/j.ecoinf.2024.102546 ↗
30. Utkarsh Niranjan IndianPotatoWeeds: A Novel Dataset and its Role in Weed Detection and Management for Potato Crops10.1007/s42979-025-03969-4 ↗
31. From Data Mining to Knowledge Discovery in Databases
32. Cui, J., Tan, F., Bai, N., and Fu, Y. (2024). Improving U-net network for semantic segmentation of corns and weeds during corn seedling stage in field. Front. Plant Sci., 15.10.3389/fpls.2024.1344958 ↗
33. Modified U-Net for plant diseased leaf image segmentation10.1016/j.compag.2022.107511 ↗
34. An Improved UNet Lightweight Network for Semantic Segmentation of Weed Images in Corn Fields
35. Weed detection in precision agriculture: Leveraging encoder-decoder models for semantic segmentation10.1007/s12652-024-04832-9 ↗
36. SC-Net: A new strip convolutional network model for rice seedling and weed segmentation in paddy field10.1016/j.compag.2024.108862 ↗
37. Asuka, S., Nakamura, T., Shimizu, I., Ookawa, T., and Nakajo, H. (2025). Ensemble Learning-Based Weed Detection from a Duck’s Perspective Using an Aquatic Drone in Rice Paddies. Appl. Sci., 15.10.3390/app15137440 ↗
38. FGOD-YOLOv8: Fine-Grained Object Detection for Crops and Weeds10.1109/LSP.2024.3519272 ↗
39. Corn/Weed Plants Detection Under Authentic Fields based on Patching Segmentation and Classification Networks
40. Enhancing site-specific weed detection using deep learning transformer architectures10.1016/j.cropro.2024.107075 ↗
41. Ma, Z., Wang, G., Yao, J., Huang, D., Tan, H., Jia, H., and Zou, Z. (2023). An Improved U-Net Model Based on Multi-Scale Input and Attention Mechanism: Application for Recognition of Chinese Cabbage and Weed. Sustain. Switz., 15.10.3390/su15075764 ↗
42. Detection and mapping of Amaranthus spinosus L. in bermudagrass pastures using drone imagery and deep learning for a site-specific weed management10.1002/agj2.21545 ↗
43. Efficient crop segmentation net and novel weed detection method10.1016/j.eja.2024.127367 ↗
44. SqueezeSlimU-Net: An Adaptive and Efficient Segmentation Architecture for Real-Time UAV Weed Detection10.1109/JSTARS.2025.3536175 ↗
45. SSMR-Net and Across Feature Mapping Attention are jointly applied to the UAV imagery semantic segmentation task of weeds in early-stage wheat fields10.1016/j.atech.2025.101077 ↗
46. SWFormer: A scale-wise hybrid CNN-Transformer network for multi-classes weed segmentation10.1016/j.jksuci.2024.102144 ↗
47. Research on unmanned aerial vehicle (UAV) rice field weed sensing image segmentation method based on CNN-transformer10.1016/j.compag.2024.109719 ↗
48. Attention based UNet model for breast cancer segmentation using BUSI dataset10.1038/s41598-024-72712-5 ↗
49. Deep learning in agriculture: A survey10.1016/j.compag.2018.02.016 ↗
50. Valente, J., and Kooistra, L. (2026, February 25). Dataset on UAV High-Resolution Images from Grassland with Broad-Leaved Dock (Rumex Obtusifolius). [Data Set]. Zenodo. Available online: https://zenodo.org/records/5119205.
51. Data for: Weed Detection in Soybean Crops Using ConvNets10.1016/j.compag.2017.10.027 ↗
52. Danilevicz, M., Rocha, R.L., Batley, J., Bayer, P.E., Bennamoun, M., Edwards, D., and Ashworth, M. (2023). Segmentation of sandplain lupin weeds from morphologically similar narrow-leafed lupins in the field. Remote Sens., 15.10.3390/rs15071817 ↗
53. Imran Moazzam (2026, February 25). Tobacco Aerial Dataset. [Data Set]. Mendeley Data. Available online: https://data.mendeley.com/datasets/5dpc5gbgpz/1.
54. Sa, I., Popović, M., Khanna, R., Chen, Z., Lottes, P., Liebisch, F., Nieto, J., Stachniss, C., Walter, A., and Siegwart, R. (2018). WeedMap: A Large-Scale Semantic Weed Mapping Framework Using Aerial Multispectral Imaging and Deep Neural Network for Precision Farming. Remote Sens., 10.10.3390/rs10091423 ↗
55. Drone-Aided Detection of Weeds: Transfer Learning for Embedded Image Processing10.1109/JSTARS.2022.3224657 ↗
56. Deep learning-based early weed segmentation using motion blurred UAV images of sorghum fields10.1016/j.compag.2022.107388 ↗
57. Huang, H., Deng, J., Lan, Y., Yang, A., Deng, X., and Zhang, L. (2018). A Fully Convolutional Network for weed mapping of Unmanned Aerial Vehicle (UAV) Imagery. PLoS ONE, 13.10.1371/journal.pone.0196302 ↗
58. CoFly-WeedDB: A UAV image dataset for weed detection and species identification10.1016/j.dib.2022.108575 ↗
59. Rai, N., Villamil Mahecha, M., Christensen, A., Quanbeck, J., Howatt, K., Ostlie, M., Zhang, Y., and Sun, X. (2026, February 25). ImageWeeds: An Image Dataset Consisting of Weeds in Multiple Formats to Advance Computer Vision Algorithms for Real-Time Weed Identification and Spot Spraying Application. Available online: https://data.mendeley.com/datasets/8kjcztbjz2/2.
60. Yang, M.-D., Tseng, H.-H., Hsu, Y.-C., Yang, C.-Y., Lai, M.-H., and Wu, D.-H. (2021). A UAV Open Dataset of Rice Paddies for Deep Learning Practice. Remote Sens., 13.10.3390/rs13071358 ↗
61. Machidon, O.M., Krašovec, A., Machidon, A.L., Pejović, V., Latini, D., Sasidharan, S.T., and Del Frate, F. (2023). AgriAdapt: Towards Resource-Efficient UAV Weed Detection using Adaptable Deep Learning. Proceedings of the 2nd Workshop on Networked Sensing Systems for a Sustainable Society, Madrid, Spain, 6 October 2023, ACM.10.1145/3615991.3616405 ↗
62. Assessing the impact of soil and field conditions on cotton crop emergence using UAV-based imagery10.1016/j.compag.2024.108738 ↗
63. On-farm evaluation of UAV-based aerial imagery for season-long weed monitoring under contrasting management and pedoclimatic conditions in wheat10.1016/j.compag.2022.107558 ↗
64. An image segmentation method based on deep learning for damage assessment of the invasive weed Solanum rostratum Dunal10.1016/j.compag.2021.106320 ↗
65. Analysis of focus measure operators for shape-from-focus10.1016/j.patcog.2012.11.011 ↗
66. Sarvini, T., Sneha, T., Sukanya Gowthami, G., Sushmitha, S., and Kumaraswamy, R. (2019). Performance Comparison of Weed Detection Algorithms. Proceedings of the 2019 International Conference on Communication and Signal Processing (ICCSP), Chennai, India, 4–6 April 2019, IEEE.
67. (2024, January 28). Roboflow Docs Create a Project|Roboflow Docs. Available online: https://docs.roboflow.com/datasets/create-a-project.
68. Simulating large-scale urban land-use patterns and dynamics using the U-Net deep learning architecture10.1016/j.compenvurbsys.2022.101855 ↗
69. Çiçek, Ö., Abdulkadir, A., Lienkamp, S.S., Brox, T., and Ronneberger, O. (2016). 3D U-Net: Learning Dense Volumetric Segmentation from Sparse Annotation. arXiv.10.1007/978-3-319-46723-8_49 ↗
70. Narváez, F.R., Proaño, J., Morillo, P., Vallejo, D., González Montoya, D., and Díaz, G.M. (2022). Brain Tumor Segmentation Based on 2D U-Net Using MRI Multi-modalities Brain Images. Smart Technologies, Systems and Applications (SmartTech-IC 2021), Springer International Publishing.10.1007/978-3-030-99170-8 ↗
71. Road Extraction by Deep Residual U-Net10.1109/LGRS.2018.2802944 ↗
72. Jha, D., Riegler, M.A., Johansen, D., Halvorsen, P., and Johansen, H.D. (2020). DoubleU-Net: A Deep Convolutional Neural Network for Medical Image Segmentation. Proceedings of the 2020 IEEE 33rd International Symposium on Computer-Based Medical Systems (CBMS), Rochester, MN, USA, 28–30 July 2020, IEEE.10.1109/CBMS49503.2020.00111 ↗
73. Celikkan, E., Saberioon, M., Herold, M., and Klein, N. (2023). Semantic Segmentation of Crops and Weeds with Probabilistic Modeling and Uncertainty Quantification. Proceedings of the 2023 IEEE/CVF International Conference on Computer Vision Workshops (ICCVW), Paris, France, 2–6 October 2023, IEEE.10.1109/ICCVW60793.2023.00065 ↗
74. End to End Segmentation of Canola Field Images Using Dilated U-Net10.1109/ACCESS.2021.3073715 ↗
75. Analysis of Discrepancy Metrics Used in Medical Image Segmentation10.1109/TLA.2015.7040653 ↗
76. Müller, D., Soto-Rey, I., and Kramer, F. (2022). Towards a guideline for evaluation metrics in medical image segmentation. BMC Res. Notes, 15.10.1186/s13104-022-06096-y ↗
77. Zou, K., Chen, X., Zhang, F., Zhou, H., and Zhang, C. (2021). A Field Weed Density Evaluation Method Based on UAV Imaging and Modified U-Net. Remote Sens., 13.10.3390/rs13020310 ↗
78. Lind, D.A., Marchal, W.G., and Wathen, S.A. (2022). Basic Statistics in Business and Economics, McGraw Hill. [10th ed.].
79. Juma, A., Rodríguez, J., Caraguay, J., Naranjo, M., Quiña-Mera, A., and García-Santillán, I. (2019). Integration and Evaluation of Social Networks in Virtual Learning Environments: A Case Study. Communications in Computer and Information Science, Springer.10.1007/978-3-030-05532-5_18 ↗
80. Krizhevsky, A., Sutskever, I., and Hinton, G.E. (2012). ImageNet Classification with Deep Convolutional Neural Networks. Advances in Neural Information Processing Systems 25 (NIPS 2012): 26th Annual Conference on Neural Information Processing Systems 2012, Morgan Kaufmann Publishers, Inc.
81. Attention-aided semantic segmentation network for weed identification in pineapple field10.1016/j.compag.2023.107881 ↗
82. Nong, C., Fan, X., and Wang, J. (2022). Semi-supervised Learning for Weed and Crop Segmentation Using UAV Imagery. Front. Plant Sci., 13.10.3389/fpls.2022.927368 ↗
83. Shahi, T.B., Dahal, S., Sitaula, C., Neupane, A., and Guo, W. (2023). Deep Learning-Based Weed Detection Using UAV Images: A Comparative Study. Drones, 7.10.3390/drones7100624 ↗
84. Towards reducing chemical usage for weed control in agriculture using UAS imagery analysis and computer vision techniques10.1038/s41598-023-33042-0 ↗
85. Garcia-Garcia, A., Orts-Escolano, S., Oprea, S., Villena-Martinez, V., and Garcia-Rodriguez, J. (2017). A Review on Deep Learning Techniques Applied to Semantic Segmentation. arXiv.10.1016/j.asoc.2018.05.018 ↗