NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Prediction-based Online Trajectory Compression

Arlei Silva, Ramya Raghavendra, Mudhakar Srivatsa, Ambuj K. SingharXiv 2016

TL;DR

This paper introduces ONTRAC, a novel framework for compressing trajectory data in real-time for applications like smart cities and ride-sharing. By learning predictive models for vehicle movement and travel times, ONTRAC significantly reduces the amount of data that needs to be stored and processed, leading to improved database scalability and efficiency without sacrificing accuracy.

What Problem Does This Paper Address?

Modern applications dealing with spatio-temporal data, such as ride-sharing services (Uber, Lyft) and smart city initiatives, generate massive amounts of trajectory data. Processing this data in real-time presents a significant challenge due to its sheer volume and the need for timely updates. Traditional trajectory compression techniques are often designed for offline scenarios, meaning they process data in batches after it has been collected. This is insufficient for online applications where data needs to be continuously ingested and compressed as it arrives. The core problem is how to efficiently compress trajectory streams in an "online" fashion, ensuring that the compressed data can still be queried and used effectively while minimizing storage and processing overhead.

Methods

ONTRAC tackles this problem by decomposing trajectories into two key components: spatial (the sequence of road segments visited) and temporal (the time taken to traverse those segments). It then employs distinct prediction-based compression strategies for each:

  • Spatial Compression: ONTRAC uses a k-order Markov model, learned from historical trajectory data, to predict the next road segment a vehicle is likely to traverse. If the actual segment matches the prediction, it's suppressed from the database. This approach is lossless for spatial information.
  • Temporal Compression: This is a lossy compression technique. ONTRAC learns a generative Gaussian model for travel times on road segments. It combines Quadratic Programming (QP) and Expectation-Maximization (EM) to infer missing travel times and predict future ones. Updates are suppressed if the predicted travel time is within an acceptable error bound ($\lambda$). This allows for error-bounded temporal reconstruction.

The framework also includes methods for querying compressed trajectory data, specifically focusing on partial decompression to efficiently answer "where am I?" type queries.

Datasets

The paper evaluates ONTRAC using two real-world datasets:

  • San Francisco Cab dataset (SF): GPS traces from 500 cabs over 30 days.
  • Beijing dataset: GPS traces from 10,357 cabs over a week.

Additionally, synthetic datasets (Syn-I and Syn-II) were generated using the SF road network and synthetic trajectories to explore specific scenarios, such as varying destination popularity.

Key Insights and Ideas

  • Prediction is Key for Online Compression: The paper strongly advocates for prediction-based methods as the most effective way to handle the continuous stream of data in online settings, contrasting it with batch-oriented approaches.
  • Decomposition for Specialization: Separating spatial and temporal information allows for tailored, more effective compression techniques for each, leveraging their distinct characteristics.
  • The Power of Markov Models for Spatial Prediction: The use of Markov models for predicting road segments proves to be a simple yet effective way to achieve significant spatial compression.
  • QP and EM for Robust Temporal Inference: Combining Quadratic Programming for efficient optimization with Expectation-Maximization for iterative learning allows ONTRAC to handle sparse and noisy GPS data for accurate temporal predictions.
  • Partial Decompression is Crucial for Querying: For online compressed data, full decompression at query time is too slow. The concept of partial decompression is vital for maintaining query performance.

Key Results

  • High Compression Ratios: ONTRAC achieves significant compression ratios, outperforming the state-of-the-art offline technique (PRESS) even when PRESS is allowed long update delays (up to 4 minutes). Spatial compression ratios of 13.6 (SF) and 10.4 (Beijing) were reported. Temporal compression achieved up to 21 times higher ratios than the baseline.
  • Improved Database Scalability: ONTRAC increases the number of data inserts per second by factors of 11.0 (SF) and 11.7 (Beijing) compared to no compression.
  • Efficient Querying: While full decompression (ONTRAC-DC) is slow, partial decompression (ONTRAC-PT) incurs only a small overhead (25-38%) compared to the uncompressed setting, making queries efficient.
  • Competitive Training and Compression Times: ONTRAC's training and compression times are comparable to or better than the baseline, especially for large datasets.

Limitations and Future Work

  • Query Complexity: While partial decompression is efficient, the paper notes that supporting more complex queries (e.g., nearest-neighbor, range queries) on compressed data would require further research.
  • Context-Based Temporal Prediction: The authors suggest that incorporating context-based temporal prediction, similar to the spatial compression approach, could further enhance temporal compression power.
  • Online EM for Model Updates: For truly dynamic environments, enabling online updates to the temporal compression model using online EM is identified as a promising future direction.

Summary updated

BibTeX
@misc{silva2016prediction,
  author = {Arlei Silva and Ramya Raghavendra and Mudhakar Srivatsa and Ambuj K. Singh},
  title = {{Prediction-based Online Trajectory Compression}},
  year = {2016},
  eprint = {1601.06316},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1601.06316},
}
Figure