Manuscript Offprint
arXiv:2610.22505KFSLAM: Adaptive KeyFrame Selection with Structure-Aware Mapping for Endoscopic Gaussian Splatting SLAM
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Xinwei Ju*, Zhehua Mao, Tianyi Song, Danail Stoyanov, Sophia Bano, Francisco Vasconcelos
Hawkes Institute, University College London, London, W1W 7TY, UK
*Corresponding author: xinwei.ju.22@ucl.ac.uk
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, highly non-uniform camera motion, repetitive anatomy, specularities, and other visual artifacts can make these criteria unreliable, leading to either redundant keyframes or missed informative viewpoints. We present KFS LAM (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 KFS LAM against multiple Gaussian-SLAM baselines on C3VD and C3VD-v2, together with cross-backbone and component ablations. KFS LAM achieves strong overall performance across trajectory, rendering, and depth metrics, with particularly pronounced gains on the 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 Project Page.
I. 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 KFS LAM, a structure-aware Gaussian-SLAM framework that couples
Input

Selected keyframe (actual checkpoint)
Non-keyframe
t
1 Adaptive Keyframe Selection (Ours)
Motion-driven proposal with appearance veto
Motion Stream
(when to propose)
Estimated camera poses

Image Stream
(whether to keep)
Current image
Visual support check
Contrast
Gradient
Redundancy test
Appearance Local matching difference
Retained keyframes
Final keyframe decision
2 Structure-Aware Mapping with Restricted Temporal Deformation (Ours)
Fold-boundary supervision

Boundary extraction & distance transform
Fold-Conditioned Restricted Temporal Deformation
Time-conditioned Gaussians

Boundary support Distance
Beginning – Mid-sequence – End
Fold-boundary Loss
Gaussian fold attribute fi
Fold-conditioned
deformation regularization
Time-conditioned Gaussian map


Camera pose
3 Tracking (all frames)
Render
Optimized
Camera Pose
photometric
- depth loss

RGB observation
D. Depth observation
Fold-response map
Time-conditioned Gaussian map
Camera pose
Ordinary motion proposal
Protected proposal
Insufficient visual support
Visual redundancy
Final keyframe decision
Gaussian fold attribute
Normalized fold-boundary distance map
Fig. 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.
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, KFS 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.
A. Overview and Problem Formulation
As illustrated in Fig. 1, KFS 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.
Given an RGB-D endoscopic sequence , spatially aligned fold-response maps , and camera intrinsics , our objective is to estimate camera poses and a canonical Gaussian map . We retain the RGB-D input setting of the underlying SLAM backbone. Each ( denotes the image resolution) is a continuous per-pixel fold-response map predicted from by a pretrained fold-segmentation model.
Each Gaussian is represented as
where , , , and denote its canonical mean, covariance, colour, and opacity, respectively. The fold attribute stores the fold response initialized from its source observation when the Gaussian is inserted, while parameterizes restricted temporal displacement. Replacing each canonical mean with its time-conditioned mean defines the Gaussian map used for rendering, mapping, and frame-wise tracking.
B. 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 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:
where is the frame-to-frame translation change, the accumulated translation since the most recent proposal, the adaptive proposal threshold, and the median positive translation step over recent 16 frame pairs. We use a reference keyframe interval and minimum motion threshold . The accumulator is initialized to zero and reset after every proposal, including those subsequently rejected.
Let denote the number of processed frames since the last retained keyframe. An ordinary proposal is generated when and . A protected proposal is generated when , or at the penultimate frame if . We use .
b) Asymmetric visual suppression: Ordinary proposals are compared with up to three recent retained keyframes. We set if the mean Sobel-gradient magnitude or grayscale standard deviation falls below 0.65 or 0.60 times the corresponding reference median. We set 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 and normalized mean local-matching displacement for the reference with minimum grayscale MAE, together with maximum gradient cosine similarity over the references.
The final insertion decision is
Protected proposals bypass suppression, while visual cues can only reject ordinary proposals rather than trigger insertion.
C. 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 , the stored Gaussian fold attributes are alpha-composited to render the fold-response map . We apply the Sobel boundary-magnitude operator to both the observed fold-response map and the rendered response . We threshold 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 . The structural loss and mapping objective are
We refer to as the Boundary-DT loss, where denotes stop-gradient and 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 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
(5)
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 .
With denoting the number of Gaussians currently stored in the canonical map, and , the deformation regularizer is
We use and . 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.

