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