Surgical-DINO: Adapter Learning of Foundation Models for Depth Estimation in Endoscopic Surgery

Beilei Cui, Mobarakol Islam, Long Bai, Hongliang Ren

Abstract

Depth estimation in robotic surgery is vital in 3D reconstruction, surgical navigation and augmented reality visualization. Although the foundation model exhibits outstanding performance in many vision tasks, including depth estimation (e.g., DINOv2), recent works observed its limitations in medical and surgical domain-specific applications. This work presents a low-ranked adaptation (LoRA) of the foundation model for surgical depth estimation. We design a foundation model-based depth estimation method, referred to as Surgical-DINO, a low-rank adaptation of the DINOv2 for depth estimation in endoscopic surgery. We build LoRA layers and integrate them into DINO to adapt with surgery-specific domain knowledge instead of conventional fine-tuning. During training, we freeze the DINO image encoder, which shows excellent visual representation capacity, and only optimize the LoRA layers and depth decoder to integrate features from the surgical scene. Our model is extensively validated on a MICCAI challenge dataset of SCARED, which is collected from da Vinci Xi endoscope surgery. We empirically show that Surgical-DINO significantly outperforms all the state-of-the-art models in endoscopic depth estimation tasks. The analysis with ablation studies has shown evidence of the remarkable effect of our LoRA layers and adaptation. Surgical-DINO shed some light on the successful adaptation of the foundation models into the surgical domain for depth estimation. There is clear evidence in the results that zero-shot prediction on pre-trained weights in computer vision datasets or naive fine-tuning is not sufficient to use the foundation model in the surgical domain directly.

Introduction

Precise 3D depth estimation is a cornerstone of modern surgical robotics, facilitating critical applications such as augmented reality (AR) overlays, autonomous tool navigation, and high-fidelity 3D reconstruction. While binocular (stereo) cameras are common in some systems, many clinical endoscopes remain monocular. Estimating depth from a single 2D image—monocular depth estimation—is notoriously difficult in surgical environments. These scenes are characterized by uniform soft-tissue textures, specular reflections from wet surfaces, and frequent occlusions by surgical instruments.

Recently, Vision Foundation Models (VFMs) like DINOv2 have demonstrated state-of-the-art performance in general computer vision tasks. However, these models are typically trained on massive datasets of natural images (e.g., landscapes, animals, and urban scenes). When applied to the surgical domain, their performance often degrades due to the significant "domain gap." Training a surgical-specific foundation model from scratch is often unfeasible due to the scarcity of large-scale, annotated medical datasets. Surgical-DINO addresses this by efficiently adapting a natural-world foundation model to the unique geometry and visual characteristics of the human body's interior.

Methodology

The Surgical-DINO Architecture

Surgical-DINO utilizes a frozen DINOv2 backbone, a Vision Transformer (ViT) pre-trained in a self-supervised manner on 142 million images. To bridge the domain gap without the computational cost of full fine-tuning, the authors employ Low-Rank Adaptation (LoRA).

LoRA involves injecting small, trainable "bypass" layers into the Transformer blocks. In Surgical-DINO, these layers are integrated into the query ($q$) and value ($v$) projection layers of the attention mechanism. This strategy allows the model to learn surgical-specific features while preserving the robust visual representations already present in the foundation model.

Feature Extraction and Decoding

The model extracts features from multiple levels of the ViT (specifically layers 3, 6, 9, and 12). These multi-scale features are up-sampled and passed to a linear depth decoder. Rather than treating depth as a continuous regression target, the authors formulate depth estimation as a classification problem, discretizing the depth range into 256 discrete "bins." This approach has been shown to improve stability and accuracy in various depth estimation tasks.

Training Strategy

During the training phase, the DINOv2 encoder remains entirely frozen. Only the LoRA layers and the depth decoder are optimized. The training utilizes a combination of Scale-invariant depth loss and Gradient loss to ensure both global accuracy and local edge preservation. This efficiency is remarkable: the model only requires training 0.14 million parameters out of a total 86.72 million—a trainable ratio of just 0.17%.

Experimental Results

Performance on SCARED

The model was primarily validated on the SCARED dataset, a MICCAI challenge dataset collected using a da Vinci Xi endoscope on porcine cadavers. Surgical-DINO achieved an Absolute Relative (Abs Rel) error of 0.053, significantly outperforming previous state-of-the-art (SOTA) self-supervised methods like AF-SfMLearner (0.059).

Generalization and Efficiency

To test the model's robustness, it was evaluated on the Hamlyn laparoscopic dataset in a "zero-shot" capacity (testing on unseen data from different cameras). Surgical-DINO maintained its performance lead, demonstrating superior generalization compared to models trained from scratch on surgical data.

In terms of computational efficiency, the model achieves an inference speed of 18.2ms per frame on an NVIDIA RTX 3090. This translates to approximately 55 FPS, making it highly suitable for real-time clinical applications.

Discussion and Conclusion

The success of Surgical-DINO highlights several key insights:

  1. Adaptation is Essential: Zero-shot application of general foundation models is insufficient for the surgical domain; however, full fine-tuning is not necessary if efficient adaptation techniques like LoRA are used.
  2. Model Scaling: Scaling the foundation model (from ViT-Small to ViT-Giant) consistently improves accuracy, suggesting that larger models provide richer features that are easier to adapt to specialized tasks.
  3. Efficiency: Achieving SOTA results with only 0.17% trainable parameters proves that foundation models can be "re-skinned" for medical tasks with minimal computational overhead.

While the quantitative results are industry-leading, the authors note that Transformer-based depth maps can sometimes exhibit "patchy" spatial continuity due to the patch-based processing of ViTs. Future research will focus on refining the decoder to produce smoother depth surfaces and exploring unsupervised adaptation to eliminate the need for ground-truth depth data entirely.

Summary updated

BibTeX
@article{cui2024surgical,
  author = {Beilei Cui and Mobarakol Islam and Long Bai and Hongliang Ren},
  title = {{Surgical-DINO: Adapter Learning of Foundation Models for Depth Estimation in Endoscopic Surgery}},
  journal = {Int. J. Comput. Assist. Radiol. Surg.},
  year = {2024},
  doi = {10.1007/s11548-024-03083-5},
}
Figure