Abstract
Event-based cameras are raising interest within the computer vision community. These sensors operate with asynchronous pixels, emitting events, or "spikes", when the luminance change at a given pixel since the last event surpasses a certain threshold. Thanks to their inherent qualities, such as their low power consumption, low latency, and high dynamic range, they seem particularly tailored to applications with challenging temporal constraints and safety requirements. Event-based sensors are an excellent fit for Spiking Neural Networks (SNNs), since the coupling of an asynchronous sensor with neuromorphic hardware can yield real-time systems with minimal power requirements. In this work, we seek to develop one such system, using both event sensor data from the DSEC dataset and spiking neural networks to estimate optical flow for driving scenarios. We propose a U-Net-like SNN which, after supervised training, is able to make dense optical flow estimations. To do so, we encourage both minimal norm for the error vector and minimal angle between ground-truth and predicted flow, training our model with back-propagation using a surrogate gradient. In addition, the use of 3d convolutions allows us to capture the dynamic nature of the data by increasing the temporal receptive fields. Upsampling after each decoding stage ensures that each decoder's output contributes to the final estimation. Thanks to separable convolutions, we have been able to develop a light model (when compared to competitors) that can nonetheless yield reasonably accurate optical flow estimates.
Introduction
Traditional computer vision relies on frame-based cameras that capture images at fixed intervals. This paradigm often suffers from motion blur, high latency, and significant power waste on static scenes. In contrast, event-based cameras (neuromorphic sensors) only report asynchronous "events" when a pixel detects a change in luminance. While these sensors offer high dynamic range and low latency, translating sparse, asynchronous spikes into dense optical flow maps—predicting motion for every pixel—remains a significant challenge.
Most current solutions convert event streams into frames to use standard Artificial Neural Networks (ANNs), which negates the low-power benefits of the neuromorphic sensor. This research introduces a hardware-friendly Spiking Neural Network (SNN) approach that estimates dense optical flow directly, maintaining the efficiency required for edge AI applications like autonomous driving.
Methodology
The proposed architecture is a U-Net-like SNN specifically optimized for event data. Several key technical innovations differentiate this model from standard frame-based architectures:
3D Convolutions and Temporal Context
Unlike 2D convolutions that collapse temporal information immediately, 3D kernels in the encoder allow the network to capture short-term temporal relationships across consecutive event "histograms" before reaching the bottleneck. This preservation of temporal context is critical for "seeing" the motion sequence properly.
Hardware-Friendly Operations
To ensure compatibility with neuromorphic hardware (e.g., Intel's Loihi), the model utilizes:
- Stateless Spiking Neurons: A simplified McCulloch and Pitts model where potentials are reset after every forward pass, reducing memory overhead.
- Max Pooling: Used instead of strided convolutions to "densify" sparse tensors without losing the spiking nature of the data.
- Nearest Neighbor Upsampling: Preferred over bilinear interpolation for hardware efficiency.
Angular Loss Function
Training SNNs for regression is notoriously difficult. To address this, the authors introduced a novel loss function that penalizes both the magnitude of the error vector and the angle between the predicted and ground-truth flow. This dual supervision forces the network to learn the underlying spatial structure of the motion more effectively than standard Mean Squared Error (MSE) alone.
Experimental Setup
The model was evaluated on two primary benchmarks:
- DSEC Dataset: A large-scale driving dataset with high-resolution event data and LiDAR-derived ground truth.
- MVSEC Dataset: Used to test generalization across indoor flying and outdoor driving sequences.
Results and Discussion
The proposed model is remarkably lightweight, featuring only 1.2 million parameters—significantly fewer than leading competitors like E-RAF (5.3M parameters).
On the DSEC benchmark, the model achieved an Average End-point Error (AEE) of 1.71 px/s. While slightly behind heavy, non-spiking architectures, it represents a major advancement for pure SNN-based regression. The model also demonstrated strong generalization on MVSEC indoor sequences (AEE sum of 1.97), adapting to different camera resolutions and motion types without extensive retraining.
Key insights from the study include:
- Temporal Context: 3D convolutions were essential; 2D convolutions mixed temporal information too early, hindering long-term dependency detection.
- Pooling Efficacy: Max pooling proved superior for downsampling spiking data by densifying sparse tensors.
- Statelessness: Temporal context can be effectively handled by the architecture (3D convs) rather than the neuron's internal state, simplifying hardware implementation.
Conclusion
While the model shows promise, it currently struggles with high-frequency noise in outdoor sequences, such as dashboard reflections. Future work will focus on deploying the architecture to dedicated neuromorphic hardware to measure actual power consumption and exploring the intrinsic memory of spiking neurons to capture even longer temporal dependencies.
Summary updated