betaFeedback

WorksComputer Science

KFS4^4LAM: Adaptive KeyFrame Selection with Structure-Aware Mapping for Endoscopic Gaussian Splatting SLAM

Abstract

Gaussian-splatting Simultaneous Localization and Mapping (SLAM) augments conventional SLAM with a dense, renderable 3D scene representation, enabling high-quality reconstruction and novel-view synthesis. However, its localization, reconstruction, and rendering performance depends strongly on which observations are retained for mapping. Existing systems commonly rely on fixed temporal intervals or simple pose- and overlap-based criteria for keyframe selection. In colonoscopy, non-uniform camera motion, repetitive anatomy, specularities, and visual artifacts can make these criteria unreliable, leading to either redundant keyframes or missed informative viewpoints. We present KFS4^4LAM (KeyFrame Selection with Structure-aware mapping for endoscopic Gaussian Splatting SLAM), which couples motion-guided adaptive keyframe selection with structurally supervised mapping and restricted temporal deformation. Accumulated motion guides adaptive keyframe selection, with complementary cues suppressing redundant or unreliable candidates. Density-aware mapping with anatomical contour supervision (colon folds) emphasizes structurally informative regions, while restricted temporal deformation accommodates local tissue dynamics without unconstrained geometric drift. We evaluate KFS4^4LAM against Gaussian-SLAM baselines on C3VD and C3VD-v2, together with cross-backbone and component ablations. KFS4^4LAM achieves strong overall performance across trajectory, rendering, and depth metrics, with pronounced gains on more challenging C3VD-v2 dataset. In the matched comparison with SplaTAM on C3VD-v2, it reduces rotational relative pose error by 20.3% and depth RMSE by 38.4%, while improving PSNR by 0.78 dB. Cross-backbone experiments further show that the framework is not tied to a single underlying SLAM architecture. Code and visualization results are available at https://xinweiju.github.io/KFSLAM/.

Introduction

Accurate camera tracking and dense reconstruction from endoscopic video can support spatial navigation, anatomy/lesion localization, and procedure documentation [1, 2]. However, endoscopic scenes differ markedly from the rigid, well-textured environments assumed by conventional SLAM, exhibiting deformable tissue, a restricted field of view, specular reflections, non-uniform illumination, and repetitive or texture-poor anatomy [1]. Camera motion is also highly non-uniform, causing the information contributed by consecutive frames to vary substantially. Slow or near-stationary motion produces long runs of near-redundant observations, whereas rapid translation, rotation, or viewpoint change can reveal substantial new scene content within only a few frames. Consequently, treating observations uniformly can devote mapping effort to redundant views while overlooking more informative ones, making observation selection an important factor in both camera tracking and reconstruction quality.

Compared with earlier implicit neural representations [3], 3D Gaussian Splatting represents the scene using explicit, efficiently renderable anisotropic Gaussians, enabling localized map updates and high-quality rendering, as demonstrated in GaussianSLAM [4], MonoGS [5], and SplaTAM [6]. Recent endoscopic methods have improved robustness to deformable tissue and weak texture through endoscopy-specific tracking in EndoGSLAM [7], deformation-aware representations [8, 9], and stronger geometric regularization such as surface-conforming constraints, normal supervision, and pose-aware keyframe strategies [10, 11]. However, these advances have primarily focused on tracking, scene representation, and map optimization, with comparatively less attention to adaptive observation selection and the explicit use of persistent anatomical structure during mapping.

Keyframe selection in conventional SLAM is commonly based on geometric and visibility cues such as displacement, parallax, and covisibility [12, 13]. Related criteria are also widely used for view selection in structure-from-motion and multi-view reconstruction [14, 15], while more recent approaches have explored richer geometric and photogrammetric criteria [16] and learned, data-driven selection policies [17]. In endoscopy, however, assessing viewpoint novelty from visual and correspondence cues remains challenging due to specular reflections, illumination variation, tissue deformation, weak texture, and repetitive anatomy [18, 19, 20]. These effects can produce substantial appearance or correspondence changes without necessarily indicating a geometrically informative new viewpoint [21]. Existing endoscopic Gaussian-SLAM systems largely rely on temporally spaced keyframes in EndoGSLAM [7] or pose/overlap-driven policies in Endo-2DTAM [10], with limited consideration of observation redundancy and reliability under non-uniform camera motion. Beyond keyframe selection, anatomical structures such as colon folds can complement appearance-based geometric reasoning [22, 23] and provide persistent spatial constraints for endoscopic navigation and reconstruction [24]. Incorporating such structure into Gaussian mapping therefore offers a complementary source of supervision to RGB appearance.

Building on these observations, we introduce KFS4^{4}LAM, a structure-aware Gaussian-SLAM framework that couples motion-guided adaptive keyframe selection with structurally supervised mapping and restricted temporal deformation. Rather than allowing appearance change to directly trigger keyframe insertion, accumulated camera motion proposes candidate viewpoints, while complementary image- and feature-level cues suppress unreliable or redundant candidates. The resulting non-uniform keyframe density is accommodated by adapting the mapping budget to the number of retained keyframes. The selected observations are further integrated with anatomical fold supervision and restricted temporal deformation, using persistent fold structure to regularize Gaussian mapping while accommodating local non-rigid tissue motion.

Taken together, KFS4^{4}LAM provides an adaptive mapping strategy that balances viewpoint informativeness, observation efficiency, and structural consistency in deformable endoscopic scenes. Our evaluation shows consistent improvements in localization and map quality without relying on a higher keyframe density, with the benefits becoming more pronounced on the more challenging C3VD-v2 sequences. Component and cross-backbone ablations further indicate that these gains arise from the proposed design rather than from increased mapping effort or a particular Gaussian-SLAM backbone.

