Neuromorphic Optical Flow and Real-time Implementation with Event Cameras

Yannick Schnider, Stanislaw Wozniak, Mathias Gehrig, Jules Lecomte, Axel von Arnim, Luca Benini, Davide Scaramuzza, Angeliki Pantazi

Abstract

Estimating optical flow is a critical task for autonomous systems, yet traditional frame-based methods often struggle with high-speed motion and high power consumption. This paper introduces SNN-Timelens, a novel Spiking Neural Network (SNN) architecture designed specifically for event cameras. By leveraging a "Timelens-inspired" design and a systematic model-reduction strategy, the authors achieve a 63x reduction in parameters with negligible loss in accuracy. The resulting model enables high-speed, real-time motion estimation suitable for edge deployment in robotics.

Introduction

Optical flow—the estimation of relative motion between a sensor and its environment—is a cornerstone of computer vision, essential for drone navigation and obstacle avoidance. However, standard cameras capture frames at fixed intervals (30-60 fps), which can lead to motion blur and high latency in high-speed robotic applications.

Event cameras, or Dynamic Vision Sensors (DVS), offer a paradigm shift by reporting pixel-level brightness changes (events) with microsecond latency. While Spiking Neural Networks (SNNs) are theoretically ideal for processing this sparse, asynchronous data, a persistent gap exists between high-performing, massive SNN architectures and the power-constrained hardware used in real-world robotics. This work bridges that gap by developing a high-accuracy model optimized for real-time edge execution.

Methodology

Architecture Design

The researchers developed SNN-Timelens, drawing inspiration from the Timelens frame-interpolation network. To optimize the architecture for event streams, several key technical modifications were implemented:

  • Spatial Processing: Unlike standard U-Nets that rely on strided convolutions, this model utilizes pooling operators for spatial dimensionality reduction. It also employs larger initial kernel sizes ($7 \times 7$) to capture broader context from sparse event data.
  • Advanced Neuron Models: The team compared standard Leaky Integrate-and-Fire (LIF) neurons with a more complex unit called SNUo. SNUo mimics "axo-axonic" synapses, allowing the network to emit "graded spikes" (analog values). This hybrid approach significantly boosts accuracy by preserving more information than binary spikes.
  • Recurrent Connectivity: The placement of recurrent connections was found to be vital. The authors determined that an R/F configuration—placing a recurrent layer in the first convolution of each block—yielded the best performance for temporal data processing.

Self-Supervised Training

The model was trained on the UZH-FPV Drone Racing Dataset, which contains the aggressive maneuvers necessary for robust motion estimation. Training utilized a "contrast maximization" loss, where the network learns to estimate flow by effectively "un-blurring" the event stream into sharp images.

Notably, the authors discovered that applying the loss function only to the final output layer—rather than at multiple resolutions—improved performance. They suggest that multi-resolution loss may force deeper layers to focus on low-level flow rather than developing the higher-level features necessary for complex motion.

Model Reduction and the "Quasi-Identity" Discovery

To enable real-time deployment, the team performed a "spiking activity analysis" to monitor layer-wise utility. They discovered a "Quasi-Identity" phenomenon: in deeper 5-stage networks, the fraction of spiking neurons remained almost constant, suggesting that deep layers were performing simple identity mappings rather than adding complexity.

This insight allowed the researchers to prune the network from 5 stages down to 2 and reduce channel counts. This principled reduction shrunk the model from 20.4 million parameters to just 0.32 million—a 63x compression.

Results

Performance Benchmarks

The model was evaluated on the MVSEC (Multi-Vehicle Stereo Event Camera) dataset, focusing on outdoor and indoor flying sequences. Key results include:

  • Accuracy: SNN-Timelens reduced prediction error by 6.1% in standard spiking mode and 15.6% when using SNUo graded spikes compared to previous state-of-the-art SNNs.
  • Efficiency: The reduced model achieved a 93.2% increase in evaluation frequency, making it highly suitable for real-time robotic control.

Qualitative Validation

The researchers demonstrated the pipeline using a physical DVS128 camera. The system successfully captured hand gestures and complex motions, such as rotations and approaching objects, with extremely low latency on a standard CPU.

Conclusion and Future Work

This work demonstrates that high-speed, high-accuracy optical flow can be achieved with a compact SNN architecture. By identifying and removing redundant layers through activity analysis, the authors created a model that is 63x smaller than its predecessors while outperforming them in accuracy.

While the current implementation runs on a standard CPU, the architecture is designed for neuromorphic hardware. Future work will involve benchmarking power consumption and performance on specialized chips such as Intel’s Loihi or IBM’s TrueNorth. Additionally, the authors aim to improve the model's handling of complex non-linear deformations, which remain a challenge for the simplified 2-stage architecture.

Summary updated

BibTeX
@inproceedings{schnider2023neuromorphic,
  author = {Yannick Schnider and Stanislaw Wozniak and Mathias Gehrig and Jules Lecomte and Axel von Arnim and Luca Benini and Davide Scaramuzza and Angeliki Pantazi},
  title = {{Neuromorphic Optical Flow and Real-time Implementation with Event Cameras}},
  booktitle = {Workshops @ CVPR},
  year = {2023},
  doi = {10.1109/cvprw59228.2023.00434},
}
Figure