A comparative study of stock price prediction based on BP and LSTM neural network

Shujia Huang, Ben Wang, Lingbo Hao, Zebin Si
{"title":"A comparative study of stock price prediction based on BP and LSTM neural network","authors":"Shujia Huang, Ben Wang, Lingbo Hao, Zebin Si","doi":"10.1117/12.2671216","DOIUrl":null,"url":null,"abstract":"In recent years, stock price prediction has become a research hotspot. The price of the stock market is unstable, which often rises or falls sharply due to the national policies, which makes it difficult for investors to achieve stable returns in the stock market. With the rapid rise of artificial intelligence, computers have become flexible in dealing with mathematical problems. Therefore, the extraordinary computing power of computers has been used to analyze and predict the trend of the stock market. More and more computer professionals began to enter the financial market and use neural network to study the trend of the stock market. This paper uses BP neural network and LSTM neural network to learn and predict the stock data of Shanghai Composite Index from January 2012 to June 2022. LSTM is a kind of RNN, but it is superior to other neural networks. It can effectively deal with data forgetting and gradient explosion problems and bring reliability to the prediction results of the model. The two models are evaluated by analyzing MAE, MSE and the time required for model training. The results show that LSTM model can not only learn longer time span than BP model, but also better than BP model in MAE and MSE indexes, which provides some reference and guidance for the prediction of medium and long-term stocks.","PeriodicalId":227528,"journal":{"name":"International Conference on Artificial Intelligence and Computer Engineering (ICAICE 2022)","volume":null,"pages":null},"PeriodicalIF":0.0000,"publicationDate":"2023-04-28","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"International Conference on Artificial Intelligence and Computer Engineering (ICAICE 2022)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1117/12.2671216","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0

Abstract

In recent years, stock price prediction has become a research hotspot. The price of the stock market is unstable, which often rises or falls sharply due to the national policies, which makes it difficult for investors to achieve stable returns in the stock market. With the rapid rise of artificial intelligence, computers have become flexible in dealing with mathematical problems. Therefore, the extraordinary computing power of computers has been used to analyze and predict the trend of the stock market. More and more computer professionals began to enter the financial market and use neural network to study the trend of the stock market. This paper uses BP neural network and LSTM neural network to learn and predict the stock data of Shanghai Composite Index from January 2012 to June 2022. LSTM is a kind of RNN, but it is superior to other neural networks. It can effectively deal with data forgetting and gradient explosion problems and bring reliability to the prediction results of the model. The two models are evaluated by analyzing MAE, MSE and the time required for model training. The results show that LSTM model can not only learn longer time span than BP model, but also better than BP model in MAE and MSE indexes, which provides some reference and guidance for the prediction of medium and long-term stocks.
查看原文
分享 分享
微信好友 朋友圈 QQ好友 复制链接
本刊更多论文
基于BP和LSTM神经网络的股价预测比较研究
近年来,股票价格预测已成为一个研究热点。股票市场的价格不稳定,经常因为国家政策的影响而大幅上涨或下跌,这使得投资者很难在股票市场中获得稳定的回报。随着人工智能的迅速崛起,计算机在处理数学问题方面变得更加灵活。因此,计算机非凡的计算能力被用来分析和预测股票市场的趋势。越来越多的计算机专业人士开始进入金融市场,利用神经网络来研究股票市场的走势。本文采用BP神经网络和LSTM神经网络对上证综指2012年1月至2022年6月的股票数据进行学习和预测。LSTM是RNN的一种,但它优于其他神经网络。它能有效地处理数据遗忘和梯度爆炸问题,使模型的预测结果更加可靠。通过分析MAE、MSE和模型训练所需时间对两个模型进行评价。结果表明,LSTM模型不仅学习时间跨度比BP模型大,而且在MAE和MSE指标上也优于BP模型,为中长期股票预测提供了一定的参考和指导。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 去求助
来源期刊
自引率
0.00%
发文量
0
期刊最新文献
Hippocampus MRI diagnosis based on deep learning in application of preliminary screening of Alzheimer’s disease Global critic and local actor for campaign-tactic combat management in the joint operation simulation software Intelligent monitoring system of oil tank liquid level based on infrared thermal imaging Chinese named entity recognition incorporating syntactic information Object tracking based on foreground adaptive bounding box and motion state redetection
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
已复制链接
已复制链接
快去分享给好友吧!
我知道了
×
扫码分享
扫码分享
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1