Inspiration
High-precision camera pose estimation is the backbone of handheld 3D scanning, robotics, and millimeter-wave security imaging — yet off-the-shelf visual SLAM often drifts by several centimeters on low-texture surfaces and fast sweeps. For the Rohde & Schwarz Task 1 challenge, we wanted to push stereo-inertial pose estimation as close as possible to the millimeter barrier, running cleanly on standard CPU hardware without needing a data-center GPU.
What it does
Rot und Schwarz estimates millimeter-accurate 6-DoF camera trajectories (3D position + quaternion orientation) from 30 Hz rectified stereo video and 200 Hz IMU measurements (ax, ay, az, gx, gy, gz).
Starting from a classic stereo ORB-SLAM baseline at 57.9 mm / 2.16° error, our final stereo-inertial pipeline and cross-validated team ensemble reach 1.88 mm mean position error (1.28 mm across seq01–seq09, down to 0.87 mm on seq07) and 0.19° mean orientation error under the official SE(3)/SO(3) benchmark — and produce validated, jitter-free trajectories (0.23 mm smoothness) across all 10 unseen test sequences (seq11–seq20).
How we built it
We combined two complementary, independently engineered Stereo-VIO pipelines and validated every single design choice strictly via 10-fold Leave-One-Sequence-Out Cross-Validation (LOSO-CV):
- Pipeline 1 — Offline Stereo-Inertial Global Bundle Adjustment (
v4&v5, pure CPU):- Adaptive KLT feature tracking + fast subpixel ZNCC stereo matching with Left-Right consistency.
- Frustum-filtered all-pairs RootSIFT global loop-closure tracks.
- Full 200 Hz Forster on-manifold IMU preintegration (9-DoF per-frame pose + velocity states, gyro/accel biases, exact IMU-to-camera lever arm, and gravity-norm prior) solved via matrix-free preconditioned Conjugate Gradient Schur-complement Bundle Adjustment.
- 2-level multi-scale vectorized direct IC-LK patch alignment (with rotation and depth-scale warp compensation) refining every single frame directly against reference templates for zero-drift subpixel accuracy (
~0.25 pxmedian reprojection error).
- Pipeline 2 — Learned Feature VIO + Pose-Graph Optimization:
- SuperPoint + LightGlue stereo correspondence matching, IMU-fused PnP, and sparse SE(3) pose-graph loop-closure optimization.
- Cross-Validated Team Fusion & Diagnostics:
- Separate Position (50%) and Orientation (50%) fusion via rigid SE(3) Generalized Procrustes consensus, per-pipeline metric scale calibration, and tridiagonal anchor-velocity smoothing.
- Interactive 3D trajectory comparison dashboard and ground-truth-free 200 Hz IMU consistency checks on
seq11–seq20.
Challenges we ran into
- Low-texture scanner panels & fast dynamic sweeps (
seq10/seq19): Smooth white surfaces and rapid 1+ meter vertical sweeps with motion blur broke naive feature matchers and caused sparse BA to drift. - Subtle bugs with huge impact: Debugging an inverted roll-warp sign in Pass-2 patch alignment during a 76° camera roll (
seq04) boosted matched observations by 3.5×; fixing anargpartitionbug recovered +50% RootSIFT loop closures; and running physics checks caught a severe recursive drift bias in an experimental neural refiner before submission. - CPU-only compute budget: Dense Schur complements and naive all-pairs matching initially took minutes per sequence until we switched to matrix-free PCG Schur solvers, vectorized NumPy IC-LK, and geometric frustum pre-filtering.
- Reference trajectory noise: Analyzing residuals against true Earth gravity and multi-view reprojection revealed startup gravity snaps and causal online drift in the reference trajectories, forcing strict LOSO-CV discipline to avoid overfitting.
Accomplishments that we're proud of
- Reduced mean error by >30× over our ORB-SLAM baseline: from 57.94 mm / 2.16° down to 1.88 mm / 0.19° (with sub-millimeter accuracy on
seq03andseq07). - Built an exact 200 Hz Forster-IMU Global BA + multi-scale direct IC-LK pipeline from scratch in Python/NumPy/SciPy that runs purely on CPU.
- Established strict scientific validation (10-fold LOSO-CV + GT-free 200 Hz IMU & gravity checks) that reliably separated genuine gains from overfitting and caught broken test candidates before final submission. ## What we learned
- Combining global geometric constraints (all-pairs loop closures + direct reference-patch alignment) with exact high-rate IMU physics beats either modality alone by an order of magnitude.
- Subpixel details matter at the millimeter scale: a
0.08 pxstereo rectification offset or a single sign flip in patch roll-warping directly translates into millimeters of 3D error. - Ground-truth-free physical diagnostics (200 Hz Forster preintegration residuals, gravity consistency, and cross-pipeline consensus) are essential for trusting predictions on unlabelled test sets.
What's next for Rot und Schwarz
- Integrating GPU-accelerated dense optical flow / DROID-SLAM as a third independent pillar in our 3-way LOOCV ensemble (
combine_all_3.py). - Porting the vectorized IC-LK frontend and Forster Schur-complement BA core to C++ for real-time (>30 Hz) embedded deployment on handheld scanning hardware.
- Adding online self-calibration of stereo rectification offsets and camera-IMU extrinsics for plug-and-play use across arbitrary stereo-inertial sensors.
Built With
- code