xiang526 / KeyCommutingRoutes

This code is a framework of key commuting routes mining algorithm based on license plate recognition(LPR) data.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Key Commuting Routes

Please cite the following paper when using the code.
Paper: Analysis of key commuting routes based on spatiotemporal trip chain

Abstract

This code is a framework of key commuting routes mining algorithm based on license plate recognition(LPR) data. Theoretically, the algorithm can be migrated to any similar spatio-temporal data, such as GPS trajectory data. Commuting pattern vehicles are first extracted, and then the spatio-temporal trip chains of all commuting pattern vehicles are mined. Based on the spatio-temporal trip chains, the spatio-temporal similarity matrix is constructed by dynamic time warping (DTW) algorithm. The characteristics of commuting pattern are analysed by the density-based spatial clustering of applications with noise (DBSCAN) algorithm.

Content

  --    data_preprocess.py       extract car plates, trajectories and time series from raw LPR data
  --    clutering.py             use DBSCAN to cluster key routes
  --    DTW.py                   dynamic time warping (DTW) algorithm main functions
  --    matrix.py                calculate DTW matrices of sample group of commuting cars  

About

This code is a framework of key commuting routes mining algorithm based on license plate recognition(LPR) data.


Languages

Language:Python 100.0%