Proposed Bayesian Optimization Based LSTM-CNN Model for Stock Trend Prediction

Authors

  • Bey Kun Chan Universiti Sains Malaysia, School of Computer Sciences, 11800 Gelugor, Penang, Malaysia
  • Olanrewaju Victor Johnson Universiti Sains Malaysia, School of Computer Sciences, 11800 Gelugor, Penang, Malaysia
  • XinYing Chew Universiti Sains Malaysia, School of Computer Sciences, 11800 Gelugor, Penang, Malaysia
  • Khai Wah Khaw Universiti Sains Malaysia, School of Management, 11800 Gelugor, Penang, Malaysia
  • Ming Ha Lee Swinburne University of Technology Sarawak Campus, Faculty of Engineering, Computing and Science, 93350 Kuching, Sarawak, Malaysia
  • Alhamzah Alnoor Southern Technical University, Management Technical College, Basrah, Iraq

DOI:

https://doi.org/10.31577/cai_2024_1_38

Keywords:

Stock management, hybrid learning, deep learning, optimization, prediction

Abstract

Stock prediction is prominent in the field of Artificial Intelligence. Stock prediction problems are handled either as a regression or classification task. Studies in the literature have also shown success for hybrid learning to stock prediction. But little attention is paid to finding out the effect of spatial feature extraction/distortion over the temporal effect of the deep neural network and vice versa for the problem under study. The paper, therefore, proposes a hybrid long short-term memory (LSTM) network over a convolutional neural network (CNN) called LSTM-CNN as against the popular CNN-LSTM model. The daily price movement of the S & P 500 index data is utilized. A sliding window technique is considered to obtain a balanced data of 20-days window data from the S & P 500. The proposed stock prediction model is investigated further for an optimal set of hyperparameters using the Bayesian optimization (Bo) technique. In addition, the proposed model is compared with optimized CNN, LSTM, and CNN-LTSM models. The optimized LSTM-CNN model is found to outperform the other models with accuracy, precision, and recall values of 0.9741, 0.9684, and 0.9800, respectively. The proposed model is established to provide a better stock trend prediction.

Downloads

Download data is not yet available.

Downloads

Published

2024-04-29

How to Cite

Chan, B. K., Johnson, O. V., Chew, X., Khaw, K. W., Lee, M. H., & Alnoor, A. (2024). Proposed Bayesian Optimization Based LSTM-CNN Model for Stock Trend Prediction. COMPUTING AND INFORMATICS, 43(1), 38–63. https://doi.org/10.31577/cai_2024_1_38