A High-Performance Stock Prediction System Leveraging LSTM Neural Networks
Abstract
Since the invention of the Artificial Neural Network (ANN), it has achieved great success in various supervised and unsupervised machine learning tasks because of its powerful ability of learning, relationship fitting, and information synthesis. However, traditional neural networks face limitations in handling sequential data, where each point is influenced by past trends—a critical aspect of stock prediction. Stock prices often reflect historical patterns, requiring models to capture these temporal dependencies. Long Short-Term Memory (LSTM) models, a type of Recurrent Neural Network (RNN), are particularly suited to this task, as they retain and integrate information over time, addressing issues like gradient vanishing and allowing precise forecasting. In this study, the LSTM model achieved a remarkably low loss of 0.00067, demonstrating its effectiveness in modeling complex, nonlinear dependencies in stock data and enhancing predictive accuracy. This robust approach provides valuable insights into future market behaviors, highlighting LSTM’s strength in financial forecasting.
References
- A. Graves, “Sequence transduction with recurrent neural networks,” in ICML Representation Learning Work sop, 2012.
- Barak A. Pearlmutter. Gradient calculations for dynamic recurrent neural networks: A survey. Neural Networks, IEEE Transactions on, 6(5): 1212–1228, 1995.
- Liu, X., Wu, Y., Luo, M., & Chen, Z. (2024). Stock price prediction for new energy vehicle companies based on multi-source data and hybrid attention structure. Expert Systems With Applications, 255, 124787. https://doi.org/10.1016/j.eswa.2024.124787
- S. Mandal and N. Prabaharan, “Ocean wave prediction using numerical and neural network models,” The Open Ocean Engineering Journal, vol. 3, no. 1, 2010.
- M. Bodén (2001. November 13th). A Guide to Recurrent Neural Networks and Backpropagation, from https://www.researchgate.net/publication/2903062
- S.D. Yang, Y. Zhou and X.Y. Yu(2020). LSTM and GRU neural network performance comparison study
- S. Fan, N. Xiao, and S. Dong, “A novel model to predict significant wave height based on long short-term memory network,” Ocean Engineering, vol. 205, p. 107298, 2020.
- A.T. Sukanda, D. Adytia. (2022) Wave Forecast using Bidirectional GRU and GRU Method Case Study in Pangandaran, Indonesia
- Y. Zhang, G. Chen, D. Yu, K. Yaco, S. Khudanpur, and J. Glass, “Highway long short-term memory rnns for distant speech recognition”
- Z.C. Lipton & J. Berkowitz (2015, June 5th) A Critical Review of Recurrent Neural Networks for Sequence Learning
- Werbos, P. J. (1988). Generalization of backpropagation with application to a recurrent gas market model. Neural Networks, 1.