Predicting Food Price Trends in Nigeria Using Advanced Machine Learning Techniques: LSTM and XGBoost
Mansur Adamu Abubakar,
Blessing E. Okpe and
Moses Audu
Additional contact information
Mansur Adamu Abubakar: Nirsal, Nigeria
Blessing E. Okpe: Nirsal, Nigeria
Moses Audu: Nirsal, Nigeria
International Journal of Research and Innovation in Social Science, 2025, vol. 9, issue 5, 3228-3237
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.
Date: 2025
References: Add references at CitEc
Citations:
Downloads: (external link)
https://www.rsisinternational.org/journals/ijriss/ ... ssue-5/3228-3237.pdf (application/pdf)
https://rsisinternational.org/journals/ijriss/arti ... es-lstm-and-xgboost/ (text/html)
Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.
Export reference: BibTeX
RIS (EndNote, ProCite, RefMan)
HTML/Text
Persistent link: https://EconPapers.repec.org/RePEc:bcp:journl:v:9:y:2025:issue-5:p:3228-3237
Access Statistics for this article
International Journal of Research and Innovation in Social Science is currently edited by Dr. Nidhi Malhan
More articles in International Journal of Research and Innovation in Social Science from International Journal of Research and Innovation in Social Science (IJRISS)
Bibliographic data for series maintained by Dr. Pawan Verma ().