All Projects → FIBLAB → DeepSTN

FIBLAB / DeepSTN

Licence: other
Codes for AAAI 2019 DeepSTN+: Context-aware Spatial-Temporal Neural Network for Crowd Flow Prediction in Metropolis

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to DeepSTN

PSVH-3d-reconstruction
Deep Single-View 3D Object Reconstruction with Visual Hull Embedding
Stars: ✭ 38 (-19.15%)
Mutual labels:  aaai2019
TianChi AIEarth
TianChi AIEarth Contest Solution
Stars: ✭ 57 (+21.28%)
Mutual labels:  spatial-temporal-forecasting
FedDA
Source code for 'Dual Attention Based FL for Wireless Traffic Prediction'
Stars: ✭ 41 (-12.77%)
Mutual labels:  spatial-temporal-forecasting
Traffic-Prediction-Open-Code-Summary
Summary of open source code for deep learning models in the field of traffic prediction
Stars: ✭ 58 (+23.4%)
Mutual labels:  traffic-flow-prediction
TET-GAN
[AAAI 2019] TET-GAN: Text Effects Transfer via Stylization and Destylization
Stars: ✭ 74 (+57.45%)
Mutual labels:  aaai2019
RHINE
Source code for AAAI 2019 paper "Relation Structure-Aware Heterogeneous Information Network Embedding"
Stars: ✭ 49 (+4.26%)
Mutual labels:  aaai2019

DeepSTN+

Keras implementation of DeepSTN+: Context-aware Spatial-Temporal Neural Network for Crowd Flow Prediction in Metropolis. Ziqian Lin^, Jie Feng^, Ziyang Lu, Yong Li, and Depeng Jin. AAAI 2019. (^ indicates equal contribution) PDF If our codes is helpful to your research, you can cite our work by:

@article{lin2019deepstn+:,
title={DeepSTN+: Context-aware Spatial Temporal Neural Network for Crowd Flow Prediction in Metropolis},
author={Lin, Ziqian and Feng, Jie and Lu, Ziyang and Li, Yong and Jin, Depeng},
booktitle={Thirty-Thrid AAAI Conference on Artificial Intelligence},
year={2019}
}

Datasets

Similar to ST-ResNet, our dataset is from the NYC Bike. Besides, we collect 9 types of PoIs for this dataset. The spatial map size of the dataset is 21x12. The dataset is in the folder /DATA/dataBikeNYC flow_data.npy ( TimeLenth x In&OutFlow x MapHeight x MapWidth = 4392 x 2 x 21 x 12 ) and poi_data.npy ( PoICategories x MapHeight x MapWidth = 9 x 21 x 12 ) for directly used.

Requirements

  • python 3.5
  • Keras 2.0
  • NumPy

Project Structure

File BikeNYC corresponds the Dataset BikeNYC in the Paper DeepSTN+.

  • /DATA
    • dataBikeNYC contain dataset flow_data.npy and poi_data.npy
    • lzq_read_data_time_poi.py transfer flow_data.npy and poi_data.npy to the input of the DeepSTN+ network
  • /DST_network baseline from ST-ResNet
    • ilayer.py
    • metrics.py
    • STResNet.py
  • /DeepSTN_00/SCORE are used to save the results of DeepSTN
  • /DeepSTN_10/SCORE are used to save the results of DeepSTN+plus
  • /DeepSTN_01/SCORE are used to save the results of DeepSTN+PoI$*$time
  • /DeepSTN_11/SCORE are used to save the results of DeepSTN+plus+PoI$*$time
  • /DeepSTN_network
    • DeepSTN_net.py model codes for DeepSTN+
    • metrics.py contains the metric RMSE
  • /ComparisonBikeNYC.py you can run this file to get the results of ST-ResNet and DeepSTN in the paper.

Usage

python ComparisonBikeNYC.py

Other parameters:

Refer to ComparisonBikeNYC.py and DeepSTN_net.py

  • for training:
    • epoch, batch_size, lr, days_test, iterate_num
    • XDST, X11, X10, X01, X00, trainDST, train11, train10, train01, train00
  • model definition: H, W, channel, T, len_closeness, len_period, len_trend, T_closeness, T_period, T_trend, pre_F, conv_F, R_N, drop, is_plus, plus, rate, is_pt, P_N, T_F, PT_F, is_summary, kernel1, isPT_F
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].