An Optimized Deep Learning Model for Stock Price Prediction Using Bi-Directional LSTM with Multi-Inputs and Multi-Steps
DOI:
https://doi.org/10.54097/fyg9kh89Keywords:
Deep Learning, BI-LSTM, Stock Prediction.Abstract
Predicting stock prices accurately is an inherently challenging task due to the dynamic and fluctuating nature of various influencing factors. However, with the advent and implementation of deep learning, achieving precise stock predictions has become feasible. This study employs Bi-Directional Long Short-Term Memory (LSTM) models to forecast the closing stock price of Tesla for the following day. Root Mean Square Error (RMSE) and Mean Absolute Percentage Error (MAPE) are selected as indicators to show methods' performance. A new variable has been created through open and close stock price. The original method uses close stock prices as the only input for prediction. In contrast, the modified method uses both the open stock price and the created new variable for calculating close stock price. Both methods' parameters are firstly trained and adjusted on training and validation dataset for their best performance. Finally, both methods are applied to test dataset and the value of both indicators depict their prediction performance.
Downloads
References
Soni P, Yogya T, et al. Machine Learning approaches in stock price prediction: A systematic review. Journal of Physics: Conference Series, 2022, 2161 (1): 012065.
Gandhmal D P, Kumar K. Systematic analysis and review of stock market prediction techniques. Computer Science Review, 2019, 34: 100190.
Al-Tamimi H A H, Alwan A A, Abdel Rahman A A. Factors affecting stock prices in the UAE financial markets. Journal of transnational management, 2011, 16 (1): 3 - 19.
Huang J, Chai J, Cho S. Deep learning in finance and banking: A literature review and classification. Frontiers of Business Research in China, 2020, 14 (1): 1 - 24.
Qiu Y, Wang J, Jin Z, et al. Pose-guided matching based on deep learning for assessing quality of action on rehabilitation training. Biomedical Signal Processing and Control, 2022, 72: 103323.
Cavalcante R C, Brasileiro R C, Souza V L, et al. Computational intelligence and financial markets: A survey and future directions. Expert Systems with Applications, 2016, 55: 194 - 211.
Guo T, Xu Z, Yao X, et al. Robust online time series prediction with recurrent neural networks. 2016 IEEE international conference on data science and advanced analytics (DSAA). Ieee, 2016: 816 - 825.
Sherstinsky A. Fundamentals of recurrent neural network (RNN) and long short-term memory (LSTM) network. Physica D: Nonlinear Phenomena, 2020, 404, 132306.
Sunny M A I, Maswood M M S, Alharbi A G. Deep learning-based stock price prediction using LSTM and bi-directional LSTM model. 2020 2nd novel intelligent and leading emerging sciences conference (NILES). IEEE, 2020: 87 - 92.
Roondiwala M, Patel H, Varma S. Predicting stock prices using LSTM. International Journal of Science and Research (IJSR), 2017, 6 (4): 1754 - 1756.
Han C, Fu X. Challenge and opportunity: deep learning-based stock price prediction by using Bi-directional LSTM model. Frontiers in Business, Economics and Management, 2023, 8 (2): 51 - 54.
Kaggle - TESLA Stock Data, (Accessed on November 2, 2023).
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.







