Challenge and Opportunity: Deep Learning-Based Stock Price Prediction by Using Bi-Directional LSTM Model
DOI:
https://doi.org/10.54097/fbem.v8i2.6616Keywords:
Bi-directional long short-term memory (Bi-LSTM), Deep learning, Machine learning, Finance, Investment.Abstract
Stock price prediction is a challenging and important task in finance, with many potential applications in investment, risk management, and portfolio optimization. In this paper, we propose a bi-directional long short-term memory (Bi-LSTM) model for predicting the future price of a stock based on its historical prices. The Bi-LSTM model is a variant of the popular LSTM model that is capable of processing input sequences in both forward and backward directions, allowing it to capture both short- and long-term dependencies in the data. We apply the Bi-LSTM model to historical stock price data for Apple Inc. and evaluate its performance using mean squared error (MSE) and visual inspection of actual vs. predicted prices. Our experiments show that the Bi-LSTM model is able to make accurate predictions on the testing data and capture some of the trends and patterns in the data, although it may struggle with sudden changes in the market. Overall, our results suggest that the Bi-LSTM model is a promising tool for stock price prediction and has many potential applications in finance and investment.
Downloads
References
S. Siami-Namini, N. Tavakoli, and A. S. Namin, "The performance of LSTM and BiLSTM in forecasting time series," in 2019 IEEE International Conference on Big Data (Big Data), 2019: IEEE, pp. 3285-3292. DOI: https://doi.org/10.1109/BigData47090.2019.9005997
S. Gui-xiang, Z. Xian-zhuo, Y.-z. Zhang, and H. Chen-yu, "Research on criticality analysis method of CNC machine tools components under fault rate correlation," in IOP Conference Series: Materials Science and Engineering, 2018, vol. 307, no. 1: IOP Publishing, p. 012023. DOI: https://doi.org/10.1088/1757-899X/307/1/012023
C. Han and T. Lin, "Reliability evaluation of electro spindle based on no-failure data," Highlights in Science, Engineering and Technology, vol. 16, pp. 86-97, 2022. DOI: https://doi.org/10.54097/hset.v16i.2413
Y. Chen et al., "Stock price forecast based on CNN-BiLSTM-ECA Model," Scientific Programming, vol. 2021, pp. 1-20, 2021. DOI: https://doi.org/10.1155/2021/2446543
J. Eapen, D. Bein, and A. Verma, "Novel deep learning model with CNN and bi-directional LSTM for improved stock market index prediction," in 2019 IEEE 9th annual computing and communication workshop and conference (CCWC), 2019: IEEE, pp. 0264-0270. DOI: https://doi.org/10.1109/CCWC.2019.8666592
c. h. guixiang shen, el al, "Fault Analysis of Machine Tools Based on Grey Relational Analysis and Main Factor Analysis," in Journal of Physics: Conference Series, 2019, vol. 1069: iop science, p. 012112. DOI: https://doi.org/10.1088/1742-6596/1069/1/012112
G. Shen, W. Zeng, C. Han, P. Liu, and Y. Zhang, "Determination of the average maintenance time of CNC machine tools based on type II failure correlation," Eksploatacja i Niezawodność, vol. 19, no. 4, 2017. DOI: https://doi.org/10.17531/ein.2017.4.15
Z. Huang, W. Xu, and K. Yu, "Bidirectional LSTM-CRF models for sequence tagging," arXiv preprint arXiv:1508.01991, 2015.
W. Lu, J. Li, J. Wang, and L. Qin, "A CNN-BiLSTM-AM method for stock price prediction," Neural Computing and Applications, vol. 33, pp. 4741-4753, 2021. DOI: https://doi.org/10.1007/s00521-020-05532-z
Y. Zhang, L. Mu, G. Shen, Y. Yu, and C. Han, "Fault diagnosis strategy of CNC machine tools based on cascading failure," Journal of Intelligent Manufacturing, vol. 30, pp. 2193-2202, 2019. DOI: https://doi.org/10.1007/s10845-017-1382-7
J. Shah, D. Vaidya, and M. Shah, "A comprehensive review on multiple hybrid deep learning approaches for stock prediction," Intelligent Systems with Applications, p. 200111, 2022. DOI: https://doi.org/10.1016/j.iswa.2022.200111
F. Shahid, A. Zameer, and M. Muneeb, "Predictions for COVID-19 with deep learning models of LSTM, GRU and Bi-LSTM," Chaos, Solitons & Fractals, vol. 140, p. 110212, 2020. DOI: https://doi.org/10.1016/j.chaos.2020.110212
Y. Li et al., "Dumbnet: A smart data center network fabric with dumb switches," in Proceedings of the Thirteenth EuroSys Conference, 2018, pp. 1-13. DOI: https://doi.org/10.1145/3190508.3190531
Z. Song, R. M. Johnston, and C. P. Ng, "Equitable healthcare access during the pandemic: The impact of digital divide and other sociodemographic and systemic factors," Applied Research in Artificial Intelligence and Cloud Computing, vol. 4, no. 1, pp. 19-33, 2021.
Z. Song, G. Mellon, and Z. Shen, "Relationship between racial bias exposure, financial literacy, and entrepreneurial intention: An empirical investigation," Journal of Artificial Intelligence and Machine Learning in Management, vol. 4, no. 1, pp. 42-55, 2020.








