IDEAS home Printed from https://ideas.repec.org/a/eee/riibaf/v88y2026ics0275531926001686.html

Does sentiment analysis bring more responsive and comprehensive commodity price forecasting: Case of machine learning models?

Author

Listed:
  • Elkarnighi, Kenza
  • Alaoui, Abdelkader El
  • Sarhani, Malek
  • Alaoui, Said Ouatik El

Abstract

Accurate forecasting of commodity prices is vital for effective decision-making in trading, investment, and policy. This study combines sentiment analysis with Machine Learning (ML) and Natural Language Processing (NLP) techniques to enhance predictive performance. Sentiment data are extracted from Reddit discussions, Google News articles and Twitter(X) and incorporated alongside historical price data for eleven key commodities across the energy, agriculture, and metals sectors. To better understand the underlying price dynamics, Local Lyapunov Exponent (LLE) and Hurst Exponent (HE) are applied to high-frequency data, identifying chaotic or persistent patterns that guide model selection. The predictive performance of several models is evaluated, including Linear Regression (LR), Random Forest (RF), Gradient Boosting Regressor (GBR), Deep Neural Networks (DNN), and Long Short-Term Memory (LSTM) networks. The results indicate that sentiment integration improves forecasting accuracy in selected markets rather than uniformly across all commodities. RF and GBR maintain strong performance on structured data, and sentiment features further reduce MSE in specific cases. LSTM and DNN models show the largest relative gains when enriched with sentiment features, particularly in news-sensitive markets. To enhance transparency and confidence in model results, SHapley Additive exPlanations (SHAP) values are used to interpret the influence of input characteristics, including sentiment signals, on individual predictions. These findings highlight the value of hybrid forecasting models that integrate both quantitative and qualitative inputs using ML and NLP tools to provide more adaptive and robust price predictions in dynamic commodity markets. This offers valuable insights into the role of market sentiment and historical trends in shaping price dynamics.

Suggested Citation

  • Elkarnighi, Kenza & Alaoui, Abdelkader El & Sarhani, Malek & Alaoui, Said Ouatik El, 2026. "Does sentiment analysis bring more responsive and comprehensive commodity price forecasting: Case of machine learning models?," Research in International Business and Finance, Elsevier, vol. 88(C).
  • Handle: RePEc:eee:riibaf:v:88:y:2026:i:c:s0275531926001686
    DOI: 10.1016/j.ribaf.2026.103441
    as

    Download full text from publisher

    File URL: http://www.sciencedirect.com/science/article/pii/S0275531926001686
    Download Restriction: Full text for ScienceDirect subscribers only

    File URL: https://libkey.io/10.1016/j.ribaf.2026.103441?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    As the access to this document is restricted, you may want to

    for a different version of it.

    More about this item

    Keywords

    ;
    ;
    ;
    ;
    ;
    ;

    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:eee:riibaf:v:88:y:2026:i:c:s0275531926001686. 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: Catherine Liu (email available below). General contact details of provider: http://www.elsevier.com/locate/ribaf .

    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.