Cargando…
Stock Market Forecasting Based on Spatiotemporal Deep Learning
This study introduces the Spacetimeformer model, a novel approach for predicting stock prices, leveraging the Transformer architecture with a time–space mechanism to capture both spatial and temporal interactions among stocks. Traditional Long–Short Term Memory (LSTM) and recent Transformer models l...
Autores principales: | , , , |
---|---|
Formato: | Online Artículo Texto |
Lenguaje: | English |
Publicado: |
MDPI
2023
|
Materias: | |
Acceso en línea: | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC10528303/ https://www.ncbi.nlm.nih.gov/pubmed/37761625 http://dx.doi.org/10.3390/e25091326 |
_version_ | 1785111248309846016 |
---|---|
author | Li, Yung-Chen Huang, Hsiao-Yun Yang, Nan-Ping Kung, Yi-Hung |
author_facet | Li, Yung-Chen Huang, Hsiao-Yun Yang, Nan-Ping Kung, Yi-Hung |
author_sort | Li, Yung-Chen |
collection | PubMed |
description | This study introduces the Spacetimeformer model, a novel approach for predicting stock prices, leveraging the Transformer architecture with a time–space mechanism to capture both spatial and temporal interactions among stocks. Traditional Long–Short Term Memory (LSTM) and recent Transformer models lack the ability to directly incorporate spatial information, making the Spacetimeformer model a valuable addition to stock price prediction. This article uses the ten minute stock prices of the constituent stocks of the Taiwan 50 Index and the intraday data of individual stock on the Taiwan Stock Exchange. By training the Timespaceformer model with multi-time-step stock price data, we can predict the stock prices at every ten minute interval within the next hour. Finally, we also compare the prediction results with LSTM and Transformer models that only consider temporal relationships. The research demonstrates that the Spacetimeformer model consistently captures essential trend changes and provides stable predictions in stock price forecasting. This article proposes a Spacetimeformer model combined with daily moving windows. This method has superior performance in stock price prediction and also demonstrates the significance and value of the space–time mechanism for prediction. We recommend that people who want to predict stock prices or other financial instruments try our proposed method to obtain a better return on investment. |
format | Online Article Text |
id | pubmed-10528303 |
institution | National Center for Biotechnology Information |
language | English |
publishDate | 2023 |
publisher | MDPI |
record_format | MEDLINE/PubMed |
spelling | pubmed-105283032023-09-28 Stock Market Forecasting Based on Spatiotemporal Deep Learning Li, Yung-Chen Huang, Hsiao-Yun Yang, Nan-Ping Kung, Yi-Hung Entropy (Basel) Article This study introduces the Spacetimeformer model, a novel approach for predicting stock prices, leveraging the Transformer architecture with a time–space mechanism to capture both spatial and temporal interactions among stocks. Traditional Long–Short Term Memory (LSTM) and recent Transformer models lack the ability to directly incorporate spatial information, making the Spacetimeformer model a valuable addition to stock price prediction. This article uses the ten minute stock prices of the constituent stocks of the Taiwan 50 Index and the intraday data of individual stock on the Taiwan Stock Exchange. By training the Timespaceformer model with multi-time-step stock price data, we can predict the stock prices at every ten minute interval within the next hour. Finally, we also compare the prediction results with LSTM and Transformer models that only consider temporal relationships. The research demonstrates that the Spacetimeformer model consistently captures essential trend changes and provides stable predictions in stock price forecasting. This article proposes a Spacetimeformer model combined with daily moving windows. This method has superior performance in stock price prediction and also demonstrates the significance and value of the space–time mechanism for prediction. We recommend that people who want to predict stock prices or other financial instruments try our proposed method to obtain a better return on investment. MDPI 2023-09-12 /pmc/articles/PMC10528303/ /pubmed/37761625 http://dx.doi.org/10.3390/e25091326 Text en © 2023 by the authors. https://creativecommons.org/licenses/by/4.0/Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/). |
spellingShingle | Article Li, Yung-Chen Huang, Hsiao-Yun Yang, Nan-Ping Kung, Yi-Hung Stock Market Forecasting Based on Spatiotemporal Deep Learning |
title | Stock Market Forecasting Based on Spatiotemporal Deep Learning |
title_full | Stock Market Forecasting Based on Spatiotemporal Deep Learning |
title_fullStr | Stock Market Forecasting Based on Spatiotemporal Deep Learning |
title_full_unstemmed | Stock Market Forecasting Based on Spatiotemporal Deep Learning |
title_short | Stock Market Forecasting Based on Spatiotemporal Deep Learning |
title_sort | stock market forecasting based on spatiotemporal deep learning |
topic | Article |
url | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC10528303/ https://www.ncbi.nlm.nih.gov/pubmed/37761625 http://dx.doi.org/10.3390/e25091326 |
work_keys_str_mv | AT liyungchen stockmarketforecastingbasedonspatiotemporaldeeplearning AT huanghsiaoyun stockmarketforecastingbasedonspatiotemporaldeeplearning AT yangnanping stockmarketforecastingbasedonspatiotemporaldeeplearning AT kungyihung stockmarketforecastingbasedonspatiotemporaldeeplearning |