IDEAS home Printed from https://ideas.repec.org/a/eee/energy/v290y2024ics0360544223033480.html

A novel secondary decomposition method for forecasting crude oil price with twitter sentiment

Author

Listed:
  • Li, Jieyi
  • Qian, Shuangyue
  • Li, Ling
  • Guo, Yuanxuan
  • Wu, Jun
  • Tang, Ling

Abstract

With the ubiquity of the Internet, valuable social media data have been generated, and a promising idea for using sentiment from social media has emerged in oil price forecasting. To address the complexity of oil price, this study proposed a novel secondary decomposition framework with Twitter sentiment, in which Twitter sentiment provides new information and secondary decomposition technique reduces the difficulty of oil price forecasting. This methodology involves three major steps: (1) sentiment extraction, to collect and extract Twitter sentiment via the state-of-the-art sentiment analysis technique—Bidirectional Encoder Representations from Transformers (BERT); (2) secondary decomposition, to extract scale-aligned components from crude oil price and Twitter sentiment using bivariate empirical mode decomposition (BEMD) first and then decomposing the residual terms through GA-VMD; and (3) oil price prediction, including individual prediction at each intrinsic mode function (IMF) and ensemble prediction across different IMFs. With WTI oil price as a sample, the empirical study results indicate that the proposed novel learning paradigms statistically outperform their corresponding original techniques (without Twitter sentiment and secondary decomposition), semi-improved variants (with either Twitter sentiment or secondary decomposition), and similar counterparts (with one-time decomposition analysis) in terms of prediction accuracy.