Fig. 2. Qualitative results on C3VD [20] and C3VD-v2 [25]. We compare our method (KFS 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).
c) Tracking with time-conditioned geometry: At frame t, tracking optimizes only the camera pose while keeping the time-conditioned map fixed:
where R denotes Gaussian rendering and is the native tracking objective. Map and deformation parameters remain fixed during tracking; fold-boundary supervision and deformation regularization are applied only during mapping.
D. 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 denote the number of retained historical keyframes before mapping processed frame t. Relative to a fixed-gap reference, we define
(8)
Here, is the nominal replay-pool size under fixed-gap insertion, including the current observation, while is the available pool size under the adaptive policy. We use , , , , and for both backbones. Larger-than-reference replay pools therefore receive additional mapping iterations.
III. EXPERIMENTAL SETUP
A. 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. KFS 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.
B. Experimental Settings
All KFS LAM variants operate at 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.
C. 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,
where is the sequence-level error and its original frame count. RPE, PSNR, SSIM, LPIPS-Alex, and depth
TABLE I
QUANTITATIVE TRAJECTORY RESULTS OF ENDO-2DTAM [10], ENDOGSLAM [7], GAUSSIANSLAM [4], MONOGS [5], SPLATAM [6], AND KFSLAM ON C3VD [20] AND C3VD-v2 [25]. BEST AND SECOND-BEST RESULTS ARE SHOWN IN BOLD AND UNDERLINED, RESPECTIVELY.
| Method | C3VD | C3VD-v2 | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| wATE ↓ (mm) | mATE ↓ (mm) | wARE ↓ (°) | mARE ↓ (°) | RPE-t ↓ (mm) | RPE-r ↓ (°) | wATE ↓ (mm) | mATE ↓ (mm) | wARE ↓ (°) | mARE ↓ (°) | RPE-t ↓ (mm) | RPE-r ↓ (°) | |
| GaussianSLAM [4] | 3.8531 | 4.0885 | 93.1512 | 77.3899 | 0.3392 | 0.1930 | 10.7119 | 11.2901 | 127.27 | 112.75 | 0.7238 | 0.4446 |
| MonoGS [5] | 2.4881 | 2.7190 | 57.4049 | 63.4965 | 0.3791 | 0.5640 | 6.2637 | 7.1637 | 56.3621 | 70.1446 | 0.6002 | 1.4456 |
| Endo-2DTAM [10] | 1.4794 | 1.5718 | 42.5380 | 47.2588 | 0.1321 | 0.6578 | 9.8746 | 10.7859 | 85.5424 | 89.1716 | 0.4476 | 2.1940 |
| EndoGSLAM [7] | 0.4773 | 0.5377 | 8.4370 | 10.7657 | 0.0888 | 0.1617 | 6.0724 | 7.5037 | 52.9959 | 60.1639 | 0.4411 | 1.2234 |
| SplaTAM [6] | 0.4637 | 0.4544 | 8.2745 | 10.3404 | 0.0625 | 0.1464 | 6.4333 | 7.6836 | 64.1820 | 59.4920 | 0.3103 | 1.3969 |
| KFSLAM (Ours) | 0.4520 | 0.4476 | 7.7085 | 9.3457 | 0.0624 | 0.1418 | 5.8463 | 7.2429 | 43.1290 | 44.8062 | 0.3764 | 1.1134 |
TABLE II
QUANTITATIVE RENDERING RESULTS OF ENDO-2DTAM [10], ENDOGSLAM [7], GAUSSIANSLAM [4], MONOGS [5], SPLATAM [6], AND KFSLAM ON C3VD [20] AND C3VD-v2 [25]. BEST AND SECOND-BEST RESULTS ARE SHOWN IN BOLD AND UNDERLINED, RESPECTIVELY.
| Method | C3VD | C3VD-v2 | ||||||
|---|---|---|---|---|---|---|---|---|
| PSNR ↑ (dB) | SSIM ↑ | LPIPS ↓ | Depth RMSE ↓ (mm) | PSNR ↑ (dB) | SSIM ↑ | LPIPS ↓ | Depth RMSE ↓ (mm) | |
| Endo-2DTAM [10] | 20.2745 | 0.7867 | 0.3603 | 9.0555 | 18.3235 | 0.6852 | 0.4906 | 13.1850 |
| EndoGSLAM [7] | 21.1734 | 0.7319 | 0.3111 | 2.6904 | 14.6158 | 0.5615 | 0.6484 | 14.8925 |
| GaussianSLAM [4] | 25.7629 | 0.7498 | 0.5148 | 6.5036 | 22.6829 | 0.6544 | 0.6147 | 10.5528 |
| MonoGS [5] | 29.6784 | 0.8482 | 0.3824 | 1430.08 | 25.9608 | 0.7774 | 0.6067 | 1106.53 |
| SplaTAM [6] | 25.6437 | 0.8776 | 0.2416 | 1.1509 | 20.1354 | 0.7053 | 0.4257 | 4.9467 |
| KFSLAM (Ours) | 26.6164 | 0.8835 | 0.2206 | 1.0720 | 20.9113 | 0.7163 | 0.4332 | 3.0472 |
RMSE are macro-averaged across sequences. Qualitative evaluation includes RGB, depth, and Sim(3)-aligned spatial reconstruction.
IV. RESULTS
A. Trajectory Accuracy
Table I 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.
B. Rendering and Geometric Reconstruction
Table II 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.
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.
Fig. 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.
V. ABLATION STUDY
A. Component Contributions
The SplaTAM block of Table III 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.
TABLE III
CROSS-BACKBONE AND COMPONENT RESULTS ON C3VD AND C3VD-v2. GREEN INDICATES IMPROVEMENT OVER THE CORRESPONDING BACKBONE. KF (%) IS , WHERE AND ARE RETAINED KEYFRAME AND INPUT-FRAME COUNTS; IT IS NOT RANKED.
| Method | C3VD | C3VD-v2 | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| m ATE | m ARE | RPE-t | RPE-r | PSNR | SSIM | LPIPS | Depth RMSE | KF (%) | m ATE | m ARE | RPE-t | RPE-r | PSNR | SSIM | LPIPS | Depth RMSE | KF (%) | |
| EndoGSLAM [7] | 0.538 | 10.766 | 0.089 | 0.162 | 21.173 | 0.732 | 0.311 | 2.690 | 11.274 | 7.504 | 60.164 | 0.441 | 1.223 | 14.616 | 0.562 | 0.648 | 14.893 | 11.264 |
| KFSLAMEndoGSLAM (Ours) | 0.528 | 12.196 | 0.087 | 0.161 | 21.762 | 0.738 | 0.301 | 2.588 | 10.964 | 7.625 | 56.009 | 0.428 | 0.927 | 15.301 | 0.598 | 0.608 | 11.928 | 11.059 |
| SplaTAM [6] | 0.454 | 10.340 | 0.063 | 0.146 | 25.644 | 0.878 | 0.242 | 1.151 | 12.857 | 7.684 | 59.492 | 0.310 | 1.397 | 20.135 | 0.705 | 0.426 | 4.947 | 12.826 |
| SplaTAM + Adaptive Mapping (DynMap) | 0.454 | 10.318 | 0.065 | 0.153 | 25.656 | 0.877 | 0.243 | 1.173 | 12.857 | 7.405 | 64.258 | 0.331 | 1.657 | 19.712 | 0.686 | 0.439 | 5.434 | 12.826 |
| SplaTAM + Motion Proposal Only | 0.439 | 10.167 | 0.064 | 0.153 | 25.587 | 0.873 | 0.240 | 1.168 | 12.392 | 6.370 | 67.134 | 0.338 | 1.134 | 19.278 | 0.656 | 0.470 | 4.582 | 12.826 |
| SplaTAM + Motion-Guided KFS | 0.456 | 9.266 | 0.064 | 0.153 | 25.465 | 0.873 | 0.245 | 1.117 | 12.341 | 7.932 | 86.630 | 0.342 | 1.451 | 19.138 | 0.659 | 0.449 | 4.697 | 12.333 |
| SplaTAM + Structure-Guided Mapping | 0.454 | 10.396 | 0.064 | 0.148 | 25.659 | 0.878 | 0.243 | 1.202 | 12.857 | 7.846 | 86.667 | 0.365 | 1.765 | 18.826 | 0.671 | 0.440 | 5.151 | 12.826 |
| SplaTAM + Structure-Guided + Deformation | 0.439 | 9.497 | 0.061 | 0.145 | 26.852 | 0.891 | 0.221 | 1.071 | 12.857 | 7.559 | 55.199 | 0.326 | 1.172 | 19.390 | 0.678 | 0.430 | 4.061 | 12.826 |
| SplaTAM + Motion-and-Structure-Guided | 0.453 | 10.010 | 0.064 | 0.153 | 25.563 | 0.871 | 0.245 | 1.167 | 12.341 | 7.503 | 61.233 | 0.409 | 1.349 | 20.776 | 0.721 | 0.429 | 4.305 | 12.312 |
| SplaTAM + MonoGS [5] KFS | 0.451 | 9.646 | 0.065 | 0.150 | 25.129 | 0.868 | 0.242 | 1.168 | 5.869 | 7.797 | 56.867 | 0.360 | 1.438 | 19.651 | 0.676 | 0.448 | 5.292 | 9.209 |
| KFSLAMSplaTAM (Ours) | 0.448 | 9.346 | 0.062 | 0.142 | 26.616 | 0.884 | 0.221 | 1.072 | 12.272 | 7.243 | 44.806 | 0.376 | 1.113 | 20.911 | 0.716 | 0.433 | 3.047 | 12.415 |
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 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 provides more consistent improvements.
B. 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 redistributing a comparable keyframe budget over time rather than by retaining more observations.

