Stock Price Prediction using Multi-Faceted Information based on Deep Recurrent Neural Networks
- Department of Computer Engineering, North Tehran Branch, Islamic Azad University, Tehran, Iran
- Department of Electrical and Computer Engineering, Yadegar-e-Imam Khomeini (RAH) Shahre Rey Branch, Islamic Azad University, Tehran, Iran
- Department of Electrical Engineering and Electronic Engineering, Shahed University, Tehran, Iran
Received: 2024-10-09
Revised: 2024-11-22
Accepted: 2024-11-24
Published 2025-03-01
Copyright (c) 2025 Lida Shahbandari, Elahe Moradi, Mohammad Manthouri (Author)

This work is licensed under a Creative Commons Attribution-NoDerivatives 4.0 International License.
How to Cite
PDF views: 14
Abstract
Accurate prediction of stock market trends is crucial for informed investment decisions and effective portfolio management, ultimately leading to enhanced wealth creation and risk mitigation. This study proposes a novel approach for predicting stock prices in the stock market by integrating Convolutional Neural Networks (CNN) and Long Short-Term Memory (LSTM) networks, using sentiment analysis of social network data and candlestick data (price). The proposed methodology consists of two primary components: sentiment analysis of social networks and candlestick data. By amalgamating candlestick data with insights gleaned from Twitter, this approach facilitates a more detailed and accurate examination of market trends and patterns, ultimately leading to more effective stock price predictions. Additionally, a Random Forest algorithm is used to classify tweets as either positive or negative, allowing for a more subtle and informed assessment of market sentiment. This study uses CNN and LSTM networks to predict stock prices. The CNN extracts short-term features, while the LSTM models long-term dependencies. The integration of both networks enables a more comprehensive analysis of market trends and patterns, leading to more accurate stock price predictions.
Keywords
- Stock Price Prediction, Deep Learning, Sentiment Analysis, Long Short-Term Memory, Convolutional Neural Network
References
- S. Selvin, R. Vinayakumar, E. A. Gopalakrishnan, V. K. Menon, and K. P. Soman, “Stock price prediction using LSTM, RNN, and CNN-sliding window model,” in 2017 international conference on advances in computing, communications and informatics (icacci), 2017, pp. 1643–1647.
- G. di Tollo, J. Andria, and G. Filograsso, “The predictive power of social media sentiment: Evidence from cryptocurrencies and stock markets using nlp and stochastic anns,” Mathematics, vol. 11, no. 16, p. 3441, 2023.
- M. A. L. Khaniki and M. Manthouri, “Enhancing Price Prediction in Cryptocurrency Using Transformer Neural Network and Technical Indicators,” arXiv Prepr. arXiv2403.03606, 2024.
- J. Eapen, D. Bein, and A. Verma, “Novel deep learning model with CNN and bi-directional LSTM for improved stock market index prediction,” in 2019 IEEE 9th Annual Computing and communication workshop and Conference (CCWC), 2019, pp. 264–270.
- M. Jiang, W. Chen, H. Xu, and Y. Liu, “A novel interval dual convolutional neural network method for interval-valued stock price prediction,” Pattern Recognit., vol. 145, p. 109920, 2024.
- Z. Fuping, “Conceptual-temporal graph convolutional neural network model for stock price movement prediction and application,” Soft Comput., vol. 27, no. 10, pp. 6329–6344, 2023.
- J. Zou, “Machine Learning and Natural Language Processing in Stock Prediction.” 2023.
- M. Costola, O. Hinz, M. Nofer, and L. Pelizzon, “Machine learning sentiment analysis, COVID-19 news and stock market reactions,” Res. Int. Bus. Finance., vol. 64, p. 101881, 2023.
- S. Zaheer et al., “A multi parameter forecasting for stock time series data using LSTM and deep learning model,” Mathematics, vol. 11, no. 3, p. 590, 2023.
- J. M.-T. Wu, Z. Li, N. Herencsar, B. Vo, and J. C.-W. Lin, “A graph-based CNN-LSTM stock price prediction algorithm with leading indicators,” Multimed. Syst., vol. 29, no. 3, pp. 1751–1770, 2023.
- H. Baek, “A cnn-lstm stock prediction model based on genetic algorithm optimization,” Asia-Pacific Financ. Mark., vol. 31, no. 2, pp. 205–220, 2024.
- J. Zhang, L. Ye, and Y. Lai, “Stock price prediction using CNN-BiLSTM-Attention model,” Mathematics, vol. 11, no. 9, p. 1985, 2023.
- P. Singh, M. Jha, M. Sharaf, M. A. Elmeligy, and T. R. Gadekallu, “Harnessing a hybrid CNN-LSTM model for portfolio performance: A case study on stock selection and optimization,” IEEE Access, 2023.
- S. Rath, N. R. Das, and B. K. Pattanayak, “Stacked BI-LSTM and E-Optimized CNN-A Hybrid Deep Learning Model for Stock Price Prediction,” Opt. Mem. Neural Networks, vol. 33, no. 2, pp. 102–120, 2024.
- S. S. Shahapur et al., “Discovering Untapped Potential in Finance Markets Using NLP-Driven Sentiment Analysis,” Indian J. Sci. Technol., vol. 17, no. 21, pp. 2240–2249, 2024.
- M. G. Sousa, K. Sakiyama, L. de Souza Rodrigues, P. H. Moraes, E. R. Fernandes, and E. T. Matsubara, “BERT for stock market sentiment analysis,” in 2019 IEEE 31st international conference on tools with artificial intelligence (ICTAI), 2019, pp. 1597–1601.
- A. E. Khedr and N. Yaseen, “Predicting stock market behavior using data mining technique and news sentiment analysis,” Int. J. Intell. Syst. Appl., vol. 9, no. 7, p. 22, 2017.
- Z. Wang, Z. Hu, F. Li, S.-B. Ho, and E. Cambria, “Learning-based stock trending prediction by incorporating technical indicators and social media sentiment,” Cognit. Comput., vol. 15, no. 3, pp. 1092–1102, 2023.