3D Vision · Dense SLAM · Structured Reconstruction

Learning-Guided Dense SLAM for Structured Interior Reconstruction

A metric, uncertainty-aware RGB-D mapping system that extends a learned dense-SLAM backend with deployable scale anchoring, TSDF fusion, Manhattan structure recovery, visibility-based opening validation, and selective abstention when room-level evidence is insufficient.

System thesis: a senior-level reconstruction pipeline should do more than produce a visually plausible point cloud. It should diagnose scale failure, quantify geometry, distinguish strong from weak structural evidence, reject unsupported openings, and refuse to hallucinate a room when coverage is incomplete.
MASt3R-SLAM TUM RGB-D SE(3) / Sim(3) RGB-D Odometry TSDF Fusion Open3D Manhattan Geometry Selective Prediction
Cleaned RGB-D TSDF reconstruction of TUM Freiburg1 Room using aligned estimated poses. The dense model is retained separately from the later structured abstraction.

Headline results

The project uses Freiburg1 Room as the positive structural reconstruction case and Freiburg1 Desk as a scale-stress and partial-coverage negative control. The same evidence policy accepts the room and abstains on Desk.

52.2%
Reduction in repeated TSDF surface RMSE using ground-truth-free RGB-D scale anchoring
2.106 ± 0.008 cm
RGB-D-scale TSDF RMSE across five fixed surface-sampling seeds
5.599 × 4.347 × 2.898 m
Refined room dimensions with 24.34 m² floor area
Accept / Abstain
Room envelope supported; Desk rejected for insufficient enclosure evidence

System architecture

The learned SLAM backend is treated as one subsystem inside a larger geometry and reliability stack. Each stage exports machine-readable diagnostics so later decisions can be audited rather than inferred from a final visualization.

1
Learned dense SLAMTrack camera motion, build loop-closure graph, and export dense geometry and keyframe poses.
2
Metric anchoringDiagnose SE(3) versus Sim(3) behavior and recover translation scale from nearby RGB-D motion pairs.
3
TSDF reconstructionFuse synchronized color and depth into metric meshes under uncorrected, diagnostic, and deployable pose variants.
4
Structure and openingsEstimate floor, ceiling, Manhattan walls, perimeter planes, and visibility-supported free-space regions.
5
Uncertainty-aware exportEmit conservative and hypothesis models, preserve rejected regions, and abstain when enclosure evidence is incomplete.
Backend attribution. The tracking and dense-SLAM foundation uses the official MASt3R-SLAM implementation at commit e6f4e3d474fad0e11f561482012be864ba8c3f17. The scale anchoring, RGB-D fusion, structural extraction, opening reasoning, confidence policy, evaluation, model export, and release packaging are project extensions.

1 · Trajectory evaluation exposed a scene-dependent scale failure

Freiburg1 Room showed similar SE(3) and Sim(3) trajectory error, but Freiburg1 Desk produced a very different pattern: the path shape was accurate after Sim(3) alignment while the metric translations were compressed. A matched path-length ratio of 1.121 and an Umeyama scale of 1.113 independently indicated approximately 11% scale error.

Sequence / metricSE(3) ATE RMSESim(3) ATE RMSETranslational RPE RMSE
Freiburg1 Room6.28 cm6.07 cm6.93 cm
Freiburg1 Desk9.25 cm1.64 cm11.07 cm
Desk absolute pose error after SE3 alignment
Desk translation APE after rigid SE(3) alignment. The residual is dominated by systematic scale compression.
Desk absolute pose error after Sim3 alignment
Desk APE after Sim(3) alignment. Correcting global scale reduces RMSE from 9.25 cm to 1.64 cm.

2 · Ground-truth-free RGB-D metric scale anchoring

The diagnostic Sim(3) correction uses ground-truth poses and cannot be deployed. I therefore estimated a single metric translation scale from RGB-D odometry between nearby MASt3R keyframes. Candidate pairs were filtered using baseline range, rotation disagreement, translation-direction consistency, and scale bounds; a robust median with MAD filtering produced the final anchor.

