SCFlow: Optical Flow Estimation for Spiking Camera

Liwen Hu, Rui Zhao, Ziluo Ding, Ruiqin Xiong, Lei Ma, Tiejun Huang

TL;DR

This paper introduces SCFlow, the first deep learning pipeline for estimating optical flow from spiking camera data. It tackles the challenge of motion blur in spike streams by proposing a novel "Flow-guided Adaptive Window" (FAW) input representation and introduces two new synthetic datasets for training and evaluating this novel approach.

What Problem Does This Paper Address?

Traditional cameras struggle with capturing clear motion in high-speed scenes due to their limited frame rates, resulting in motion blur. Neuromorphic spiking cameras offer a solution with their high temporal resolution, capturing events asynchronously. However, existing optical flow estimation methods, designed for frame-based or event-based data, are not directly applicable to the unique spike stream output of these cameras. Reconstructing images from spike streams first introduces temporal inaccuracies and motion blur. Therefore, there's a need for a method that can directly estimate optical flow from spike streams, overcoming the challenges of data modality mismatch and motion blur.

Methods

The core of SCFlow lies in its novel input representation called Flow-guided Adaptive Window (FAW). Traditional methods often use fixed temporal windows, which can lead to motion blur when the camera or objects are moving rapidly. FAW addresses this by adaptively adjusting the temporal window for each pixel based on the prior motion (estimated optical flow). This allows the window to better align with the actual motion trajectory, effectively reducing motion blur.

The overall architecture of SCFlow is a pyramidal encoder-decoder network, inspired by established optical flow networks like PWC-Net. The FAW representations are fed into a feature pyramid, and optical flow is estimated in a coarse-to-fine manner. A key aspect of training is the use of predicted optical flow as the prior motion for the FAW representation, creating a self-correcting loop. For testing, the previously estimated flow is used as the prior for the next frame.

Datasets

The authors introduce two new synthetic datasets for training and evaluating spike-based optical flow:

  • SPIkingly Flying Things (SPIFT): Used for training, this dataset features random high-speed scenes with objects translating and rotating. It provides optical flow for every 10 and 20 spike frames to evaluate generalization across different motion magnitudes.
  • Photo-realistic High-speed Motion (PHM): Used for testing, this dataset consists of 10 carefully designed, well-known scenes (e.g., billiard ball collisions, falling dolls, rotating fans) that mimic real-world high-speed scenarios. This dataset is crucial for evaluating the generalization capabilities of the proposed method.

Key Insights and Ideas

  • Motion Blur is a Key Bottleneck: The paper clearly articulates that static temporal windows are a major source of error when processing spike streams for optical flow, directly leading to motion blur.
  • Prior Motion as a Guide: The innovative use of predicted optical flow as a "prior motion" to guide the adaptive temporal window (FAW) is a significant contribution. This creates a feedback loop that improves accuracy.
  • Spiking Cameras are Underserved: The paper highlights the lack of dedicated optical flow datasets and methods for spiking cameras, underscoring the need for specialized solutions.
  • Synthetic Data is Crucial: Given the difficulty of obtaining ground truth optical flow for high-speed real-world scenes, the creation of synthetic datasets like SPIFT and PHM is essential for advancing research in this area.

Key Results

  • State-of-the-Art Performance: SCFlow achieves the best average end-point error (AEPE) on the proposed PHM dataset compared to existing event-based (EV-FlowNet, Spike-FlowNet) and frame-based (RAFT) methods, even when these are adapted to use spike streams.
  • FAW Representation is Effective: A comparison between SCFlow and SCFlow-w/oR (without FAW) demonstrates that the FAW representation significantly improves accuracy, highlighting its effectiveness in reducing motion blur.
  • Promising Generalization: SCFlow shows promising generalization capabilities, performing well on real spike streams from the PKU-Spike-High-Speed Dataset, indicating its practical applicability.
  • Efficiency: SCFlow achieves these results with fewer parameters than some competing methods.

Limitations and Future Work

  • Low-Light Conditions: The paper acknowledges that high-speed scenes in low-light conditions may pose a challenge due to increased noise and motion blur in spike streams.
  • Future Directions: The authors plan to further explore noise principles in spiking cameras and extend their datasets to evaluate performance in extreme lighting conditions. They also aim to fully explore the principles of noise in spiking cameras and evaluate their model on scenes in extreme lighting conditions.

Summary updated

Abstract

As a bio-inspired sensor with high temporal resolution, the spiking camera has an enormous potential in real applications, especially for motion estimation in high-speed scenes. However, frame-based and event-based methods are not well suited to spike streams from the spiking camera due to the different data modalities. To this end, we present, SCFlow, a tailored deep learning pipeline to estimate optical flow in high-speed scenes from spike streams. Importantly, a novel input representation is introduced which can adaptively remove the motion blur in spike streams according to the prior motion. Further, for training SCFlow, we synthesize two sets of optical flow data for the spiking camera, SPIkingly Flying Things and Photo-realistic High-speed Motion, denoted as SPIFT and PHM respectively, corresponding to random high-speed and well-designed scenes. Experimental results show that the SCFlow can predict optical flow from spike streams in different high-speed scenes. Moreover, SCFlow shows promising generalization on \textbf{real spike streams}. Codes and datasets refer to https://github.com/Acnext/Optical-Flow-For-Spiking-Camera.
BibTeX
@inproceedings{hu2022scflow,
  author = {Liwen Hu and Rui Zhao and Ziluo Ding and Ruiqin Xiong and Lei Ma and Tiejun Huang},
  title = {{SCFlow: Optical Flow Estimation for Spiking Camera}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2022},
  doi = {10.1109/cvpr52688.2022.01732},
}
Figure