GithubHelp home page GithubHelp logo

xunhs / st2vec Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zealscott/st2vec

0.0 0.0 0.0 46.48 MB

Source code for Spatio-Temporal Trajectory Similarity Learning in Road Networks. KDD 2022.

Home Page: https://arxiv.org/abs/2112.09339

License: Apache License 2.0

Python 100.00%

st2vec's Introduction

ST2Vec

This is our Pytorch implementation for the paper:

Ziquan Fang, Yuntao Du, Xinjun Zhu, Danlei Hu, Lu Chen, Yunjun Gao and Christian S. Jensen. (2022). Spatio-Temporal Trajectory Similarity Learning in Road Networks. Paper in ACM DL or Paper in arXiv. In KDD'22, Washington DC, USA, August 14-18, 2022.

Introduction

ST2Vec is a representation learning based solution that considers fine-grained spatial and temporal relations between trajectories to enable spatio-temporal similarity computation in road networks.

Citation

If you want to use our codes and datasets in your research, please cite:

@inproceedings{ST2Vec22,
  author    = {Ziquan Fang and
               Yuntao Du and
               Xinjun Zhu and
               Danlei Hu and 
               Lu Chen and 
               Yunjun Gao and
               Christian S. Jensen},
  title     = {Spatio-Temporal Trajectory Similarity Learning in Road Networks},
  booktitle = {{KDD}},
  pages = {347โ€“356},
  year      = {2022}
}

Requirements

  • Ubuntu OS
  • Python >= 3.5 (Anaconda3 is recommended)
  • PyTorch 1.4+
  • A Nvidia GPU with cuda 10.2+

Datasets

  • Trajectory dataset (TDrive) and Rome are an open source data set
  • We provided the road network data and map-matching result data

Reproducibility & Training

  1. Data preprocessing (Time embedding and node embedding)

    python preprocess.py
  2. Ground truth generating (It will take a while...)

    python spatial_similarity.py
    python temporal_similarity.py
  3. Triplets generating

    python data_utils.py
  4. Training

    python main.py

st2vec's People

Contributors

xj-zhu98 avatar zealscott avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.