Predicting Food Price Trends in Nigeria Using Advanced Machine Learning Techniques: LSTM and XGBoost

Food price volatility poses significant challenges to food security, poverty reduction, and economic planning in Nigeria. In response to these concerns, this study applies advanced machine learning techniques Long Short-Term Memory (LSTM) networks and Extreme Gradient Boosting (XGBoost) to forecast food prices using data from the World Food Programme spanning 2002 to 2024. Comprehensive data preprocessing steps were undertaken, including normalization and feature engineering, with the integration of external macroeconomic indicators such as inflation rates and fuel prices to enrich the models. Model performance was evaluated using standard metrics: Mean Squared Error (MSE), Root Mean Squared Error (RMSE), Mean Absolute Error (MAE), and the coefficient of determination (R²).The results demonstrate that the XG Boost model outperformed the LSTM network across all evaluation criteria. XGBoost achieved a lower RMSE of ₦62.94 and a lower MAE of ₦39.39, compared to LSTM’s RMSE of ₦84.27 and MAE of ₦49.20. Moreover, XGBoost attained a higher R² value of 0.91 versus LSTM’s 0.83, indicating greater predictive accuracy and better explanatory power. Both models successfully captured major historical price disruptions associated with the 2008–2010 global financial crisis and the COVID-19 pandemic, while a period of relative price stability was observed between 2016 and 2018.The findings highlight the value of machine learning models particularly XGBoost as effective tools for enhancing food price forecasting and supporting proactive, data-driven food security interventions. Future research could further improve predictive accuracy by incorporating real-time satellite imagery, weather variables, and broader macroeconomic indicators into forecasting frameworks.

Authors

Publication Details

Journal
International Journal of Research and Innovation in Social Science
Published
2025-01-01
DOI
https://doi.org/10.47772/ijriss.2025.905000251
Citations
3
Primary Topic
Forecasting Techniques and Applications
Type
article
Field-Weighted Citation Impact
6.32
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Predicting Food Price Trends in Nigeria Using Advanced Machine Learning Techniques: LSTM and XGBoost

M. Abubakar, Moses Audu, Blessing E. Okpe
3 citations
International Journal of Research and Innovation in Social Science
Forecasting Techniques and Applications
6.32
article

Predicting Food Price Trends in Nigeria Using Advanced Machine Learning Techniques: LSTM and XGBoost

M. Abubakar, Moses Audu, Blessing E. Okpe
article en
3 citations

Abstract

Food price volatility poses significant challenges to food security, poverty reduction, and economic planning in Nigeria. In response to these concerns, this study applies advanced machine learning techniques Long Short-Term Memory (LSTM) networks and Extreme Gradient Boosting (XGBoost) to forecast food prices using data from the World Food Programme spanning 2002 to 2024. Comprehensive data preprocessing steps were undertaken, including normalization and feature engineering, with the integration of external macroeconomic indicators such as inflation rates and fuel prices to enrich the models. Model performance was evaluated using standard metrics: Mean Squared Error (MSE), Root Mean Squared Error (RMSE), Mean Absolute Error (MAE), and the coefficient of determination (R²).The results demonstrate that the XG Boost model outperformed the LSTM network across all evaluation criteria. XGBoost achieved a lower RMSE of ₦62.94 and a lower MAE of ₦39.39, compared to LSTM’s RMSE of ₦84.27 and MAE of ₦49.20. Moreover, XGBoost attained a higher R² value of 0.91 versus LSTM’s 0.83, indicating greater predictive accuracy and better explanatory power. Both models successfully captured major historical price disruptions associated with the 2008–2010 global financial crisis and the COVID-19 pandemic, while a period of relative price stability was observed between 2016 and 2018.The findings highlight the value of machine learning models particularly XGBoost as effective tools for enhancing food price forecasting and supporting proactive, data-driven food security interventions. Future research could further improve predictive accuracy by incorporating real-time satellite imagery, weather variables, and broader macroeconomic indicators into forecasting frameworks.

International Journal of Research and Innovation in Social ScienceVol. IX(V)
Openalex Percentile: Top 4%
Forecasting Techniques and Applications
6.32
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.

Predicting Food Price Trends in Nigeria Using Advanced Machine Learning Techniques: LSTM and XGBoost — M. Abubakar, Moses Audu, et al. · International Journal of Research and Innovation in Social Science (2025) | TGRS Research Map | TGRS