Skip to content

susurrant/flow-clustering

Repository files navigation

flow-clustering

A stepwise spatio-temporal flow clustering method for discovering mobility trends

Description

Flow clustering, which summarizes individual flows into aggregate flows, can help to discover human mobility patterns. Existing flow clustering methods ignore the geometric properties of flows and do not consider their temporal information. This research

  1. Defines new measurements of spatial similarity and temporal similarity between flows.
  2. Develops a spatio-temporal clustering method for flow data.

Enviroment

Python version: 3.5 (some codes were written using 2.7)

Reference

A Stepwise Spatio-Temporal Flow Clustering Method for Discovering Mobility Trends
Xin Yao, Di Zhu, Yong Gao, Lun Wu, Pengcheng Zhang, Yu Liu, 2018, IEEE Access

Method

  • Spatial similarity: (a) Flows are in spatial proximity to each other. (b) Flow directions are approximately equivalent. (c) Flow lengths are similar.
  • Temporal Similarity: Two flows are more temporally similar if the periods during which they occur overlap more.
  • Algorithms: We use a two-step clustering strategy in which spatial clustering is conducted before temporal clustering. An agglomerative clustering framework is adopted to implement flow clustering, which merges flows to form a hierarchy of flow clusters.

Example

We apply the method to Beijing taxi trip data, which contains valid 266,817 records from 17,397 different taxis on May 13, 2013.

  1. Data:
    data
  2. Spatial clustering:
    spatial clustering
  3. Temporal clustering of spatial clusters #151 and #318:
    temporal clustering

About

Spatio-temporal clustering of flow data

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages