IDEAS home Printed from https://ideas.repec.org/p/arx/papers/2404.02053.html
   My bibliography  Save this paper

BERTopic-Driven Stock Market Predictions: Unraveling Sentiment Insights

Author

Listed:
  • Enmin Zhu
  • Jerome Yen

Abstract

This paper explores the intersection of Natural Language Processing (NLP) and financial analysis, focusing on the impact of sentiment analysis in stock price prediction. We employ BERTopic, an advanced NLP technique, to analyze the sentiment of topics derived from stock market comments. Our methodology integrates this sentiment analysis with various deep learning models, renowned for their effectiveness in time series and stock prediction tasks. Through comprehensive experiments, we demonstrate that incorporating topic sentiment notably enhances the performance of these models. The results indicate that topics in stock market comments provide implicit, valuable insights into stock market volatility and price trends. This study contributes to the field by showcasing the potential of NLP in enriching financial analysis and opens up avenues for further research into real-time sentiment analysis and the exploration of emotional and contextual aspects of market sentiment. The integration of advanced NLP techniques like BERTopic with traditional financial analysis methods marks a step forward in developing more sophisticated tools for understanding and predicting market behaviors.

Suggested Citation

  • Enmin Zhu & Jerome Yen, 2024. "BERTopic-Driven Stock Market Predictions: Unraveling Sentiment Insights," Papers 2404.02053, arXiv.org, revised Apr 2024.
  • Handle: RePEc:arx:papers:2404.02053
    as

    Download full text from publisher

    File URL: http://arxiv.org/pdf/2404.02053
    File Function: Latest version
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Guo, Kun & Sun, Yi & Qian, Xin, 2017. "Can investor sentiment be used to predict the stock price? Dynamic analysis based on China stock market," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 469(C), pages 390-396.
    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. Zhao, Ruwei, 2020. "Quantifying the cross sectional relation of daily happiness sentiment and stock return: Evidence from US," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 538(C).
    2. Jian Guo & Saizhuo Wang & Lionel M. Ni & Heung-Yeung Shum, 2022. "Quant 4.0: Engineering Quantitative Investment with Automated, Explainable and Knowledge-driven Artificial Intelligence," Papers 2301.04020, arXiv.org.
    3. Guo, Peng & Shi, Jing, 2024. "Geopolitical risks, investor sentiment and industry stock market volatility in China: Evidence from a quantile regression approach," The North American Journal of Economics and Finance, Elsevier, vol. 72(C).
    4. Gao, Yang & Wang, Yaojun & Wang, Chao & Liu, Chao, 2018. "Internet attention and information asymmetry: Evidence from Qihoo 360 search data on the Chinese stock market," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 510(C), pages 802-811.
    5. Ning Wang & Shanhui Ke & Yibo Chen & Tao Yan & Andrew Lim, 2019. "Textual Sentiment of Chinese Microblog Toward the Stock Market," International Journal of Information Technology & Decision Making (IJITDM), World Scientific Publishing Co. Pte. Ltd., vol. 18(02), pages 649-671, March.
    6. Yue-Jun Zhang & Shu-Hui Li, 2019. "The impact of investor sentiment on crude oil market risks: evidence from the wavelet approach," Quantitative Finance, Taylor & Francis Journals, vol. 19(8), pages 1357-1371, August.
    7. Pegah Eslamieh & Mehdi Shajari & Ahmad Nickabadi, 2023. "User2Vec: A Novel Representation for the Information of the Social Networks for Stock Market Prediction Using Convolutional and Recurrent Neural Networks," Mathematics, MDPI, vol. 11(13), pages 1-26, July.
    8. Shao, Ying-Hui & Yang, Yan-Hong & Zhou, Wei-Xing, 2022. "How does economic policy uncertainty comove with stock markets: New evidence from symmetric thermal optimal path method," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 604(C).
    9. Liwei Jin & Xianghui Yuan & Jun Long & Xiang Li & Feng Lian, 2022. "Price discovery in the CSI 300 Index derivatives markets," Journal of Futures Markets, John Wiley & Sons, Ltd., vol. 42(7), pages 1352-1368, July.
    10. Rai, Anish & Mahata, Ajit & Nurujjaman, Md & Majhi, Sushovan & Debnath, Kanish, 2022. "A sentiment-based modeling and analysis of stock price during the COVID-19: U- and Swoosh-shaped recovery," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 592(C).
    11. Haritha P H, 2024. "The Effect of Heuristics on Indian Stock Market Investors: Investor Sentiment as a Mediator," Management and Labour Studies, XLRI Jamshedpur, School of Business Management & Human Resources, vol. 49(1), pages 43-61, February.
    12. Wang, Gaoshan & Yu, Guangjin & Shen, Xiaohong, 2021. "The effect of online environmental news on green industry stocks: The mediating role of investor sentiment," Physica A: Statistical Mechanics and its Applications, Elsevier, vol. 573(C).
    13. Yao, Can-Zhong & Li, Hong-Yu, 2020. "Time-varying lead–lag structure between investor sentiment and stock market," The North American Journal of Economics and Finance, Elsevier, vol. 52(C).
    14. Yang, Yan-Hong & Shao, Ying-Hui, 2020. "Time-dependent lead-lag relationships between the VIX and VIX futures markets," The North American Journal of Economics and Finance, Elsevier, vol. 53(C).
    15. Yousra Trichilli & Mouna Abdelhédi & Mouna Boujelbène Abbes, 2020. "The thermal optimal path model: Does Google search queries help to predict dynamic relationship between investor’s sentiment and indexes returns?," Journal of Asset Management, Palgrave Macmillan, vol. 21(3), pages 261-279, May.
    16. Shah Saeed Hassan Chowdhury, 2023. "Spillover of Sentiments Between the GCC Stock Markets," Global Business Review, International Management Institute, vol. 24(6), pages 1434-1453, December.
    17. Wei Liu & Yoshihisa Suzuki & Shuyi Du, 2024. "Forecasting the Stock Price of Listed Innovative SMEs Using Machine Learning Methods Based on Bayesian optimization: Evidence from China," Computational Economics, Springer;Society for Computational Economics, vol. 63(5), pages 2035-2068, May.
    18. Shi, Yangyan & Feng, Yu & Zhang, Qi & Shuai, Jing & Niu, Jiangxin, 2023. "Does China's new energy vehicles supply chain stock market have risk spillovers? Evidence from raw material price effect on lithium batteries," Energy, Elsevier, vol. 262(PA).
    19. Mo, Guoli & Zhang, Weiguo & Tan, Chunzhi & Liu, Xing, 2022. "Predicting the portfolio risk of high-dimensional international stock indices with dynamic spatial dependence," The North American Journal of Economics and Finance, Elsevier, vol. 59(C).
    20. Tang, Zhenpeng & Lin, Qiaofeng & Cai, Yi & Chen, Kaijie & Liu, Dinggao, 2024. "Harnessing the power of real-time forum opinion: Unveiling its impact on stock market dynamics using intraday high-frequency data in China," International Review of Financial Analysis, Elsevier, vol. 93(C).

    More about this item

    NEP fields

    This paper has been announced in the following NEP Reports:

    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:arx:papers:2404.02053. 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: arXiv administrators (email available below). General contact details of provider: http://arxiv.org/ .

    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.