Prediction of maize yield in Uganda using CNN-LSTM architecture on a multimodal climate and remote sensing dataset

Maize is a staple crop in Uganda, underpinning both food security and rural livelihoods. Accurate forecasting of maize yields is therefore crucial for guiding agricultural planning, resource allocation, and policy design. Yet traditional statistical methods are often limited by low accuracy, poor scalability, and weak integration of diverse inputs, leaving them unable to capture complex, nonlinear, and spatiotemporal dynamics of crop growth. To overcome these constraints, we developed a hybrid convolutional neural network and long short-term memory (CNN-LSTM) model. This model integrates remotely sensed climatic variables and vegetation indices with biannual maize yield records from Uganda’s Zonal Agricultural Research and Development Institute (ZARDI) zones for the period 2018–2020. Due to the scarcity of high-quality yield data, we applied the Synthetic Minority Oversampling Technique for Regression (SMOGN) alongside feature selection to balance the dataset and improve predictive robustness. The CNN-LSTM model’s ability to select features and perform extensive hyperparameter tuning enabled it to outperform baseline models. It achieved a Mean Squared Error (MSE) of 0.107 tonnes2, a Mean Absolute Error (MAE) of 0.267 tonnes, a Root Mean Squared Error (RMSE) of 0.327 tonnes, and an R2 score of 0.783. A comparative analysis revealed that the CNN + Random Forest (RF) model achieved an MSE of 0.137 tonnes2, a MAE of 0.281 tonnes, an RMSE of 0.370 tonnes, and an R2 score of 0.722. These results outperformed the standalone CNN (MSE = 0.216, R2 = 0.562) and RF (MSE = 0.211, R2 = 0.573) models, underscoring the advantage of combining spatial–temporal learning for improved predictive accuracy. Residual analysis further confirmed the model's stability, showing minimal bias and close agreement between observed and predicted yields. These findings highlight the potential for integrating spatial–temporal deep learning and ensemble methods to deliver accurate crop yield forecasts in data-limited smallholder systems. By offering a scalable framework for evidence-based farm planning and food security policy, our study demonstrated that advanced machine learning can directly support sustainable development in sub-Saharan Africa. Future research will extend the framework to incorporate Transformer architectures, high-resolution satellite imagery, and explainable AI, further enhancing accuracy, interpretability, and decision-support capacity.

Authors

Institutions

Publication Details

Journal
Discover Artificial Intelligence
Published
2026-01-29
DOI
https://doi.org/10.1007/s44163-026-00855-7
Primary Topic
Remote Sensing in Agriculture
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Prediction of maize yield in Uganda using CNN-LSTM architecture on a multimodal climate and remote sensing dataset

Fred Kaggwa, Emmanuel Ahishakiye, Aggrey Obbo, Paul Kategaya Kisozi et al.
Discover Artificial Intelligence
Remote Sensing in Agriculture
article

Prediction of maize yield in Uganda using CNN-LSTM architecture on a multimodal climate and remote sensing dataset

Fred Kaggwa, Emmanuel Ahishakiye, Aggrey Obbo, Paul Kategaya Kisozi, Danison Taremwa
article en

Abstract

Maize is a staple crop in Uganda, underpinning both food security and rural livelihoods. Accurate forecasting of maize yields is therefore crucial for guiding agricultural planning, resource allocation, and policy design. Yet traditional statistical methods are often limited by low accuracy, poor scalability, and weak integration of diverse inputs, leaving them unable to capture complex, nonlinear, and spatiotemporal dynamics of crop growth. To overcome these constraints, we developed a hybrid convolutional neural network and long short-term memory (CNN-LSTM) model. This model integrates remotely sensed climatic variables and vegetation indices with biannual maize yield records from Uganda’s Zonal Agricultural Research and Development Institute (ZARDI) zones for the period 2018–2020. Due to the scarcity of high-quality yield data, we applied the Synthetic Minority Oversampling Technique for Regression (SMOGN) alongside feature selection to balance the dataset and improve predictive robustness. The CNN-LSTM model’s ability to select features and perform extensive hyperparameter tuning enabled it to outperform baseline models. It achieved a Mean Squared Error (MSE) of 0.107 tonnes2, a Mean Absolute Error (MAE) of 0.267 tonnes, a Root Mean Squared Error (RMSE) of 0.327 tonnes, and an R2 score of 0.783. A comparative analysis revealed that the CNN + Random Forest (RF) model achieved an MSE of 0.137 tonnes2, a MAE of 0.281 tonnes, an RMSE of 0.370 tonnes, and an R2 score of 0.722. These results outperformed the standalone CNN (MSE = 0.216, R2 = 0.562) and RF (MSE = 0.211, R2 = 0.573) models, underscoring the advantage of combining spatial–temporal learning for improved predictive accuracy. Residual analysis further confirmed the model's stability, showing minimal bias and close agreement between observed and predicted yields. These findings highlight the potential for integrating spatial–temporal deep learning and ensemble methods to deliver accurate crop yield forecasts in data-limited smallholder systems. By offering a scalable framework for evidence-based farm planning and food security policy, our study demonstrated that advanced machine learning can directly support sustainable development in sub-Saharan Africa. Future research will extend the framework to incorporate Transformer architectures, high-resolution satellite imagery, and explainable AI, further enhancing accuracy, interpretability, and decision-support capacity.

Discover Artificial IntelligenceVol. 6(1)
Mbarara University of Science and Technology (UG), Kyambogo University (UG)
Climate action
Openalex Percentile: Top 78%
Remote Sensing in Agriculture
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.