Uncertainty Modeling for Stereo Depth Estimation
Stereo uncertainty modeling with an AANet learned-output branch, plus separate MC-dropout and evidential implementations for comparing sampling-based and single-pass approaches.

Tools & Skills
- Stereo Matching
- AANet
- Uncertainty Estimation
- MC Dropout
- Evidential Learning
- Depth Estimation
Problem and contribution
Stereo depth can be unreliable around occlusions, weak texture, and ambiguous matches. I worked on uncertainty-aware stereo estimation so a robotics pipeline could inspect the reliability of a disparity prediction as well as its value.
The project included custom sparse and dense dataset experiments, an AANet-based learned uncertainty branch, and separate implementations of MC-dropout and evidential learning. The AANet version described below provides the clearest implementation detail for the single-pass learned-output route.
AANet disparity and uncertainty outputs
AANet extracts stereo features, builds correlation cost volumes, aggregates matching evidence across scales, and refines the resulting disparity estimates. I added a parallel aggregation branch to produce an uncertainty output alongside the disparity pyramid.
The branch combines its output with the disparity distribution, reduces it across disparity hypotheses, and applies a positive activation. The model therefore returns both the estimated disparity and a spatial uncertainty signal from one forward pass.
Training uses valid depth or disparity labels and a likelihood-style objective that couples absolute disparity error with the learned uncertainty term. This lets the model adjust its uncertainty prediction in response to the residual, while regularization discourages simply increasing uncertainty everywhere.
Uncertainty approaches
| Approach | Implementation role | Inference consideration |
|---|---|---|
| Learned uncertainty output | AANet branch trained jointly with disparity | Produces a spatial uncertainty signal in one pass |
| MC-dropout | Separate implemented version estimating prediction variability | Requires repeated stochastic forward passes |
| Evidential learning | Separate implemented version for sampling-free uncertainty estimation | Investigates avoiding repeated sampling |
The MC-dropout and evidential implementations belong to other project versions. Their architecture and experimental settings are separate from the AANet snapshot described here.
Prediction inspection and filtering
The inference workflow saves disparity and uncertainty visualizations and supports threshold-based rejection of unreliable regions. A filtered output is useful only when interpreted together with how much of the image remains valid.
The project’s deployment goal was to make reliability filtering practical for robotic perception. The descriptions above establish the implemented approaches without assigning unverified real-time throughput, calibration quality, or accuracy gains to them.