T_i→j^SLAM = T_Wj^-1 · T_Wi
scale_ij   = (t_SLAM · t_RGB-D) / (t_SLAM · t_SLAM)
s*         = robust_median({scale_ij})
1.09905
Ground-truth-free RGB-D scale estimate
1.11323
Ground-truth-derived diagnostic reference
21 / 23
Robust inlier motion pairs after geometric filtering
[1.080, 1.121]
Bootstrap 95% interval for the robust median
RGB-D pairwise translation scale estimates and robust median
Pairwise scale evidence. A severe pair with 38.6° rotation disagreement and scale 0.416 was rejected; one additional low-scale pair was removed by robust filtering. Overlapping pairs are not statistically independent, so the interval is treated as a stability diagnostic rather than a formal population confidence interval.

3 · Dense-fusion ablation

I fused the same synchronized RGB-D observations under three estimated-pose variants and compared each result with a ground-truth-pose TSDF fusion: uncorrected SE(3), ground-truth-derived Sim(3), and the deployable RGB-D metric scale. Surface distances were recomputed over five fixed sampling seeds to separate geometry differences from random sampling variation.

Pose variantSurface RMSEWithin 2 cmRole
Uncorrected SE(3)4.405 ± 0.015 cm33.37 ± 0.19%Deployable baseline
GT-derived Sim(3)2.267 ± 0.074 cm69.83 ± 0.17%Diagnostic upper-bound alignment
RGB-D metric scale2.106 ± 0.008 cm71.04 ± 0.20%Ground-truth-free correction
TSDF ablation comparing SE3, Sim3 and RGB-D metric scale
RGB-D metric anchoring reduced repeated surface RMSE by 52.2%. Its slight advantage over the GT-derived Sim(3) under this surface objective does not imply a more accurate camera trajectory; TSDF discretization, depth bias, and the difference between camera-center and surface objectives can change the ordering.
Evaluation scope. All variants fuse the same RGB-D observations. This ablation isolates camera-pose and scale effects; it is not an absolute surface benchmark against an independent laser scan.

4 · Metric room structure rather than only a dense map

The Room sequence was converted from a colored TSDF mesh into a structured representation. The pipeline estimates floor and ceiling, recovers a Manhattan frame, separates outer perimeter planes from internal persistent planes, and exports both a conservative closed model and a hypothesis model containing only visibility-supported architectural openings.

24.34 m²
Refined floor area
70.54 m³
Watertight conservative-envelope volume
3 strong + 1 weak
Envelope-level wall support classification
1 internal plane
Persistent internal structure retained as diagnostic evidence
Uncertainty-aware structured room floor plan
Refined outer envelope, persistent internal plane, reconstruction evidence, and probable window hypothesis in the Manhattan frame.
Interactive 200k-triangle dense reconstruction. Drag to rotate and scroll to zoom.
Conservative model: closed, watertight, 8 vertices and 12 triangles.
Hypothesis model: one probable window opening, intentionally non-watertight.
Room structural coverage acceptance diagnostic
Positive-control coverage gate: three strong walls, one weak-but-supported wall, floor, and ceiling.

5 · Visibility-aware opening validation

A wall-occupancy detector initially produced several gaps, including a narrow doorway-like hypothesis. Occupancy alone cannot distinguish a true opening from missing coverage or foreground occlusion, so each wall cell was projected into aligned RGB-D frames. Measured depth was compared with the expected wall depth and aggregated across views:

Wall observed

Measured depth agrees with the expected wall depth within tolerance.

Occluded

Measured depth is closer than the wall; foreground geometry blocks the test cell.

Free-space evidence

Repeated valid depth is farther than the expected wall, supporting an opening hypothesis.

