Multi-Class Weed Segmentation in Potato Crops from UAV Imagery Under Uncontrolled Field Conditions Using an Improved U-Net
DOI:
https://doi.org/10.48162/rev.39.233Keywords:
semantic segmentation, precision agriculture, weed segmentation, Deep Learning, UAV imagery, CNN, U-NetAbstract

Weed identification and quantification are essential for precision agriculture because weeds compete with crops for resources and can reduce productivity. This study aimed to develop and evaluate an improved U-Net convolutional neural network (iU-Net) for the automatic multiclass segmentation and quantification of weeds in potato crops using RGB images acquired by an unmanned aerial vehicle (UAV). We constructed a custom dataset of 2,100 annotated 250 × 250 sub-images from potato fields in Ecuador under uncontrolled field conditions and classified them into six classes: background, potato, Broadleaf dock, Dandelion, Kikuyu, and other weeds (unknown). Following the Knowledge Discovery in Databases (KDD) methodology, we trained and evaluated six U-Net-based architectures using Dice loss, Mean Dice Coefficient, and mean Intersection over Union (mIoU). The best-performing model was the proposed iU-Net with an EfficientNetV2-Small backbone, which achieved an mIoU of 0.8871 on the test set and an inference time of 11.34 ms per 128 × 128 resized image (88.18 FPS). The model showed particularly high segmentation performance for the main weed classes, with IoU values above 0.90. These results demonstrate the proposed approach’s potential for accurate multiclass weed segmentation and automatic weed coverage estimation under challenging field conditions.
Highlights:
- An improved U-Net convolutional neural network is implemented for weed segmentation and coverage estimation using UAV RGB images.
- A custom dataset from potato fields is created and used to train a CNN model to identify six classes.
- The best model used EfficientNetV2-Small as a backbone and showed high segmentation performance under challenging field conditions.
Downloads
References
Amarasingam, N., Kelly, J., Sandino, J., Hamilton, M., Gonzalez, F., L Dehaan, R., Zheng, L., & Cherry, H. (2024). Bitou bush detection and mapping using UAV-based multispectral and hyperspectral imagery and artificial intelligence. Remote Sensing Applications: Society and Environment, 34, 101151. https://doi.org/10.1016/j.rsase.2024.101151
Asuka, S., Nakamura, T., Shimizu, I., Ookawa, T., & Nakajo, H. (2025). Ensemble Learning-Based Weed Detection from a Duck’s Perspective Using an Aquatic Drone in Rice Paddies. Applied Sciences, 15(13), 7440. https://doi.org/10.3390/app15137440
Bretas, I. L., Dubeux, J. C. B., Zhao, C., Queiroz, L. M. D., Flynn, S., Ingram, S., Oduor, K. T., Cruz, P. J. R., Ruiz‐Moreno, M., Loures, D. R. S., Valente, D. S. M., & Chizzotti, F. H. M. (2024). Detection and mapping of Amaranthus spinosus L. in bermudagrass pastures using drone imagery and deep learning for a site‐specific weed management. Agronomy Journal, 116(3), 990-1002. https://doi.org/10.1002/agj2.21545
Cai, Y., Zeng, F., Xiao, J., Ai, W., Kang, G., Lin, Y., Cai, Z., Shi, H., Zhong, S., & Yue, X. (2023). Attention-aided semantic segmentation network for weed identification in pineapple field. Computers and Electronics in Agriculture, 210, 107881. https://doi.org/10.1016/j.compag.2023.107881
Córdoba, M.; Vallone, R.; Paccioretti, P.; Corvalán, F.; Balzarini, M. (2025). Data-driven Method for the Delimitation of Viticultural Zones: Application in the Mendoza River Oasis, Argentina. Revista de la Facultad de Ciencias Agrarias. Universidad Nacional de Cuyo. 57(2): 57-68. DOI: https://doi.org/10.48162/rev.39.171
Cevallos, M., Sandoval-Pillajo, L., Caranqui-Sánchez, V., Ortega-Bustamante, C., Pusdá-Chulde, M., & García-Santillán, I. (2025). Morphological Defects Classification in Coffee Beans Based on Convolutional Neural Networks. 3-15. https://doi.org/10.1007/978-3-031-75702-0_1
Chao, J., Wang, K., Xu, B., Harty, M., Wang, W., & McDonnell, K. (2025). Invasive plants detection and distribution patterns analysis through self-attention enhanced semantic segmentation in UAV imagery and Moran’s index. Computers and Electronics in Agriculture, 229, 109811. https://doi.org/10.1016/j.compag.2024.109811
Chen, L.-C., Zhu, Y., Papandreou, G., Schroff, F., & Adam, H. (2018). Encoder-Decoder with Atrous Separable Convolution for Semantic Image Segmentation (Versión 3). arXiv. https://doi.org/10.48550/ARXIV.1802.02611
Gao, J., Liao, W., Nuyttens, D., Lootens, P., Xue, W., Alexandersson, E., & Pieters, J. (2024). Cross-domain transfer learning for weed segmentation and mapping in precision farming using ground and UAV images. Expert Systems with Applications, 246, 122980. https://doi.org/10.1016/j.eswa.2023.122980
Garibaldi-Márquez, F., Flores, G., & Valentín-Coronado, L. M. (2025). Leveraging deep semantic segmentation for assisted weed detection. Journal of Agricultural Engineering. https://doi.org/10.4081/jae.2025.1741
Guo, Z., Xue, Y., Wang, C., Geng, Y., Lu, R., Li, H., Sun, D., Lou, Z., Chen, T., Shi, J., & Quan, L. (2025). Efficient weed segmentation in maize fields: A semi-supervised approach for precision weed management with reduced annotation overhead. Computers and Electronics in Agriculture, 229, 109707. https://doi.org/10.1016/j.compag.2024.109707
Jabed, Md. A., & Azmi Murad, M. A. (2024). Crop yield prediction in agriculture: A comprehensive review of machine learning and deep learning approaches, with insights for future research and sustainability. Heliyon, 10(24), e40836. https://doi.org/10.1016/j.heliyon.2024.e40836
Jha, D., Riegler, M. A., Johansen, D., Halvorsen, P., & Johansen, H. D. (2020). DoubleU-Net: A Deep Convolutional Neural Network for Medical Image Segmentation. 2020 IEEE 33rd International Symposium on Computer-Based Medical Systems (CBMS), 558-564. https://doi.org/10.1109/CBMS49503.2020.00111
Kong, X., Liu, T., Chen, X., Jin, X., Li, A., & Yu, J. (2024). Efficient crop segmentation net and novel weed detection method. European Journal of Agronomy, 161. https://doi.org/10.1016/j.eja.2024.127367
Lu, C., Gehring, K., Kopfinger, S., Bernhardt, H., Beck, M., Walther, S., Ebertseder, T., Minceva, M., Hu, Y., & Yu, K. (2025). Weed instance segmentation from UAV Orthomosaic Images based on Deep Learning. Smart Agricultural Technology, 11, 100966. https://doi.org/10.1016/j.atech.2025.100966
Machidon, A. L., Krašovec, A., Pejović, V., & Machidon, O. M. (2025). SqueezeSlimU-Net: An Adaptive and Efficient Segmentation Architecture for Real-Time UAV Weed Detection. IEEE Journal of Selected Topics in Applied Earth Observations and Remote Sensing, 18, 5749-5764. https://doi.org/10.1109/JSTARS.2025.3536175
Mei, X., Li, C., Jiao, Y., Zhang, G., Zhou, L., Wu, X., & Cai, T. (2025). SSMR-Net and Across Feature Mapping Attention are jointly applied to the UAV imagery semantic segmentation task of weeds in early-stage wheat fields. Smart Agricultural Technology, 12, 101077. https://doi.org/10.1016/j.atech.2025.101077
Montenegro, S., Pusdá-Chulde, M., Caranqui-Sánchez, V., Herrera-Tapia, J., Ortega-Bustamante, C., & García-Santillán, I. (2023). Android Mobile Application for Cattle Body Condition Score Using Convolutional Neural Networks. 91-105. https://doi.org/10.1007/978-3-031-32213-6_7
Müller, D., Soto-Rey, I., & Kramer, F. (2022). Towards a guideline for evaluation metrics in medical image segmentation. BMC Research Notes, 15(1), 210. https://doi.org/10.1186/s13104-022-06096-y
Rai, N., & Sun, X. (2024). WeedVision: A single-stage deep learning architecture to perform weed detection and segmentation using drone-acquired images. Computers and Electronics in Agriculture, 219, 108792. https://doi.org/10.1016/j.compag.2024.108792
Ronneberger, O., Fischer, P., & Brox, T. (2015). U-Net: Convolutional Networks for Biomedical Image Segmentation. https://doi.org/10.48550/arXiv.1505.04597
Sandoval-Pillajo, L., García-Santillán, I., Pusdá-Chulde, M., & Giret, A. (2025). Weed detection based on deep learning from UAV imagery: A review. Smart Agricultural Technology, 12, 101147. https://doi.org/10.1016/j.atech.2025.101147
Sandoval-Pillajo, L., Perugachi-Chávez, L., Pusdá-Chulde, M., Giret-Boggino, A., & García-Santillán, I. (2026a). Multi-class weed detection based on deep learning using unmanned aerial vehicle images in potato fields. Open Computer Science, 16(1), 20250058. https://doi.org/10.1515/comp-2025-0058
Sandoval-Pillajo, L., Pusdá-Chulde, M., Pazos-Morillo, J., Granda-Gudiño, P., & García-Santillán, I. (2026b). Multi-Class Weed Quantification Based on U-Net Convolutional Neural Networks Using UAV Imagery. Applied Sciences, 16(7), 3149. https://doi.org/10.3390/app16073149
Shafiee, G., Edalat, M., Shirzadifar, A., & Pourghasemi, H. R. (2025). Early season dominant weed mapping in maize field using unmanned aerial vehicle (UAV) imagery: Towards developing prescription map. Smart Agricultural Technology, 11, 100956. https://doi.org/10.1016/j.atech.2025.100956
Syed, A., Chen, B., Abbasi, A. A., Butt, S. A., & Fang, X. (2025). MSEA-Net: Multi-Scale and Edge-Aware Network for Weed Segmentation. AgriEngineering, 7(4), 103. https://doi.org/10.3390/agriengineering7040103
Tan, M., & Le, Q. V. (2021). EfficientNetV2: Smaller Models and Faster Training. https://doi.org/10.48550/ARXIV.2104.00298
Tian, F., Ransom, C. J., Zhou, J., Wilson, B., & Sudduth, K. A. (2024). Assessing the impact of soil and field conditions on cotton crop emergence using UAV-based imagery. Computers and Electronics in Agriculture, 218, 108738. https://doi.org/10.1016/j.compag.2024.108738
Vinueza, K., Sandoval-Pillajo, L., Giret-Boggino, A., Trejo-España, D., Pusdá-Chulde, M., & García-Santillán, I. (2025). Automatic weed quantification in potato crops based on a modified convolutional neural network using drone images. Data and Metadata. 4(194). https://doi.org/10.56294/dm2025194
Wei, Y., Feng, Y., Zu, D., & Zhang, X. (2025). A hybrid CNN-transformer network: Accurate and efficient semantic segmentation of crops and weeds on resource-constrained embedded devices. Crop Protection, 188, 107018. https://doi.org/10.1016/j.cropro.2024.107018
Yuan, J., Wang, L., Wang, T., Bashir, A. K., Al Dabel, M. M., Wang, J., Feng, H., Fang, K., & Wang, W. (2025). YOLOv8-RD: High-Robust Pine Wilt Disease Detection Method Based on Residual Fuzzy YOLOv8. IEEE Journal of Selected Topics in Applied Earth Observations and Remote Sensing, 18, 385-397. https://doi.org/10.1109/JSTARS.2024.3494838
Zhang, Z., Liu, Q., & Wang, Y. (2018). Road Extraction by Deep Residual U-Net. IEEE Geoscience and Remote Sensing Letters, 15(5), 749-753. https://doi.org/10.1109/LGRS.2018.2802944
Zhang, S., & Zhang, C. (2023). Modified U-Net for plant diseased leaf image segmentation. Computers and Electronics in Agriculture, 204. https://doi.org/10.1016/j.compag.2022.107511
Zhang, J., Lu, X., Yang, R., Xu, H., Huai, Y., & Liu, F. (2025). Weakly supervised dual-mask marginal segmentation and variable path planning method for bean weed based on UAV remote sensing. Computers and Electronics in Agriculture, 230, 109786. https://doi.org/10.1016/j.compag.2024.109786
Zhu, X., Su, W., Lu, L., Li, B., Wang, X., & Dai, J. (2020). Deformable DETR: Deformable Transformers for End-to-End Object Detection (Versión 4). arXiv. https://doi.org/10.48550/ARXIV.2010.04159
Zou, K., Chen, X., Zhang, F., Zhou, H., & Zhang, C. (2021). A Field Weed Density Evaluation Method Based on UAV Imaging and Modified U-Net. Remote Sensing, 13(2), 310. https://doi.org/10.3390/rs13020310
Published
How to Cite
Issue
Section
License

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.
Authors who publish with this journal accept the Editorial Policies.







.jpg)



