Hybrid LSTM-CNN deep learning framework for stock price prediction with google stock and reddit sentiment data

Authors

  • Emmanuel Chibuogu Asogwa Department of Computer Science, Faculty of Physical Sciences, Nnamdi Azikiwe University, P.O. Box 5025 Awka, Nigeria Author
  • Mmesoma P. Nwankwo Department of Statistics, Faculty of Physical Sciences, Nnamdi Azikiwe University, P.O. Box 5025 Awka, Nigeria Author
  • Emmanuel E. Oguadimma Department of Mathematics, Oregon State University, Corvallis, OR 97331, USA Author
  • Chinyere P. Okechukwu Department of Statistics, School of Computer Science and Engineering, Lovely Professional University, Phagwara, Punjab, 144411, India Author
  • Ahmad Abubakar Suleiman Fundamental and Applied Sciences Department, Universiti Teknologi PETRONAS, Seri Iskandar 32610, Malaysia Author

DOI:

https://doi.org/10.64389/icds.2025.01126

Keywords:

Hybrid Deep Learning, Stock Price Prediction, Sentiment Analysis, LSTM (Long Short-Term Memory), CNN (Convolutional Neural Network)

Abstract

   This study evaluates a hybrid model that integrates Long Short-Term Memory (LSTM) networks and Convolutional Neural Networks (CNN) to predict stock prices. The model leverages two datasets: historical Google stock data and sentiment data from Reddit comments. Sentiment analysis was performed using VADER from NLTK, which classified comments as negative, neutral, or positive, while a CNN model was trained to predict sentiment scores. Separately, an LSTM model was built using ten years of Google stock data from Yahoo Finance, with features scaled using MinMax normalization to improve learning and a dropout layer added to prevent overfitting. Model performance was evaluated using Root Mean Squared Error (RMSE) and Mean Squared Error (MSE). The LSTM model performed well on test data but showed lower accuracy on unseen data during forecasting. The hybrid model successfully combined the outputs of both the CNN and LSTM, demonstrating superior performance with lower RMSE and higher classification accuracy compared to the standalone models. This highlights the potential of integrating sentiment analysis with traditional stock prediction. The study acknowledges challenges in classifying neutral sentiments, suggesting that more comprehensive sentiment data is needed for future research.

Downloads

Download data is not yet available.

Downloads

Published

2025-08-27

Issue

Section

Articles

How to Cite

Asogwa, E. C. ., Nwankwo, M. P. ., Oguadimma, E. E. ., Okechukwu, C. P. ., & Suleiman , A. A. . (2025). Hybrid LSTM-CNN deep learning framework for stock price prediction with google stock and reddit sentiment data. Innovation in Computer and Data Sciences, 1(1), 32-50. https://doi.org/10.64389/icds.2025.01126