Abstract
In this paper, we propose a novel self-supervised learning model for estimating continuous ego-motion from video. Our model learns to estimate camera motion by watching RGBD or RGB video streams and determining translational and rotation velocities that correctly predict the appearance of future frames. Our approach differs from other recent work on self-supervised structure-from-motion in its use of a continuous motion formulation and representation of rigid motion fields rather than direct prediction of camera parameters. To make estimation robust in dynamic environments with multiple moving objects, we introduce a simple two-component segmentation process that isolates the rigid background environment from dynamic scene elements. We demonstrate state-of-the-art accuracy of the self-trained model on several benchmark ego-motion datasets and highlight the ability of the model to provide superior rotational accuracy and handling of non-rigid scene motions.
Introduction: The Challenge of Ego-Motion
Estimating "ego-motion"—the precise movement of a camera through a 3D environment—is a fundamental task for robotics, autonomous navigation, and augmented reality. While deep learning has excelled in semantic tasks like object detection, geometric tasks like Structure-from-Motion (SfM) present unique challenges for standard neural architectures.
Current self-supervised methods often struggle with two primary issues:
- Representation Mismatch: Convolutional Neural Networks (CNNs) are designed to process spatial grids. Forcing them to directly regress abstract 6-Degree-of-Freedom (6DoF) motion vectors often results in poor geometric consistency because the network isn't naturally "wired" for such outputs.
- Scene Dynamics: Most self-supervised frameworks assume a static world. In reality, moving objects (like cars or pedestrians) violate this assumption, leading the network to incorrectly attribute object motion to the camera itself.
CeMNet (Continuous Ego-Motion Network) addresses these hurdles by shifting the focus from direct parameter regression to the prediction of dense motion fields, interpreted through a continuous geometric lens.
Methodology: From Pixels to Motion Fields
CeMNet introduces several architectural innovations to bridge the gap between deep learning and classical geometry.
Continuous Motion Formulation
Instead of predicting discrete pose changes between frames, the model estimates translational and rotational velocities ($\tau, \omega$). This linearized continuous approximation is more naturally suited for high-frequency video streams and significantly improves rotational accuracy.
Motion Field Projection
The core insight of CeMNet is that CNNs are far better at predicting where pixels move (optical flow) than how the camera moves (pose vectors). As shown in Figure 1, the network ($Net_{OF}$) predicts a dense optical flow field. This field is then projected onto the subspace of valid rigid motions using a differentiable weighted least-squares layer ($MF^\dagger$). This allows the network to "draw" the motion it perceives, while a geometric layer interprets that drawing as camera rotation and translation.
Two-Layer Segmentation for Dynamic Scenes
To handle moving objects, CeMNet incorporates a segmentation network ($Net_{SEG}$). This component splits the scene into "static" (background) and "dynamic" (moving objects) masks using "hard" assignments via the Gumbel-Softmax trick. By calculating ego-motion only from static pixels, the model prevents dynamic scene elements from biasing the camera's trajectory.
Hybrid Loss Functions
The model is trained using a combination of three distinct losses:
- Photometric Loss ($L_{OF}$): Ensures the predicted flow correctly warps the current frame to match the next.
- Motion Field Loss ($L_{MF}$): Enforces consistency between the reconstructed rigid motion field and the input images.
- Orthogonal Projection Loss ($L_{OP}$): Measures the distance between predicted flow and a geometrically valid rigid motion, guiding the network toward physically plausible solutions.
Experimental Results
The authors evaluated CeMNet on the TUM RGBD and Virtual KITTI datasets, representing both indoor and outdoor environments with varying levels of dynamic complexity.
Performance Gains
CeMNet demonstrated a significant leap in accuracy, often halving the average translation error compared to baseline models that regress pose directly. On the TUM dataset, the RGBD version of CeMNet outperformed established classical pipelines like DVO-SLAM and ORB-SLAM2 in several sequences.
As illustrated in Figure 3, the transition from direct pose prediction (a) to prediction via flow space (b) allows the model to find solutions within a geometrically constrained manifold. The quantitative comparison in (c) highlights how the combination of $L_{MF}$, $L_{OP}$, and $L_{OF}$ leads to the lowest translation distance, validating the hybrid loss approach.
Robustness and Rotation
The continuous formulation proved particularly effective for rotation estimation, which is frequently the "weak link" in visual odometry. Furthermore, in highly dynamic scenes (e.g., the "walking" sequences in TUM), the two-layer segmentation model successfully ignored moving people, maintaining a stable trajectory where single-layer models failed.
Conclusion and Future Directions
CeMNet demonstrates that by aligning neural network architectures with the underlying geometry of the physical world—specifically through motion field projection—we can achieve state-of-the-art self-supervised ego-motion estimation.
Future work will focus on "symmetry breaking" in purely unsupervised settings, where the network occasionally struggles to distinguish between static and dynamic layers without a small amount of supervised data. Additionally, integrating this local two-frame estimator into a full SLAM system with global loop closure remains a promising avenue for creating fully autonomous navigation systems.
Summary updated