RegionDimensionsConfidenceArchitectural decision
y-min region0.80 × 0.75 m0.816Probable window in hypothesis model only
x-max anomaly 10.15 × 0.50 m0.740Rejected: size and placement inconsistent with accepted opening rules
x-max anomaly 20.50 × 0.40 m0.701Rejected: size and placement inconsistent with accepted opening rules
Visibility-validated free-space regions on room perimeter
Visibility-supported regions projected onto the refined perimeter. Small high-wall anomalies are retained as rejected diagnostics.
RGB-D visibility classification for probable window
The window-sized region contains repeated farther-depth evidence, but its semantic class is not confirmed from RGB imagery.
Honest label: the opening is geometry-supported and exported only in the hypothesis model. The project does not claim a semantically confirmed window or door.

6 · Selective structural inference and abstention

A production-quality system should not always return a room. I introduced an envelope-level confidence policy that requires opposing persistent plane pairs, sufficient floor support, at least three strongly observed walls, and weak-but-supported evidence for any remaining perimeter wall. The exact same policy was evaluated on a positive and negative control.

Selective structural decision summary for Room and Desk sequences
FULL_3D_ROOM_ENVELOPE_SUPPORTED

Freiburg1 Room

  • Reliable floor and ceiling evidence
  • Opposing persistent wall-plane pairs
  • Three strong walls
  • One weak-but-supported wall
ABSTAIN_INSUFFICIENT_ROOM_COVERAGE

Freiburg1 Desk

  • Furniture-dominated partial vertical geometry
  • No persistent opposing X-wall pair
  • No persistent opposing Y-wall pair
  • No reliable ceiling plane
Room persistent plane histograms
Room: multiple persistent vertical planes permit an enclosure hypothesis, followed by wall-level confidence scoring.
Desk structural coverage abstention diagnostic
Desk: fragmented desks and cabinets are not promoted into enclosing walls. The pipeline returns an explicit abstention.
Senior engineering decision: the system preserves uncertainty as a first-class output. It exports a room only when enclosure evidence is sufficient and records why it abstained otherwise.

Engineering contributions

Geometry and estimation

  • SE(3), Sim(3), ATE, RPE, and matched-path diagnostics
  • Robust RGB-D pairwise metric-scale estimator
  • Estimated-pose, scale-corrected, and GT-pose TSDF ablations
  • Floor, ceiling, Manhattan wall, perimeter, and internal-plane extraction
  • Multi-view expected-depth versus measured-depth opening tests

Reliability and systems

  • Conservative versus hypothesis model variants
  • Strong, weak-but-supported, and unsupported wall states
  • Explicit structural abstention on partial scene coverage
  • Repeated deterministic evaluation over fixed sampling seeds
  • GLB/PLY/JSON exports, source release, checksums, and manifest validation
The release contains 16 project scripts, configuration and backend provenance, 10 metric files, 10 figures, selected logs, three GLB models, a SHA-256 manifest, and consolidated headline metrics.

Evaluation scope and limitations

Next technical extensions

Online scale state

Move from one global scale anchor to a robust temporal scale state with uncertainty and change detection.

Semantic structure

Add RGB/VLM evidence for doors, windows, walls, materials, and functional room components.

Broader evaluation

Test complete and partial scans across TUM, Replica, ScanNet, and self-captured mobile RGB-D sequences.

Summary

I extended learned dense SLAM into an auditable interior-reconstruction system. On Freiburg1 Desk, a robust ground-truth-free RGB-D scale anchor estimated 1.099 versus a 1.113 diagnostic reference and reduced repeated TSDF surface RMSE from 4.405 cm to 2.106 cm. On Freiburg1 Room, the pipeline recovered a 5.599 × 4.347 × 2.898 m structured envelope, retained one geometry-supported window hypothesis, and exported conservative and hypothesis models. The same structural confidence policy accepted Room and abstained on the partial Desk sequence rather than inventing unsupported geometry.

Dense-SLAM backend: MASt3R-SLAM by Riku Murai, Eric Dexheimer, and Andrew J. Davison. This page describes an independent engineering and evaluation extension built on the public implementation.