基于Bi-LSTM深度学习的股票价格预测
Stock Price Prediction Based on Bi-LSTM Deep Learning
摘要: 股票价格的预测一直受到金融投资者及学者的广泛关注,同时也是学者的研究重点。股票价格的非线性性、波动性等特点使得使用传统统计学方法进行股票预测的准确率较不理想。长短时记忆循环网络(LSTM)模型在处理时间序列数据上有很大的优势,为了进一步优化预测模型,本文提出了双向传播长短时记忆循环网络(Bi-LSTM),通过双向传播历史数据来对股票价格进行预测。另外,还引入传统神经网络BP、LSTM、GRU与本文所提Bi-LSTM模型进行对比,并引入MSE、RMSE、MAE、R2四种误差评估方法来对模型进行评估,验证模型的预测精度。实证结果表明,基于Adam优化算法的Bi-LSTM网络优于BP、LSTM、GRU等传统预测模型,精确度有明显提升,验证了本模型的有效性和可行性。
Abstract:
Stock price prediction has been widely concerned by financial investors and scholars, and it is also the research focus of scholars. The non-linearity and volatility of stock prices make the accuracy of stock prediction using traditional statistical methods less than ideal. LSTM model has great advantages in processing time series data. In order to further optimize the prediction model, this paper proposes a bidirectional propagating long and short time memory cycling network (Bi-LSTM), which can forecast stock prices by bidirectional propagating historical data. In addition, the traditional neural network BP, LSTM and GRU are introduced to compare with the Bi-LSTM model proposed in this paper, and four error evaluation methods of MSE, RMSE, MAE and R2 are introduced to evaluate the model to verify the prediction accuracy of the model. The empirical results show that the Bi-LSTM network based on ADAM optimization algorithm is superior to BP, LSTM, GRU and other traditional prediction models, and the accuracy is significantly improved, which verifies the effectiveness and feasibility of this model.
参考文献
|
[1]
|
许舒雅, 梁晓莹. 基于ARIMA-GARCH模型的股票价格预测研究[J]. 河南教育学院学报(自然科学版), 2019, 28(4): 20-24.
|
|
[2]
|
张倩倩, 林天华, 祁旭阳, 赵霞. 基于机器学习的股票预测研究综述[J]. 河北省科学院学报, 2020, 37(4): 15-21.
|
|
[3]
|
毛月月, 张秋悦. 基于机器学习的股票预测方法研究[J]. 现代计算机, 2020(23): 44-47.
|
|
[4]
|
张潇, 韦增欣. 随机森林在股票趋势预测中的应用[J]. 中国管理信息化, 2018, 21(3): 120-123.
|
|
[5]
|
张晶华, 莫文柯, 甘宇健. 基于SVM的上证指数预测研究[J]. 软件导刊, 2017, 16(8): 156-159+163.
|
|
[6]
|
崔文喆, 李宝毅, 于德胜. 基于GARCH模型和BP神经网络模型的股票价格预测实证分析[J]. 天津师范大学学报(自然科学版), 2019, 39(5): 30-34.
|
|
[7]
|
Bahadur, S.T., et al. (2020) Stock Price Forecasting with Deep Learning: A Comparative Study. Mathematics, 8, 1441.
[Google Scholar] [CrossRef]
|
|
[8]
|
方红, 韩星煜, 徐涛. 改进型基于LSTM的股票预测方法[J]. 安徽大学学报(自然科学版), 2019, 43(6): 36-42.
|
|
[9]
|
矫丰霞. 基于LSTM神经网络的股票价格预测研究[J]. 数字技术与应用, 2021, 39(3): 220-222.
|
|
[10]
|
陈伟斌, 林奕真, 王宗跃. 股票信息挖掘与LSTM预测[J]. 集美大学学报(自然科学版), 2020, 25(5): 385-391.
|
|
[11]
|
曾安, 聂文俊. 基于深度双向LSTM的股票推荐系统[J]. 计算机科学, 2019, 46(10): 84-89.
|