Cargando…
LSTM-based sentiment analysis for stock price forecast
Investing in stocks is an important tool for modern people’s financial management, and how to forecast stock prices has become an important issue. In recent years, deep learning methods have successfully solved many forecast problems. In this paper, we utilized multiple factors for the stock price f...
Autores principales: | , |
---|---|
Formato: | Online Artículo Texto |
Lenguaje: | English |
Publicado: |
PeerJ Inc.
2021
|
Materias: | |
Acceso en línea: | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7959635/ https://www.ncbi.nlm.nih.gov/pubmed/33817050 http://dx.doi.org/10.7717/peerj-cs.408 |
_version_ | 1783664992625623040 |
---|---|
author | Ko, Ching-Ru Chang, Hsien-Tsung |
author_facet | Ko, Ching-Ru Chang, Hsien-Tsung |
author_sort | Ko, Ching-Ru |
collection | PubMed |
description | Investing in stocks is an important tool for modern people’s financial management, and how to forecast stock prices has become an important issue. In recent years, deep learning methods have successfully solved many forecast problems. In this paper, we utilized multiple factors for the stock price forecast. The news articles and PTT forum discussions are taken as the fundamental analysis, and the stock historical transaction information is treated as technical analysis. The state-of-the-art natural language processing tool BERT are used to recognize the sentiments of text, and the long short term memory neural network (LSTM), which is good at analyzing time series data, is applied to forecast the stock price with stock historical transaction information and text sentiments. According to experimental results using our proposed models, the average root mean square error (RMSE ) has 12.05 accuracy improvement. |
format | Online Article Text |
id | pubmed-7959635 |
institution | National Center for Biotechnology Information |
language | English |
publishDate | 2021 |
publisher | PeerJ Inc. |
record_format | MEDLINE/PubMed |
spelling | pubmed-79596352021-04-02 LSTM-based sentiment analysis for stock price forecast Ko, Ching-Ru Chang, Hsien-Tsung PeerJ Comput Sci Artificial Intelligence Investing in stocks is an important tool for modern people’s financial management, and how to forecast stock prices has become an important issue. In recent years, deep learning methods have successfully solved many forecast problems. In this paper, we utilized multiple factors for the stock price forecast. The news articles and PTT forum discussions are taken as the fundamental analysis, and the stock historical transaction information is treated as technical analysis. The state-of-the-art natural language processing tool BERT are used to recognize the sentiments of text, and the long short term memory neural network (LSTM), which is good at analyzing time series data, is applied to forecast the stock price with stock historical transaction information and text sentiments. According to experimental results using our proposed models, the average root mean square error (RMSE ) has 12.05 accuracy improvement. PeerJ Inc. 2021-03-11 /pmc/articles/PMC7959635/ /pubmed/33817050 http://dx.doi.org/10.7717/peerj-cs.408 Text en ©2021 Ko and Chang https://creativecommons.org/licenses/by/4.0/ This is an open access article distributed under the terms of the Creative Commons Attribution License (https://creativecommons.org/licenses/by/4.0/) , which permits unrestricted use, distribution, reproduction and adaptation in any medium and for any purpose provided that it is properly attributed. For attribution, the original author(s), title, publication source (PeerJ Computer Science) and either DOI or URL of the article must be cited. |
spellingShingle | Artificial Intelligence Ko, Ching-Ru Chang, Hsien-Tsung LSTM-based sentiment analysis for stock price forecast |
title | LSTM-based sentiment analysis for stock price forecast |
title_full | LSTM-based sentiment analysis for stock price forecast |
title_fullStr | LSTM-based sentiment analysis for stock price forecast |
title_full_unstemmed | LSTM-based sentiment analysis for stock price forecast |
title_short | LSTM-based sentiment analysis for stock price forecast |
title_sort | lstm-based sentiment analysis for stock price forecast |
topic | Artificial Intelligence |
url | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7959635/ https://www.ncbi.nlm.nih.gov/pubmed/33817050 http://dx.doi.org/10.7717/peerj-cs.408 |
work_keys_str_mv | AT kochingru lstmbasedsentimentanalysisforstockpriceforecast AT changhsientsung lstmbasedsentimentanalysisforstockpriceforecast |