arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2204.02623q-fin.STcs.LG
收藏

基于注意力的CNN-LSTM与XGBoost混合模型的股票预测

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

Nankai University(南开大学);Shenzhen Research Institute, Nankai University(南开大学深圳研究院);Orient Securities Co. Ltd(东方证券股份有限公司);Guangxi Academy of Social Science(广西社会科学院)

Zhuangwei Shi, Yang Hu, Guangliang Mo, Jian Wu

摘要:

股票市场在经济发展中起着重要的作用。由于股票市场的复杂波动性,对股票价格变化的研究和预测,可以为投资者规避风险。传统的时间序列模型ARIMA不能描述非线性,在股票预测中不能取得满意的效果。由于神经网络具有很强的非线性泛化能力,本文提出了一种基于注意力的CNN-LSTM和XGBoost混合模型来预测股票价格。本文构建的模型将时间序列模型、具有注意机制的卷积神经网络、长短期记忆网络和XGBoost回归量以非线性关系集成在一起,提高了预测精度。该模型能够充分挖掘股票市场多个时期的历史信息。首先通过ARIMA对股票数据进行预处理。然后,采用预训练-微调框架中形成的深度学习架构。预训练模型是基于序列到序列框架的基于注意力的CNN-LSTM模型。该模型首先利用卷积提取原始股票数据的深层特征,然后利用长短期记忆网络挖掘长期时间序列特征。最后,采用XGBoost模型进行微调。结果表明,混合模型更有效,预测精度相对较高,可以帮助投资者或机构进行决策,达到扩大收益、规避风险的目的。源代码可在https://github.com/zshicode/Attention-CLX-stock-prediction上获得。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