Abstract
We consider the $(1+\varepsilon)$-Approximate Nearest Neighbour (ANN) Problem for polygonal curves in $d$-dimensional space under the Fréchet distance and ask to what extent known data structures for doubling spaces can be applied to this problem. Initially, this approach does not seem viable, since the doubling dimension of the target space is known to be unbounded -- even for well-behaved polygonal curves of constant complexity in one dimension. In order to overcome this, we identify a subspace of curves which has bounded doubling dimension and small Gromov-Hausdorff distance to the target space. We then apply state-of-the-art techniques for doubling spaces and show how to obtain a data structure for the $(1+\varepsilon)$-ANN problem for any set of parametrized polygonal curves. The expected preprocessing time needed to construct the data-structure is $F(d,k,S,\varepsilon)n\log n$ and the space used is $F(d,k,S,\varepsilon)n$, with a query time of $F(d,k,S,\varepsilon)\log n + F(d,k,S,\varepsilon)^{-\log(\varepsilon)}$, where $F(d,k,S,\varepsilon)=O\left(2^{O(d)}kΦ(S)\varepsilon^{-1}\right)^k$ and $Φ(S)$ denotes the spread of the set of vertices and edges of the curves in $S$. We extend these results to the realistic class of $c$-packed curves and show improved bounds for small values of $c$.
Introduction
Finding the nearest neighbor to a trajectory or curve in a large database is a core challenge in fields ranging from GPS analysis to handwriting recognition. When curves are represented as polygonal chains, the Fréchet distance—often described as the "dog-leash" metric—is the preferred measure of similarity because it captures the sequential flow of the curves.
Efficient search in high-dimensional spaces typically relies on the concept of doubling dimension. If a metric space has a low doubling dimension, search trees can achieve performance comparable to low-dimensional Euclidean spaces. However, the space of curves under the Fréchet distance is known to have an unbounded doubling dimension, even for simple curves. This "curse of dimensionality" has historically prevented the application of high-performance ANN data structures to curve matching.
Methodology: Subspace Approximation
The authors overcome this limitation by identifying a "well-behaved" subspace that acts as a proxy for the full space of curves.
- $(\mu, \varepsilon)$-Curves: The core innovation is the definition of a restricted subspace where edge lengths are constrained to be multiples of a small value $\varepsilon$. By discretizing the lengths, the authors create a more structured environment.
- Gromov-Hausdorff Proximity: They demonstrate that any curve can be mapped into this subspace with a negligible change in its Fréchet distance to other curves. This ensures that a nearest neighbor found in the subspace is a $(1+\varepsilon)$-approximate nearest neighbor in the original space.
- Bounded Doubling Dimension: The primary theoretical contribution is proving that this specific subspace does have a bounded doubling dimension. This bound is a function of the curve's complexity ($k$), the ambient dimension ($d$), and the spread ($\Phi(S)$), which measures how vertices and edges are distributed in space.
Algorithmic Framework and Results
With a bounded doubling dimension established for the subspace, the authors utilize the Har-Peled and Mendel data structure framework. This allows them to achieve a query time that is logarithmic in the number of curves ($n$).
The performance is characterized by a factor $F(d,k,S,\varepsilon) = O\left(2^{O(d)}k\Phi(S)\varepsilon^{-1}\right)^k$. While this constant can be large, the logarithmic scaling with $n$ makes the approach viable for massive datasets. Furthermore, for $c$-packed curves, the performance bounds improve significantly, making the algorithm particularly effective for realistic movement data.
Conclusion
This research demonstrates that the "curse of dimensionality" in curve matching can be bypassed by focusing on tractably nearly-doubling subspaces. This strategy of finding a "close enough" well-behaved subspace may have broader applications in other complex metric spaces, such as persistence diagrams in topological data analysis. Future work aims to reduce the dependence on the "spread" parameter and further tighten the theoretical bounds.
Summary updated