Unifying Event-based Flow, Stereo and Depth Estimation via Feature Similarity Matching

Pengjie Zhang, Lin Zhu, Lizhi Wang, Hua HuangarXiv 2024

Abstract

Event cameras have shown promise in vision applications like optical flow estimation and stereo matching, with many specialized architectures leveraging the asynchronous and sparse nature of event data. However, existing works only focus event data within the confines of task-specific domains, overlooking how tasks across the temporal and spatial domains can reinforce each other. In this paper, we reformulate event-based flow estimation and stereo matching as a unified dense correspondence matching problem, enabling us to solve both tasks within a single model by directly matching features in a shared representation space. Specifically, our method utilizes a Temporal Recurrent Network to aggregate event features across temporal or spatial domains, and a Spatial Contextual Attention to enhance knowledge transfer across event flows via temporal or spatial interactions. By utilizing a shared feature similarities module that integrates knowledge from event streams via temporal or spatial interactions, our network performs optical flow estimation from temporal event segment inputs and stereo matching from spatial event segment inputs simultaneously. We demonstrate that our unified model inherently supports multi-task fusion and cross-task transfer. Without the need for retraining for specific task, our model can effectively handle both optical flow and stereo estimation, achieving state-of-the-art performance on both tasks.

Introduction

Event cameras are bio-inspired sensors that report per-pixel intensity changes with microsecond-level latency and high dynamic range. Unlike traditional frame-based cameras, their output is asynchronous and spatially sparse, presenting unique challenges for computer vision. Historically, researchers have treated optical flow (tracking motion over time) and stereo matching (finding depth via spatial offsets) as distinct problems, building specialized, siloed architectures for each.

This approach ignores a fundamental insight: both tasks are essentially searching for correspondences between event segments. Flow looks for displacements across time, while disparity looks for displacements across space. The EMatch framework argues that by treating these as separate problems, we miss the potential for cross-domain reinforcement where learning about motion helps understand structure, and vice versa.

The EMatch Framework

The core of EMatch is a unified pipeline that processes event voxels through two primary modules before performing correspondence matching. This architecture allows a single model to handle both temporal and spatial data streams within a shared representation space.

The EMatch Unified Framework architecture.
  1. Temporal Recurrent Network (TRN): To capture the continuity of motion, events are first accumulated into voxels. The TRN uses stacked ResBlocks and Convolutional GRUs (ConvGRUs) to iteratively extract temporal features.
  2. Spatial Contextual Attention (SCA): Because event data is naturally sparse, the SCA module uses self-attention and cross-attention mechanisms to aggregate global spatial context. This allows the network to "fill in the gaps" and assign meaningful feature values even to pixels that did not trigger an event, which is critical for dense matching.

Once features are extracted, the model uses a Shared Feature Similarities module. It calculates a correlation volume using dot products and determines displacements through a softmax-weighted average of coordinates. Finally, a task-specific GRU-based refinement head (inspired by RAFT) polishes the results.

A Unified Correspondence Perspective

The most significant insight of this work is the formalization of flow and disparity as a unified displacement field $D$. This allows a single encoder to learn features that are task-agnostic yet highly descriptive of the scene's geometry and dynamics.

Conceptual unification of optical flow and stereo matching.

This unification enables Cross-Task Transfer, where a model pre-trained on optical flow performs better at stereo matching than one trained from scratch. Furthermore, training on both tasks simultaneously (EMatch-unified) yields better results than training on either task individually. The communication between the temporal and spatial domains helps the model better outline object contours and handle occlusions, demonstrating a clear synergy through multi-tasking.

Experimental Results

The researchers evaluated EMatch on the DSEC benchmark, a large-scale dataset for event-based vision in driving scenarios. EMatch achieved state-of-the-art (SOTA) results, outperforming specialized models in both categories:

  • Optical Flow: Achieved an End-Point Error (EPE) of 0.64, surpassing previous leaders like IDNet (0.72) and TMA (0.74).
  • Stereo Matching: Achieved a Mean Absolute Error (MAE) of 0.47, beating specialized stereo networks like TESNet (0.50) and Se-cff (0.52).

Visual results confirm that EMatch produces sharper object boundaries and handles thin structures, such as poles or distant trees, significantly better than previous methods. It also demonstrates robustness to sparsity, generalizing well even when the event sampling rate is significantly reduced.

Conclusion

EMatch demonstrates that event-based flow and stereo estimation can be effectively unified into a single dense correspondence problem. While the framework reduces deployment complexity, future work is needed to explore the computational overhead of attention mechanisms on low-power edge hardware. Potential extensions include incorporating ego-motion estimation or monocular depth to provide a complete 3D understanding of the environment from a single event-based stream.

Summary updated

BibTeX
@misc{zhang2024unifying,
  author = {Pengjie Zhang and Lin Zhu and Lizhi Wang and Hua Huang},
  title = {{Unifying Event-based Flow, Stereo and Depth Estimation via Feature Similarity Matching}},
  year = {2024},
  eprint = {2407.21735},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2407.21735},
}
Figure