Fig. 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.
C. 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 versus and depth RMSE of 4.95 versus 3.05 mm for the backbone and full model, respectively. For EndoGSLAM, RPE-r decreases from to 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.
(a)

(a) SplaTAM & KFS LAM
(b) EndoGSLAM & KFS LAM
(b)
EndoGSLAM

Fig. 4. Cross-backbone generalization of tracking and adaptive keyframe allocation. Trajectory and keyframe visualizations of KFS LAM instantiated with (a) SplaTAM on C3VD-v2 c2-sigmoid.t2_v1 and (b) EndoGSLAM on C3VD trans_t2_c. Backbone and KFS 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 KFS LAM and connect them to the corresponding RGB excerpts. Blue and red boxes identify backbone and KFS LAM keyframes, respectively, with x/y denoting the x-th selected keyframe among the y keyframes retained by that method over the full sequence.
VI. Discussion
A. 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

Fig. 5. Geometric generalization across reconstruction backbones on C3VD-v2. Reconstructed Gaussian geometry from EndoGSLAM and SplaTAM, compared with their corresponding KFS 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 KFS 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.
B. Limitations
First, the adaptive mapping budget increases optimization effort when the retained replay pool becomes denser; KFS 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.
VII. Conclusion
We presented KFS 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] 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] 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.
[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.
[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.
[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.
[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. 21357–21366.
[7] K. Wang, C. Yang, Y. Wang, S. Li, Y. Wang, Q. Dou, X. Yang, and W. Shen, “Endogslam: 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.
[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.
[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.
[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.
[11] S. Bonilla, S. Zhang, D. Psychogyios, 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.
[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 multimap slam,” IEEE Transactions on Robotics, vol. 37, no. 6, pp. 1874–1890, 2021.
[13] J. Engel, T. Schops, and D. Cremers, “LSD-SLAM: Large-scale direct monocular SLAM,” in Proceedings of the European Conference on Computer Vision, 2014.
[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.
[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] 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] 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] K. B. Ozyoruk et al., “EndoSLAM dataset and an unsupervised monocular visual odometry and depth estimation approach for endoscopic videos: Endo-SfMLearner,” Medical Image Analysis, 2021.
[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, 10 2023.
[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.
[21] A. Rota and E. De Momi, “Self-supervised contrastive embedding adaptation for endoscopic image matching,” arXiv preprint arXiv:2512.10379, 2025.
[22] X. Ju, 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] X. Ju, R. Daher, D. Stoyanov, S. Bano, and F. Vasconcelos, “Multimodal 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] 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] M. V. Golhar, 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.