For endoscopic robotic surgery, accurate dense depth perception serves as a foundational capability, which enables navigation, instrument localization, and tissue interaction. However, endoscopic video lacks reliable metric depth, while metric measurements obtained via tracking, time-of-flight sensing, or instrument contact only cover a small fraction of pixels in each frame, rendering sparse depth completion an urgent and unsolved challenge. In this work, we propose Temporal Anchor Densification with Reliability-Aware Memory (TANDEM), a causal sparse depth completion framework for endoscopic video. It adopts a lightweight design and leverages the video stream: past measurements re-projected into the current view recover the metric evidence unavailable within a single sparse frame. To keep this evidence interpretable, accurate, and efficient, an explicit memory scores each re-projected measurement with analytic re-observation, age, and motion-parallax factors without overriding current measurements. A compact network then reconstructs depth via reliability-weighted gradient integration and a frequency-gated reference prior. We evaluate TANDEM on the C3VD colonoscopy and StereoMIS laparoscopy datasets. With only 5.58 M parameters, TANDEM reduces the root mean square error by 11.7% and 32.0%, respectively, compared with the strongest baseline, and achieves state-of-the-art accuracy. It also remains accurate under pose errors of the magnitude reported for endoscopic pose estimation. Code will be released at https://github.com/Wk-cpu-art/TANDEM upon acceptance.
Figures & tables
Fig. 1: Root mean square error versus parameter count on C3VD under very sparse input. TANDEM is both the smallest and the most accurate method.
Fig. 2: Overview of TANDEM. (A) The memory (AnchorBuffer) is read before the network and written after the prediction. (B) Evidence-aware temporal filling completes the gaps of St with remembered anchors under current-frame priority and encodes them into a seven-channel representation. (C) A lightweight encoder-decoder predicts a log-depth gradient field, which DDI integrates under reliability-weighted anchor constraints and FGRP refines. (D) Training and online inference follow the same causal order.
Method
Params (M) ↓
C3VD [ 39 ]
StereoMIS [ 1 ]
RMSE ↓
MAE ↓
REL ↓
δ↑
RMSE ↓
MAE ↓
REL ↓
δ↑
Monocular depth estimation
DAv2 [ 40 ]
335.32
2.240
1.663
0.0879
0.9280
9.619
6.856
0.2111
0.6185
EndoStreamDepth [ 16 ]
353.31
2.351
1.458
0.0815
0.9078
11.163
7.107
0.2158
0.5957
Sparse depth completion
CompletionFormer [ 17 ]
83.51
1.674
0.841
0.0405
0.9841
4.877
3.013
0.1041
0.8917
TABLE I: Comparison Under Very Sparse Input (50 Points per Frame; RMSE and MAE in mm). Best in Bold, Second Best Underlined
Fig. 3: Qualitative comparison under very sparse input on two C3VD (left) and two StereoMIS frames (right). Within each dataset, depth maps (red: near, blue: far) and absolute error maps (blue: low, red: high) share one color scale.
Input points
#Anchors
Ratio
Median r
RMSE ↓
REL ↓
C3VD [ 39 ]
50
456
9.50 ×
0.328
1.478
0.0373
500
1,482
3.08 ×
0.630
0.879
0.0166
5,000
4,805
1.00 ×
–
0.776
0.0098
50,000
48,047
1.00 ×
–
0.600
0.0070
StereoMIS [ 1 ]
TABLE II: Temporal Densification Across Input Densities. #Anchors Is the Mean Number of Anchors After the Priority Union, and Median r Is the Median Reliability of Remembered Anchors
Pose noise
C3VD
StereoMIS
Pose-aware
Fixed
Bare
Pose-aware
Fixed
Bare
None
1.478
1.478
1.657
3.121
3.121
3.348
0.05 ∘ /0.15 mm
1.593
1.594
1.773
3.151
3.151
3.387
0.1 ∘ /0.3 mm
1.814
1.814
2.021
3.216
3.214
3.482
0.2 ∘ /0.5 mm
2.162
2.171
2.412
3.334
3.331
3.646
0.5 ∘ /1 mm
3.079
3.093
3.464
3.676
3.676
4.093
TABLE III: RMSE (mm) Under Pose Noise (Rotation/Translation Standard Deviation) at Realistic, SLAM-Grade, and Stress Levels. Fixed Omits ( 7 ) and ( 8 ); Bare Removes the Reliability Modeling
Accurate depth estimation plays a critical role in the navigation of endoscopic surgical robots, forming the foundation for 3D reconstruction and safe instrument guidance. Fine-tuning pretrained models heavily relies on endoscopic surgical datasets with precise depth annotations. While existing self-supervised depth estimation techniques eliminate the need for accurate depth annotations, their performance degrades in environments with weak textures and variable lighting, leading to sparse reconstruction with invalid depth estimation. Depth completion using sparse depth maps can mitigate these issues and improve accuracy. Despite the advances in depth completion techniques in general fields, their application in endoscopy remains limited. To overcome these limitations, we propose EndoDDC, an endoscopy depth completion method that integrates images, sparse depth information with depth gradient features, and optimizes depth maps through a diffusion model, addressing the issues of weak texture and light reflection in endoscopic environments. Extensive experiments on two publicly available endoscopy datasets show that our approach outperforms state-of-the-art models in both depth accuracy and robustness. This demonstrates the potential of our method to reduce visual errors in complex endoscopic environments. Our code will be released at https://github.com/yinheng-lin/EndoDDC.
Yinheng Lin, Yiming Huang, Beilei Cui +4
All authors are with the Department of Electronic Engineering, The Chinese University of Hong Kong, Hong Kong, China.
Depth estimation is a foundational component for 3D reconstruction in minimally invasive endoscopic surgeries. However, existing monocular depth estimation techniques often exhibit limited performance to the varying illumination and complex textures of the surgical environment. While applying foundation models offers a promising approach to enhance the depth estimation performance, the domain gap between the natural images used for pre-training and the target endoscopic images leads to significant semantic perception deficiencies. In this study, EndoUFM is introduced as an unsupervised monocular depth estimation framework that innovatively Utilizes dual Foundation Models for Endoscopic images, thereby enhancing the depth estimation performance by leveraging the powerful pre-learned priors. The framework features a novel adaptive fine-tuning strategy that incorporates Random Vector Low-Rank Adaptation (RVLoRA) to enhance model adaptability, and a Residual block based on Depthwise Separable Convolution (Res-DSC) to improve the capture of fine-grained local features. A mask-guided smoothness loss is also introduced to enforce depth consistency within anatomical structures. Extensive experiments on the SCARED, Hamlyn, SERV-CT, and EndoNeRF datasets confirm that our method achieves state-of-the-art performance while maintaining an efficient model size. This work contributes to augmenting surgeons' spatial perception during minimally invasive procedures, thereby enhancing surgical precision and safety, with crucial implications for augmented reality and navigation systems. Our code is available at https://github.com/RealMindyY/EndoUFM.
Xinning Yao, Bo Liu, Bojian Li +3
Image Processing Center, Beihang University, Beijing, 100191, China. · State Key Laboratory of High-Efficiency Reusable Aerospace Transportation Technology, Beijing 102206, China.
Purpose: Monocular depth estimation (MDE) is vital for scene understanding in minimally invasive surgery (MIS). However, endoscopic video sequences are often contaminated by smoke, specular reflections, blur, and occlusions, limiting the accuracy of MDE models. In addition, current MDE models do not output depth confidence, which could be a valuable tool for improving their clinical reliability. Methods: We propose a novel confidence-aware MDE framework featuring three significant contributions: (i) Calibrated confidence targets: an ensemble of fine-tuned stereo matching models is used to capture disparity variance into pixel-wise confidence probabilities; (ii) Confidence-aware loss: Baseline MDE models are optimized with confidence-aware loss functions, utilizing pixel-wise confidence probabilities such that reliable pixels dominate training; and (iii) Inference-time confidence: a confidence estimation head is proposed with two convolution layers to predict per-pixel confidence at inference, enabling assessment of depth reliability. Results: Comprehensive experimental validation across internal and public datasets demonstrates that our framework improves depth estimation accuracy and can robustly quantify the prediction's confidence. On the internal clinical endoscopic dataset (StereoKP), we improve dense depth estimation accuracy by ~8% as compared to the baseline model. Conclusion: Our confidence-aware framework enables improved accuracy of MDE models in MIS, addressing challenges posed by noise and artifacts in pre-clinical and clinical data, and allows MDE models to provide confidence maps that may be used to improve their reliability for clinical applications.
Muhammad Asad, Emanuele Colleoni, Pritesh Mehta +7
Medtronic Surgical, London, UK. · UCL Hawkes Institute, University College London, London,UK.