STDepthFormer: Predicting Spatio-temporal Depth from Video with a Self-supervised Transformer Model

Houssem Eddine Boulahbal, Adrian Voicila, Andrew I. ComportarXiv 2023 · DOI

TL;DR

This paper introduces STDepthFormer, a self-supervised transformer model that predicts a sequence of future depth maps from video. By enforcing spatio-temporal consistency across predicted frames, it achieves more accurate and robust depth forecasting than previous methods, even implicitly learning object motion without explicit tracking.

What Problem Does This Paper Address?

Autonomous driving systems rely heavily on understanding the environment, not just in the present moment but also predicting its future state. Accurate depth estimation is crucial for this, but existing self-supervised methods often focus on predicting a single depth frame. This limitation prevents them from enforcing temporal consistency, leading to blurry or less precise predictions, especially for future frames. Furthermore, depth forecasting methods often produce averaged predictions, losing fine details and making them less useful for critical decision-making. This paper aims to bridge this gap by developing a model that can simultaneously perform depth inference (current frame) and forecasting (future frames) while maintaining spatio-temporal consistency.

Methods

The core of STDepthFormer is a novel spatial-temporal attention (ST) network built upon a transformer architecture. Here's a breakdown of the key components:

  • SwinTransformer Backbone: This is used for initial spatial feature extraction from each input frame. The same backbone is shared across all context frames.
  • Multi-scale Spatio-temporal Aggregation (ST-block): This is the novel component. It takes the spatial features from multiple frames and correlates them both spatially (across different scales within an image) and temporally (across different frames). This is achieved by projecting features, concatenating them into sequences of patches, and feeding them into transformer layers.
  • Multi-scale Feature Prediction: A recursive transition function, implemented with SwinTransformer blocks, is used to relate features from one time step to the next, enabling the prediction of future states.
  • Depth Decoder: A shared decoder takes the spatio-temporal features and outputs multiple depth maps, including the current frame and several future frames.
  • Self-Supervision with Warping: The model is trained using a self-supervised approach. It learns by attempting to reconstruct input frames by "warping" them using predicted depth and pose information. The loss function combines photometric loss, structural similarity (SSIM), and a depth smoothness constraint. Crucially, the objective function enforces spatio-temporal consistency across the sequence of predicted depth frames, not just a single frame.
  • Implicit Motion Learning: A significant finding is that the STDepthFormer implicitly learns object motion without requiring explicit multi-object detection, segmentation, or tracking modules.

Datasets

The paper primarily uses the KITTI benchmark [20] for training and evaluation. For generalization testing, they also evaluate on the Cityscapes [34] and Robotcar [35] datasets.

Key Insights and Ideas

  • Spatio-temporal consistency is key for accurate forecasting: Enforcing consistency across a sequence of predicted depth maps, rather than just a single frame, significantly improves accuracy and robustness.
  • Transformers excel at implicit spatio-temporal reasoning: The ST-block effectively captures relationships between spatial objects and their temporal evolution without explicit motion supervision.
  • Implicit motion learning is a powerful byproduct: The model learns to predict object motion as a natural consequence of learning spatio-temporal depth consistency, reducing the need for complex downstream tracking modules.
  • Deterministic forecasting beats averaging: By predicting the most probable future depth instead of averaging possibilities, the model avoids blurry outputs and produces sharper, more detailed depth maps.
  • Generalization is improved by transformer's implicit nature: The model's reliance on attention for matching, rather than explicit pose and camera parameters, makes it more robust to domain shifts and variations in camera settings.

Key Results

  • KITTI Benchmark Performance: The STDepthFormer outperforms existing self-supervised depth forecasting baselines on the KITTI benchmark, achieving a significant gap in metrics like AbsRel (e.g., 7.3% improvement over prior work).
  • Accurate Future Depth: The model produces depth maps for future frames (e.g., t+1, t+3, t+5) that are comparable in quality to single-frame depth inference methods.
  • Handling Dynamic Objects: A variant of the model, when evaluated on dynamic objects, shows significant improvement over the ManyDepth baseline (AAbsRel = 13.0%).
  • Generalization: The model demonstrates strong generalization capabilities on Cityscapes and Robotcar datasets, outperforming baselines in various challenging scenarios (domain gap, camera parameter variations, weather perturbations).
  • Faster Convergence: The proposed method achieves convergence in fewer epochs (6) compared to previous approaches (20).

Limitations and Future Work

  • Single Modality Collapse (VAE Experiment): In an ablation study exploring multi-hypothesis future depth prediction using a VAE, the model collapsed to a single modality and failed to produce diverse predictions.
  • Future Work: The authors suggest exploring the generation of accurate multi-hypothesis future depths as a promising avenue for future research, building upon the current model's success.

Summary updated

BibTeX
@misc{boulahbal2023stdepthformer,
  author = {Houssem Eddine Boulahbal and Adrian Voicila and Andrew I. Comport},
  title = {{STDepthFormer: Predicting Spatio-temporal Depth from Video with a Self-supervised Transformer Model}},
  year = {2023},
  eprint = {2303.01196},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2303.01196},
}
Figure