IDEAS home Printed from https://ideas.repec.org/a/gam/jmathe/v11y2023i13p2950-d1184972.html
   My bibliography  Save this article

User2Vec: A Novel Representation for the Information of the Social Networks for Stock Market Prediction Using Convolutional and Recurrent Neural Networks

Author

Listed:
  • Pegah Eslamieh

    (Computer Engineering Department, Amirkabir University of Technology, Tehran 1591634311, Iran)

  • Mehdi Shajari

    (Computer Engineering Department, Amirkabir University of Technology, Tehran 1591634311, Iran)

  • Ahmad Nickabadi

    (Computer Engineering Department, Amirkabir University of Technology, Tehran 1591634311, Iran)

Abstract

Predicting stock market trends is an intriguing and complex problem, which has drawn considerable attention from the research community. In recent years, researchers have employed machine learning techniques to develop prediction models by using numerical market data and textual messages on social networks as their primary sources of information. In this article, we propose User2Vec, a novel approach to improve stock market prediction accuracy, which contributes to more informed investment decision making. User2Vec is a unique method that recognizes the unequal impact of different user opinions on specific stocks, and it assigns weights to these opinions based on the accuracy of their associated social metrics. The User2Vec model begins by encoding each message as a vector. These vectors are then fed into a convolutional neural network (CNN) to generate an aggregated feature vector. Following this, a stacked bi-directional long short-term memory (LSTM) model provides the final representation of the input data over a period. LSTM-based models have shown promising results by effectively capturing the temporal patterns in time series market data. Finally, the output is fed into a classifier that predicts the trend of the target stock price for the next day. In contrast to previous attempts, User2Vec considers not only the sentiment of the messages, but also the social information associated with the users and the text content of the messages. It has been empirically proven that this inclusion provides valuable information for predicting stock direction, thereby significantly enhancing prediction accuracy. The proposed model was rigorously evaluated using various combinations of market data, encoded messages, and social features. The empirical studies conducted on the Dow Jones 30 stock market showed the model’s superiority over existing state-of-the-art models. The findings of these experiments reveal that including social information about users and their tweets, in addition to the sentiment and textual content of their messages, significantly improves the accuracy of stock market prediction.

