A Hybrid CNN-LSTM Attention-Based Deep Learning Model for Stock Price Prediction Using Technical Indicators
Received: 11 June 2025 | Revised: 9 July 2025 and 4 August 2025 | Accepted: 11 August 2025 | Online: 3 September 2025
Corresponding author: Bhanujyothi H. C.
Abstract
Stock price prediction is extremely important in financial analysis, especially for volatile stocks like Tesla's. However, accurate prediction remains challenging due to the non-linear, dynamic nature of stock market data. Although deep learning algorithms such as Deep Unfolding (DUF), Long Short-Term Memory (LSTM), and Convolutional Neural Network (CNN) have enhanced the capacity for observing intricate temporal and spatial patterns, individual or sequential applications of these algorithms often fail to capture dependencies between time steps or prioritize the most important input features, thereby limiting prediction accuracy. To address these limitations, a Hybrid CNN-LSTM with Attention (HCLA) model is suggested. This model utilizes CNN for spatial features, LSTM for temporal learning, and an attention mechanism to focus on significant time-step information. Technical indicators such as the Relative Strength Index (RSI), the Moving Average Convergence Divergence (MACD), and Bollinger Bands are also employed to improve feature richness and market dynamics perception. HCLA is compared with cutting-edge deep learning models like standalone LSTM, CNN+LSTM, and multi-layer CNN+LSTM models. The comparison, based on Mean Squared Error (MSE), Root Mean Squared Error (RMSE), and Mean Absolute Error (MAE), shows that HCLA has a 12.4% lower MSE, 10.7% lower RMSE, and 11.3% lower MAE than the top-performing deep learning baseline. The close similarity between expected and actual stock prices proves the excellence of the model's accuracy and stability for real-time stock prediction scenarios.
Keywords:
stock price prediction, hybrid CNN-LSTM, attention mechanism, technical indicators, time-series forecasting, deep learning, Tesla stockDownloads
References
V. Palaniappan, I. Ishak, H. Ibrahim, F. Sidi, and Z. A. Zukarnain, "A Review on High-Frequency Trading Forecasting Methods: Opportunity and Challenges for Quantum Based Method," IEEE Access, vol. 12, pp. 167471–167488, 2024.
Z. Zhu, K. W. Chan, S. Bu, B. Zhou, and S. Xia, "Nash Equilibrium Estimation and Analysis in Joint Peer-to-Peer Electricity and Carbon Emission Auction Market With Microgrid Prosumers," IEEE Transactions on Power Systems, vol. 38, no. 6, pp. 5768–5780, Nov. 2023.
S. H. and N. V., "A Review on Fog Computing: Architecture, Fog with IoT, Algorithms and Research Challenges," ICT Express, vol. 7, no. 2, pp. 162–176, Jun. 2021.
M. Zhang, D. Ding, X. Pan, and M. Yang, "Enhancing Time Series Predictors With Generalized Extreme Value Loss," IEEE Transactions on Knowledge and Data Engineering, vol. 35, no. 2, pp. 1473–1487, Feb. 2023.
M. Hu, Z. Tan, B. Liu, and G. Yin, "Graph Portfolio: High-Frequency Factor Predictors via Heterogeneous Continual GNNs," IEEE Transactions on Knowledge and Data Engineering, vol. 37, no. 7, pp. 4104–4116, Jul. 2025.
S. Joseph, N. Mduma, and D. Nyambo, "A Deep Learning Model for Predicting Stock Prices in Tanzania," Engineering, Technology & Applied Science Research, vol. 13, no. 2, pp. 10517–10522, Apr. 2023.
Y. Sun, S. Mutalib, N. Omar, and L. Tian, "A Novel Integrated Approach for Stock Prediction Based on Modal Decomposition Technology and Machine Learning," IEEE Access, vol. 12, pp. 95209–95222, 2024.
L. Shi, Z. Teng, L. Wang, Y. Zhang, and A. Binder, "DeepClue: Visual Interpretation of Text-Based Deep Stock Prediction," IEEE Transactions on Knowledge and Data Engineering, vol. 31, no. 6, pp. 1094–1108, Jun. 2019.
A. K. Biswas et al., "A Dual Output Temporal Convolutional Network With Attention Architecture for Stock Price Prediction and Risk Assessment," IEEE Access, vol. 13, pp. 53621–53639, 2025.
F. M. M. Alsheebah and B. A. Al-Fuhaidi, "Emerging Stock Market Prediction Using GRU Algorithm: Incorporating Endogenous and Exogenous Variables," IEEE Access, vol. 12, pp. 132964–132971, 2024.
F. Moodi, A. J. Rafsanjani, S. Zarifzadeh, and M. Ali Zare Chahooki, "Fusion of Technical Indicators and Sentiment Analysis in a Hybrid Framework of Deep Learning Models for Stock Price Movement Prediction," IEEE Access, vol. 12, pp. 195696–195709, 2024.
F. Jeribi et al., "A Deep Learning Based Expert Framework for Portfolio Prediction and Forecasting," IEEE Access, vol. 12, pp. 103810–103829, 2024.
L. Yu, Y. Chen, and Y. Zheng, "A Multi-Market Data-Driven Stock Price Prediction System: Model Optimization and Empirical Study," IEEE Access, vol. 13, pp. 65884–65899, 2025.
S. Wang, "A Stock Price Prediction Method Based on BiLSTM and Improved Transformer," IEEE Access, vol. 11, pp. 104211–104223, 2023.
Y. Ansari, "Multi-Cluster Graph (MCG): A Novel Clustering-Based Multi-Relation Graph Neural Networks for Stock Price Forecasting," IEEE Access, vol. 12, pp. 154482–154502, 2024.
J. You, H. Jang, M. Kang, S.-B. Yang, and S.-H. Yoon, "Leveraging Stock Discussion Forum Posts for Stock Price Predictions: Focusing on the Secondary Battery Sector," IEEE Access, vol. 12, pp. 153537–153549, 2024.
T. S. Mian, "Evaluation of Stock Closing Prices using Transformer Learning," Engineering, Technology & Applied Science Research, vol. 13, no. 5, pp. 11635–11642, Oct. 2023.
D. Fengqian and L. Chao, "An Adaptive Financial Trading System Using Deep Reinforcement Learning With Candlestick Decomposing Features," IEEE Access, vol. 8, pp. 63666–63678, 2020.
X. Hu and J. Yang, "Group Penalized Multinomial Logit Models and Stock Return Direction Prediction," IEEE Transactions on Information Theory, vol. 70, no. 6, pp. 4297–4318, Jun. 2024.
X. Hou, K. Wang, C. Zhong, and Z. Wei, "ST-Trader: A Spatial-Temporal Deep Neural Network for Modeling Stock Market Movement," IEEE/CAA Journal of Automatica Sinica, vol. 8, no. 5, pp. 1015–1024, May 2021.
A. Peivandizadeh et al., "Stock Market Prediction With Transductive Long Short-Term Memory and Social Media Sentiment Analysis," IEEE Access, vol. 12, pp. 87110–87130, 2024.
A. T. Haryono, R. Sarno, R. N. E. Anggraini, and K. R. Sungkono, "Permuted Temporal Kolmogorov-Arnold Networks for Stock Price Forecasting Using Generative Aspect-Based Sentiment Analysis," IEEE Access, vol. 12, pp. 178672–178689, 2024.
R. Xing, R. Cheng, J. Huang, Q. Li, and J. Zhao, "Learning to Understand the Vague Graph for Stock Prediction With Momentum Spillovers," IEEE Transactions on Knowledge and Data Engineering, vol. 36, no. 4, pp. 1698–1712, Apr. 2024.
A. Luo, L. Zhong, J. Wang, Y. Wang, S. Li, and W. Tai, "Short-Term Stock Correlation Forecasting Based on CNN-BiLSTM Enhanced by Attention Mechanism," IEEE Access, vol. 12, pp. 29617–29632, 2024.
Downloads
How to Cite
License
Copyright (c) 2025 H. C. Bhanujyothi, I. Jeena Jacob

This work is licensed under a Creative Commons Attribution 4.0 International License.
Authors who publish with this journal agree to the following terms:
- Authors retain the copyright and grant the journal the right of first publication with the work simultaneously licensed under a Creative Commons Attribution License that allows others to share the work with an acknowledgement of the work's authorship and initial publication in this journal.
- Authors are able to enter into separate, additional contractual arrangements for the non-exclusive distribution of the journal's published version of the work (e.g., post it to an institutional repository or publish it in a book), with an acknowledgement of its initial publication in this journal.
- Authors are permitted and encouraged to post their work online (e.g., in institutional repositories or on their website) after its publication in ETASR with an acknowledgement of its initial publication in this journal.