Taming Contrast Maximization for Learning Sequential, Low-latency, Event-based Optical Flow

Federico Paredes-Vallés, Kirk Y. W. Scheper, Christophe De Wagter, Guido C. H. E. de Croon

Introduction

Event cameras, also known as neuromorphic sensors, represent a fundamental shift in computer vision. Unlike traditional frame-based cameras that capture images at fixed intervals, event cameras report per-pixel brightness changes asynchronously at microsecond resolution. This unique data stream makes them exceptionally well-suited for high-speed, low-latency applications such as autonomous driving and robotic navigation. However, estimating optical flow—the pattern of apparent motion—from these sensors remains a significant challenge.

Most existing algorithms rely on "frame-based" paradigms, grouping events into discrete windows and assuming linear motion within those intervals. This assumption often fails during rapid or complex maneuvers. Furthermore, the lack of per-event ground truth labels in real-world scenarios necessitates the development of robust self-supervised learning frameworks. This paper introduces a novel approach that "tames" contrast maximization to achieve state-of-the-art, unsupervised optical flow estimation by relaxing the linear motion assumption and utilizing a sequential, stateful architecture.

Methodology

The proposed framework moves beyond traditional linear approximations by combining a recurrent neural network with iterative warping and a multi-timescale loss function.

1. Recurrent Architecture

The model utilizes a recurrent architecture based on a ConvGRU-enhanced version of EV-FlowNet. By processing the event stream in small, sequential partitions, the model maintains a "memory" of previous motion states. This stateful approach allows the system to handle large pixel displacements effectively without the need for computationally expensive search windows, maintaining low latency while addressing the challenges of high-speed motion.

2. Iterative Event Warping

To address the limitations of the linear motion assumption, the framework employs iterative event warping. Instead of calculating a single linear displacement, the model uses multiple intermediate flow estimates to warp events along a curved trajectory. This discretization of the motion path allows the model to capture the true, non-linear trajectory of scene points more accurately than previous methods.

3. Multi-timescale Contrast Maximization

Contrast maximization serves as the self-supervised proxy for training. The core idea is that warping events with the correct motion estimate should "un-blur" the event stream, resulting in an image with maximum contrast. The authors enhance this by calculating the loss across multiple temporal scales (e.g., 25ms, 50ms, and 100ms windows simultaneously). This multi-timescale approach acts as a natural regularizer, making the training process robust to varying speeds and reducing the sensitivity to hyperparameter tuning.

Experimental Results

The framework was evaluated on several benchmark datasets, including DSEC-Flow (autonomous driving), MVSEC (outdoor sequences), and the Event Camera Dataset (6-DOF motion).

  • State-of-the-Art Performance: The method established a new benchmark for accuracy among unsupervised event-based optical flow methods. On the DSEC-Flow dataset, the model achieved an Endpoint Error (EPE) of 2.33, representing a 33% to 45% improvement over previous contrast-maximization techniques.
  • Generalization: When trained on DSEC and tested on the MVSEC dataset, the model demonstrated superior generalization capabilities compared to existing methods, indicating that it learns fundamental motion patterns rather than dataset-specific artifacts.
  • Real-time Viability: The system supports high inference frequencies (up to 100Hz), making it suitable for integration into real-world robotic control loops where low latency is critical.

Discussion and Key Insights

The success of this framework highlights several key insights in neuromorphic vision. First, relaxing the linear motion assumption through iterative warping is essential for capturing realistic trajectories in high-speed scenarios. Second, the use of recurrent architectures proves that memory is a vital component for processing asynchronous event data. Finally, the multi-timescale loss ensures scale invariance, forcing the model to find flow solutions that are consistent across different time horizons.

Despite these advancements, the model faces traditional computer vision hurdles. It relies on the assumption of brightness constancy, which can be violated by flickering lights or rapid illumination changes. Additionally, it remains susceptible to the aperture problem, where the true motion of straight edges is difficult to determine without distinct textures or corners.

Conclusion

This research demonstrates that self-supervised contrast maximization, when combined with recurrent architectures and non-linear motion modeling, can achieve high-accuracy optical flow estimation for event cameras. Future work will explore the transition to Spiking Neural Networks (SNNs) to leverage neuromorphic hardware directly, potentially further reducing power consumption and latency for edge-based robotics.

Summary updated

BibTeX
@inproceedings{paredesvalles2023taming,
  author = {Federico Paredes-Vallés and Kirk Y. W. Scheper and Christophe De Wagter and Guido C. H. E. de Croon},
  title = {{Taming Contrast Maximization for Learning Sequential, Low-latency, Event-based Optical Flow}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2023},
}
Figure