Outlier elimination for robust ellipse and ellipsoid fitting

Jieqi Yu, Haipeng Zheng, Sanjeev R. Kulkarni, H. Vincent Poor

Abstract

In this paper, an outlier elimination algorithm for ellipse/ellipsoid fitting is proposed. This two-stage algorithm employs a proximity-based outlier detection algorithm (using the graph Laplacian), followed by a model-based outlier detection algorithm similar to random sample consensus (RANSAC). These two stages compensate for each other so that outliers of various types can be eliminated with reasonable computation. The outlier elimination algorithm considerably improves the robustness of ellipse/ellipsoid fitting as demonstrated by simulations.

Introduction

Fitting ellipses (2D) and ellipsoids (3D) to point cloud data is a fundamental task in computer vision and data analysis. However, real-world datasets are frequently contaminated with outliers—data points that do not belong to the target geometric structure. These outliers are categorized into two primary types:

  1. Type A (Distant): Points located far from the shape, which significantly skew standard least-squares fits.
  2. Type B (Subtle): Points close to the target shape but not on its perimeter, making them difficult to distinguish from noisy inliers.
Illustration of Type A (distant) and Type B (subtle) outliers in ellipse fitting.

While RANSAC is the standard robust estimator, its computational cost grows exponentially with the number of model parameters (5 for ellipses, 9 for ellipsoids). High outlier ratios make traditional RANSAC impractical. This paper proposes a hybrid approach to overcome these limitations by combining proximity-based and model-based detection.

Methodology

The proposed algorithm consists of two complementary stages designed to handle different outlier characteristics.

Stage 1: Proximity-Based Detection via Graph Laplacian

This stage focuses on the local density of points rather than the global geometry. A graph is constructed where each data point is a node, and edges are weighted using a heat kernel based on Euclidean distance.

Three stages of graph construction using the heat kernel for proximity-based outlier detection.

By performing spectral analysis on the Graph Laplacian, the algorithm identifies strongly connected components. Inliers, which form a dense cluster along the ellipse boundary, are easily separated from isolated Type A outliers. This stage effectively reduces the outlier ratio before more intensive model-based fitting begins.

Stage 2: Model-Based Refinement

With the majority of distant outliers removed, the algorithm employs a modified RANSAC-like procedure. Instead of minimal random sampling, it fits an initial model to the pruned dataset and iteratively re-classifies points as inliers or outliers based on their distance to the current model. This stage is specifically tuned to eliminate Type B outliers that the proximity-based method might have missed due to their relative closeness to the inlier cluster.

Results and Discussion

The algorithm was evaluated using synthetic simulations for both 2D ellipses and 3D ellipsoids with outlier ratios up to 90%. Key findings include:

  • Robustness: The hybrid method maintained low error even at 50% contamination, where standard RANSAC performance typically collapses.
  • Efficiency: By pruning the search space in Stage 1, the iterative fitting in Stage 2 converges much faster and more reliably.
  • Complementarity: The Graph Laplacian excels at finding isolated points but lacks geometric context; the model-based stage provides that context but requires a relatively clean starting point. Together, they mitigate each other's weaknesses.

Conclusion

The two-stage hybrid framework provides a robust solution for fitting high-parameter geometric models in the presence of heavy noise and outliers. While the proximity-based stage is sensitive to the connection radius parameter, the overall approach significantly outperforms traditional robust estimators. Future work may involve generalizing this framework to other complex geometric primitives beyond ellipses.

Summary updated

Abstract

In this paper, an outlier elimination algorithm for ellipse/ellipsoid fitting is proposed. This two-stage algorithm employs a proximity-based outlier detection algorithm (using the graph Laplacian), followed by a model-based outlier detection algorithm similar to random sample consensus (RANSAC). These two stages compensate for each other so that outliers of various types can be eliminated with reasonable computation. The outlier elimination algorithm considerably improves the robustness of ellipse/ellipsoid fitting as demonstrated by simulations.
BibTeX
@misc{yu2009outlier,
  author = {Jieqi Yu and Haipeng Zheng and Sanjeev R. Kulkarni and H. Vincent Poor},
  title = {{Outlier elimination for robust ellipse and ellipsoid fitting}},
  year = {2009},
  eprint = {0910.4610},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/0910.4610},
  howpublished = {arXiv},
}
Figure