The main contributions of this work are:

  • A motion-guided adaptive keyframe policy that combines accumulated-motion-based candidate proposal with redundancy-aware visual suppression.

  • A structure-aware mapping design that combines density-aware mapping with anatomical fold-boundary supervision and fold-conditioned restricted temporal deformation, providing complementary image-space structural supervision and a soft spatial prior for non-rigid Gaussian motion, enabling non-uniform observation allocation under varying camera motion.

  • A comprehensive evaluation on C3VD and C3VD-v2, including component and matched cross-backbone ablations that isolate the effects of adaptive keyframe selection, structural supervision, and restricted temporal deformation, and demonstrate consistent improvements across different Gaussian-SLAM backbones.

Methods

Overview and Problem Formulation

As illustrated in Figure 1, KFS4^{4}LAM couples adaptive keyframe selection with structure-aware mapping for Gaussian-splatting SLAM in deformable endoscopic scenes. The keyframe policy selects observations for subsequent mapping, while predicted colon folds provide structural supervision and a soft prior for restricted temporal deformation.

Overview of the KFS⁴LAM pipeline

Figure 1. Overview of the KFS⁴LAM pipeline. Given an RGB-D sequence, KFS⁴LAM consists of three coupled components: (1) an adaptive keyframe observation policy that generates candidates from accumulated camera motion and adaptively retains informative, non-redundant observations; (2) structure-aware mapping that incorporates fold-boundary supervision and fold-conditioned restricted temporal deformation into the time-conditioned 3D Gaussian map; and (3) frame-wise tracking against the learned map. Selected keyframes, indicated by blue boxes in the input sequence, provide historical observations for mapping, while all processed frames update the map and are tracked against its current state. The resulting representation supports temporally deformable reconstruction while maintaining camera tracking throughout the sequence.

Given an RGB-D endoscopic sequence {It,Dt}t=0T−1\{I_t, D_t\}_{t=0}^{T-1}, spatially aligned fold-response maps {Ft}t=0T−1\{F_t\}_{t=0}^{T-1}, and camera intrinsics KK, our objective is to estimate camera poses {Tt∈SE(3)}t=0T−1\{T_t \in\mathrm{SE}(3)\}_{t=0}^{T-1} and a canonical Gaussian map Gc={gi}i=1N\mathcal{G}_c = \{g_i\}_{i=1}^{N}. We retain the RGB-D input setting of the underlying SLAM backbone. Each Ft∈[0,1]H×WF_t \in[0,1]^{H \times W} (H×WH \times W denotes the image resolution) is a continuous per-pixel fold-response map predicted from ItI_t by a pretrained fold-segmentation model.

Each Gaussian is represented as

gi=(μi,Σi,ci,αi,fi,Bi),(1)g_i = (\mu_i, \Sigma_i, c_i, \alpha_i, f_i, B_i), \tag*{(1)}

where μi\mu_i, Σi\Sigma_i, cic_i, and αi\alpha_i denote its canonical mean, covariance, colour, and opacity, respectively. The fold attribute fi∈[0,1]f_i \in[0, 1] stores the fold response initialized from its source observation when the Gaussian is inserted, while Bi∈R3×2B_i \in\mathbb{R}^{3 \times2} parameterizes restricted temporal displacement. Replacing each canonical mean μi\mu_i with its time-conditioned mean μi(t)\mu_i(t) defines the Gaussian map Gt\mathcal{G}_t used for rendering, mapping, and frame-wise tracking.

Adaptive Keyframe Selection

We separate keyframe selection into motion-based proposal and asymmetric visual suppression: motion generates candidates, while visual cues can only reject uninformative or redundant observations and cannot independently trigger insertion.

a) Accumulated motion proposal: Let ttt_t denote the estimated pose translation parameter used by the backbone. We accumulate its frame-to-frame changes as a motion proxy and adapt the proposal threshold to recent motion:

dt=∥tt−tt−1∥2,at=at−1+dt,θt=max⁡(dmin⁡,g0d~t),(2)\begin{aligned} d_t &= \lVert t_t - t_{t-1} \rVert_2, \qquad a_t = a_{t-1} + d_t,\\ \theta_t &= \max(d_{\min}, g_0 \tilde{d}_t), \tag*{(2)} \end{aligned}

where dtd_t is the frame-to-frame translation change, ata_t the accumulated translation since the most recent proposal, θt\theta_t the adaptive proposal threshold, and d~t\tilde{d}_t the median positive translation step over recent 16 frame pairs. We use a reference keyframe interval g0=8g_0 = 8 and minimum motion threshold dmin⁡=0.03d_{\min} = 0.03. The accumulator is initialized to zero and reset after every proposal, including those subsequently rejected.

Let gtg_t denote the number of processed frames since the last retained keyframe. An ordinary proposal MtM_t is generated when at≥θta_t \geq\theta_t and gmin⁡≤gt<gmax⁡g_{\min} \leq g_t < g_{\max}. A protected proposal PtP_t is generated when gt≥gmax⁡g_t \geq g_{\max}, or at the penultimate frame if gt≥gmin⁡g_t \geq g_{\min}. We use (gmin⁡,gmax⁡)=(4,16)(g_{\min}, g_{\max}) = (4, 16).

b) Asymmetric visual suppression: Ordinary proposals are compared with up to three recent retained keyframes. We set Ut=1U_t = 1 if the mean Sobel-gradient magnitude or grayscale standard deviation falls below 0.65 or 0.60 times the corresponding reference median. We set Rt=1R_t = 1 if either of two tests holds: an appearance test with minimum grayscale and gradient-magnitude MAEs of at most 0.025 and 0.020, or a pose-free local-matching test with grayscale MAE ≤0.025\leq0.025 and normalized mean local-matching displacement ≤0.10\leq0.10 for the reference with minimum grayscale MAE, together with maximum gradient cosine similarity ≥0.92\geq0.92 over the references.

