Issue
Date Log
Agro-Pest and Disease Prediction System: A Gradient Boosting Model for Improving Maize Productivity in the Southern Highlands of Tanzania
Corresponding Author(s) : Simeo Kisanjara
MUST JOURNAL OF RESEARCH AND DEVELOPMENT,
Vol. 7 No. 4 (2026)
Abstract
To enhance maize production and contribute to food sustainability in Tanzania, this study aimed to predict maize pests
and diseases using a web-based system integrated with machine learning (ML) models. The study was conducted in the Ruvuma,
Njombe, and Iringa regions, which are major maize-producing areas in Tanzania. We trained and validated six machine learning
models, including Gradient Boosting (GB), Linear Regression (LR), Support Vector Regression (SVR), Long Short-Term Memory
(LSTM), and K-Nearest Neighbours (KNN), to assess their effectiveness in predicting maize pests and diseases. The dataset
was split into training and validation sets, with 80% for training and 20% for validation. The ML models were developed in Python
using Pandas and TensorFlow and subsequently integrated into a web-based prediction system. The findings indicate that
temperature, humidity, and rainfall had substantial effects on the model's ability to predict pest and disease occurrence, while wind speed, solar radiation, and historical data had moderate effects. Among the evaluated models, Gradient Boosting (GB)
demonstrated strong predictive performance, achieving a Mean Absolute Error (MAE) of 102.03, a Root Mean Square Error
(RMSE) of 0.057, and a coefficient of determination (R²) of 0.70. The cross-validation results further indicated consistent
performance, suggesting good model generalisation. The GB model also demonstrated suitability for capturing non-linear
relationships among the predictor variables and performed effectively with the dataset used in this study. The integration of
the model into a web-based system provides a potentially low-cost approach for pest and disease prediction in rural Tanzania,
supporting early intervention and improved agricultural management. This study contributes to the existing literature by
demonstrating the applicability of gradient boosting for regression-based pest and disease prediction using relatively small
agricultural datasets.
Download Citation
Endnote/Zotero/Mendeley (RIS)BibTeX