Optimizing Stock Price Prediction: Exploring LSTM Architectural Parameters in Financial Forecasting
DOI:
https://doi.org/10.54097/40px3f62Keywords:
Stock Price Prediction, LSTM Networks, Hyperparameter Optimization.Abstract
Accurate stock price prediction is a crucial concern in the field of finance, impacting investors, traders, and the broader economic landscape. Traditional time series analysis and statistical models often fall short in capturing the dynamic and nonlinear nature of financial markets. Financial market forecasting has advanced significantly with the advent of deep learning technology, especially Long Short-Term Memory (LSTM) networks. This study conducts an in-depth exploration of LSTM networks' critical architectural parameters and their impact on stock price prediction. The performance of the LSTM-based model is assessed using historical stock price data from Amazon, with particular attention paid to hyperparameters like the number of neurons, dropout rates, and LSTM layers. The research reveals that a well-balanced model architecture with moderate units per layer (e.g., 64), a single layer, and a dropout rate of 0.7 is key to achieving accurate predictions in financial markets. The outcomes of this research hold practical significance for both investors and financial analysts. Furthermore, they emphasize the promising potential of LSTM networks in the realm of financial forecasting, opening avenues for future studies in finance. This investigation deepens the comprehension of LSTM network architecture and its applicability in predicting stock prices, providing valuable insights that extend beyond the finance sector.
Downloads
References
LeCun, Y., Bengio, Y., Hinton, G., et al. Deep Learning. Nature, 2015, 521 (7553), 436 - 444.
Dong, H., Li, J., Peng, J., et al. Stock Price Prediction Using LSTM, RNN, and CNN-Sliding Models, 2016, IEEE Transactions on Neural Networks and Learning Systems, 28 (10), 2220 - 2230.
Hochreiter, S., Schmidhuber, J. Long Short-Term Memory, 1997, Neural Computation, 9 (8), 1735 - 1780.
Vinkler, M., Mekyska, J., Burget, et al. Financial Market Time Series Prediction using RNNs and CNNs, 2109, arXiv preprint arXiv: 1811. 05921.
Heaton, J., Polson, N. G., et al. Stock Price Forecasting Using Deep Learning, 2016, ArXiv.
Ding, X., Zhang, Y., Liu, T., et al. Deep Learning for Stock Prediction Using Numerical and Textual Information, 2017, ArXiv.
Ahmed, M., Mahmood, A. N., Hu, J., Hu, J., & Luo, J. (2017). A Deep Learning Framework for Financial Time Series Using Stacked Autoencoders and Long Short-Term Memory, 2017, PLOS ONE.
Amazon Stock Data. https://www.kaggle.com/datasets/varpit94/amazon-stock-data.
Hochreiter, S., Schmidhuber, J. Long Short-Term Memory. Neural Computation, vol. 9, no. 8, pp. 1735 - 1780, 15 Nov. 1997.
Understanding LSTMs. https://www.kushalj001.github.io/black-box-ml/lstm/pytorch/gates/vanishing%20gradient/2019/12/28/Understanding-LSTMs.html.
Structure of the multi-layer LSTM network. https://www.researchgate.net/figure/Structure-of-the-multi-layer-LSTM-network_fig3_329532056.
Srivastava, N., Hinton, G., et al. Dropout: A Simple Way to Prevent Neural Networks from Overfitting, 2014, Journal of Machine Learning Research, 15 (1), 1929 - 1958.
Downloads
Published
Issue
Section
License
Copyright (c) 2024 Highlights in Science, Engineering and Technology

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.







