DETECT: Deep Trajectory Clustering for Mobility-Behavior Analysis

Mingxuan Yue, Yaguang Li, Haoze Yang, Ritesh Ahuja, Yao-Yi Chiang, Cyrus Shahabi

Introduction

Traditional trajectory clustering methods primarily focus on spatio-temporal similarity, grouping paths based on their physical shapes or temporal overlaps. However, these approaches often fail to capture the underlying mobility behavior—the "why" behind a movement, such as commuting to work versus going grocery shopping.

The authors identify two major challenges in behavior-based clustering:

  1. Scale-variance: Identical behaviors can manifest as physically different trajectories (e.g., a long car commute vs. a short walk).
  2. Lack of Context: Raw GPS coordinates lack the semantic information needed to distinguish between stopping at a mall or a hospital.

To address these, the authors propose DETECT (Deep Embedded TrajEctory ClusTering), an unsupervised framework that integrates geographical context with deep learning to identify latent mobility patterns.

Methodology

The DETECT framework operates through a three-stage pipeline designed to transform raw coordinates into semantic behavioral clusters.

1. Feature Augmentation and Contextualization

The process begins with Fast-SPD, an efficient Stay Point Detection algorithm that filters movement noise to focus on locations where users spend significant time. Each stay point is then contextualized using Point-of-Interest (POI) data. By analyzing the density of POI categories (e.g., "education," "shopping") within a 1km radius, the model converts a simple coordinate into a semantic signature. This ensures that a "supermarket" stop in one city is recognized as behaviorally equivalent to a "grocery store" stop in another.

2. Deep Learning Architecture

The core of DETECT is a dual-phase neural network designed to optimize both data representation and cluster separation.

The DETECT framework architecture, featuring an LSTM autoencoder for latent embedding and a clustering function for joint optimization.
  • Phase I - Latent Embedding: Augmented trajectories are processed by a Recurrent Neural Network (RNN) Autoencoder. This stage learns a compressed, fixed-length representation (embedding) that captures the transitions between different geographical contexts.
  • Phase II - Joint Optimization: Unlike traditional methods that apply clustering as a post-processing step, DETECT uses a clustering-oriented loss based on KL-divergence. The network iteratively refines both the latent embeddings and the cluster assignments simultaneously. High-confidence assignments serve as "soft labels," pushing the latent space to become more separable for specific behaviors.

Evaluation and Results

The framework was evaluated on two real-world datasets: GeoLife (Beijing), containing over 17,000 trajectories, and DMCL (Illinois), a smaller, personalized dataset. For validation, experts manually labeled a subset of GeoLife trajectories into six behavioral categories, such as "campus activities" and "working commutes."

Performance comparison of DETECT against baselines on DMCL and GeoLife datasets using the Fowlkes Mallows Index.

Key Findings

  • Superior Accuracy: DETECT significantly outperformed state-of-the-art baselines like KM-DBA and DB-LCSS. On the GeoLife dataset, it achieved a 132% improvement in Rand Index (RI) over KM-DBA and a 252% improvement over DB-LCSS.
  • Computational Efficiency: Despite its deep learning components, DETECT's training time (2.1 hours) was faster than traditional methods like DB-LCSS (5.2 hours), which are hampered by $O(n^2)$ pairwise distance calculations.
  • Robustness: Qualitative analysis via t-SNE plots confirmed that DETECT successfully groups trajectories with similar POI transitions even when their physical lengths and durations vary significantly.

Conclusion

DETECT represents a shift from geometric to semantic trajectory analysis. By leveraging POI context and joint optimization of embeddings and clusters, it provides a robust, unsupervised solution for understanding human mobility. While the model currently depends on high-quality POI data and a pre-specified cluster count, its ability to capture latent behaviors opens new doors for applications in urban planning and personalized recommendation systems.

Summary updated

BibTeX
@inproceedings{yue2019detect,
  author = {Mingxuan Yue and Yaguang Li and Haoze Yang and Ritesh Ahuja and Yao-Yi Chiang and Cyrus Shahabi},
  title = {{DETECT: Deep Trajectory Clustering for Mobility-Behavior Analysis}},
  booktitle = {IEEE BigData},
  year = {2019},
  doi = {10.1109/bigdata47090.2019.9006561},
}
Figure