Self-adapting Confidence Estimation for Stereo

Matteo Poggi, Filippo Aleotti, Fabio Tosi, Giulio Zaccaroni, Stefano Mattoccia

Stereo matching—the process of calculating depth from two offset cameras—is a cornerstone of computer vision, powering everything from autonomous vehicles to smartphone photography. However, even state-of-the-art algorithms are prone to errors in challenging conditions like occlusions, textureless regions, or reflective surfaces. Confidence estimation aims to predict when these algorithms are likely to fail. Traditionally, high-performance estimators have been "white-box" or "gray-box" models, requiring deep access to an algorithm's internal cost volumes or multiple runs of the same algorithm.

Researchers from the University of Bologna have introduced a novel "black-box" framework that learns to estimate confidence for any stereo system without requiring ground-truth depth data or internal access to the matching process. This approach is particularly valuable for proprietary systems, such as those found in consumer electronics, where internal mechanics are hidden.

The Challenge of Black-Box Estimation

Most existing confidence measures are tied to specific stereo algorithms or require expensive LiDAR-based ground truth for training. Furthermore, these models often suffer from "domain shift," where a model trained on one dataset (e.g., synthetic data) performs poorly in a new real-world environment.

The proposed method addresses these issues by being:

  1. Agnostic: It treats the stereo matcher as a black box, requiring only the input images and the resulting disparity map.
  2. Self-Supervised: It learns from "proxy labels" derived from the data itself, eliminating the need for ground truth.
  3. Self-Adapting: It can fine-tune its parameters online as it encounters new scenes, allowing it to adapt to different environments "in-the-wild."
Figure 2: The framework demonstrated on two different stereo algorithms (Census-CBMCA and Census-SGM) using the same reference image. The zoomed-in patches (a-e) highlight how the confidence estimator identifies errors specific to each algorithm.

Methodology: Learning from Noisy Proxies

The core innovation is the Multi-modal Binary Cross Entropy (MBCE) loss function. Since ground truth is unavailable, the network is trained using three principled, albeit noisy, cues:

  • Image Reprojection Error: Based on the idea that a correct disparity should allow one image to be warped perfectly onto the other.
  • Disparity Agreement: Assumes that disparities should be locally smooth; outliers are flagged as potentially incorrect.
  • Uniqueness Constraint: Identifies pixels in the left image that map to multiple pixels in the right, a common sign of occlusion or matching error.

The MBCE loss enables the network to handle the inherent noise and contradictions in these proxy labels. By grouping them into sets of "likely inliers" and "likely outliers," the system learns a smooth, robust confidence function that often exceeds the accuracy of the individual cues used to train it.

Key Results and Online Adaptation

The authors evaluated their method on standard benchmarks including KITTI, Middlebury, and ETH3D. The "Out-of-The-Box" (OTB) method consistently outperformed previous self-supervised state-of-the-art models. Notably, when tested on unseen datasets, the OTB method demonstrated superior generalization, sometimes even outperforming fully supervised models that had overfitted to their training domains.

Figure 1: Qualitative results across various scenes. From left to right: reference image, disparity map, and various confidence/error visualizations produced by the self-adapting framework.

A significant advantage of this framework is its ability for online adaptation. In a test using the DrivingStereo dataset (7,000 frames), the system continuously updated its weights as it "drove" through the sequence. This real-time learning significantly reduced errors caused by changing lighting and environmental conditions. The adaptation process is efficient, running at approximately 11 FPS on a standard GPU, making it suitable for robotics and automotive applications.

Conclusion and Future Directions

By restricting the required information to the bare minimum—images and disparity—the authors have created a versatile tool for the computer vision community. While the method faces challenges in textureless regions or on highly slanted surfaces where proxy cues are less reliable, its ability to learn "in-the-wild" represents a major step forward for robust depth sensing. Future work may involve integrating temporal consistency from video sequences to further refine the self-supervision signals.

Summary updated

BibTeX
@inproceedings{poggi2020self,
  author = {Matteo Poggi and Filippo Aleotti and Fabio Tosi and Giulio Zaccaroni and Stefano Mattoccia},
  title = {{Self-adapting Confidence Estimation for Stereo}},
  booktitle = {European Conference on Computer Vision},
  year = {2020},
  doi = {10.1007/978-3-030-58586-0\_42},
}
Figure