TRACE: Real-time Compression of Streaming Trajectories in Road Networks

Tianyi Li, Lu Chen, Christian S. Jensen, Torben Bach Pedersen

TL;DR

This paper introduces TRACE, a novel framework for real-time compression, transmission, and querying of vehicle trajectories. It tackles the challenge of high data volume in location services by proposing a compact, two-stage representation and an efficient online compression scheme, significantly reducing storage and transmission costs without sacrificing data usability.

What Problem Does This Paper Address?

The proliferation of GPS-enabled devices generates massive amounts of vehicle trajectory data, leading to substantial storage and transmission costs. While offline compression methods exist, they are insufficient for real-time applications like traffic monitoring, as they require all data to be collected before compression. This necessitates an online approach that compresses data as it arrives. Existing online methods often compromise accuracy by discarding data or rely on costly offline model training that needs frequent updates. TRACE aims to bridge this gap by enabling efficient, accurate, and real-time compression and querying of streaming trajectories.

Methods

TRACE employs a three-layer vehicular edge computing (VEC) architecture. The core innovations lie in its trajectory representation and compression techniques:

  • Speed-based Representation: Instead of just using raw GPS points, TRACE represents trajectories using a combination of the start vertex, edge sequence, relative distance, growth rates of accumulative distances, and speed sequences. This captures essential movement patterns more compactly.
  • Multiple-References Referential Representation: It leverages similarities between subtrajectories from different vehicles by using multiple references. This is an extension of existing referential compression techniques.
  • k-mer Matching for Reference Selection: To efficiently find similar subtrajectories in real-time, TRACE adapts the k-mer matching algorithm (originally from bioinformatics) to identify matching subsequences within trajectories.
  • Online Reference Management: TRACE includes novel algorithms for reference deletion (to manage storage costs by removing infrequently used references) and reference rewriting (to further improve compression by merging frequently occurring consecutive subsequences).
  • Efficient Data Transmission: A state-based transmission scheme is proposed to send compressed trajectory data to a centralized cloud with low overhead, ensuring decodability without extra information.
  • Indexing and Filtering for Querying: To support efficient real-time range queries on compressed data, TRACE incorporates indexing and filtering techniques.

Datasets

The paper evaluates TRACE using two real-world datasets and one synthetic dataset:

  • Denmark (DK): Collected from 162 vehicles over approximately two years.
  • Hangzhou (HZ): Collected from 24,515 taxis over one month.
  • Synthetic (Syn): Generated based on the Hangzhou road network, with varying levels of trajectory similarity (Syn0.1 to Syn0.9) to test the impact of similarity on performance.

Key Insights and Ideas

  • Speed Matters for Compression: Representing trajectories not just by location but also by speed and its trends significantly improves compression ratios. This is because vehicles on the same road segment often exhibit similar speed patterns.
  • Online Reference Management is Crucial: The ability to dynamically delete outdated references and rewrite frequently occurring subsequences is key to maintaining high compression ratios and managing memory efficiently in a streaming context.
  • k-mer Matching Adapts Well: The adaptation of k-mer matching, a technique from sequence analysis, proves effective for fast and accurate identification of similar trajectory segments in real-time.
  • Edge Computing is a Natural Fit: The VEC architecture allows for distributed processing, bringing compression closer to the data source and reducing the burden on the central cloud.
  • Accuracy vs. Compression Trade-off: TRACE aims for high compression without sacrificing data usability, distinguishing it from methods that discard data. This comes at a slightly higher memory cost, which is still manageable for edge devices.

Key Results

  • Superior Compression: TRACE consistently outperforms baselines like CLEAN, OCT-LSTM, and OCT in terms of compression ratio (CR) and transmission cost (TC) across different datasets. For example, the transmission cost of OCT-LSTM was observed to be two orders of magnitude higher than TRACE.
  • Real-time Performance: The time delay for TRACE never exceeds its default sample interval (e.g., 20s), indicating its suitability for real-time applications.
  • Memory Efficiency: While TRACE's maximum memory cost is slightly higher than some baselines, it remains within acceptable limits for edge servers (never exceeding 8 MB). Reference deletion significantly reduces memory usage.
  • Scalability: The framework shows good scalability with increasing data size.
  • Parameter Sensitivity: Experiments demonstrate the impact of parameters like k-mer length (k), deletion coefficient (C), and rewriting coefficient (a) on performance, providing insights for tuning.

Limitations and Future Work

  • Memory Cost: TRACE's goal of high compression without data loss leads to a slightly higher memory cost compared to methods that discard data.
  • Future Work: The authors suggest exploring distributed cloud settings for TRACE and further reducing latency and memory costs for online compression. Investigating alternative partitioning methods beyond grid partitioning for indexing is also mentioned as a future direction.

Summary updated

BibTeX
@article{li2021trace,
  author = {Tianyi Li and Lu Chen and Christian S. Jensen and Torben Bach Pedersen},
  title = {{TRACE: Real-time Compression of Streaming Trajectories in Road Networks}},
  journal = {Proc. VLDB Endow.},
  year = {2021},
  url = {https://openreview.net/forum?id=7cUgkjlCYH},
}

Loading related content...

Figure