The final insertion decision is

kt=[t=0]∨Pt∨(Mt∧¬Ut∧¬Rt).(3)k_t = [t = 0] \lor P_t \lor(M_t \land\neg U_t \land\neg R_t). \tag*{(3)}

Protected proposals bypass suppression, while visual cues can only reject ordinary proposals rather than trigger insertion.

Structure-Aware Restricted Temporal Mapping

Predicted fold structure provides two complementary signals for mapping: image-space structural supervision and a soft spatial prior for restricted temporal deformation.

a) Fold-boundary distance supervision: For a mapping observation indexed by jj, the stored Gaussian fold attributes fif_i are alpha-composited to render the fold-response map F^j\hat{F}_j. We apply the Sobel boundary-magnitude operator B(⋅)\mathcal{B}(\cdot) to both the observed fold-response map FjF_j and the rendered response F^j\hat{F}_j. We threshold B(Fj)\mathcal{B}(F_j) to obtain a binary fold-boundary map and compute its Euclidean distance transform. The distance is truncated at 10 pixels to limit the influence of distant boundaries and normalized by 10, yielding the normalized distance map QjQ_j. The structural loss and mapping objective are

Lfold=1HW∑xB(F^j)(x) sg⁡(Qj(x)),(4)\mathcal{L}_{\mathrm{fold}} = \frac{1}{HW} \sum_x \mathcal{B}(\hat{F}_j)(x)\,\operatorname{sg}(Q_j(x)), \tag*{(4)}
Lmap=Lmapbackbone+Lfold+Ldef.\mathcal{L}_{\mathrm{map}} = \mathcal{L}_{\mathrm{map}}^{\mathrm{backbone}} + \mathcal{L}_{\mathrm{fold}} + \mathcal{L}_{\mathrm{def}}.

We refer to Lfold\mathcal{L}_{\mathrm{fold}} as the Boundary-DT loss, where sg⁡(⋅)\operatorname{sg}(\cdot) denotes stop-gradient and Lmapbackbone\mathcal{L}_{\mathrm{map}}^{\mathrm{backbone}} is the native mapping objective of the underlying backbone. This one-sided loss penalizes rendered boundaries that lie far from observed fold boundaries, without requiring every observed boundary to be matched. Gradients from Lfold\mathcal{L}_{\mathrm{fold}} update Gaussian geometry, opacity, and temporal deformation, while the stored fold attributes and mapping pose are detached.

b) Fold-conditioned temporal deformation: Each Gaussian receives a low-dimensional time-dependent translation

μi(j)=μi+Δμi(j),Δμi(j)=Bi[ujsin⁡(πωj)],(5)\mu_i(j) = \mu_i + \Delta\mu_i(j), \qquad\Delta\mu_i(j) = B_i \begin{bmatrix} u_j \\ \sin(\pi\omega_j) \end{bmatrix}, \tag*{(5)}
uj=jmax⁡(T−1,1).u_j = \frac{j}{\max(T-1,1)}.

Only the Gaussian mean is time-conditioned. The linear and half-sine terms capture gradual and smooth nonlinear displacement, respectively, while both vanish at the first frame and anchor the canonical geometry. The resulting Gaussians form the time-conditioned map Gj={gi(j)}i=1N\mathcal{G}_j = \{g_i(j)\}_{i=1}^{N}.

With NN denoting the number of Gaussians currently stored in the canonical map, j−=max⁡(j−1,0)j^{-} = \max(j-1,0) and wi=1−β sg⁡(fi)w_i = 1 - \beta\,\operatorname{sg}(f_i), the deformation regularizer is

Ldef=λmagN∑iwi∥Δμi(j)∥22+λtempN∑i∥Δμi(j)−Δμi(j−)∥22+λmean∥1N∑iΔμi(j)∥22.(6)\begin{aligned} \mathcal{L}_{\mathrm{def}} ={}& \frac{\lambda_{\mathrm{mag}}}{N} \sum_i w_i \lVert\Delta\mu_i(j) \rVert_2^2\\ &+ \frac{\lambda_{\mathrm{temp}}}{N} \sum_i \lVert\Delta\mu_i(j) - \Delta\mu_i(j^{-}) \rVert_2^2\\ &+ \lambda_{\mathrm{mean}} \left\lVert\frac{1}{N} \sum_i \Delta\mu_i(j) \right\rVert_2^2. \tag*{(6)} \end{aligned}

We use β=0.5\beta= 0.5 and (λmag,λtemp,λmean)=(0.001,0.01,0.01)(\lambda_{\mathrm{mag}}, \lambda_{\mathrm{temp}}, \lambda_{\mathrm{mean}}) = (0.001, 0.01, 0.01). The terms regularize deformation magnitude, temporal variation, and global mean displacement, while higher fold response values relax the magnitude penalty and provide a soft spatial prior.

c) Tracking with time-conditioned geometry: At frame tt, tracking optimizes only the camera pose while keeping the time-conditioned map Gt\mathcal{G}_t fixed:

Tt∗=arg min⁡Tt Ltrackbackbone(R(Tt,sg⁡(Gt)),It,Dt),(7)T_t^{*} = \underset{T_t}{\operatorname{arg\,min}}\ \mathcal{L}_{\mathrm{track}}^{\mathrm{backbone}}\left(\mathcal{R}(T_t,\operatorname{sg}(\mathcal{G}_t)), I_t, D_t\right), \tag*{(7)}

