Sphere Fitting with Applications to Machine Tracking

Dror Epstein, Dan FeldmanAlgorithms 2020

TL;DR

This paper introduces a novel, provable, and practical algorithm for fitting a sphere to a set of points in d-dimensional space, minimizing the sum of distances to the sphere. The core innovation is an "epsilon-coreset" that summarizes the data, allowing efficient and accurate sphere fitting even for large datasets and high dimensions, with applications in machine tracking.

What Problem Does This Paper Address?

Fitting a sphere to a set of points is a fundamental problem in geometric optimization with applications ranging from robotics and computer vision to computational metrology. Existing methods often struggle with large datasets, high dimensions, or lack provable guarantees on the accuracy of the fit. Specifically, the paper focuses on the "median-sphere" problem, which aims to minimize the sum of absolute distances from points to the sphere, a more robust measure than minimizing squared distances (which is sensitive to outliers). The challenge is to find an efficient algorithm that provides a guaranteed approximation for this problem, especially in higher dimensions where computational complexity can explode.

Methods

The paper's main contribution is an algorithm that constructs an epsilon-coreset for the median-sphere problem. A coreset is a small, weighted subset of the original data that approximates the behavior of the full dataset for a specific objective function.

Here's a breakdown of their approach:

  • Median-Sphere Definition: They formalize the median-sphere problem as minimizing $ \sum_{p \in P} | ||p - x|| - r | $, where $x$ is the sphere's center and $r$ is its radius.
  • Coreset Construction (Algorithm 2): This is the core novelty. It iteratively removes layers of points defined by the "thinnest-sphere" (which minimizes the maximum distance to points) from the dataset. This process effectively prunes less informative points.
  • Sensitivity-Based Sampling: Points are sampled into the coreset with a probability inversely proportional to their "sensitivity," which measures their contribution to the overall cost function. This ensures that more influential points are more likely to be included.
  • Optimal Solver on Coreset: Once the coreset is constructed, a known, albeit inefficient, optimal algorithm (Algorithm 1, which solves a polynomial system) is applied to this much smaller coreset. This yields a provable $(1 + \epsilon)$-approximation to the optimal median-sphere for the original dataset.
  • Thinnest-Sphere Coreset (Algorithm 3): A helper algorithm is used to compute a coreset for the related "thinnest-sphere" problem, which is crucial for the iterative removal process in the median-sphere coreset construction.

Datasets

The paper uses both synthetic and real-world datasets for evaluation:

  • Synthetic Data: Generated in dimensions $d=2, 3, 4$ with varying sizes and noise characteristics.
  • Real-World Data: RGB images of "rings with a flame of fire" which simulate noise and abnormalities.
  • Mechanical Pressure Control System Data: Data from a system tracking a falling ball, where depth vectors from laser beams are used to fit circles.

Key Insights and Ideas

  • Coresets for Robust Fitting: The paper demonstrates that coresets are not just for speeding up algorithms but can also improve the quality of results by effectively "cleaning" noisy data and reducing the number of local minima for heuristic algorithms.
  • Bridging Theory and Practice: The algorithm provides theoretical guarantees (provable approximation) while also being practical for real-world applications, especially when combined with heuristics like RANSAC.
  • Dimensionality Independence: The approach is designed to work for any dimension $d \ge 2$, which is a significant advantage over many existing methods limited to 2D.
  • Sensitivity as a Guiding Principle: Using point sensitivity for sampling into the coreset is a key insight that ensures the coreset accurately represents the original data's behavior with respect to the fitting objective.

Key Results

  • Approximation Guarantee: The algorithm provides a provable $(1 + \epsilon)$-approximation to the optimal median-sphere.
  • Efficiency: The coreset construction significantly reduces the dataset size, leading to running times that are orders of magnitude faster than applying optimal algorithms to the full dataset. For example, minutes instead of days for certain computations.
  • Improved Heuristics: Applying heuristics like RANSAC on the generated coreset ("Improved RANSAC") resulted in more accurate and faster fitting compared to running RANSAC on the full dataset.
  • Coreset Size: The coreset size is $O(d^2 \log^2 n / \epsilon^2)$, which is polynomial in $d$ and $\log n$, and inversely polynomial in $\epsilon$.
  • Experimental Validation: Extensive experiments on synthetic and real-world data demonstrated the effectiveness of the coreset approach in terms of both speed and accuracy, outperforming standard methods.

Limitations and Future Work

  • Approximation vs. Exactness: The algorithm provides an approximation, not an exact solution. While the approximation error is controlled by $\epsilon$, it's not zero.
  • Generalization: The authors explicitly state that future research directions include generalization to other shapes beyond spheres.
  • Lower Bounds: Proving lower bounds on the size and computation time of the corresponding coreset is suggested as future work.
  • More Systems: Applying the algorithms to more complex real-world systems is also mentioned as a future direction.

Summary updated

BibTeX
@article{epstein2020sphere,
  author = {Dror Epstein and Dan Feldman},
  title = {{Sphere Fitting with Applications to Machine Tracking}},
  journal = {Algorithms},
  year = {2020},
  doi = {10.3390/a13080177},
}
Figure