Suggested Citation

  • Li, Jieyi & Qian, Shuangyue & Li, Ling & Guo, Yuanxuan & Wu, Jun & Tang, Ling, 2024. "A novel secondary decomposition method for forecasting crude oil price with twitter sentiment," Energy, Elsevier, vol. 290(C).
  • Handle: RePEc:eee:energy:v:290:y:2024:i:c:s0360544223033480
    DOI: 10.1016/j.energy.2023.129954
    as

    Download full text from publisher

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

    File URL: https://libkey.io/10.1016/j.energy.2023.129954?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. Ravi Kumar, P. & Ravi, V., 2007. "Bankruptcy prediction in banks and firms via statistical and intelligent techniques - A review," European Journal of Operational Research, Elsevier, vol. 180(1), pages 1-28, July.
    2. Liu, Yuanyuan & Niu, Zibo & Suleman, Muhammad Tahir & Yin, Libo & Zhang, Hongwei, 2022. "Forecasting the volatility of crude oil futures: The role of oil investor attention and its regime switching characteristics under a high-frequency framework," Energy, Elsevier, vol. 238(PA).
    3. Abdollahi, Hooman, 2020. "A novel hybrid model for forecasting crude oil price based on time series decomposition," Applied Energy, Elsevier, vol. 267(C).
    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. Wuyue An & Lin Wang & Dongfeng Zhang, 2023. "Comprehensive commodity price forecasting framework using text mining methods," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 42(7), pages 1865-1888, November.
    6. Wu, Binrong & Wang, Lin & Wang, Sirui & Zeng, Yu-Rong, 2021. "Forecasting the U.S. oil markets based on social media information during the COVID-19 pandemic," Energy, Elsevier, vol. 226(C).
    7. Tang, Ling & Zhang, Chengyuan & Li, Ling & Wang, Shouyang, 2020. "A multi-scale method for forecasting oil price with multi-factor search engine data," Applied Energy, Elsevier, vol. 257(C).
    8. Li, Jingjing & Tang, Ling & Wang, Shouyang, 2020. "Forecasting crude oil price with multilingual search engine data," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 551(C).
    9. Xingrui Jiao & Yuping Song & Yang Kong & Xiaolong Tang, 2022. "Volatility forecasting for crude oil based on text information and deep learning PSO‐LSTM model," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 41(5), pages 933-944, August.
    10. Stephanie Beyer Díaz & Kristof Coussement & Arno de Caigny & Luis Fernando Pérez & Stefan Creemers, 2023. "Do the US president's tweets better predict oil prices? An empirical examination using long short-term memory networks," Post-Print hal-04543480, HAL.
    11. Weng, Futian & Zhang, Hongwei & Yang, Cai, 2021. "Volatility forecasting of crude oil futures based on a genetic algorithm regularization online extreme learning machine with a forgetting factor: The role of news during the COVID-19 pandemic," Resources Policy, Elsevier, vol. 73(C).
    12. Li, Jingmiao & Liu, Dehong, 2023. "Carbon price forecasting based on secondary decomposition and feature screening," Energy, Elsevier, vol. 278(PA).
    13. Tang, Ling & Wu, Yao & Yu, Lean, 2018. "A randomized-algorithm-based decomposition-ensemble learning methodology for energy price forecasting," Energy, Elsevier, vol. 157(C), pages 526-538.
    14. 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).
    15. Zhao, Yuan & Zhang, Weiguo & Gong, Xue & Wang, Chao, 2021. "A novel method for online real-time forecasting of crude oil price," Applied Energy, Elsevier, vol. 303(C).
    16. Jiangwei Liu & Xiaohong Huang, 2021. "Forecasting Crude Oil Price Using Event Extraction," Papers 2111.09111, arXiv.org.
    17. Ling Tang & Chengyuan Zhang & Tingfei Li & Ling Li, 2021. "A novel BEMD-based method for forecasting tourist volume with search engine data," Tourism Economics, , vol. 27(5), pages 1015-1038, August.
    18. Lucey, Brian & Ren, Boru, 2021. "Does news tone help forecast oil?," Economic Modelling, Elsevier, vol. 104(C).
    19. Sun, Wei & Huang, Chenchen, 2020. "A novel carbon price prediction model combines the secondary decomposition algorithm and the long short-term memory network," Energy, Elsevier, vol. 207(C).
    20. Yu, Lean & Zhao, Yaqing & Tang, Ling & Yang, Zebin, 2019. "Online big data-driven oil consumption forecasting with Google trends," International Journal of Forecasting, Elsevier, vol. 35(1), pages 213-223.
    21. Guo, Jingjun & Zhao, Zhengling & Sun, Jingyun & Sun, Shaolong, 2022. "Multi-perspective crude oil price forecasting with a new decomposition-ensemble framework," Resources Policy, Elsevier, vol. 77(C).
    22. Abdollahi, Hooman, 2023. "Oil price volatility and new evidence from news and Twitter," Energy Economics, Elsevier, vol. 122(C).
    23. Lu, Quanying & Li, Yuze & Chai, Jian & Wang, Shouyang, 2020. "Crude oil price analysis and forecasting: A perspective of “new triangle”," Energy Economics, Elsevier, vol. 87(C).
    24. Diebold, Francis X & Mariano, Roberto S, 2002. "Comparing Predictive Accuracy," Journal of Business & Economic Statistics, American Statistical Association, vol. 20(1), pages 134-144, January.
    25. Lutz Kilian, 2009. "Not All Oil Price Shocks Are Alike: Disentangling Demand and Supply Shocks in the Crude Oil Market," American Economic Review, American Economic Association, vol. 99(3), pages 1053-1069, June.
    26. Ling Tang & Wei Dai & Lean Yu & Shouyang Wang, 2015. "A Novel CEEMD-Based EELM Ensemble Learning Paradigm for Crude Oil Price Forecasting," International Journal of Information Technology & Decision Making (IJITDM), World Scientific Publishing Co. Pte. Ltd., vol. 14(01), pages 141-169.
    27. Hao Chen & Hua Liao & Bao-Jun Tang & Yi-Ming Wei, 2016. "Impacts of OPEC's political risk on the international crude oil prices: An empirical analysis based on the SVAR models," CEEP-BIT Working Papers 96, Center for Energy and Environmental Policy Research (CEEP), Beijing Institute of Technology.
    28. Wang, Jianzhou & Zhou, Yilin & Li, Zhiwu, 2022. "Hour-ahead photovoltaic generation forecasting method based on machine learning and multi objective optimization algorithm," Applied Energy, Elsevier, vol. 312(C).
    29. Deyun Wang & Yanling Liu & Hongyuan Luo & Chenqiang Yue & Sheng Cheng, 2017. "Day-Ahead PM 2.5 Concentration Forecasting Using WT-VMD Based Decomposition Method and Back Propagation Neural Network Improved by Differential Evolution," IJERPH, MDPI, vol. 14(7), pages 1-22, July.
    30. Abdar, Moloud & Basiri, Mohammad Ehsan & Yin, Junjun & Habibnezhad, Mahmoud & Chi, Guangqing & Nemati, Shahla & Asadi, Somayeh, 2020. "Energy choices in Alaska: Mining people's perception and attitudes from geotagged tweets," Renewable and Sustainable Energy Reviews, Elsevier, vol. 124(C).
    31. Panas, Epaminondas & Ninni, Vassilia, 2000. "Are oil markets chaotic? A non-linear dynamic analysis," Energy Economics, Elsevier, vol. 22(5), pages 549-568, October.
    Full references (including those not matched with items on IDEAS)

    Citations

    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.
    as


    Cited by:

    1. Zhicong Song & Harris Sik-Ho Tsang & Richard Tai-Chiu Hsung & Yulin Zhu & Wai-Lun Lo, 2025. "From Market Volatility to Predictive Insight: An Adaptive Transformer–RL Framework for Sentiment-Driven Financial Time-Series Forecasting," Forecasting, MDPI, vol. 7(4), pages 1-29, October.
    2. Wu, Chengqi & Chen, Tingqiang & Xin, Ziyu & Li, Caiyuan, 2025. "Can decomposition of influencing factors improve the ability of models to predict crude oil prices?," Energy, Elsevier, vol. 336(C).
    3. 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).
    4. Liu, Jinpei & Zhao, Xiaoman & Luo, Rui & Tao, Zhifu, 2024. "A novel link prediction model for interval-valued crude oil prices based on complex network and multi-source information," Applied Energy, Elsevier, vol. 376(PB).
    5. Dehao Dai & Ding Ma & Dou Liu & Kerui Geng & Yiqing Wang, 2026. "Beyond Polarity: Multi-Dimensional LLM Sentiment Signals for WTI Crude Oil Futures Return Prediction," Papers 2603.11408, arXiv.org, revised Mar 2026.
    6. Di Sha & Xianyi Zeng & Arne Johannssen & Ruolin Wang & Kim Phuc Tran, 2026. "A Two‐Stage NLP‐Driven Framework for Interval‐Valued Carbon Price Prediction Using Sentiment Analysis and Error Correction," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 45(2), pages 806-818, March.
    7. Jeong, Minhyuk & Ahn, Kwangwon, 2025. "Energy organization sentiment and oil return forecast," Energy Economics, Elsevier, vol. 141(C).
    8. Zhao, Xuefeng & Li, Xin & Liu, Tianyuan & Shen, Guibin, 2024. "How photovoltaic industry policies foster the development of silicon solar cell manufacturing technology: Based on Self-attention mechanism," Energy, Elsevier, vol. 308(C).

    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. He, Huizi & Sun, Mei & Li, Xiuming & Mensah, Isaac Adjei, 2022. "A novel crude oil price trend prediction method: Machine learning classification algorithm based on multi-modal data features," Energy, Elsevier, vol. 244(PA).
    2. Zhao, Zhengling & Sun, Shaolong & Sun, Jingyun & Wang, Shouyang, 2024. "A novel hybrid model with two-layer multivariate decomposition for crude oil price forecasting," Energy, Elsevier, vol. 288(C).
    3. Marcus Vinicius Santos & Fernando Morgado-Dias & Thiago C. Silva, 2023. "Oil Sector and Sentiment Analysis—A Review," Energies, MDPI, vol. 16(12), pages 1-29, June.
    4. Xu, Kunliang & Niu, Hongli, 2023. "Denoising or distortion: Does decomposition-reconstruction modeling paradigm provide a reliable prediction for crude oil price time series?," Energy Economics, Elsevier, vol. 128(C).
    5. Ling Tang & Chengyuan Zhang & Tingfei Li & Ling Li, 2021. "A novel BEMD-based method for forecasting tourist volume with search engine data," Tourism Economics, , vol. 27(5), pages 1015-1038, August.
    6. Zhao, Geya & Xue, Minggao & Cheng, Li, 2023. "A new hybrid model for multi-step WTI futures price forecasting based on self-attention mechanism and spatial–temporal graph neural network," Resources Policy, Elsevier, vol. 85(PB).
    7. Liang, Qian & Lin, Qingyuan & Guo, Mengzhuo & Lu, Quanying & Zhang, Dayong, 2025. "Forecasting crude oil prices: A Gated Recurrent Unit-based nonlinear Granger Causality model," International Review of Financial Analysis, Elsevier, vol. 102(C).
    8. Yang, Kun & Cheng, Zishu & Li, Mingchen & Wang, Shouyang & Wei, Yunjie, 2024. "Fortify the investment performance of crude oil market by integrating sentiment analysis and an interval-based trading strategy," Applied Energy, Elsevier, vol. 353(PA).
    9. Sun, Jingyun & Zhao, Panpan & Sun, Shaolong, 2022. "A new secondary decomposition-reconstruction-ensemble approach for crude oil price forecasting," Resources Policy, Elsevier, vol. 77(C).
    10. Yilin Ma & Yudong Wang & Weizhong Wang, 2026. "Forecasting crude oil prices: a novel model combined multisource predictors, factor screening, and forecast combination," Financial Innovation, Springer;Southwestern University of Finance and Economics, vol. 12(1), pages 1-37, December.
    11. Li, Guohui & Yin, Shibo & Yang, Hong, 2022. "A novel crude oil prices forecasting model based on secondary decomposition," Energy, Elsevier, vol. 257(C).
    12. Guo, Jingjun & Zhao, Zhengling & Sun, Jingyun & Sun, Shaolong, 2022. "Multi-perspective crude oil price forecasting with a new decomposition-ensemble framework," Resources Policy, Elsevier, vol. 77(C).
    13. Qian, Shuangyue & He, Zhuoming & Wan, Ruxing & Tang, Ling, 2026. "A multiscale analysis of spillover effects and price forecasting in China's carbon market," Energy, Elsevier, vol. 347(C).
    14. Li, Mingchen & Cheng, Zishu & Lin, Wencan & Wei, Yunjie & Wang, Shouyang, 2023. "What can be learned from the historical trend of crude oil prices? An ensemble approach for crude oil price forecasting," Energy Economics, Elsevier, vol. 123(C).
    15. Lin, Ling & Jiang, Yong & Xiao, Helu & Zhou, Zhongbao, 2020. "Crude oil price forecasting based on a novel hybrid long memory GARCH-M and wavelet analysis model," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 543(C).
    16. Qin Lu & Jingwen Liao & Kechi Chen & Yanhui Liang & Yu Lin, 2024. "Predicting Natural Gas Prices Based on a Novel Hybrid Model with Variational Mode Decomposition," Computational Economics, Springer;Society for Computational Economics, vol. 63(2), pages 639-678, February.
    17. Zhao, Lu-Tao & Zheng, Zhi-Yi & Wei, Yi-Ming, 2023. "Forecasting oil inventory changes with Google trends: A hybrid wavelet decomposer and ARDL-SVR ensemble model," Energy Economics, Elsevier, vol. 120(C).
    18. Xing, Li-Min & Zhang, Yue-Jun, 2022. "Forecasting crude oil prices with shrinkage methods: Can nonconvex penalty and Huber loss help?," Energy Economics, Elsevier, vol. 110(C).
    19. Zhe Jiang & Yunguo Lu & Lin Zhang, 2025. "Integrating sentiment information for risk prediction: the case of crude oil futures market in China," Empirical Economics, Springer, vol. 68(4), pages 1677-1718, April.
    20. Asit Kumar Das & Debahuti Mishra & Kaberi Das & Pradeep Kumar Mallick & Sachin Kumar & Mikhail Zymbler & Hesham El-Sayed, 2022. "Prophesying the Short-Term Dynamics of the Crude Oil Future Price by Adopting the Survival of the Fittest Principle of Improved Grey Optimization and Extreme Learning Machine," Mathematics, MDPI, vol. 10(7), pages 1-33, March.

    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:energy:v:290:y:2024:i:c:s0360544223033480. 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.journals.elsevier.com/energy .

    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.