基于ARIMA-CNN-LSTM的股票价格预测
Stock Price Prediction Based on ARIMA-CNN-LSTM
DOI: 10.12677/sea.2024.135074, PDF,   
作者: 董其成, 何利文:南京邮电大学物联网学院,江苏 南京
关键词: ARIMALSTM混合模型股票价格预测ARIMA LSTM Hybrid Model Stock Price Prediction
摘要: 股票市场的波动会影响人们生活的各个方面,因此准确预测股票价格具有重要意义。然而,传统的时间序列预测模型(如ARIMA)在处理股票价格中的非线性特征时表现不佳,难以获得令人满意的预测效果。鉴于深度学习在处理非线性问题上的优越能力,它在股票价格预测中展现出巨大的潜力。本文提出了一种ARIMA-CNN-LSTM混合模型来预测股票价格,该模型充分挖掘了股票市场的历史信息,从而实现更高精度的预测。首先,使用ARIMA对股票数据进行预处理,将处理得到的残差序列输入CNN,通过卷积提取股票数据的深层特征;随后,通过LSTM挖掘股票数据的长期时间序列特征。本文以中国银行2009年1月1日至2023年12月31日的股票数据为研究对象,构建混合模型,并与ARIMA-LSTM模型、CNN-LSTM模型的预测结果进行对比。实验结果表明,本文提出的混合模型预测精度更高,相较于ARIMA-LSTM与CNN-LSTM模型,本模型在均方误差(MSE)指标上分别降低了25%与16.7%,在平均绝对误差(MAE)指标上分别降低了14.1%与9.4%,展示了更好的预测效果。
Abstract: The volatility of the stock market affects various aspects of people’s lives, making accurate stock price predictions highly significant. However, traditional time series forecasting models, such as ARIMA, perform poorly when dealing with the nonlinear characteristics of stock prices, leading to unsatisfactory prediction outcomes. Given the superior capability of deep learning in handling nonlinear problems, it shows great potential in stock price prediction. This paper proposes a hybrid ARIMA-CNN-LSTM model for stock price prediction, which fully exploits historical market information to achieve higher prediction accuracy. First, ARIMA is used to preprocess the stock data, with the resulting residual series fed into a CNN, which extracts deep features of the stock data through convolution. Subsequently, LSTM is employed to capture the long-term temporal characteristics of the stock data. Using the stock data of the Bank of China from January 1, 2009, to December 31, 2023, as the research object, the hybrid model is constructed and compared with the prediction results of the ARIMA-LSTM model and CNN-LSTM model. The experimental results show that the proposed hybrid model achieves higher prediction accuracy. Compared to the ARIMA-LSTM and CNN-LSTM models, this model reduces the mean squared error (MSE) by 25% and 16.7%, respectively, and decreases the mean absolute error (MAE) by 14.1% and 9.4%, respectively, demonstrating better forecasting performance.
文章引用:董其成, 何利文. 基于ARIMA-CNN-LSTM的股票价格预测[J]. 软件工程与应用, 2024, 13(5): 729-737. https://doi.org/10.12677/sea.2024.135074

参考文献

[1] 张苏林, 宋迦南. 基于CNN-LSTM模型股票价格预测研究[J]. 合作经济与科技, 2023(3): 58-62.
[2] 朱子敬, 何利文. 基于ABC-LSTM-GRU的时间序列分解与预测模型[J]. 软件工程, 2024, 27(3): 58-62.
[3] 肖田田. 基于K-means-LSTM模型的证券股价预测[J]. 科技和产业, 2024, 24(3): 210-215.
[4] 齐太威, 于文年. 基于LSTM的多指标股票预测[J]. 计算机与数字工程, 2024, 52(2): 337-342.
[5] 龙宇, 许浩然, 余华云, 等. 基于ARIMA-LSTM-XGBoost组合模型的铁路货运量预测[J]. 科学技术与工程, 2023, 23(25): 10879-10886.
[6] 李靖萱. 基于CNN-BiLSTM和注意力机制的汇率预测研究[D]: [硕士学位论文]. 福州: 福建师范大学, 2023.
[7] 王世明, 张少童, 娄嘉奕. 基于CNN-LSTM-ARIMA的超短期风速预测研究[J/OL]. 新能源进展, 1-9.
https://kns.cnki.net/kcms2/article/abstract?v=UjEBX92ALNEWSGB7mnaCviYl-qC1UI_PCJjJ4Z-bpP8ocwXiJaLswVmTjaXH759pZgarUkTIc0cF87Zbj3xtZMtYE20xg1HtMoY5UUwuYmTxoBtzaB4E4Cg4EQmZRH7yHOJ5oBBMERRwcovGCGZvfXrlnjmw7xwX37zdUXef0vBMvqnvp4OqZjJqj1oKG9GV&uniplatform=NZKPT&language=CHS, 2024-01-09.
[8] Singh, P., Jha, M., Sharaf, M., El-Meligy, M.A. and Gadekallu, T.R. (2023) Harnessing a Hybrid CNN-LSTM Model for Portfolio Performance: A Case Study on Stock Selection and Optimization. IEEE Access, 11, 104000-104015. [Google Scholar] [CrossRef
[9] Zhang, J., Ye, L. and Lai, Y. (2023) Stock Price Prediction Using CNN-BiLSTM-Attention Model. Mathematics, 11, Article No. 1985. [Google Scholar] [CrossRef
[10] 王瑞, 李瑞沂, 曹沛根, 等. 基于ARIMA-LSTM混合模型对传染病的预测分析[J]. 现代信息科技, 2024, 8(1): 116-120.
[11] 梅杰. 基于二维GoogLeNet-LSTM模型对股票涨跌的预测[D]: [硕士学位论文]. 上海: 上海师范大学, 2023.
[12] Shi, Z., Hu, Y., Mo, G., et al. (2022) Attention-Based CNN-LSTM and XGBoost Hybrid Model for Stock Prediction. arXiv: 2204.02623.