{"title":"基于BP和LSTM神经网络的股价预测比较研究","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":"8 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2023-04-28","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"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\":\"8 1\",\"pages\":\"0\"},\"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}","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}
A comparative study of stock price prediction based on BP and LSTM neural network
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.