Suggested Citation

  • 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.
  • Handle: RePEc:gam:jmathe:v:11:y:2023:i:13:p:2950-:d:1184972
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/2227-7390/11/13/2950/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/2227-7390/11/13/2950/
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Marco Corazza & Davide De March & Giacomo di Tollo, 2021. "Design of adaptive Elman networks for credit risk assessment," Quantitative Finance, Taylor & Francis Journals, vol. 21(2), pages 323-340, February.
    2. Mingyue Qiu & Yu Song, 2016. "Predicting the Direction of Stock Market Index Movement Using an Optimized Artificial Neural Network Model," PLOS ONE, Public Library of Science, vol. 11(5), pages 1-11, May.
    3. Wei Bao & Jun Yue & Yulei Rao, 2017. "A deep learning framework for financial time series using stacked autoencoders and long-short term memory," PLOS ONE, Public Library of Science, vol. 12(7), pages 1-24, July.
    4. Malcolm Baker & Jeffrey Wurgler, 2007. "Investor Sentiment in the Stock Market," Journal of Economic Perspectives, American Economic Association, vol. 21(2), pages 129-152, Spring.
    5. Lili Li & Shan Leng & Jun Yang & Mei Yu, 2016. "Stock Market Autoregressive Dynamics: A Multinational Comparative Study with Quantile Regression," Mathematical Problems in Engineering, Hindawi, vol. 2016, pages 1-15, September.
    6. Salvatore Ammirato & Gerarda Fattoruso & Antonio Violi, 2022. "Parsimonious AHP-DEA Integrated Approach for Efficiency Evaluation of Production Processes," JRFM, MDPI, vol. 15(7), pages 1-15, June.
    7. 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.
    8. Bollerslev, Tim, 1986. "Generalized autoregressive conditional heteroskedasticity," Journal of Econometrics, Elsevier, vol. 31(3), pages 307-327, April.
    9. Lim, Bryan & Arık, Sercan Ö. & Loeff, Nicolas & Pfister, Tomas, 2021. "Temporal Fusion Transformers for interpretable multi-horizon time series forecasting," International Journal of Forecasting, Elsevier, vol. 37(4), pages 1748-1764.
    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. Cai, Yi & Tang, Zhenpeng & Chen, Ying, 2024. "Can real-time investor sentiment help predict the high-frequency stock returns? Evidence from a mixed-frequency-rolling decomposition forecasting method," The North American Journal of Economics and Finance, Elsevier, vol. 72(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. Andrea Bucci, 2020. "Realized Volatility Forecasting with Neural Networks," Journal of Financial Econometrics, Oxford University Press, vol. 18(3), pages 502-531.
    2. Frank, Johannes, 2023. "Forecasting realized volatility in turbulent times using temporal fusion transformers," FAU Discussion Papers in Economics 03/2023, Friedrich-Alexander University Erlangen-Nuremberg, Institute for Economics.
    3. Eliana Angelini & Matteo Foglia, 2018. "The Relationship Between IPO and Macroeconomics Factors: an Empirical Analysis from UK Market," Annals of Economics and Finance, Society for AEF, vol. 19(1), pages 319-336, May.
    4. Siganos, Antonios & Vagenas-Nanos, Evangelos & Verwijmeren, Patrick, 2014. "Facebook's daily sentiment and international stock markets," Journal of Economic Behavior & Organization, Elsevier, vol. 107(PB), pages 730-743.
    5. Refk Selmi & Jamal Bouoiyour, 2020. "Arab geopolitics in turmoil: Implications of Qatar-Gulf crisis for business," International Economics, CEPII research center, issue 161, pages 100-119.
    6. Yu, Jianfeng & Yuan, Yu, 2011. "Investor sentiment and the mean-variance relation," Journal of Financial Economics, Elsevier, vol. 100(2), pages 367-381, May.
    7. Ali, Fahad & Bouri, Elie & Naifar, Nader & Shahzad, Syed Jawad Hussain & AlAhmad, Mohammad, 2022. "An examination of whether gold-backed Islamic cryptocurrencies are safe havens for international Islamic equity markets," Research in International Business and Finance, Elsevier, vol. 63(C).
    8. 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.
    9. Oscar V. De la Torre-Torres & José Álvarez-García & María de la Cruz del Río-Rama, 2024. "An EM/MCMC Markov-Switching GARCH Behavioral Algorithm for Random-Length Lumber Futures Trading," Mathematics, MDPI, vol. 12(3), pages 1-21, February.
    10. Sadefo Kamdem, Jules & Bandolo Essomba, Rose & Njong Berinyuy, James, 2020. "Deep learning models for forecasting and analyzing the implications of COVID-19 spread on some commodities markets volatilities," Chaos, Solitons & Fractals, Elsevier, vol. 140(C).
    11. Ahmed El Oubani, 2024. "Investor sentiment and sustainable investment: evidence from North African stock markets," Future Business Journal, Springer, vol. 10(1), pages 1-20, December.
    12. Heni Boubaker & Giorgio Canarella & Rangan Gupta & Stephen M. Miller, 2023. "A Hybrid ARFIMA Wavelet Artificial Neural Network Model for DJIA Index Forecasting," Computational Economics, Springer;Society for Computational Economics, vol. 62(4), pages 1801-1843, December.
    13. Charlotte Christiansen & Maik Schmeling & Andreas Schrimpf, 2012. "A comprehensive look at financial volatility prediction by economic variables," Journal of Applied Econometrics, John Wiley & Sons, Ltd., vol. 27(6), pages 956-977, September.
    14. Ehsan Hoseinzade & Saman Haratizadeh & Arash Khoeini, 2019. "U-CNNpred: A Universal CNN-based Predictor for Stock Markets," Papers 1911.12540, arXiv.org.
    15. Oana Mădălina POPESCU, 2019. "Investor Sentiment on the Stock Market using Artificial Neural Networks," REVISTA DE MANAGEMENT COMPARAT INTERNATIONAL/REVIEW OF INTERNATIONAL COMPARATIVE MANAGEMENT, Faculty of Management, Academy of Economic Studies, Bucharest, Romania, vol. 20(5), pages 508-518, December.
    16. Chen, Xiaoyu & Chiang, Thomas C., 2016. "Stock returns and economic forces—An empirical investigation of Chinese markets," Global Finance Journal, Elsevier, vol. 30(C), pages 45-65.
    17. Omar Esqueda & Yongli Luo & Dave Jackson, 2015. "The linkage between the U.S. “fear index” and ADR premiums under non-frictionless stock markets," Journal of Economics and Finance, Springer;Academy of Economics and Finance, vol. 39(3), pages 541-556, July.
    18. 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.
    19. Ao Yang & Qing Ye & Jia Zhai, 2024. "Volatility forecasting with Hybrid‐long short‐term memory models: Evidence from the COVID‐19 period," International Journal of Finance & Economics, John Wiley & Sons, Ltd., vol. 29(3), pages 2766-2786, July.
    20. Ehsan Hoseinzade & Saman Haratizadeh, 2018. "CNNPred: CNN-based stock market prediction using several data sources," Papers 1810.08923, arXiv.org.

    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:gam:jmathe:v:11:y:2023:i:13:p:2950-:d:1184972. 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: MDPI Indexing Manager (email available below). General contact details of provider: https://www.mdpi.com .

    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.