Forecasting stock prices is a challenging problem in financial markets. Traditional statistical time series models often struggle to achieve satisfactory results, while deep learning models have shown promise to provide even better outcomes. These models typically focus on capturing and exploiting temporal dependencies within the time series data. In this study, we propose a novel model that incorporates both temporal and geometric patterns present in stock price time series data. Firstly, we employ the visibility graph theory to derive a graph representation of the stock price time series, enabling us to capture the inherent non-Euclidean relationships within the data, which is important because it could lead to a better representation of the observations. Subsequently, we utilize Graph Neural Networks (GNNs) to analyze and model these relationships effectively. Finally, we incorporate a Long Short-Term Memory (LSTM) network enhanced with an attention mechanism to capture the temporal dependencies. Through numerical evaluation, our proposed model demonstrates superior performance compared to state-of-the-art models in the prediction of stock prices. The integration of a graph-based representation, GNNs, LSTM, and an attention mechanism enables our model to effectively capture both the temporal and geometric patterns of the stock price time series data. This research contributes to the field of stock price prediction by introducing a comprehensive model that is able to combine the strengths of GNNs and the LSTM network to exploit non-linear dependencies and patterns inside a time series to address the limitations current Recurrent Neural Networks (RNNs).

Stock Price Time Series Forecasting Using Dynamic Graph Neural Networks and Attention Mechanism in Recurrent Neural Networks

Parton, Maurizio
2025-01-01

Abstract

Forecasting stock prices is a challenging problem in financial markets. Traditional statistical time series models often struggle to achieve satisfactory results, while deep learning models have shown promise to provide even better outcomes. These models typically focus on capturing and exploiting temporal dependencies within the time series data. In this study, we propose a novel model that incorporates both temporal and geometric patterns present in stock price time series data. Firstly, we employ the visibility graph theory to derive a graph representation of the stock price time series, enabling us to capture the inherent non-Euclidean relationships within the data, which is important because it could lead to a better representation of the observations. Subsequently, we utilize Graph Neural Networks (GNNs) to analyze and model these relationships effectively. Finally, we incorporate a Long Short-Term Memory (LSTM) network enhanced with an attention mechanism to capture the temporal dependencies. Through numerical evaluation, our proposed model demonstrates superior performance compared to state-of-the-art models in the prediction of stock prices. The integration of a graph-based representation, GNNs, LSTM, and an attention mechanism enables our model to effectively capture both the temporal and geometric patterns of the stock price time series data. This research contributes to the field of stock price prediction by introducing a comprehensive model that is able to combine the strengths of GNNs and the LSTM network to exploit non-linear dependencies and patterns inside a time series to address the limitations current Recurrent Neural Networks (RNNs).
File in questo prodotto:
Non ci sono file associati a questo prodotto.

I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/11564/876060
 Attenzione

Attenzione! I dati visualizzati non sono stati sottoposti a validazione da parte dell'ateneo

Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus 1
  • ???jsp.display-item.citation.isi??? 2
social impact