Skip to content
forked from ksd1221/STADGCN

Spatial-Temporal Attention-based Dynamic Graph Convolutional Network for Retail Market Price Prediction, pytorch version

Notifications You must be signed in to change notification settings

dxlabskku/STADGCN

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

STAD-GCN: Spatial-Temporal Attention-based Dynamic Graph Convolutional Network for Market Price Prediction

We introduce STAD-GCN, a pioneering model that integrates temporal and spatial elements within a graph-based framework. This fusion amplifies our understanding of market dynamics and the factors influencing price determination. For more detailed information, please refer to my paper:

The below figure is the Architectural Overview of STAD-GCN: Multimodal Fusion with ASTGCN and LSTM for Retail Gasoline Price Prediction is outlined as follows: (A) Preprocessing: Input data is preprocessed based on its characteristics. It is formatted as a graph-based time series and routed to (B), while also treated as a standard time series sent to (C). (B) ASTGCN module: The graph-structured data passes through two spatial-temporal (ST) blocks to capture both spatial and temporal dependencies. (C) LSTM module: The standard time series data is processed through LSTM blocks to capture dynamic temporal features. (D) Output module: The outputs from (B) and (C) are fused together and processed through a fully-connected layer to generate the final prediction.

Requirements

python==3.10.12
cuda==11.8
pytorch==2.1.0

Datasets

We have sampled ten gas stations from the tested city, Seoul, and uploaded data corresponding to price and status over a fifteen-week period for each station. Additionally, international crude oil prices and refinery supply prices have also been sampled for the same duration. If you wish to access more data, please visit the following site. Opinet, the official website of the South Korea National Oil Corporation.

Model Parameters

  • learning_rate: Initial learing rate
  • batch_size: batch size
  • epochs: The number of epochs for training
  • window: The number of sequential data points used as input for the model.
  • horizon: specifies the time step in the future for which the model will predict, not a range but a single future point.
  • df_price: dataset of price
  • df_dist: dataset of distance between stations
  • df_macroeconomics: dataset of international crude oil prices and refinery supply prices.
  • col_list: column list of all features
  • cat_list: column list of categorical features
  • lstm_hidden_dim: number of hidden dimension of LSTM module
  • lstm_num_layers: number of LSTM layers
  • nb_block: number of ASTGCN blocks in the submodule
  • K: Degree of Chebyshev polynomial
  • nb_chev_filter: number of output filters in Chebyshev convolution
  • nb_time_filter: number of output filters in temporal convolution
  • time_strides: stride of the temporal convolution
  • num_for_predict: number of steps to predict
  • save_path: save path for model
  • device: CPU/GPU

Citation

@article{kim2024stad,
  title={STAD-GCN: Spatial-Temporal Attention-based Dynamic Graph Convolutional Network for retail market price prediction},
  author={Kim, Sodam and Park, Eunil},
  journal={Expert Systems with Applications},
  pages={124553},
  year={2024},
  publisher={Elsevier}
}

About

Spatial-Temporal Attention-based Dynamic Graph Convolutional Network for Retail Market Price Prediction, pytorch version

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%