where R\mathcal{R} denotes Gaussian rendering and Ltrackbackbone\mathcal{L}_{\mathrm{track}}^{\mathrm{backbone}} is the native tracking objective. Map and deformation parameters remain fixed during tracking; fold-boundary supervision and deformation regularization are applied only during mapping.

Optimization and Adaptive Mapping Budget

To accommodate the non-uniform replay pool induced by adaptive keyframe selection, we adapt the per-frame mapping budget to the number of retained observations. Let ntn_t denote the number of retained historical keyframes before mapping processed frame tt. Relative to a fixed-gap reference, we define

Et=⌊t+1g0⌋+1,rt=max⁡(1,nt+1Et),E_t = \left\lfloor\frac{t+1}{g_0} \right\rfloor+ 1,\qquad r_t = \max\left(1,\frac{n_t+1}{E_t}\right),
Nmap(t)=clip⁡(⌈N0min⁡(smax⁡,rtp)⌉,Nmin⁡,Nmax⁡).(8)N_{\mathrm{map}}(t) = \operatorname{clip}\left(\left\lceil N_0\min\left(s_{\max},r_t^p\right)\right\rceil,N_{\min},N_{\max}\right). \tag*{(8)}

Here, EtE_t is the nominal replay-pool size under fixed-gap insertion, including the current observation, while nt+1n_t+1 is the available pool size under the adaptive policy. We use g0=8g_0=8, N0=Nmin⁡=25N_0=N_{\min}=25, Nmax⁡=75N_{\max}=75, smax⁡=3s_{\max}=3, and p=1p=1 for both backbones. Larger-than-reference replay pools therefore receive additional mapping iterations.

Experimental Setup

Datasets and Baselines

We evaluate on registered and undistorted RGB-D sequences from C3VD and C3VD-v2, comprising 14 C3VD sequences (5,810 frames) and 10 C3VD-v2 sequences (4,511 frames).

We compare against GaussianSLAM, Endo-2DTAM, MonoGS, EndoGSLAM, and SplaTAM. KFS4^{4}LAM is instantiated on both EndoGSLAM and SplaTAM to evaluate its applicability across reconstruction backbones, while the baselines retain their native tracking, mapping, and keyframe mechanisms.

Experimental Settings

All KFS4^{4}LAM variants operate at 675 ×\times 540 resolution. The EndoGSLAM and SplaTAM baselines use a fixed keyframe interval of 8 processed frames, whereas our adaptive policy uses minimum, reference, and maximum gaps of 4, 8, and 16 frames. We use 15 tracking iterations and adapt the mapping budget from 25 to 75 iterations. Fold responses are obtained by reproducing the best-performing model from [22], trained with EndoMapper [19] fold labels, and retained as continuous responses in our pipeline. Experiments are run on NVIDIA Tesla V100-DGXs GPUs with 32,GB memory.

Evaluation Protocol

We report Sim(3)-aligned ATE and ARE and consecutive-frame RPE-t/RPE-r in millimeters/degrees. For ATE and ARE, both macro and sequence-length-weighted averages are reported,

m=1S∑s=1Ses,w=∑s=1SNses∑s=1SNs,\mathrm{m}=\frac{1}{S}\sum_{s=1}^{S}e_s,\qquad \mathrm{w}=\frac{\sum_{s=1}^{S}N_se_s}{\sum_{s=1}^{S}N_s},

where ese_s is the sequence-level error and NsN_s its original frame count. RPE, PSNR, SSIM, LPIPS-Alex, and depth

RMSE are macro-averaged across sequences. Qualitative evaluation includes RGB, depth, and Sim(3)-aligned spatial reconstruction.

Results

Trajectory Accuracy

Table 1 compares trajectory accuracy on C3VD and C3VD-v2. On C3VD, KFS⁴LAM achieves the best performance across all reported trajectory metrics, although the gains over SplaTAM are relatively modest. The advantage becomes more pronounced on C3VD-v2, where KFS⁴LAM achieves the lowest weighted ATE and both the lowest weighted and macro ARE, while obtaining the second-lowest macro ATE. In particular, weighted ARE decreases from 53.00° for EndoGSLAM to 43.13°. Relative pose metrics show a more mixed trend: SplaTAM retains the lowest RPE-t and GaussianSLAM the lowest RPE-r, with KFS⁴LAM ranking second on both. Taken together, these results indicate that the main tracking benefit of KFS⁴LAM lies in improved global trajectory consistency, particularly on the more challenging C3VD-v2 sequences.

MethodC3VDC3VD-v2
wATE ↓\downarrow (mm)mATE ↓\downarrow (mm)wARE ↓\downarrow (°)mARE ↓\downarrow (°)RPE-t ↓\downarrow (mm)RPE-r ↓\downarrow (°)wATE ↓\downarrow (mm)mATE ↓\downarrow (mm)wARE ↓\downarrow (°)mARE ↓\downarrow (°)RPE-t ↓\downarrow (mm)RPE-r ↓\downarrow (°)
GaussianSLAM [4]3.85314.088593.151277.38990.33920.193010.711911.2901127.27112.750.72380.4446
MonoGS [5]2.48812.719057.404963.49650.37910.56406.26377.163756.362170.14460.60021.4456
Endo-2DTAM [10]1.47941.571842.538047.25880.13210.65789.874610.785985.542489.17160.44762.1940
EndoGSLAM [7]0.47730.53778.437010.76570.08880.16176.07247.5037<u>52.9959</u>60.16390.44111.2234
SplaTAM [6]<u>0.4637</u><u>0.4544</u><u>8.2745</u><u>10.3404</u>0.06250.14646.43337.683664.1820<u>59.4920</u>0.31031.3969
KFS⁴LAM (Ours)0.45200.44767.70859.34570.06240.14185.8463<u>7.2429</u>43.129044.80620.3764<u>1.1134</u>

