DeepSLAM

Li 2020 · Paper

One-line summary — DeepSLAM assembles a full monocular SLAM pipeline out of neural networks — Tracking-Net for pose, Mapping-Net for depth, Loop-Net for loop detection, plus g2o pose-graph optimization — trained fully unsupervised on stereo imagery and deployed on monocular video.

Problem

By 2020, learned visual odometry existed in supervised (DeepVO/ESP-VO) and self-supervised (SfM-Learner) forms, but supervised variants needed expensive ground-truth trajectories, monocular self-supervision lost metric scale, and nearly all learned systems were odometry-only: no loop closing, so drift grew without bound. Geometric systems, meanwhile, are fragile in challenging scenes (rain, night, over-exposure) and cannot improve from data. DeepSLAM asks whether the whole classical SLAM decomposition — tracking, mapping, loop closure, graph optimization — can be reproduced with networks trained without any annotated ground truth.

Method & architecture

Front-end networks (test time, monocular input). Tracking-Net is an RCNN — VGGNet convolutional layers feeding an LSTM over an image sequence (length 5) — that outputs relative 6-DoF poses and per-estimate uncertainties, directly yielding a local pose graph of (n1)(n-1) relative poses per window. Mapping-Net is an encoder–decoder that predicts a dense, metrically scaled depth map (run every 5 frames). Loop-Net is an ImageNet-pre-trained Inception-ResNet-V2 (no SLAM-specific training) that embeds images into feature vectors; a pair is declared a loop when the cosine distance dcos=cos(v1,v2)d_{cos}=\cos(v_{1},v_{2}) falls below a threshold, after which Tracking-Net (sequence length 2) computes the loop transform and g2o optimizes the combined local+global pose graph.

Unsupervised training on stereo sequences. Spatial (left–right) and temporal (frame-to-frame) geometric consistencies form the losses; stereo supplies metric scale, so no pose or depth labels are needed. With stereo baseline BB and focal length ff, predicted depth DiD_i gives the correspondence distance Hi=Bf/DiH_{i}=Bf/D_{i}, from which images are cross-warped. The left–right photometric loss (analogous for right-to-left, and for disparity maps Q=H×wQ = H \times w) is

Ll,rp=λsfs(Il,Il)+(1λs)IlIl1,fs()=1SSIM()2L_{l,r}^{p}=\sum \lambda_{s}\, f_{s}(I_{l},I_{l}') + (1-\lambda_{s})\,\lVert I_{l}-I_{l}'\rVert_{1}, \qquad f_{s}(\cdot)=\tfrac{1-\mathrm{SSIM}(\cdot)}{2}

plus a pose-consistency loss between poses estimated from the left and right streams, Lo=λpx^lx^r1+λrφ^lφ^r1L^{o}=\lambda_{p}\lVert\hat{x}_{l}-\hat{x}_{r}\rVert_{1}+\lambda_{r}\lVert\hat{\varphi}_{l}-\hat{\varphi}_{r}\rVert_{1}. Temporally, pixels warp between frames via

pk+1=KT^k,k+1D^kK1pkp_{k+1}' = K\,\hat{T}_{k,k+1}\,\hat{D}_{k}\,K^{-1}p_{k}

(KK intrinsics, T^k,k+1\hat{T}_{k,k+1} predicted pose, D^k\hat{D}_k predicted depth), giving masked photometric losses and an ICP-like 3D geometric registration loss Lk,k+1g=MgkEgk1L_{k,k+1}^{g}=\sum\lVert M_{g}^{k}E_{g}^{k}\rVert_{1} with Egk=PkPkE_{g}^{k}=P_{k}-P_{k}' on back-projected point clouds.

Uncertainty and outlier rejection. The mean photometric/geometric errors define an uncertainty σk,k+1=2×S(μpk+μpk+1+λe(μgk+μgk+1))1\sigma_{k,k+1}=2\times S\big(\mu_{p}^{k}+\mu_{p}^{k+1}+\lambda_{e}(\mu_{g}^{k}+\mu_{g}^{k+1})\big)-1 (Sigmoid SS, range 0.5–1), which supervises Tracking-Net’s uncertainty output and adaptively sizes bitwise error-map masks via the percentile qth=q0+(1q0)(1σk,k+1)q_{th}=q_{0}+(1-q_{0})(1-\sigma_{k,k+1}) — rejecting moving objects (photometric mask) and unreliable depths like sky and object edges (geometric mask) during training.

Results

Why it matters for SLAM

DeepSLAM shows the “replace every module with a network, keep the architecture” strategy at its fullest extent, including the loop-closure and pose-graph stages that pure learned-VO papers omitted — and demonstrates the payoff of unsupervised training: it kept improving simply by ingesting unlabeled KITTI sequences that supervised rivals could not use. Its stereo-trained/monocular-deployed recipe remains a standard way to obtain scale-aware self-supervision, and its robustness results on RobotCar foreshadowed learned SLAM’s main selling point over geometric methods: graceful behavior in conditions where hand-crafted features fail.