Event-based Monocular Dense Depth Estimation with Recurrent Transformers

Xu Liu, Jianing Li, Xiaopeng Fan, Yonghong TianarXiv 2022 · DOI

Abstract

Monocular depth estimation is a critical task for autonomous systems, yet conventional frame-based cameras often fail in high-dynamic-range or low-light environments. Event cameras offer a solution with their high temporal resolution and dynamic range, but their sparse, asynchronous data poses challenges for standard deep learning architectures. This paper introduces EReFormer, the first pure transformer-based architecture for event-based dense depth estimation. By integrating a novel Gated Recurrent Vision Transformer (GRViT) and Spatial Transformer Fusion (STF), EReFormer effectively models long-range spatial and temporal dependencies. Experimental results on synthetic and real-world datasets demonstrate that EReFormer achieves state-of-the-art performance, particularly in challenging night-time conditions.

Introduction

Predicting 3D scene structure from a single viewpoint is essential for robotic navigation and obstacle avoidance. Traditional RGB cameras suffer from motion blur and limited dynamic range, making them unreliable in low-light or high-speed scenarios. Event cameras, which asynchronously record per-pixel brightness changes, excel where standard sensors fail.

However, the sparse nature of event streams makes it difficult for traditional Convolutional Neural Networks (CNNs) to reconstruct global spatial structures due to their local receptive fields. Furthermore, existing temporal modeling techniques often struggle with the trade-off between memory efficiency and expressive power. EReFormer addresses these gaps by utilizing the global receptive fields inherent to transformer architectures.

Methodology: The EReFormer Architecture

EReFormer is a pure transformer encoder-decoder design that leverages Swin Transformer blocks for hierarchical feature extraction. It introduces two primary innovations to handle the unique properties of event data.

The EReFormer architecture features the Gated Recurrent Vision Transformer (GRViT) and Spatial Transformer Fusion (STF) modules to handle temporal memory and multi-scale feature fusion.

Gated Recurrent Vision Transformer (GRViT)

To process continuous event streams efficiently, the authors developed the GRViT. Standard temporal transformers are often memory-prohibitive for long sequences. GRViT introduces a recursive mechanism within the transformer block. It utilizes an attention gate to facilitate interaction between current spatial features and temporal memory from previous steps. An update gate, inspired by Gated Recurrent Units (GRUs), then determines which information should be propagated forward, allowing for robust temporal modeling without the massive VRAM overhead of parallel temporal transformers.

Spatial Transformer Fusion (STF)

In the decoder, the model employs Spatial Transformer Fusion (STF) instead of simple skip connections. STF uses cross-attention—specifically window-based and shifted-window self-attention—to fuse multi-scale features from the encoder. This approach ensures that global context is preserved during the upsampling process, leading to more coherent dense depth maps.

Experimental Results

The model was rigorously tested on the synthetic DENSE dataset and the real-world MVSEC dataset. MVSEC is particularly notable for its night-time sequences, which serve as a benchmark for robustness in extreme lighting.

Qualitative comparison on the MVSEC night sequences. EReFormer produces significantly more accurate and globally coherent depth maps compared to frame-based and CNN-based event methods in low-light conditions.

Performance and Reliability

EReFormer consistently outperformed both event-based competitors (e.g., MDDE, DTL) and frame-based transformers (e.g., DPT). On the MVSEC "night3" sequence, EReFormer achieved an Absolute Relative Error (Abs.Rel) of 0.248, a significant improvement over the previous state-of-the-art (0.272).

Key findings include:

  • Superiority in Low Light: While frame-based models like MegaDepth fail in the dark, EReFormer leverages the high dynamic range of event sensors to produce high-quality depth maps.
  • Long-Range Accuracy: The model showed marked improvements in depth prediction for objects up to 30 meters away, which is critical for high-speed autonomous driving safety.
  • Efficiency: Despite its complexity, the model maintains a runtime of approximately 35ms on an NVIDIA V100, making it viable for near-real-time robotic applications.

Conclusion

EReFormer demonstrates the power of transformers in handling sparse, asynchronous event data for dense depth estimation. By combining recurrent temporal modeling with global spatial attention, it sets a new standard for robustness in challenging environments. While the model currently struggles in static scenes where no events are generated, future work aims to fuse standard video frames with event streams to create a truly universal monocular depth estimator.

Summary updated

BibTeX
@misc{liu2022event,
  author = {Xu Liu and Jianing Li and Xiaopeng Fan and Yonghong Tian},
  title = {{Event-based Monocular Dense Depth Estimation with Recurrent Transformers}},
  year = {2022},
  eprint = {2212.02791},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2212.02791},
}
Figure