Performance Analysis of Machine Learning Techniques in Predicting Maize Crop Yield: Case Study of Kayonza District—Rwanda
Abstract
1. Introduction
2. Materials and Methods
2.1. Study Area
2.2. Methodology
2.2.1. Distribution of the Sample
2.2.2. Rainfall Data
2.2.3. Temperature Data
2.2.4. Soil Temperature
2.2.5. Maize Crop Data
2.2.6. Hyperparameter Selection and Justification
2.3. Model Evaluation
2.4. Cross-Validation
3. Results
3.1. Prediction Results
Graphical Representation
3.2. Variable Importance
3.2.1. Random Forest Feature Importance
3.2.2. Extreme Gradient Boost Regressor
3.2.3. Performance Evaluation of the Proposed Machine Learning
4. Discussion
5. Conclusions
Author Contributions
Funding
Data Availability Statement
Acknowledgments
Conflicts of Interest
Abbreviations
| MAE | Mean Absolute Error |
| RMSE | Root Mean Squared Error |
| RF | Random Forest |
| SVM | Linear Dichroism |
| LASSO | Support Vector Machine |
| XGBoost | Extreme Gradient Boosting |
| AI | Artificial Intelligence |
| ML | Machine Learning |
References
- Shevchenko, V.; Lukashevich, A.; Taniushkina, D.; Bulkin, A.; Grinis, R.; Kovalev, K.; Narozhnaia, V.; Sotiriadi, N.; Krenke, A.; Maximov, Y. Climate Change Impact on Agricultural Land Suitability. IEEE Access 2024, 12, 15748–15763. [Google Scholar] [CrossRef]
- Updated Nationally Determined Contribution, Page 9. Available online: https://unfccc.int/NDCREG (accessed on 5 May 2020).
- Perevedentsev, Y.P.; Vasil’ev, A.A. Climate Change and Its Impact on Agriculture. Russ. Meteorol. Hydrol. 2023, 48, 739–744. [Google Scholar] [CrossRef]
- Pereira, L. Climate Change Impacts on Agriculture Across Africa; Oxford University Press: Oxford, UK, 2017. [Google Scholar] [CrossRef]
- Bello, O.B.; Ganiyu, O.T.; Wahab, M.K.A.; Afolabi, M.S.; Oluleye, F.; Ig, S.A.; Mahmud, J.; Azeez, M.A.; Abdulmaliq, S.Y. Evidence of Climate Change Impacts on Agriculture and Food Security in Nigeria. Int. J. Agric. For. 2012, 2, 49–55. [Google Scholar] [CrossRef]
- Fifth Strategic Plan Agriculture Transformation PSTA 5. Building Resilient and Sustainable Agri-Food Systems; Ministry of Agriculture: Kigali, Rwanda, 2024.
- Mahin, A.; Adnan, N.; Khondoker, R. Precision Agriculture Using Machine Learning and Deep Learning Algorithms. A Comprehensive Study. J. Agric. Educ. Res. 2026. Available online: https://www.researchgate.net/publication/391483355_Precision_Agriculture_using_Machine_Learning_and_Deep_Learning_Algorithms_A_Comprehensive_Study (accessed on 8 April 2026).
- Lionel, B.M.; Musabe, R.; Gatera, O.; Twizere, C. A comparative study of machine learning models in predicting crop yield. Discov. Agric. 2025, 3, 151. [Google Scholar] [CrossRef]
- Kuradusenge, M.; Hitimana, E.; Hanyurwimfura, D.; Rukundo, P.; Mtonga, K.; Mukasine, A.; Uwitonze, C.; Ngabonziza, J.; Uwamahoro, A. Crop Yield Prediction using machine learning models: Case of Potato and Maize. Agriculture 2023, 13, 225. [Google Scholar] [CrossRef]
- Malashin, I.; Tynchenko, V.; Gantimurov, A.; Nelyub, V.; Borodulin, A.; Tynchenko, Y. Predicting Sustainable crop yields: Deep learning and Explainable AI Tools. Sustainability 2024, 16, 9437. [Google Scholar] [CrossRef]
- Ahmed, S.; Raza, B.; Hussain, L.; Aldweesh, A.; Omar, A.; Khan, M.S.; Eldin, E.T.; Nadim, M.A. The Deep learning Resnet 101 and ensemble XGBoost algorithm with hyperparameter optimization accurately predict lung cancer. Appl. Artif. Intell. 2023, 37, 2166222. [Google Scholar] [CrossRef]
- Zhang, N.; Qu, Y.; Song, Z.; Chen, Y.; Jiang, J. Responses and sensitivities of maize phenology to climate change from 1971 to 2020 in Henan Province, China. PLoS ONE 2022, 17, e0262289. [Google Scholar] [CrossRef] [PubMed]
- Dwamena, H.A.; Tawiah, K.; Kodua, A.S.A. The Effect of Rainfall, Temperature, and Relative Humidity on the Yield of Cassava, Yam, and Maize in the Ashanti Region of Ghana. Int. J. Agron. 2022, 2022, 9077383. [Google Scholar] [CrossRef]
- Waqas, M.A.; Wang, X.; Zafar, S.A.; Noor, M.A.; Hussain, H.A.; Azher Nawaz, M.; Farooq, M. Thermal Stresses in Maize: Effects and Management Strategies. Plants 2021, 10, 293. [Google Scholar] [CrossRef]
- Li, Y.; Lang, J.; Ji, L.; Zhong, J.; Wang, Z.; Guo, Y.; He, S. Weather Forecasting Using an Ensemble of Spatial-Temporal Attention Networks and Multi-Layer Perceptron. Asia-Pac. J. Atmos. Sci. 2021, 57, 533–546. [Google Scholar] [CrossRef]
- Jabel, M.A.; Azmi Murad, M.A. Crop yield prediction in agriculture: A comprehensive review of machine learning and deep learning approaches with insight for future research and sustainability. Heliyon 2024, 10, e40836. [Google Scholar] [CrossRef]
- Mishra, S.; Mishra, D.; Santra, G.H. Application of machine learning techniques in agricultural crop production: A review paper. Indian J. Sci. Technol. 2016, 9, 1–14. [Google Scholar] [CrossRef]
- Morales, A.; Villalobos, F.J. Using machine learning for crop yield production in the past or for the future. Front. Plant Sci. 2023, 14, 1128388. [Google Scholar] [CrossRef] [PubMed]
- Bali, N.; Singla, A. Emerging Trends in Machine Learning to Predict Crop Yield and Study Its Influential Factors: A Survey. Arch. Computat. Methods Eng. 2021, 29, 95–112. [Google Scholar] [CrossRef]
- Abbasi, M.; Rahman, M.M.; Chen, D. Machine learning approaches for predicting maize biomass yield using environmental variables. Agric. Syst. 2025, 210, 103705. [Google Scholar]
- Sharma, R.K.; Kaur, J.; Feng, G.; Huang, Y.; Kumar, C.; Wang, Y.; Sharma, S.; Jenkins, J.; Dhillon, J. Maize and soybean yield prediction using machine learning methods: A systematic literature review. Discov. Agric. 2025, 3, 64. [Google Scholar] [CrossRef]
- Sapkota, B.R.; Baath, G.S.; Flynn, K.C.; Adhikari, K.; Hajda, C.; Smith, D.R. Machine learning algorithms for maize yield prediction using multispectral imagery. Sci. Remote Sens. 2025, 11, 100123. [Google Scholar]
- Kok, Z.H.; Shariff, A.R.M.; Alfatni, M.S.M.; Khairunniza-Bejo, S. Support vector machine in Precision Agriculture: A review. Comput. Electron. Agric. 2021, 191, 106546. [Google Scholar] [CrossRef]
- Patil, P.; Athavale, P.; Bothara, M.; Tambolkar, S.; More, A. Crop selection and yield prediction using machine learning approach. Curr. Agric. Res. J. 2023, 11, 968–980. [Google Scholar] [CrossRef]
- Bhagat, M.; Bakariya, B. A Comprehensive Review of Cross-Validation Techniques in Machine Learning. Int. J. Sci. Technol. 2025. Available online: https://www.ijsat.org/papers/2025/1/1305.pdf (accessed on 8 April 2026).
- Emmart, F.; Dehmer, M. High Dimension LASSO—Based computational Regression Model; Regularization, Shrinkage and Selection. Mach. Learn. Knowl. 2019, 1, 359–383. [Google Scholar] [CrossRef]
- Islam, M.M.; Alharthi, M.; Alkadi, R.S.; Islam, R.; Masum, A.K.M. Crop yield prediction through machine learning. A path towards sustainable agriculture and climate resilience in Saudi Arabia. AIMS Agric. Food 2024, 9, 980–1003. [Google Scholar] [CrossRef]
- Menon, A.G.; Prabhakar, M. Smart Agriculture Monitoring Rover for Small-Scale Farms in Rural Areas using IoT. In Proceedings of the 2021 IEEE International Conference on Innovative Computing, Intelligent Communication and Smart Electrical Systems, ICSES 2021; Institute of Electrical and Electronics Engineers Inc.: Piscataway, NJ, USA, 2021. [Google Scholar] [CrossRef]
- Nikhil, U.V.; Pandiyan, A.M.; Raja, S.P.; Stamenkovic, Z. Machine learning-based crop yield prediction in South India: Performance Analysis of various models. Computers 2024, 13, 137. [Google Scholar] [CrossRef]
- Badshah, A.; Alkazemi, B.Y.; Din, F.; Zamli, K.Z.; Haris, M. Crop classification and yield prediction using robust machine learning models for agricultural sustainability. IEEE Access 2025, 12, 162799–162813. [Google Scholar] [CrossRef]
- Hernández, G.C.; Gómez Gómez, J.; Jiménez-Cabas, J. Predictive Models Based on Artificial Intelligence to estimate crop yield. Agriculture 2025, 15, 2438. [Google Scholar] [CrossRef]
- Fashoto, S.G.; Mbunge, E.; Ogunleye, G.; Van den Burg, J. Implementation of machine learning for predicting maize crop yield using multiple linear regression and backward elimination. Malays. J. Comput. 2021, 6, 679. [Google Scholar] [CrossRef]
- Chitradurga, M.; Palayyan, B.P. An efficiency crop yield prediction framework using a hybrid machine learning model. Rev. D Intell. Artif. 2023, 37, 1157–1167. [Google Scholar]
- Yan, Y.; Wang, Y.; Li, J.; Zhang, J.; Mo, X. Crop Yield Time-Series Data Prediction Based on Multiple Hybrid Machine Learning Models. Appl. Comput. Eng. 2025, 133, 217–223. [Google Scholar] [CrossRef]
- Arizo-García, P.; Castiñeira-Ibáñez, S.; Cruzado-Campos, E.; San Bautista, A.; Rubio, C. High resolution wheat and Barley yield forecasting using multi-temporal satellite time series and machine learning. Agriculture 2026, 16, 516. [Google Scholar] [CrossRef]
- Shinyclimensa, C.; Parthiban, A. Network-enhanced machine learning framework for multi-crop yield prediction: A comprehensive analysis of Indian agriculture data. Front. Agron. 2026, 8, 1767878. [Google Scholar] [CrossRef]
- Zhang, R.; Wu, X.; Li, J.; Zhao, P.; Zhang, Q.; Wuri, L.; Zhang, D.; Zhang, Z.; Yang, L. A bibliometric review of deep learning in crop monitoring: Trends, challenges and future perspectives. Front. Artif. Intell. 2025, 8, 1636898. [Google Scholar] [CrossRef] [PubMed]
- Singh, K.; Yadav, M.; Barak, D.; Bansal, S.; Moreira, F. Machine learning-based frameworks for reliable and sustainable crop forecasting. Sustainability 2025, 17, 4711. [Google Scholar] [CrossRef]
- Zhao, X.; Deng, X.; Xiang, D.; Wang, S. Analysis and prediction of the coupling coordination relationship between digital economy and agricultural new quality productivity. In Proceedings of the 2026 International Conference on Digital Economy and Agricultural Development; IEEE: Piscataway, NJ, USA, 2026. [Google Scholar]
- Rahman, A.A.; Rathipriya, R.; Meero, A.; Hamdan, H. Hybrid Neural Networks for improved crop yield prediction and water demand estimation. Arab Gulf J. Sci. Res. 2025, 43, 99–115. [Google Scholar]











