Attention-based CNN-LSTM and XGBoost hybrid model for stock prediction

04/06/2022
by   Zhuangwei Shi, et al.
0

Stock market plays an important role in the economic development. Due to the complex volatility of the stock market, the research and prediction on the change of the stock price, can avoid the risk for the investors. The traditional time series model ARIMA can not describe the nonlinearity, and can not achieve satisfactory results in the stock prediction. As neural networks are with strong nonlinear generalization ability, this paper proposes an attention-based CNN-LSTM and XGBoost hybrid model to predict the stock price. The model constructed in this paper integrates the time series model, the Convolutional Neural Networks with Attention mechanism, the Long Short-Term Memory network, and XGBoost regressor in a non-linear relationship, and improves the prediction accuracy. The model can fully mine the historical information of the stock market in multiple periods. The stock data is first preprocessed through ARIMA. Then, the deep learning architecture formed in pretraining-finetuning framework is adopted. The pre-training model is the Attention-based CNN-LSTM model based on sequence-to-sequence framework. The model first uses convolution to extract the deep features of the original stock data, and then uses the Long Short-Term Memory networks to mine the long-term time series features. Finally, the XGBoost model is adopted for fine-tuning. The results show that the hybrid model is more effective and the prediction accuracy is relatively high, which can help investors or institutions to make decisions and achieve the purpose of expanding return and avoiding risk. Source code is available at https://github.com/zshicode/Attention-CLX-stock-prediction.

READ FULL TEXT
research
03/25/2016

Investigation Into The Effectiveness Of Long Short Term Memory Networks For Stock Price Prediction

The effectiveness of long short term memory networks trained by backprop...
research
11/06/2019

Deep Learning for Stock Selection Based on High Frequency Price-Volume Data

Training a practical and effective model for stock selection has been a ...
research
06/13/2023

Model-Free Market Risk Hedging Using Crowding Networks

Crowding is widely regarded as one of the most important risk factors in...
research
05/21/2018

A Tensor-Based Sub-Mode Coordinate Algorithm for Stock Prediction

The investment on the stock market is prone to be affected by the Intern...
research
08/05/2018

Stock Price Correlation Coefficient Prediction with ARIMA-LSTM Hybrid Model

Predicting the price correlation of two assets for future time periods i...
research
05/24/2020

A Novel Distributed Representation of News (DRNews) for Stock Market Predictions

In this study, a novel Distributed Representation of News (DRNews) model...
research
05/28/2021

Short-Term Stock Price-Trend Prediction Using Meta-Learning

Although conventional machine learning algorithms have been widely adopt...

Please sign up or login with your details

Forgot password? Click here to reset