Table 1. Quantitative trajectory results of Endo-2DTAM [10], EndoGSLAM [7], GaussianSLAM [4], MonoGS [5], SplaTAM [6], and KFS⁴LAM on C3VD [20] and C3VD-v2 [25]. Best and second-best results are shown in bold and underlined, respectively.

Rendering and Geometric Reconstruction

Table 2 reports image-space rendering and depth reconstruction quality. On C3VD, KFS⁴LAM achieves the best SSIM, LPIPS, and depth RMSE, while ranking second in PSNR. On C3VD-v2, its strongest improvement is geometric: compared with SplaTAM, depth RMSE decreases from 4.95 mm to 3.05 mm, a reduction of 38.4%, while PSNR increases by 0.78 dB and SSIM also improves. LPIPS remains slightly better for SplaTAM. These results suggest that KFS⁴LAM primarily improves geometric consistency while maintaining competitive image-space rendering quality.

MethodC3VDC3VD-v2
PSNR ↑\uparrow (dB)SSIM ↑\uparrowLPIPS ↓\downarrowDepth RMSE ↓\downarrow (mm)PSNR ↑\uparrow (dB)SSIM ↑\uparrowLPIPS ↓\downarrowDepth RMSE ↓\downarrow (mm)
Endo-2DTAM [10]20.27450.78670.36039.055518.32350.68520.490613.1850
EndoGSLAM [7]21.17340.73190.31112.690414.61580.56150.648414.8925
GaussianSLAM [4]25.76290.74980.51486.503622.68290.65440.614710.5528
MonoGS [5]29.67840.84820.38241430.0825.96080.77740.60671106.53
SplaTAM [6]25.6437<u>0.8776</u><u>0.2416</u><u>1.1509</u>20.13540.70530.4257<u>4.9467</u>
KFS⁴LAM (Ours)<u>26.6164</u>0.88350.22061.0720<u>20.9113</u><u>0.7163</u><u>0.4332</u>3.0472

Table 2. Quantitative rendering results of Endo-2DTAM [10], EndoGSLAM [7], GaussianSLAM [4], MonoGS [5], SplaTAM [6], and KFS⁴LAM on C3VD [20] and C3VD-v2 [25]. Best and second-best results are shown in bold and underlined, respectively.

MonoGS provides a notable contrast: although it achieves the highest PSNR on both datasets, it produces very large depth errors. This discrepancy indicates that photometric reconstruction quality alone is insufficient to characterize the geometric fidelity of dense endoscopic SLAM, a distinction that is also evident in the qualitative RGB and depth rendering results.

Figure 2 is consistent with the quantitative observations. On C3VD, several methods produce plausible RGB reconstructions, whereas differences become more apparent in the corresponding depth estimates. The distinction is stronger on C3VD-v2, where the baselines exhibit localized appearance artifacts, distorted cavity structure, or inconsistent depth, whereas KFS⁴LAM preserves more coherent cavity geometry across the displayed RGB and depth views relative to the ground truth. In particular, the comparison with MonoGS illustrates the difference between photometric fidelity and geometric consistency: visually plausible RGB synthesis can coexist with substantially inaccurate depth.

Qualitative comparisons of RGB and depth reconstruction results across methods on C3VD and C3VD-v2

Figure 2. Qualitative results on C3VD [20] and C3VD-v2 [25]. We compare our method (KFS4^{4}LAM) with the SOTA methods for dense endoscopic SLAM, including MonoGS [5], EndoGSLAM [7], Endo-2DTAM [10], GaussianSLAM [4], and SplaTAM [6]. Our method generates more robust color and depth reconstruction, as shown by results from trans t2 b (C3VD) and c1 rectum t2 v1 (C3VD-v2).

Ablation Study

Component Contributions

The SplaTAM block of Table 3 evaluates Adaptive Mapping (DynMap), Motion Proposal Only, Motion-Guided KFS, Structure-Guided Mapping, its combination with deformation, and the joint Motion-and-Structure-Guided configuration. These variants include both adaptive-keyframe and fixed-keyframe controls, allowing keyframe selection and structure-aware mapping to be examined separately.

MethodC3VD mATEmARERPE-tRPE-rPSNRSSIMLPIPSDepth RMSEKF (%)C3VD-v2 mATEmARERPE-tRPE-rPSNRSSIMLPIPSDepth RMSEKF (%)
EndoGSLAM [7]0.53810.7660.0890.16221.1730.7320.3112.69011.2747.50460.1640.4411.22314.6160.5620.64814.89311.264
KFS⁴LAM₍EndoGSLAM₎ (Ours)0.52812.1960.0870.16121.7620.7380.3012.58810.9647.62556.0090.4280.92715.3010.5980.60811.92811.059
SplaTAM [6]0.45410.3400.0630.14625.6440.8780.2421.15112.8577.68459.4920.3101.39720.1350.7050.4264.94712.826
SplaTAM + Adaptive Mapping (DynMap)0.45410.3180.0650.15325.6560.8770.2431.17312.8577.40564.2580.3311.65719.7120.6860.4395.43412.826
SplaTAM + Motion Proposal Only0.43910.1670.0640.15325.5870.8730.2401.16812.3926.37067.1340.3381.13419.2780.6560.4704.58212.826
SplaTAM + Motion-Guided KFS0.4569.2660.0640.15325.4650.8730.2451.11712.3417.93286.6300.3421.45119.1380.6590.4494.69712.333
SplaTAM + Structure-Guided Mapping0.45410.3960.0640.14825.6590.8780.2431.20212.8577.84686.6670.3651.76518.8260.6710.4405.15112.826
SplaTAM + Structure-Guided + Deformation0.4399.4970.0610.14526.8520.8910.2211.07112.8577.55955.1990.3261.17219.3900.6780.4304.06112.826
SplaTAM + Motion-and-Structure-Guided0.45310.0100.0640.15325.5630.8710.2451.16712.3417.50361.2330.4091.34920.7760.7210.4294.30512.312
SplaTAM + MonoGS [5] KFS0.4519.6460.0650.15025.1290.8680.2421.1685.8697.79756.8670.3601.43819.6510.6760.4485.2929.209
KFS⁴LAM₍SplaTAM₎ (Ours)0.4489.3460.0620.14226.6160.8840.2211.07212.2727.24344.8060.3761.11320.9110.7160.4333.04712.415