| Dataset | Years Covered | Seasons per Year | Number of Samples |
|---|---|---|---|
| Training set | Year 1–10 | 2 | 20 |
| Testing set | Year 11–13 | 2 | 6 |
| Model | R2 (±) | MAE (t/ha) (±) | RMSE (t/ha) (±) | MSE (t2/ha2) | NRMSE (%) | NMSE |
|---|---|---|---|---|---|---|
| RF | 0.957 ± 0.0019 | 1.018 ± 0.026 | 1.279 ± 0.023 | 1.626 | 49.19 | 0.242 |
| SVM | 0.955 ± 0.0016 | 1.047 ± 0.023 | 1.311 ± 0.015 | 1.718 | 50.42 | 0.254 |
| XGBoost | 0.953 ± 0.0016 | 1.058 ± 0.019 | 1.334 ± 0.015 | 1.78 | 51.31 | 0.263 |
| LASSO | 0.256 ± 0.010 | 4.026 ± 0.110 | 5.302 ± 0.120 | 28.11 | 203.92 | 4.16 |
| Feature | Importance in % |
|---|---|
| annual_mean_temp | 2.76 |
| annual_max_temp | 12.6 |
| annual_min_temp | 15.1 |
| annual_rainfall | 44.4 |
| soil_temp | 0.3 |
| Feature | Importance in % |
|---|---|
| annual_mean_temp | 29.9 |
| annual_max_temp | 15.5 |
| annual_min_temp | 11.6 |
| annual_rainfall | 38.8 |
| soil_temp | 4.3 |
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
Lionel, B.M.; Musabe, R.; Gatera, O.; Twizere, C. Performance Analysis of Machine Learning Techniques in Predicting Maize Crop Yield: Case Study of Kayonza District—Rwanda. Algorithms 2026, 19, 448. https://doi.org/10.3390/a19060448
Lionel BM, Musabe R, Gatera O, Twizere C. Performance Analysis of Machine Learning Techniques in Predicting Maize Crop Yield: Case Study of Kayonza District—Rwanda. Algorithms. 2026; 19(6):448. https://doi.org/10.3390/a19060448
Chicago/Turabian StyleLionel, Bobo Mafrebo, Richard Musabe, Omar Gatera, and Celestin Twizere. 2026. "Performance Analysis of Machine Learning Techniques in Predicting Maize Crop Yield: Case Study of Kayonza District—Rwanda" Algorithms 19, no. 6: 448. https://doi.org/10.3390/a19060448
APA StyleLionel, B. M., Musabe, R., Gatera, O., & Twizere, C. (2026). Performance Analysis of Machine Learning Techniques in Predicting Maize Crop Yield: Case Study of Kayonza District—Rwanda. Algorithms, 19(6), 448. https://doi.org/10.3390/a19060448

