One-Pass Error Bounded Trajectory Simplification

Xuelian Lin, Shuai Ma, Han Zhang, Tianyu Wo, Jinpeng Huai

Abstract

This paper introduces OPERB and OPERB-A, two novel algorithms for trajectory simplification designed for real-time streaming applications. By transitioning from global to local distance checking, these algorithms achieve $O(n)$ time and $O(1)$ space complexity. Experimental results demonstrate that these methods are significantly faster than existing industry standards like Douglas-Peucker while matching or exceeding their compression performance.

Introduction

The proliferation of GPS-enabled mobile devices has led to an explosion of trajectory data. Storing and transmitting this raw data is resource-intensive, necessitating efficient Line Simplification (LS) techniques. The goal of LS is to replace a sequence of points with a minimal set of line segments that stay within a specified error bound ($\zeta$).

Trajectory simplification replaces a sequence of points with line segments within an error bound ζ.

Historically, developers faced a "trilemma": batch algorithms like Douglas-Peucker (DP) are slow ($O(n^2)$), while existing online algorithms often fail the "one-pass" requirement by re-processing points in sliding windows. OPERB addresses these challenges by providing a truly one-pass, resource-efficient solution suitable for low-power hardware.

Methodology: From Global to Local Checking

The primary innovation of this work is the shift from Global Distance Checking to Local Distance Checking. Traditional algorithms re-verify every point in a window against a potential segment. In contrast, OPERB utilizes a novel Fitting Function ($F$).

The OPERB fitting function dynamically updates bounding lines to maintain local error constraints as new points arrive.

As shown in the fitting function visualization, the algorithm dynamically updates a directed line segment as new points arrive. By mathematically bounding the "drift" of this function, the authors prove that checking only the distance of the newest point to the current fitted segment is sufficient to guarantee global error constraints. This ensures each point is processed exactly once, maintaining linear complexity.

OPERB-A and Aggressive Optimization

While OPERB provides a baseline for efficient simplification, OPERB-A (Aggressive) further enhances compression ratios. It addresses "anomalous" segments—short segments typically created at sharp turns—using a lazy output policy and patch points.

By calculating an intersection point (the "patch") between two segments, OPERB-A can merge them into a more efficient representation. This counter-intuitive approach of adding virtual points actually reduces the total segment count, effectively "cleaning up" the trajectory in real-time.

Experimental Results

The algorithms were evaluated against four massive real-life GPS datasets (Taxi, Truck, SerCar, and GeoLife), totaling over 2.5 billion points. Key findings include:

  • Processing Speed: OPERB and OPERB-A are 4.1x to 5.4x faster than FBQS (the previous state-of-the-art online algorithm) and up to 20.6x faster than the classic DP algorithm.
  • Compression Efficiency: OPERB matches the compression of DP. Remarkably, OPERB-A outperforms DP, achieving output sizes that are 84.2% to 97.1% of DP's results.
  • Scalability: The algorithms exhibit a perfectly linear relationship between trajectory size and execution time, confirming the theoretical $O(n)$ complexity.

Conclusion

OPERB and OPERB-A resolve the trajectory simplification trilemma by offering a one-pass, $O(n)$ time, and $O(1)$ space solution. By proving that local distance checking can maintain global error bounds, the authors provide a robust framework for real-time data compression on resource-constrained mobile and IoT devices.

Summary updated

BibTeX
@article{lin2017one,
  author = {Xuelian Lin and Shuai Ma and Han Zhang and Tianyu Wo and Jinpeng Huai},
  title = {{One-Pass Error Bounded Trajectory Simplification}},
  journal = {Proc. VLDB Endow.},
  year = {2017},
  doi = {10.14778/3067421.3067432},
}
Figure