Table 3. Cross-backbone and component results on C3VD and C3VD-v2. Green indicates improvement over the corresponding backbone. KF (%) is 100∑sKs/∑sNs100\sum_s K_s/\sum_s N_s, where KsK_s and NsN_s are retained keyframe and input-frame counts; it is not ranked.

Adaptive Mapping (DynMap) remains close to the SplaTAM backbone on C3VD and does not consistently improve C3VD-v2. Thus, adjusting the mapping budget alone does not reproduce the gains of the full framework. Motion Proposal Only improves individual trajectory measures, most notably C3VD-v2 mATE, whereas Motion-Guided KFS yields mixed changes across trajectory and rendering metrics, particularly on C3VD-v2.

The fixed-keyframe Structure-Guided Mapping controls isolate the mapping components from adaptive selection. Structure-Guided Mapping alone provides limited improvements, whereas adding deformation substantially improves the trajectory–reconstruction balance, including mARE, RPE-r, and depth RMSE on C3VD-v2. Without deformation, Motion-and-Structure-Guided instead improves C3VD-v2 mATE, PSNR, SSIM, and depth RMSE over Structure-Guided Mapping, while using fewer keyframes. Combining adaptive selection, structural supervision, and restricted temporal deformation in the full KFS⁴LAM₍SplaTAM₎ further reduces C3VD-v2 mATE, mARE, RPE-r, and depth RMSE. These complementary trends indicate that adaptive keyframe allocation and restricted deformation contribute differently when coupled with structural supervision.

Finally, SplaTAM + MonoGS KFS uses overlap-based keyframe selection and yields a sparser keyframe set but inconsistent gains, whereas KFS⁴LAM₍SplaTAM₎ provides more consistent improvements.

Keyframe Allocation

The full-model gains are achieved without a higher keyframe ratio. KFS⁴LAM uses a mean keyframe ratio of 12.33% on C3VD and 12.47% on C3VD-v2, compared with 13.08% and 12.90% for the fixed-interval SplaTAM baseline. Table III also shows lower keyframe ratios for the full EndoGSLAM variant than for its corresponding backbone on both datasets.

Figure 4 complements these averages with the temporal distribution of selected observations. Across both illustrated backbones, the adaptive policy produces locally sparse and dense portions along the sequence, in contrast to the fixed-interval reference policies. These observations characterize keyframe allocation; the full-model gains are obtained by

Cross-backbone generalization of tracking and adaptive keyframe allocation

Figure 4. Cross-backbone generalization of tracking and adaptive keyframe allocation. Trajectory and keyframe visualizations of KFS4^{4}LAM instantiated with (a) SplaTAM on C3VD-v2 c2_sigmoid_t2_v1 and (b) EndoGSLAM on C3VD trans_t2_c. Backbone and KFS4^{4}LAM trajectories are shown in blue and red, with circular and square keyframe markers, respectively. The legends also report ATE for each method and the total number of retained keyframes. The colored keyframe-density bands visualize smoothed local selection density (keyframes per 100 processed frames) with vertical markers showing individual keyframes; dashed boxes highlight representative sparse and dense periods of KFS4^{4}LAM and connect them to the corresponding RGB excerpts. Blue and red boxes identify backbone and KFS4^{4}LAM keyframes, respectively, with x/yx/y denoting the xx-th selected keyframe among the yy keyframes retained by that method over the full sequence.

Rendering generalization across reconstruction backbones on C3VD-v2

Figure 3. Rendering generalization across reconstruction backbones on C3VD-v2. Qualitative RGB and depth reconstruction for EndoGSLAM, SplaTAM, and their corresponding KFS⁴LAM variants on representative C3VD-v2 frames. Across both backbones, KFS⁴LAM produces more coherent cavity structure and suppresses severe appearance and depth artifacts observed in the original reconstructions. The improvements are particularly visible on c2_sigmoid_t2_v1, where both KFS⁴LAM variants recover substantially more consistent RGB and depth structure.

redistributing a comparable keyframe budget over time rather than by retaining more observations.

Cross-Backbone Generalization

We compare each full KFS⁴LAM variant with its corresponding SplaTAM [6] or EndoGSLAM [7] backbone in Table III. The keyframe-selection policy, structural supervision, and restricted temporal deformation are transferred without backbone-specific redesign, with only their integration into the native tracking and mapping interfaces differing between the backbones.

On C3VD-v2, the matched SplaTAM comparison gives mARE of 59.49° versus 44.81° and depth RMSE of 4.95 versus 3.05 mm for the backbone and full model, respectively. For EndoGSLAM, RPE-r decreases from 1.22° to 0.93° and depth RMSE from 14.89 to 11.93 mm. The gains are not uniform across trajectory metrics: SplaTAM has lower RPE-t on C3VD-v2, while EndoGSLAM has lower mATE on C3VD-v2 and lower mARE on C3VD. The matched comparisons nevertheless support reconstruction benefits across both architectures.

