k/2-hop: Fast Mining of Convoy Patterns With Effective Pruning

Faisal Orakzai, Toon Calders, Torben Bach PedersenPVLDB 2019 · DOI · OpenReview

Introduction

The proliferation of GPS-enabled devices has led to an explosion of spatio-temporal data. A critical task in analyzing this data is convoy mining: identifying groups of at least $m$ objects that remain in close proximity for at least $k$ consecutive time steps. Such patterns are vital for applications ranging from traffic management and carpooling to ecological studies of animal migration.

However, finding convoys is computationally intensive. Traditional methods rely on performing density-based clustering (like DBSCAN) at every single timestamp. For large-scale datasets with millions of points and thousands of timestamps, the $O(n \log n)$ cost of clustering becomes a massive bottleneck. While parallel and distributed frameworks have been proposed, they often suffer from significant I/O overhead and complex parameter tuning.

The k/2-hop Methodology

The k/2-hop algorithm addresses these challenges by introducing an exact sequential approach that avoids redundant clustering. Its core innovation is the Benchmark Principle.

The Benchmark Principle

If a convoy must persist for at least $k$ time steps, and we establish "benchmark" timestamps at intervals of $k/2$, any valid convoy is mathematically guaranteed to cross at least two consecutive benchmarks. By only performing full clustering at these specific intervals, the algorithm can prune the vast majority of irrelevant data points. If an object is not part of a cluster at two adjacent benchmarks, it cannot possibly belong to a convoy within that window.

The Benchmark Principle: Convoys must span at least two benchmark points (b_i) placed at k/2 intervals.

Efficient Refinement via HWMT

After identifying candidate "spanning" convoys at benchmark points, the algorithm must fill the gaps between benchmarks to determine the true start and end times of each convoy. To do this efficiently, k/2-hop utilizes a Hop-Window Mining Tree (HWMT).

This structure operates similarly to a binary search. Instead of checking every intermediate timestamp linearly, the HWMT checks the middle timestamp of a window. If the group's connectivity holds, the search continues; if it fails, the entire branch is pruned. This hierarchical approach ensures that the algorithm only processes the minimum amount of data necessary to validate a convoy.

The Hop-Window Mining Tree (HWMT) structure used to refine candidate clusters across levels of temporal granularity.

Performance and Scalability

The effectiveness of k/2-hop was evaluated using real-world datasets (Athens Trucks and Beijing T-Drive Taxis) and synthetic data (Brinkhoff Generator) scaling up to 122 million points.

Key findings include:

  • Extreme Pruning: In the T-Drive dataset, the algorithm successfully pruned between 98.3% and 99.8% of data points before the expensive mining phase began.
  • Superior Speed: On a single-core machine, k/2-hop outperformed the SPARE parallel framework by up to 43,000x and the DCM distributed algorithm by 140x.
  • Robustness: Unlike previous "filter-and-refine" methods that require sensitive parameter tuning, k/2-hop's efficiency is inherently tied to the user-defined $k$ parameter, making it highly user-friendly.

Conclusion

The k/2-hop algorithm demonstrates that "not looking" at data can be the most effective way to process it. By leveraging the Benchmark Principle and HWMT, it achieves state-of-the-art performance on a single core that exceeds massive distributed clusters. Future work may involve extending this logic to other spatio-temporal patterns, such as flocks or swarms, and further parallelizing the independent hop-windows for even greater scale.

Summary updated

BibTeX
@article{orakzai2019k,
  author = {Faisal Orakzai and Toon Calders and Torben Bach Pedersen},
  title = {{k/2-hop: Fast Mining of Convoy Patterns With Effective Pruning}},
  journal = {Proc. VLDB Endow.},
  year = {2019},
  doi = {10.14778/3329772.3329773},
}
Figure