Comparison of machine learning techniques for identifying weeds in maize crops
Open Access
- 1 January 2026
- journal article
- Published by FapUNIFESP (SciELO) in Revista Brasileira de Engenharia Agrícola E Ambiental
- Vol. 30 (8)
Abstract
The present study was conducted at the Federal Rural University of Rio de Janeiro, in the years 2024 and 2025, to evaluate the performance of three supervised classifiers - maximum likelihood, random forest, and support vector machine - for spectral discrimination between maize (Zea mays L.) and the weed (Cyperus rotundus), considering different phenological stages and two cropping seasons (main and second crop), using multispectral images acquired by remotely piloted aircraft. Overall accuracy, as well as class metrics of precision, recall, and F1-score, were used to evaluate the performance of the algorithms in classifying four targets: maize, weed, soil, and shadow. The performance of the classifiers improved as the phenological stage progressed. In the first year (second crop), the V8 phenological stage showed the greatest differentiation between the plants, and the highest-performing classifier was maximum likelihood, with an overall accuracy of 89%. For the maize class, precision was 0.88, recall was 0.81, and F1-score was 0.85, and for the weed class, precision was 0.68, recall was 0.89, and F1-score was 0.77. In the second year (main crop), the best differentiation occurred at the V6 stage, and the maximum likelihood classifier again presented the best performance, with an overall accuracy of 88%, precision of 1.00, recall of 0.78, and F1-score of 0.88 for the maize class, and precision of 0.52, recall of 1.00, and F1-score of 0.68 for the weed class. Thus, across the years analyzed, the maximum likelihood classifier performed best.Keywords
Funding Information
- Coordenação de Aperfeiçoamento de Pessoal de Nível Superior (001)
This publication has 20 references indexed in Scilit:
- Deep learning models for detection and recognition of weed species in corn cropCrop Protection, 2025
- Separation of the direct reflection of soil from canopy spectral reflectanceRemote Sensing of Environment, 2024
- Detection and mapping of Amaranthus spinosus L. in bermudagrass pastures using drone imagery and deep learning for a site‐specific weed managementAgronomy Journal, 2024
- Challenges in the real world use of classification accuracy metrics: From recall and precision to the Matthews correlation coefficientPLOS ONE, 2023
- Optimization of soil background removal to improve the prediction of wheat traits with UAV imageryComputers and Electronics in Agriculture, 2022
- Rapid and Accurate Prediction of Soil Texture Using an Image-Based Deep Learning Autoencoder Convolutional Neural Network Random Forest (DLAC-CNN-RF) AlgorithmAgronomy, 2022
- A case-based method of selecting covariates for digital soil mappingJournal of Integrative Agriculture, 2020
- Comparison of maximum likelihood, support vector machines, and random forest techniques in satellite images classificationRevista Tecnura, 2019
- Análise comparativa de classificadores digitais em imagens do Landsat-8 aplicados ao mapeamento temáticoPesquisa Agropecuária Brasileira, 2015
- Köppen's climate classification map for BrazilMeteorologische Zeitschrift, 2013