IDEAS home Printed from https://ideas.repec.org/a/bcp/journl/v9y2025issue-5p3228-3237.html
   My bibliography  Save this article

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

Author

Listed:
  • Mansur Adamu Abubakar

    (Nirsal, Nigeria)

  • Blessing E. Okpe

    (Nirsal, Nigeria)

  • Moses Audu

    (Nirsal, Nigeria)

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.

Suggested Citation

  • Mansur Adamu Abubakar & Blessing E. Okpe & Moses Audu, 2025. "Predicting Food Price Trends in Nigeria Using Advanced Machine Learning Techniques: LSTM and XGBoost," International Journal of Research and Innovation in Social Science, International Journal of Research and Innovation in Social Science (IJRISS), vol. 9(5), pages 3228-3237, May.
  • Handle: RePEc:bcp:journl:v:9:y:2025:issue-5:p:3228-3237
    as

    Download full text from publisher

    File URL: https://www.rsisinternational.org/journals/ijriss/Digital-Library/volume-9-issue-5/3228-3237.pdf
    Download Restriction: no

    File URL: https://rsisinternational.org/journals/ijriss/articles/predicting-food-price-trends-in-nigeria-using-advanced-machine-learning-techniques-lstm-and-xgboost/
    Download Restriction: no
    ---><---

    More about this item

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:bcp:journl:v:9:y:2025:issue-5:p:3228-3237. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Dr. Pawan Verma (email available below). General contact details of provider: https://rsisinternational.org/journals/ijriss/ .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.