STRP-DBSCAN: A Parallel DBSCAN Algorithm Based on Spatial-Temporal Random Partitioning for Clustering Trajectory Data

Xiaoya An, Ziming Wang, Ding Wang, Song Liu, Cheng Jin, Xinpeng Xu, Jianjun CaoApplied Sciences 2023

TL;DR

This paper introduces STRP-DBSCAN, a novel parallel DBSCAN algorithm that leverages spatial-temporal random partitioning to efficiently cluster trajectory data, significantly reducing computation time. To address DBSCAN's sensitivity to parameters, they also propose PER-SAC, a deep reinforcement learning approach for automatic parameter tuning, leading to improved clustering accuracy and stability.

What Problem Does This Paper Address?

Trajectory data, abundant in applications like traffic analysis and logistics, holds valuable insights into movement patterns. However, existing clustering algorithms, particularly density-based methods like DBSCAN, struggle with the scale, temporal dynamics, and parameter sensitivity of this data. Traditional DBSCAN is primarily designed for spatial data and doesn't effectively utilize temporal information, leading to long processing times and suboptimal accuracy. Furthermore, manually tuning DBSCAN's critical parameters (Eps and MinPts) is challenging and significantly impacts clustering results. This paper aims to overcome these limitations by proposing a parallel DBSCAN that better handles spatial-temporal data and an automated parameter tuning method.

Methods

The core innovation is the STRP-DBSCAN algorithm, which builds upon the RP-DBSCAN framework. It introduces spatial-temporal random partitioning to distribute trajectory data more effectively across computing nodes. Unlike previous methods that might only consider spatial proximity, STRP-DBSCAN uses both spatial and temporal attributes to create partitions, aiming for better load balancing and reduced communication overhead. This is achieved by using the time value of data points within a cell as a partition key.

To tackle DBSCAN's parameter sensitivity, the authors developed the PER-SAC algorithm. This approach combines the Soft Actor-Critic (SAC) algorithm, known for its stability and exploration capabilities, with the Prioritized Experience Replay (PER) mechanism. PER allows the algorithm to focus on more informative experiences, accelerating learning. PER-SAC acts as an autotuning framework, treating parameter tuning as a reinforcement learning problem to find optimal Eps and MinPts values for DBSCAN.

Datasets

The experiments utilize real-world ship trajectory data from the public Automatic Identification System (AIS) dataset, specifically from the East China Sea. The paper mentions using datasets of various sizes, including 3.3K, 8.5K, 12K, 50K, and 217K data points, for both unlabeled and labeled evaluations.

Key Insights and Ideas

  • Temporal partitioning is crucial: Simply extending spatial clustering to temporal data isn't enough. Effectively partitioning based on both space and time is key to improving efficiency.
  • Load balancing is paramount for parallel performance: The STRP-DBSCAN's spatial-temporal partitioning strategy significantly improves load distribution, which is critical for scaling parallel algorithms.
  • Deep Reinforcement Learning for parameter tuning is powerful: PER-SAC demonstrates that DRL can effectively learn optimal parameters for complex algorithms like DBSCAN, overcoming the limitations of manual tuning.
  • Prioritized experience replay enhances DRL efficiency: PER's ability to focus on high-value experiences accelerates the learning process for parameter optimization.
  • The combination is synergistic: STRP-DBSCAN provides an efficient parallel clustering engine, while PER-SAC ensures it's optimally configured, leading to superior overall performance.

Key Results

STRP-DBSCAN significantly improves clustering efficiency:

  • Reduces clustering time by up to 96.2% compared to parallel DBSCAN and 31.2% compared to RP-DBSCAN on large datasets.
  • Achieves this speedup without substantial loss in clustering accuracy.

The PER-SAC algorithm enhances clustering accuracy and stability:

  • Improves clustering accuracy by up to 8.8% compared to state-of-the-art parameter tuning algorithms.
  • Demonstrates higher stability in clustering results.
  • Outperforms K-Means, KANN, TD3-DBSCAN, and SAC-DBSCAN in terms of both accuracy and stability.

Limitations and Future Work

  • Labeled data dependency for PER-SAC: The current PER-SAC algorithm relies on labeled datasets for its reward function, limiting its direct application to unsupervised scenarios.
  • Future work: The authors plan to investigate parameter autotuning methods for unlabeled data to broaden the applicability of their approach. They also aim to improve the generalizability of their work.

Summary updated

BibTeX
@inproceedings{an2023strp,
  author = {Xiaoya An and Ziming Wang and Ding Wang and Song Liu and Cheng Jin and Xinpeng Xu and Jianjun Cao},
  title = {{STRP-DBSCAN: A Parallel DBSCAN Algorithm Based on Spatial-Temporal Random Partitioning for Clustering Trajectory Data}},
  booktitle = {Applied Sciences},
  year = {2023},
  doi = {10.3390/app132011122},
}
Figure