Cargando…
Forecasting stock prices with long-short term memory neural network based on attention mechanism
The stock market is known for its extreme complexity and volatility, and people are always looking for an accurate and effective way to guide stock trading. Long short-term memory (LSTM) neural networks are developed by recurrent neural networks (RNN) and have significant application value in many f...
Autores principales: | , , |
---|---|
Formato: | Online Artículo Texto |
Lenguaje: | English |
Publicado: |
Public Library of Science
2020
|
Materias: | |
Acceso en línea: | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6941898/ https://www.ncbi.nlm.nih.gov/pubmed/31899770 http://dx.doi.org/10.1371/journal.pone.0227222 |
_version_ | 1783484615248314368 |
---|---|
author | Qiu, Jiayu Wang, Bin Zhou, Changjun |
author_facet | Qiu, Jiayu Wang, Bin Zhou, Changjun |
author_sort | Qiu, Jiayu |
collection | PubMed |
description | The stock market is known for its extreme complexity and volatility, and people are always looking for an accurate and effective way to guide stock trading. Long short-term memory (LSTM) neural networks are developed by recurrent neural networks (RNN) and have significant application value in many fields. In addition, LSTM avoids long-term dependence issues due to its unique storage unit structure, and it helps predict financial time series. Based on LSTM and an attention mechanism, a wavelet transform is used to denoise historical stock data, extract and train its features, and establish the prediction model of a stock price. We compared the results with the other three models, including the LSTM model, the LSTM model with wavelet denoising and the gated recurrent unit(GRU) neural network model on S&P 500, DJIA, HSI datasets. Results from experiments on the S&P 500 and DJIA datasets show that the coefficient of determination of the attention-based LSTM model is both higher than 0.94, and the mean square error of our model is both lower than 0.05. |
format | Online Article Text |
id | pubmed-6941898 |
institution | National Center for Biotechnology Information |
language | English |
publishDate | 2020 |
publisher | Public Library of Science |
record_format | MEDLINE/PubMed |
spelling | pubmed-69418982020-01-10 Forecasting stock prices with long-short term memory neural network based on attention mechanism Qiu, Jiayu Wang, Bin Zhou, Changjun PLoS One Research Article The stock market is known for its extreme complexity and volatility, and people are always looking for an accurate and effective way to guide stock trading. Long short-term memory (LSTM) neural networks are developed by recurrent neural networks (RNN) and have significant application value in many fields. In addition, LSTM avoids long-term dependence issues due to its unique storage unit structure, and it helps predict financial time series. Based on LSTM and an attention mechanism, a wavelet transform is used to denoise historical stock data, extract and train its features, and establish the prediction model of a stock price. We compared the results with the other three models, including the LSTM model, the LSTM model with wavelet denoising and the gated recurrent unit(GRU) neural network model on S&P 500, DJIA, HSI datasets. Results from experiments on the S&P 500 and DJIA datasets show that the coefficient of determination of the attention-based LSTM model is both higher than 0.94, and the mean square error of our model is both lower than 0.05. Public Library of Science 2020-01-03 /pmc/articles/PMC6941898/ /pubmed/31899770 http://dx.doi.org/10.1371/journal.pone.0227222 Text en © 2020 Qiu et al http://creativecommons.org/licenses/by/4.0/ This is an open access article distributed under the terms of the Creative Commons Attribution License (http://creativecommons.org/licenses/by/4.0/) , which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited. |
spellingShingle | Research Article Qiu, Jiayu Wang, Bin Zhou, Changjun Forecasting stock prices with long-short term memory neural network based on attention mechanism |
title | Forecasting stock prices with long-short term memory neural network based on attention mechanism |
title_full | Forecasting stock prices with long-short term memory neural network based on attention mechanism |
title_fullStr | Forecasting stock prices with long-short term memory neural network based on attention mechanism |
title_full_unstemmed | Forecasting stock prices with long-short term memory neural network based on attention mechanism |
title_short | Forecasting stock prices with long-short term memory neural network based on attention mechanism |
title_sort | forecasting stock prices with long-short term memory neural network based on attention mechanism |
topic | Research Article |
url | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6941898/ https://www.ncbi.nlm.nih.gov/pubmed/31899770 http://dx.doi.org/10.1371/journal.pone.0227222 |
work_keys_str_mv | AT qiujiayu forecastingstockpriceswithlongshorttermmemoryneuralnetworkbasedonattentionmechanism AT wangbin forecastingstockpriceswithlongshorttermmemoryneuralnetworkbasedonattentionmechanism AT zhouchangjun forecastingstockpriceswithlongshorttermmemoryneuralnetworkbasedonattentionmechanism |