Confidence-aware Monocular Depth Estimation for Minimally Invasive Surgery

Muhammad Asad, Emanuele Colleoni, Pritesh Mehta, Nicolas Toussaint, Ricardo Sanchez-Matilla, Maria Robu, Faisal Bashir, Rahim Mohammadi, Imanol Luengo, Danail StoyanovarXiv 2026

TL;DR

Monocular depth estimation (MDE) in minimally invasive surgery is frequently degraded by clinical artifacts like smoke, glare, and tool occlusions. This paper introduces a confidence-aware MDE framework that leverages a stereo-matching ensemble to generate continuous, pixel-wise confidence targets, guiding the model to ignore noisy regions during training. The resulting model improves depth accuracy by up to 8% on clinical data and outputs a reliable per-pixel confidence map at inference time to enhance surgical safety.

What Problem Does This Paper Address?

In minimally invasive surgery (MIS), understanding the 3D geometry of the surgical scene is crucial for computer-assisted interventions, such as robotic navigation, safety boundary monitoring, and autonomous tissue manipulation. Monocular endoscopes are standard in clinical practice, making Monocular Depth Estimation (MDE) highly practical because it doesn't require specialized stereo hardware.

However, surgical environments present severe challenges for standard computer vision models. Endoscopic video streams are routinely corrupted by smoke from electrocautery, specular highlights (glare) on wet tissues, lens contamination, and sudden occlusions by surgical instruments.

Surgical artifacts and their impact on depth confidence.

Standard MDE models treat all pixels equally, forcing the network to learn depth from highly ambiguous or corrupted regions. Furthermore, conventional models do not provide any measure of uncertainty. In a high-stakes clinical setting, an incorrect depth estimate presented without a warning map could lead to dangerous surgical navigation errors.

Methods

The authors propose a confidence-aware MDE pipeline that integrates uncertainty tracking into both the training process and final inference:

The proposed confidence-aware training and inference pipeline.
  1. Ensemble-Based Confidence Targets: To identify trustworthy image regions, rectified stereo pairs from the training data are passed through an ensemble of five fine-tuned stereo-matching models (Unimatch). By calculating the pixel-wise variance of disparity predictions across the ensemble, the framework computes a continuous confidence probability ($P_c$). High variance across models signals an ambiguous or noisy region, resulting in low confidence.
  2. Confidence-Aware Loss: During training, these confidence scores act as weights for the loss functions. Pixels with low confidence (e.g., areas covered by smoke or glare) are down-weighted, ensuring that the MDE backbone (built on DepthAnything v1-Base) prioritizes learning from clean, geometrically consistent regions. This weighting is applied across three standard depth losses: scale-invariant logarithmic, scale-invariant gradient matching, and edge-aware smoothness losses.
  3. Inference-Time Confidence Head: To ensure the model remains useful during live, purely monocular surgery, the authors augment the MDE decoder with a lightweight confidence estimation head (consisting of two convolutional layers). This head is trained using binary cross-entropy against the ensemble-derived targets, enabling the model to output both a depth map and a corresponding confidence map simultaneously from a single input image.

Datasets

The framework was validated across five distinct datasets spanning clinical and laboratory environments:

  • StereoKP: An internal dataset from the Hugo™ RAS robotic surgery system containing 10,491 stereo frames from pre-clinical and clinical videos, featuring manually annotated 3D instrument keypoints for independent evaluation.
  • MicroCT-SE & MicroCT-PK: Internal laboratory datasets (16,775 and 4,046 images) providing high-precision ground-truth metric depth derived from MicroCT scans of ex-vivo organs (liver and porcine kidney).
  • Hamlyn: A public, in-vivo rectified stereo dataset (92,673 frames) characterized by weak textures and tool occlusions.
  • DaVinci: A public, in-vivo rectified stereo dataset (41,433 image pairs) captured under well-controlled surgical conditions.

Key Insights and Ideas

  • Graded vs. Binary Masking: Previous methods often used binary masking (e.g., strict cycle-consistency checks) to completely discard problematic pixels. This paper demonstrates that continuous, graded confidence mapping preserves valuable contextual information while safely suppressing noise.
  • Automated Data Cleaning: The framework acts as an automated data-cleaning mechanism during training. On datasets like StereoKP, which contain raw, unfiltered clinical recordings, the confidence-aware loss prevents transient artifacts from disrupting the model's optimization.
  • Stereo at Training, Monocular at Inference: By utilizing stereo pairs only to generate training targets, the final model retains the practical benefits of a monocular system at deployment while leveraging the geometric robustness of stereo vision during its learning phase.

Key Results

  • Accuracy Boost: On the challenging, artifact-heavy StereoKP dataset, the proposed confidence-aware model (DAv1-B-CA) reduced the Mean Absolute Error (MAE) from 2.04 mm to 1.79 mm and improved dense depth estimation accuracy ($\delta_1$) by approximately 8% (from 85.83% to 94.14%) compared to the baseline DepthAnything model.
  • Robustness to Clean Data: On cleaner, lab-controlled datasets (like MicroCT) where noise is minimal, the model maintained or slightly exceeded baseline performance, proving that the confidence framework does not degrade performance when artifacts are absent.
  • Qualitative Reliability: At inference time, the model successfully flags regions with smoke, lens contamination, and trocar occlusions as "low confidence," providing a clear visual warning that could prevent downstream surgical navigation systems from relying on faulty depth data.

Limitations and Future Work

  • Stereo Dependency for Training: The method relies entirely on having stereo data available during the training phase to compute the initial confidence targets. It cannot be directly trained on purely monocular surgical datasets without proxy labels.
  • Computational Overhead of Ensembles: Generating the confidence targets requires running an ensemble of multiple stereo-matching models, which increases the computational cost of the data-preprocessing pipeline (though it does not impact live inference speed).
  • Downstream Integration: While the model outputs high-quality confidence maps, the paper does not explicitly demonstrate how these maps should be integrated into specific downstream surgical applications, such as automated tool tracking or collision avoidance systems.

Summary updated

BibTeX
@misc{asad2026confidence,
  author = {Muhammad Asad and Emanuele Colleoni and Pritesh Mehta and Nicolas Toussaint and Ricardo Sanchez-Matilla and Maria Robu and Faisal Bashir and Rahim Mohammadi and Imanol Luengo and Danail Stoyanov},
  title = {{Confidence-aware Monocular Depth Estimation for Minimally Invasive Surgery}},
  year = {2026},
  eprint = {2603.03571},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2603.03571},
}
Figure