Depth Any Endoscopy: Towards Self-Supervised Generalizable Depth Estimation in Monocular Endoscopy

Shuwei Shao, Kejin Zhu, Shixing Ma, Xinzhe Du, Baochang Zhang, Zhe MinCVPR 2026

TL;DR

Depth Any Endoscopy (DAE) is a self-supervised framework that enables a single model to accurately estimate depth across diverse endoscopic procedures (like laparoscopy and colonoscopy). By utilizing a dual-level Mixture-of-Experts (MoE) approach and an adaptive gradient balancing mechanism, DAE successfully generalizes to unseen surgical environments without requiring any ground-truth depth data.

What Problem Does This Paper Address?

Monocular depth estimation is a foundational piece of the puzzle for 3D reconstruction and surgical navigation in minimally invasive surgeries. Because collecting ground-truth depth data inside the human body is incredibly difficult due to hardware limitations and privacy concerns, researchers heavily rely on self-supervised learning.

However, existing self-supervised models suffer from a major flaw: they are strictly "in-domain." A model trained on stomach images (laparoscopy) fails completely when dropped into a colonoscopy because of massive variations in lighting, tissue textures, and depth distributions.

Variations in depth, illumination, and texture between laparoscopy (SCARED) and colonoscopy (SimCol3D).

Furthermore, trying to train a single model on a mix of different endoscopic datasets causes severe gradient imbalances between the depth-prediction network and the camera-pose-estimation network, leading to unstable training and poor convergence.

Methods

DAE solves these issues by adapting a Vision Foundation Model (VFM)—specifically, Depth Anything v2—to the endoscopic domain using three core innovations:

  1. Dual-Level Mixture-of-Experts (MoE):
  2. Intra-model MoE: Inside the VFM transformer blocks, DAE dynamically routes input data through multiple Low-Rank Adaptation (LoRA) modules with varying ranks and convolutional adapters with different kernel sizes. This allows the model to flexibly adjust its internal features for both global context and local structural details.
  3. Extra-model MoE: DAE leverages frozen, domain-specific "teacher" experts to provide explicit depth guidance during training. A specialized scale-decoupling loss ensures the model learns structural layouts without being corrupted by the scale ambiguities inherent to monocular cameras.
  4. Learnable Gradient Harmonization: To fix the depth-pose optimization imbalance, an MLP dynamically learns a dataset-specific scaling factor ($\alpha$) that automatically balances the gradient magnitudes of the pose network during joint training.
  5. Semantic Distribution Calibration (SDC): This module uses a Gated Recurrent Unit (GRU) projector to align the model's latent features with the high-level semantic features of a pre-trained DINOv3 model, enforcing semantic consistency across different surgical scenes.
Figure 3. Overview of the proposed DAE framework. Note that the experts in extra-model MoE are self-supervised pre-trained on the corresponding domain data, with their weights remaining frozen throughout the DAE training. For clarity, the appearance and optical flow networks (for mitigating brightness changes [47]) and the intrinsic estimation network [10] (for computing the intrinsic matrix) are omitted.

Datasets

The authors trained and evaluated their framework using a diverse mix of endoscopic datasets:

  • Training Mix: Combined data from SCARED (laparoscopy), Hamlyn (laparoscopy), SimCol3D (colonoscopy), and Colondepth (colonoscopy), totaling 56,934 frames.
  • Zero-Shot Evaluation (Unseen Domains): C3VD, C3VDv2 (colonoscopy), SERV-CT (laparoscopy), and real clinical arthroscopy data.
  • In-Domain Evaluation: Tested directly on the test splits of SCARED and SimCol3D without per-dataset fine-tuning.

Key Insights and Ideas

  • Dynamic Routing Beats Static Adaptation: Instead of forcing a single set of adapter weights to learn all surgical procedures, the intra-model MoE allows the network to choose the optimal low-rank subspace and kernel size on the fly depending on the input characteristics.
  • Gradient Imbalances are Dataset-Dependent: The authors discovered that a gradient scaling factor that stabilizes laparoscopy training (e.g., 0.001) completely breaks colonoscopy training (which requires ~0.01). Learning this factor dynamically ($\alpha$) is crucial for multi-domain training stability.
  • Injecting Local Bias into Transformers: Pure Vision Transformers lack inductive biases. Incorporating multi-scale convolutional adapters into the MoE structure helps the model better grasp the fine, slippery textures of internal organs.

Key Results

  • State-of-the-Art Zero-Shot Generalization: On the unseen C3VD dataset, DAE achieved an Absolute Relative error (AbsRel) of 0.086, vastly outperforming the original Depth Anything v2 (0.208) and specialized endoscopic models like EndoDAC (0.256).
  • Unified In-Domain Excellence: Even when using a single unified model without dataset-specific fine-tuning, DAE outperformed all state-of-the-art in-domain models on both SCARED (AbsRel: 0.047) and SimCol3D (AbsRel: 0.088).
  • Qualitative Improvements: 3D point cloud reconstructions generated by DAE exhibited significantly fewer distortions and preserved tissue contours much better than competing methods.

Limitations and Future Work

While DAE achieves impressive generalizability, the extra-model MoE and gradient harmonization components currently rely on a discrete domain indicator (the model needs to be told which dataset/procedure type the frame belongs to during training). True open-world zero-shot performance would ideally infer these domain characteristics implicitly. Additionally, the authors note that extending this framework to leverage temporal consistency across continuous video sequences remains an exciting direction for future work.

Summary updated

BibTeX
@inproceedings{shao2026depth,
  author = {Shuwei Shao and Kejin Zhu and Shixing Ma and Xinzhe Du and Baochang Zhang and Zhe Min},
  title = {{Depth Any Endoscopy: Towards Self-Supervised Generalizable Depth Estimation in Monocular Endoscopy}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=7XEMd1HTJb},
}
Figure