Figures 3 and 5 provide complementary RGB, depth, and spatial evidence, with more coherent cavity structure and improved alignment with the visible reference surface in the illustrated examples. The corresponding trajectories in Fig. 4 further illustrate integration of the observation policy into both tracking pipelines.

Discussion

Interpretation and Evaluation Implications

The component comparisons suggest that observation selection and map optimization should be designed jointly. Changing the temporal distribution of retained observations alters the constraints available to mapping, while anatomical supervision and restricted deformation provide complementary mechanisms for maintaining reconstruction consistency. The controlled ablations further show that structure-aware

Geometric generalization across reconstruction backbones

Figure 5. Geometric generalization across reconstruction backbones on C3VD-v2. Reconstructed Gaussian geometry from EndoGSLAM and SplaTAM, compared with their corresponding KFS4^{4}LAM variants. Gray denotes the visible ground-truth surface, while color encodes the normalized nearest-neighbor geometric error from the reconstructed Gaussian centers to the visible ground-truth surface. Side, front, and top views show that integrating KFS4^{4}LAM improves global shape consistency and spatial alignment across both reconstruction backbones.

mapping provides benefits even under fixed keyframe selection, while the full model benefits from combining these components with adaptive observation allocation.

The larger gains on C3VD-v2 may reflect greater sensitivity to observation allocation and scene variation under more challenging acquisition conditions. Fold-boundary supervision supplies an anatomical constraint beyond appearance and depth, while restricted deformation provides limited flexibility in the recovered geometry. This is a plausible interpretation of the observed dataset differences, rather than an independently verified explanation of their causes.

The results also motivate joint evaluation of global trajectory consistency, local pose accuracy, image-space rendering, and geometric reconstruction. These measures capture distinct properties of a SLAM system; for example, MonoGS achieves the highest PSNR on both datasets despite substantially larger depth errors. An improvement in one metric therefore cannot be assumed to imply improvement in the others, making the overall trajectory–reconstruction trade-off more informative than a ranking based on a single measure.

Limitations

First, the adaptive mapping budget increases optimization effort when the retained replay pool becomes denser; KFS4^{4}LAM should therefore be interpreted as a quality–computation trade-off rather than a runtime improvement. Although the DynMap control isolates budget adaptation, a fixed-compute evaluation would more strictly separate the effects of adaptive mapping and keyframe selection. Second, fold supervision depends on an external predictor and may become less reliable when anatomical boundaries are weak, occluded, or outside its training distribution. Finally, although the matched SplaTAM and EndoGSLAM experiments support cross-backbone transfer, evaluation on additional clinical data and more diverse acquisition conditions is required to establish broader generalization.

Conclusion

We presented KFS4^{4}LAM, which couples adaptive observation selection with structure-aware mapping for deformable endoscopic Gaussian SLAM. Experiments on C3VD and C3VD-v2 show that reallocating keyframes according to motion and observation reliability, together with anatomical supervision and restricted deformation, improves the trajectory–reconstruction trade-off across different Gaussian-SLAM backbones without increasing keyframe density. Matched experiments with SplaTAM and EndoGSLAM further show that these benefits are not specific to a single Gaussian-SLAM backbone.

More broadly, our results suggest that keyframe selection in endoscopic SLAM should not be treated independently from the mapping process: changing which observations are retained also changes the spatial and temporal constraints available for reconstruction. The pronounced improvements on C3VD-v2 further indicate that adaptive observation allocation may become increasingly important as motion and scene variation become less uniform. At the same time, the dependence on externally predicted anatomical structure, adaptive mapping computation, and a restricted deformation model limits the current formulation. Future work should investigate jointly optimized selection and mapping under explicit computational budgets, more expressive yet anatomically regularized deformation models, and validation across broader clinical datasets and acquisition conditions.

