What's Wrong with the Absolute Trajectory Error?

Seong Hun Lee, Javier CiveraWorkshops @ ECCV 2022 · DOI

TL;DR

This paper introduces the Discernible Trajectory Error (DTE) and Discernible Rotation Error (DRE) as more robust alternatives to the standard Absolute Trajectory Error (ATE) for evaluating camera trajectory reconstruction. DTE and DRE are designed to be less sensitive to outliers, providing a more accurate reflection of performance when datasets contain erroneous measurements.

What Problem Does This Paper Address?

Accurately reconstructing a camera's trajectory (its path and orientation over time) is crucial for many applications like autonomous navigation, photogrammetry, and augmented reality. To assess how well these reconstruction algorithms perform, researchers rely on error metrics. The most common metric is the Absolute Trajectory Error (ATE). However, the ATE is highly sensitive to outliers – a few incorrect measurements can disproportionately skew the results, making it difficult to discern the true accuracy of the algorithm on the "good" (inlier) data. This means that even if an algorithm improves its performance on the majority of the trajectory, the ATE might not reflect this improvement if a small number of outliers persist. The paper aims to address this limitation by proposing new metrics that are more robust to outliers and better capture varying trajectory accuracy.

Methods

The core of the paper is the introduction of two novel error metrics:

  • Discernible Trajectory Error (DTE): This metric aims to provide a more robust evaluation of the 3D camera trajectory. It involves several steps:
  • Robust Alignment: Instead of using centroids (which are sensitive to outliers), DTE uses geometric medians for translation.
  • Geodesic Median for Rotation: Rotations are aligned using a geodesic median, which is more robust than standard methods.
  • Median Absolute Deviation (MAD) for Scale: The relative scale is computed using MAD, which is less affected by outliers than variance or standard deviation.
  • Winsorization and Normalization: Trajectory errors are "winsorized" (outliers are capped) and then normalized to prevent extreme errors from dominating the metric and to ensure fair comparison across datasets of different scales.
  • Averaging Mean and RMS: The final DTE is the average of the mean and RMS trajectory errors after alignment, balancing sensitivity to inlier accuracy and outlier effects.
  • Discernible Rotation Error (DRE): This metric is analogous to DTE but specifically evaluates the accuracy of camera orientations. It uses a similar robust alignment approach but does not require winsorization or normalization as rotation errors are inherently bounded.
  • Camera-to-Marker Rotation Calibration: The paper also proposes a method to calibrate the rotation between the camera and the marker reference frames, which is a necessary prerequisite for computing DTE and DRE when ground truth is provided via markers. This calibration is achieved by optimizing the camera-to-marker rotation and a global alignment rotation simultaneously using a robust approach.

Datasets

The paper primarily uses simulated data for evaluation. They generate synthetic trajectories with varying levels of noise and outlier percentages to test their metrics. They also mention using the freiburg2_desk sequence from the TUM RGB-D dataset for real-world evaluation, though the results are noted as being "almost indistinguishable" from their simulations.

Key Insights and Ideas

  • ATE's Sensitivity to Outliers is a Real Problem: The paper convincingly demonstrates that even a small percentage of outliers can significantly mask improvements in the inlier trajectory accuracy, making ATE a poor indicator of algorithmic progress in such scenarios.
  • Robust Statistics are Key: The core innovation is the application of robust statistical methods (geometric median, geodesic median, MAD) to the alignment process, making the error metric inherently less susceptible to erroneous data points.
  • Winsorization and Normalization are Crucial for Trajectory Error: For translation errors, capping extreme values (winsorization) and scaling to a common range (normalization) are essential to prevent outliers from overwhelming the metric and to ensure fair comparisons.
  • Averaging Mean and RMS Balances Sensitivities: Combining the mean and RMS errors in a specific way allows the metric to be sensitive to both the accuracy of the inliers (mean) and the presence of outliers (RMS), offering a more nuanced evaluation.
  • Calibrating Camera-to-Marker Rotation is Feasible and Important: The proposed calibration method is a practical contribution, enabling the use of DTE/DRE even when this intrinsic rotation isn't perfectly known beforehand.

Key Results

  • DTE Outperforms ATE in Sensitivity: Figures 2 and 3 clearly show that DTE provides a much more nuanced and continuous evaluation of trajectory accuracy across varying numbers of outliers and noise levels, whereas ATE quickly saturates and becomes insensitive.
  • DRE Exhibits Similar Robustness: Figure 5 demonstrates that DRE, like DTE, is more sensitive to changes in outlier percentage and noise level in camera orientations compared to other rotation error metrics.
  • Calibration Method is Reliable: Figure 6 shows that the proposed camera-to-marker rotation calibration method achieves low error (median error < 0.5°) even with moderate noise and outliers in the estimated orientations. Figure 7 further validates the convergence of the calibration algorithm.

Limitations and Future Work

  • Requirement for Camera-to-Marker Rotation: A significant limitation is that DTE/DRE require the camera-to-marker rotation ($R_{mc}$) to be known. While the paper provides a calibration method, it adds complexity compared to ATE, and if ground truth data was collected without markers, DTE/DRE cannot be computed.
  • Parameter Sensitivity: The DTE metric uses a parameter $k$ for winsorization, and its optimal value might vary across datasets. The authors suggest automatic tuning of $k$ as future work.
  • Outlier Ratio Limit: The proposed method is not suitable for outlier ratios exceeding 50%. Future work may explore more robust alignment methods like RANSAC.
  • Computational Cost: While not explicitly detailed, robust alignment methods are generally more computationally intensive than the standard least-squares approach used in ATE.

Summary updated

BibTeX
@inproceedings{lee2022what,
  author = {Seong Hun Lee and Javier Civera},
  title = {{What's Wrong with the Absolute Trajectory Error?}},
  booktitle = {Workshops @ ECCV},
  year = {2022},
  doi = {10.1007/978-3-031-91569-7\_8},
}
Figure