Trajectory Similarity Computation based on Interpolation and Integration (S)

Zengwei Zheng, Wenwang Chen, Yuanyi Chen, Dan ChenProceedings/Proceedings 2019

Abstract

Trajectory similarity computation is a fundamental functionality applied in numerous fields, including trip trajectory mining for popular route discovery, animal migration tracking, and stock trend analysis. Current approaches generally fall into two categories: advanced deep learning methods and traditional point-matching methods. However, both have significant drawbacks. Deep learning models require massive datasets and extensive training time. Traditional point-matching methods, such as Dynamic Time Warping (DTW), are computationally expensive and highly sensitive to noise and non-uniform sampling rates, often failing when sequences have unequal lengths or missing data. To address these issues, we propose a novel method utilizing Lagrange interpolation and deformed integration. Our experiments demonstrate that this approach is robust to noise and varying sampling rates while maintaining high computational efficiency.

TL;DR

Researchers have developed a new method for calculating trajectory similarity that moves away from point-by-point matching in favor of curve fitting. By using Lagrange interpolation and a "deformed integration" technique, the approach achieves linear time complexity $O(n+v)$ and significantly higher robustness against GPS noise and irregular sampling rates compared to traditional methods like Dynamic Time Warping (DTW).

What Problem Does This Paper Address?

As GPS-enabled devices become ubiquitous, we are drowning in trajectory data—from taxi routes and animal migrations to stock market trends. Analyzing this data requires determining how "similar" two paths are. However, existing solutions face a "Goldilocks" problem:

  1. Traditional Point-Matching (DTW, LCSS, EDR): These methods compare discrete points. They are computationally expensive ($O(n^2)$ complexity) and highly sensitive to noise or "gaps" caused by devices lowering their sampling frequency to save battery.
  2. Deep Learning (t2vec): While accurate, these models require massive datasets and significant training time, making them impractical for many real-time or resource-constrained applications.

The authors aim to bridge this gap with a method that is as fast as traditional algorithms (or faster) but as robust as deep learning models.

Methods

The core innovation is treating a trajectory not as a sequence of dots, but as a continuous mathematical function.

Overview of the proposed trajectory similarity computation pipeline, from original trajectory to similarity property extraction.
  • Lagrange Interpolation: The authors use Lagrange polynomials to fit a curve to the discrete GPS points. This "fills in the blanks" between recorded locations, effectively reconstructing the intended path.
  • Space Enlargement: To prevent the polynomial curve from "flogging" (oscillating wildly) when points are too close together—a common issue in latitude/longitude coordinates—the authors scale the coordinate space by a constant factor $\alpha$. This smooths the resulting curve.
  • Deformed Integration: Instead of calculating the area between two curves (which would still be computationally heavy), they compute a unique "similarity property" for each trajectory. They divide the curve into $m$ equal parts, calculate the values at those intervals, and sum them.
  • Linear Comparison: Because each trajectory is reduced to a pre-computed "property" value, comparing two trajectories becomes a simple subtraction of scalars. This reduces the search complexity to linear time $O(n+v)$, where $v$ is the average trajectory length.

Datasets

The study utilizes a massive real-world dataset:

  • Porto Taxi Dataset: Originally containing 1.7 million trajectories from taxis in Porto, Portugal (from the ECML/PKDD 2015 challenge).
  • Preprocessing: The authors filtered the set to include only trajectories with at least 30 points, leaving approximately 1.2 million paths.
  • Evaluation Strategy: They used a "self-similarity" test. They took 10,000 original trajectories, created distorted and down-sampled versions of them, and then tested if the algorithm could correctly identify the original "true" path from a label set.

Key Insights and Ideas

  • From Points to Properties: The "aha moment" is the realization that we don't need to compare trajectories against each other dynamically. By extracting an inherent "similarity property" from the curve itself, the heavy math is done once per trajectory, making the actual search nearly instantaneous.
  • Handling the "Flogging" Effect: Polynomial interpolation often struggles with high-density data. The authors' "space enlargement" trick is a clever geometric solution to a numerical stability problem.
  • Robustness through Continuity: Because the method relies on an integrated curve rather than individual points, a single "noisy" GPS jump or a missed ping has a much smaller impact on the final similarity score than it would in a point-matching algorithm.

Key Results

  • Efficiency: The proposed method operates in $O(n+v)$ time, a significant leap over the $O(n^2)$ complexity of traditional benchmarks like DTW and EDR.
Comparison of running time against traditional methods as the number of queries increases, highlighting the linear efficiency of the proposed method.
  • Accuracy under Noise: In experiments varying the "distorting rate" (adding Gaussian noise), the proposed method maintained a much lower (better) mean rank than LCSS, EDR, and DTW.
  • Sampling Resilience: The method remained stable even when the sampling rate was reduced to 0.2 (dropping 80% of the points), whereas traditional methods saw their error rates climb much faster.

Limitations and Future Work

  • Stability Trade-offs: The authors acknowledge that they sacrifice some mathematical stability to achieve their gains in accuracy and efficiency.
  • Property Refinement: The current "similarity property" is a simple summation. The authors suggest that exploring more complex measures to compute this property could further improve results.
  • Evaluation Metrics: Future research could move beyond "mean rank" to look at the distribution of top-k similar trajectories to better understand how the model handles edge cases.

Summary updated

BibTeX
@inproceedings{zheng2019trajectory,
  author = {Zengwei Zheng and Wenwang Chen and Yuanyi Chen and Dan Chen},
  title = {{Trajectory Similarity Computation based on Interpolation and Integration (S)}},
  booktitle = {Proceedings/Proceedings},
  year = {2019},
  doi = {10.18293/seke2019-124},
}
Figure