References

  1. [1]A. Dunn Beltran, D. Rho, M. Niethammer, and R. Sengupta, “NFL-BA: Near-field light bundle adjustment for SLAM in dynamic lighting,” in Advances in Neural Information Processing Systems, vol. 38, 2025.
  2. [2]E. Muhlethaler, E. Posner, and M. Bouhnik, “Estimating the coverage in 3d reconstructions of the colon from colonoscopy videos,” in Imaging Systems for GI Endoscopy and Graphs in Biomedical Image Analysis, ser. Lecture Notes in Computer Science, vol. 13836. Springer, 2022, pp. 56–65.arxiv.org/abs/2210.10459
  3. [3]Z. Zhu, S. Peng, V. Larsson, W. Xu, H. Bao, Z. Cui, M. R. Oswald, and M. Pollefeys, “NICE-SLAM: Neural implicit scalable encoding for SLAM,” in Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2022.arxiv.org/abs/2112.12130
  4. [4]V. Yugay, Y. Li, T. Gevers, and M. R. Oswald, “Gaussian-slam: Photo-realistic dense slam with gaussian splatting,” arXiv preprint arXiv:2312.10070, 2023.arxiv.org/abs/2312.10070
  5. [5]H. Matsuki, R. Murai, P. H. J. Kelly, and A. J. Davison, “Gaussian splatting SLAM,” in Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2024, pp. 18039–18048.arxiv.org/abs/2312.06741
  6. [6]N. Keetha, J. Karhade, K. M. Jatavallabhula, G. Yang, S. Scherer, D. Ramanan, and J. Luiten, “SplaTAM: Splat, track & map 3d gaussians for dense RGB-D SLAM,” in Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2024, pp. 21 357–21 366.arxiv.org/abs/2312.02126
  7. [7]K. Wang, C. Yang, Y. Wang, S. Li, Y. Wang, Q. Dou, X. Yang, and W. Shen, “Endosglam: Real-time dense reconstruction and tracking in endoscopic surgeries using gaussian splatting,” in Medical Image Computing and Computer Assisted Intervention – MICCAI 2024, M. G. Linguraru, Q. Dou, A. Feragen, S. Giannarou, B. Glocker, K. Lekadir, and J. A. Schnabel, Eds. Cham: Springer Nature Switzerland, 2024, pp. 219–229.arxiv.org/abs/2403.15124
  8. [8]L. Zhu, Z. Wang, J. Cui, Z. Jin, G. Lin, and L. Yu, “Endogs: Deformable endoscopic tissues reconstruction with gaussian splatting,” in Medical Image Computing and Computer Assisted Intervention – MICCAI 2024 Workshops, M. E. Celebi, M. Reyes, Z. Chen, and X. Li, Eds. Cham: Springer Nature Switzerland, 2025, pp. 135–145.arxiv.org/abs/2401.11535
  9. [9]Y. Liu, C. Li, H. Liu, C. Yang, and Y. Yuan, “Foundation model-guided gaussian splatting for 4d reconstruction of deformable tissues,” IEEE Transactions on Medical Imaging, vol. 44, no. 6, pp. 2672–2682, 2025.DOI
  10. [10]Y. Huang, B. Cui, L. Bai, Z. Chen, J. Wu, Z. Li, H. Liu, and H. Ren, “Advancing dense endoscopic reconstruction with gaussian splatting-driven surface normal-aware tracking and mapping,” in Proceedings of the IEEE International Conference on Robotics and Automation, 2025, pp. 4084–4091.arxiv.org/abs/2501.19319
  11. [11]S. Bonilla, S. Zhang, D. Psychogios, D. Stoyanov, F. Vasconcelos, and S. Bano, “Gaussian pancakes: Geometrically-regularized 3d gaussian splatting for realistic endoscopic reconstruction,” in Medical Image Computing and Computer Assisted Intervention 2024. Springer, 2024, pp. 274–283.arxiv.org/abs/2404.06128
  12. [12]C. Campos, R. Elvira, J. J. G. Rodríguez, J. M. M. Montiel, and J. D. Tardós, “Orb-slam3: An accurate open-source library for visual, visual-inertial, and multim map slam,” IEEE Transactions on Robotics, vol. 37, no. 6, pp. 1874–1890, 2021.DOI
  13. [13]J. Engel, T. Schöps, and D. Cremers, “LSD-SLAM: Large-scale direct monocular SLAM,” in Proceedings of the European Conference on Computer Vision, 2014.DOI
  14. [14]J. L. Schonberger and J.-M. Frahm, “Structure-from-motion revisited,” in Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2016.DOI
  15. [15]J. L. Schonberger, E. Zheng, M. Pollefeys, and J.-M. Frahm, “Pixel-wise view selection for unstructured multi-view stereo,” in Proceedings of the European Conference on Computer Vision, 2016.
  16. [16]A. Azimi, A. H. Ahmadabadian, and F. Remondino, “PKS: A photogrammetric key-frame selection method for visual-inertial systems built on ORB-SLAM3,” ISPRS Journal of Photogrammetry and Remote Sensing, vol. 191, pp. 18–32, 2022.
  17. [17]N. Messikommer, G. Cioffi, M. Gehrig, and D. Scaramuzza, “Reinforcement learning meets visual odometry,” in Proceedings of the European Conference on Computer Vision, 2024.
  18. [18]K. B. Ozyoruk et al., “EndoSLAM dataset and an unsupervised monocular visual odometry and depth estimation approach for endoscopic videos,” Medical Image Analysis, 2021.
  19. [19]P. Azagra, C. Sostres, A. Ferrandez, L. Riazuelo, C. Tomasini, O. Barbed, J. Morlana, D. Recasens, V. Batlle, J. Gómez Rodríguez, R. Elvira, J. López, C. Oriol, J. Civera, J. Tardós, A. Murillo, A. Lanas, and J. Montiel, “Endomapper dataset of complete calibrated endoscopy procedures,” Scientific Data, vol. 10, 2023.
  20. [20]T. L. Bobrow, M. Golhar, R. Vijayan, V. S. Akshintala, J. R. Garcia, and N. J. Durr, “Colonoscopy 3d video dataset with paired depth from 2d–3d registration,” Medical Image Analysis, 2023.DOI
  21. [21]A. Rota and E. De Momi, “Self-supervised contrastive embedding adaptation for endoscopic image matching,” arXiv preprint arXiv:2512.10379, 2025.arxiv.org/abs/2512.10379
  22. [22]X. Xu, R. Daher, R. Caramalau, B. Huang, D. Stoyanov, and F. Vasconcelos, “SegCol Challenge: Semantic segmentation for tools and fold edges in colonoscopy data,” arXiv preprint arXiv:2412.16078, 2024.
  23. [23]X. Ju, R. Daher, D. Stoyanov, S. Bano, and F. Vasconcelos, “Multi-modal monocular endoscopic depth and pose estimation with edge-guided self-supervision,” International Journal of Computer Assisted Radiology and Surgery, vol. 21, no. 6, pp. 1207–1215, 2026.
  24. [24]A. Dunn Beltran, R. Hardy, and P. Rajpurkar, “Seeing down the line: Endoscopic reconstruction with centerline constraints,” in Proceedings of the 9th International Conference on Medical Imaging with Deep Learning, ser. Proceedings of Machine Learning Research, vol. 315. PMLR, 2026, pp. 360–378.
  25. [25]M. V. Gohlar, L. S. Galeano Fretes, L. Ayers, V. S. Akshintala, T. L. Bobrow, and N. J. Durr, “C3VDv2 – colonoscopy 3d video dataset with enhanced realism,” Scientific Data, vol. 13, no. 1, 2026.

Paper details

vlnc:W_2acg6mq5
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…
Contents