IDEAS home Printed from https://ideas.repec.org/a/eee/eneeco/v149y2025ics0140988325004736.html

A sentiment-based approach to predict energy price volatility using distilRoBERTa and GARCH models

Author

Listed:
  • Nguyen, Bich Ngoc

Abstract

Previous studies have extensively examined the impact of information on short-term energy price fluctuations, using various forms to extract sentiment, such as search volume and news headlines. However, the influence of social media data on energy prices has received little attention. Therefore, we extend the existing literature by using tweets to analyze the impact of social media on the change in energy prices. Furthermore, we propose a new approach to classify text data using the distilRoBERTa fill-mask task, which provides direct predictions of classification keywords, rather than manually categorizing them as the traditional classification task does. The sentiment volatility then shows a significant impact on the volatility of the crude oil and natural gas prices, although an asymmetric effect is only observed for WTI crude oil. Our findings also indicate that the exponential GARCH model offers the best fit for energy price returns and sentiment volatility. In general, incorporating sentiment volatility enhances the performance of modeling the short-term volatility of crude oil and natural gas prices and suggests that social media seem to impact the uncertainty level and the expectation of customers and investors regarding energy prices.

Suggested Citation

  • Nguyen, Bich Ngoc, 2025. "A sentiment-based approach to predict energy price volatility using distilRoBERTa and GARCH models," Energy Economics, Elsevier, vol. 149(C).
  • Handle: RePEc:eee:eneeco:v:149:y:2025:i:c:s0140988325004736
    DOI: 10.1016/j.eneco.2025.108646
    as

    Download full text from publisher

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

    File URL: https://libkey.io/10.1016/j.eneco.2025.108646?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.

    References listed on IDEAS

    as
    1. Park, Jungwook & Ratti, Ronald A., 2008. "Oil price shocks and stock markets in the U.S. and 13 European countries," Energy Economics, Elsevier, vol. 30(5), pages 2587-2608, September.
    2. Nelson, Daniel B, 1991. "Conditional Heteroskedasticity in Asset Returns: A New Approach," Econometrica, Econometric Society, vol. 59(2), pages 347-370, March.
    3. Picault, Matthieu & Renault, Thomas, 2017. "Words are not all created equal: A new measure of ECB communication," Journal of International Money and Finance, Elsevier, vol. 79(C), pages 136-156.
    4. Xu Gong & Keqin Guan & Qiyang Chen, 2022. "The role of textual analysis in oil futures price forecasting based on machine learning approach," Journal of Futures Markets, John Wiley & Sons, Ltd., vol. 42(10), pages 1987-2017, October.
    5. Reboredo, Juan C., 2015. "Is there dependence and systemic risk between oil and renewable energy stock prices?," Energy Economics, Elsevier, vol. 48(C), pages 32-45.
    6. Wang, Yaw-Huei & Keswani, Aneel & Taylor, Stephen J., 2006. "The relationships between sentiment, returns and volatility," International Journal of Forecasting, Elsevier, vol. 22(1), pages 109-123.
    7. Michael Sockin & Wei Xiong, 2015. "Informational Frictions and Commodity Markets," Journal of Finance, American Finance Association, vol. 70(5), pages 2063-2098, October.
    8. Efimova, Olga & Serletis, Apostolos, 2014. "Energy markets volatility modelling using GARCH," Energy Economics, Elsevier, vol. 43(C), pages 264-273.
    9. repec:aen:journl:ej37-si1-broadstock is not listed on IDEAS
    10. Renault, Thomas, 2017. "Intraday online investor sentiment and return patterns in the U.S. stock market," Journal of Banking & Finance, Elsevier, vol. 84(C), pages 25-40.
    11. Ghoddusi, Hamed & Creamer, Germán G. & Rafizadeh, Nima, 2019. "Machine learning in energy economics and finance: A review," Energy Economics, Elsevier, vol. 81(C), pages 709-727.
    12. Gupta, Kartick & Banerjee, Rajabrata, 2019. "Does OPEC news sentiment influence stock returns of energy firms in the United States?," Energy Economics, Elsevier, vol. 77(C), pages 34-45.
    13. Matthieu Picault & Thomas Renault, 2017. "Words are not all created equal: A new measure of ECB communication," Université Paris1 Panthéon-Sorbonne (Post-Print and Working Papers) hal-03205121, HAL.
    14. David C. Broadstock & Ying Fan & Qiang Ji & Dayong Zhang, 2016. "Shocks and Stocks: A Bottom-up Assessment of the Relationship Between Oil Prices, Gasoline Prices and the Returns of Chinese Firms," The Energy Journal, , vol. 37(1_suppl), pages 55-86, January.
    15. Chen, Rongda & Bao, Weiwei & Jin, Chenglu, 2021. "Investor sentiment and predictability for volatility on energy futures Markets: Evidence from China," International Review of Economics & Finance, Elsevier, vol. 75(C), pages 112-129.
    16. Afkhami, Mohamad & Cormack, Lindsey & Ghoddusi, Hamed, 2017. "Google search keywords that best predict energy price volatility," Energy Economics, Elsevier, vol. 67(C), pages 17-27.
    17. Thomas Renault, 2017. "Intraday online investor sentiment and return patterns in the U.S. stock market," Université Paris1 Panthéon-Sorbonne (Post-Print and Working Papers) hal-03205113, HAL.
    18. Engle, Robert F & Sheppard, Kevin K, 2001. "Theoretical and Empirical Properties of Dynamic Conditional Correlation Multivariate GARCH," University of California at San Diego, Economics Working Paper Series qt5s2218dp, Department of Economics, UC San Diego.
    19. Scarcioffolo, Alexandre R. & Etienne, Xiaoli L., 2021. "Regime-switching energy price volatility: The role of economic policy uncertainty," International Review of Economics & Finance, Elsevier, vol. 76(C), pages 336-356.
    20. Lutz Kilian & Robert J. Vigfusson, 2011. "Are the responses of the U.S. economy asymmetric in energy price increases and decreases?," Quantitative Economics, Econometric Society, vol. 2(3), pages 419-453, November.
    21. Peter Ferderer, J., 1996. "Oil price volatility and the macroeconomy," Journal of Macroeconomics, Elsevier, vol. 18(1), pages 1-26.
    22. Czudaj, Robert L., 2022. "Heterogeneity of beliefs and information rigidity in the crude oil market: Evidence from survey data," European Economic Review, Elsevier, vol. 143(C).
    23. Schmidbauer, Harald & Rösch, Angi, 2012. "OPEC news announcements: Effects on oil price expectation and volatility," Energy Economics, Elsevier, vol. 34(5), pages 1656-1663.
    24. Kenneth J. Singleton, 2014. "Investor Flows and the 2008 Boom/Bust in Oil Prices," Management Science, INFORMS, vol. 60(2), pages 300-318, February.
    25. Sadorsky, Perry, 2012. "Correlations and volatility spillovers between oil prices and the stock prices of clean energy and technology companies," Energy Economics, Elsevier, vol. 34(1), pages 248-255.
    26. Thomas Dimpfl & Stephan Jank, 2016. "Can Internet Search Queries Help to Predict Stock Market Volatility?," European Financial Management, European Financial Management Association, vol. 22(2), pages 171-192, March.
    27. Jiang, Zhe & Zhang, Lin & Zhang, Lingling & Wen, Bo, 2022. "Investor sentiment and machine learning: Predicting the price of China's crude oil futures market," Energy, Elsevier, vol. 247(C).
    28. Li, Yuze & Jiang, Shangrong & Li, Xuerong & Wang, Shouyang, 2021. "The role of news sentiment in oil futures returns and volatility forecasting: Data-decomposition based deep learning approach," Energy Economics, Elsevier, vol. 95(C).
    29. Bollerslev, Tim, 1987. "A Conditionally Heteroskedastic Time Series Model for Speculative Prices and Rates of Return," The Review of Economics and Statistics, MIT Press, vol. 69(3), pages 542-547, August.
    30. Herrera, Ana María & Hu, Liang & Pastor, Daniel, 2018. "Forecasting crude oil price volatility," International Journal of Forecasting, Elsevier, vol. 34(4), pages 622-635.
    31. Chen, Jiayuan & Muckley, Cal B. & Bredin, Don, 2017. "Is information assimilated at announcements in the European carbon market?," Energy Economics, Elsevier, vol. 63(C), pages 234-247.
    32. Jawadi, Fredj & Bourghelle, David & Rozin, Philippe & Cheffou, Abdoulkarim Idi & Uddin, Gazi Salah, 2024. "Sentiment and energy price volatility: A nonlinear high frequency analysis," Energy Economics, Elsevier, vol. 133(C).
    33. Song, Yingjie & Ji, Qiang & Du, Ya-Juan & Geng, Jiang-Bo, 2019. "The dynamic dependence of fossil energy, investor sentiment and renewable energy stock markets," Energy Economics, Elsevier, vol. 84(C).
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Herrera, Gabriel Paes & Constantino, Michel & Su, Jen-Je & Naranpanawa, Athula, 2022. "Renewable energy stocks forecast using Twitter investor sentiment and deep learning," Energy Economics, Elsevier, vol. 114(C).
    2. Yan, Wan-Lin & Cheung, Adrian (Wai Kong), 2025. "Quantile connectedness among climate policy uncertainty, news sentiment, oil and renewables in China," Research in International Business and Finance, Elsevier, vol. 76(C).
    3. Shen, Yiran & Liu, Chang & Sun, Xiaolei & Guo, Kun, 2023. "Investor sentiment and the Chinese new energy stock market: A risk–return perspective," International Review of Economics & Finance, Elsevier, vol. 84(C), pages 395-408.
    4. Xu, Zhiwei & Gan, Shiqi & Hua, Xia & Xiong, Yujie, 2024. "Can the sentiment of the official media predict the return volatility of the Chinese crude oil futures?," Energy Economics, Elsevier, vol. 140(C).
    5. Lang, Korbinian & Auer, Benjamin R., 2020. "The economic and financial properties of crude oil: A review," The North American Journal of Economics and Finance, Elsevier, vol. 52(C).
    6. Pilar Gargallo & Luis Lample & Jesús A. Miguel & Manuel Salvador, 2021. "Co-Movements between Eu Ets and the Energy Markets: A Var-Dcc-Garch Approach," Mathematics, MDPI, vol. 9(15), pages 1-36, July.
    7. Wang, Wenzhao & Su, Chen & Duxbury, Darren, 2022. "The conditional impact of investor sentiment in global stock markets: A two-channel examination," Journal of Banking & Finance, Elsevier, vol. 138(C).
    8. Seulki Chung, 2024. "Modelling and Forecasting Energy Market Volatility Using GARCH and Machine Learning Approach," Papers 2405.19849, arXiv.org.
    9. Chatziantoniou, Ioannis & Filippidis, Michail & Filis, George & Gabauer, David, 2021. "A closer look into the global determinants of oil price volatility," Energy Economics, Elsevier, vol. 95(C).
    10. Maghyereh, Aktham & Abdoh, Hussein, 2021. "The impact of extreme structural oil-price shocks on clean energy and oil stocks," Energy, Elsevier, vol. 225(C).
    11. Bouteska, Ahmed & Cardillo, Giovanni & Harasheh, Murad, 2023. "Is it all about noise? Investor sentiment and risk nexus: evidence from China," Finance Research Letters, Elsevier, vol. 57(C).
    12. Hua, Xia & Dong, Dairui & Xu, Zhiwei & Huang, Wentao, 2025. "Official media sentiments toward energy and equity returns: Evidence from China," Energy, Elsevier, vol. 340(C).
    13. Ahmed, Walid M.A., 2024. "Attention to climate change and eco-friendly financial-asset prices: A quantile ARDL approach," Energy Economics, Elsevier, vol. 136(C).
    14. Isabelle Royer & Lionel Garreau & Thomas Roulet, 2019. "La quantification des données qualitatives : intérêts et difficultés en sciences de gestion," Post-Print hal-02303982, HAL.
    15. Stavros Degiannakis & George Filis & Vipin Arora, 2018. "Oil Prices and Stock Markets: A Review of the Theory and Empirical Evidence," The Energy Journal, , vol. 39(5), pages 85-130, September.
    16. Song, Ziyu & Gong, Xiaomin & Zhang, Cheng & Yu, Changrui, 2023. "Investor sentiment based on scaled PCA method: A powerful predictor of realized volatility in the Chinese stock market," International Review of Economics & Finance, Elsevier, vol. 83(C), pages 528-545.
    17. Mariano González-Sánchez & M. Encina Morales de Vega, 2021. "Influence of Bloomberg’s Investor Sentiment Index: Evidence from European Union Financial Sector," Mathematics, MDPI, vol. 9(4), pages 1-21, February.
    18. Herrera, Ana María & Karaki, Mohamad B. & Rangaraju, Sandeep Kumar, 2019. "Oil price shocks and U.S. economic activity," Energy Policy, Elsevier, vol. 129(C), pages 89-99.
    19. Bouteska, Ahmed & Ha, Le Thanh & Bhuiyan, Faruk & Sharif, Taimur & Abedin, Mohammad Zoynul, 2024. "Contagion between investor sentiment and green bonds in China during the global uncertainties," International Review of Economics & Finance, Elsevier, vol. 93(PA), pages 469-484.
    20. Liu, Zhenhua & Zhang, Huiying & Ding, Zhihua & Lv, Tao & Wang, Xu & Wang, Deqing, 2022. "When are the effects of economic policy uncertainty on oil–stock correlations larger? Evidence from a regime-switching analysis," Economic Modelling, Elsevier, vol. 114(C).

    More about this item

    Keywords

    ;
    ;
    ;
    ;
    ;

    JEL classification:

    • C22 - Mathematical and Quantitative Methods - - Single Equation Models; Single Variables - - - Time-Series Models; Dynamic Quantile Regressions; Dynamic Treatment Effect Models; Diffusion Processes
    • Q47 - Agricultural and Natural Resource Economics; Environmental and Ecological Economics - - Energy - - - Energy Forecasting

    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:eneeco:v:149:y:2025:i:c:s0140988325004736. 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.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with 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/eneco .

    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.