“Machine Learning” para previsão e análise de segundas safras de milho no estado do Paraná
This work aimed to develop a machine learning model to predict second-crop maize (“safrinha”) in the state of Paraná, Brazil, and to forecast the 2023 harvest. Historical planted area, production and productivity data from the National Supply Company (CONAB) were combined with meteorological records from the National Institute of Meteorology (INMET) going from 1984 to 2022, resulting in 39 annual observations. The 2023 season was withheld from training and used as an independent out-of-sample test. A random forest regressor was implemented in Python 3.11 (Spyder), with hyperparameters tuned by grid search and 3-fold cross-validation. On the test set (eight years, 20% of the series), the model reached R² = 0.867 (RMSE = 0.639), outperforming a multiple linear regression (R² = 0.713; RMSE = 0.939) and the historical mean (R² = −0.096; RMSE = 1.835). Planted area, number of days with rainfall and total precipitation were the most important predictors. For 2023, the model forecast a production of 11.77 million t against an observed 14.6 million t, an underestimation of about 19%. The small sample, the spatial aggregation of meteorological data across the state and the absence of technological and management variables limit the results, but the approach can support more informed decisions by farmers, credit institutions and other stakeholders.
Authors
- Ronisson Gimenez Marques
- Jacques Henrique Dias
Institutions
- Instituto Federal do Paraná (BR)
- Instituto Agronômico do Paraná (BR)
Publication Details
- Journal
- Agronomy Science and Biotechnology
- Published
- 2026-12-02
- DOI
- https://doi.org/10.33158/asb.r283.v13.2027
- Primary Topic
- Smart Agriculture and AI
- Type
- article
- Field-Weighted Citation Impact
- 0.00