GyroFlow: Gyroscope-Guided Unsupervised Optical Flow Learning

Haipeng Li, Kunming Luo, Shuaicheng Liu

TL;DR

This paper introduces GyroFlow, a novel unsupervised optical flow learning framework that leverages gyroscope data to overcome the limitations of image-based methods in challenging scenarios like low-light, fog, and rain. By fusing gyroscope-derived motion fields with image content, GyroFlow significantly improves optical flow estimation accuracy and robustness, outperforming existing state-of-the-art methods.

What Problem Does This Paper Address?

Estimating optical flow, which describes the motion of pixels between consecutive images, is crucial for many computer vision tasks like visual odometry and object tracking. Traditional methods often struggle in challenging environments (e.g., low light, fog, rain) because their core assumptions, like brightness and gradient constancy, are violated. While deep learning has improved optical flow estimation, unsupervised methods still rely heavily on image content and thus suffer in textureless or low-visibility conditions. Gyroscopes, on the other hand, provide motion information independent of image content, offering a promising avenue to enhance robustness. However, effectively fusing this inertial data with image-based optical flow learning, especially within a deep learning framework, has remained an open challenge.

Methods

GyroFlow introduces a novel approach to unsupervised optical flow learning by integrating gyroscope data. The core components are:

  • Gyro Field Generation: Gyroscope readings (angular velocities) are converted into "gyro fields." These fields represent background motion, independent of image content. The process involves computing rotation matrices from gyroscope data and then deriving homographies to project pixels from one frame to another, ultimately yielding a dense motion field. This method accounts for rolling shutter effects common in mobile phone cameras.
  • Self-Guided Fusion (SGF) Module: This is the key innovation. The SGF module fuses the generated gyro field with the image-based optical flow. It first generates a "fusion map" that highlights regions where the gyro field accurately aligns with image features. This map then guides the fusion process, allowing the network to focus on incorporating the reliable background motion from the gyro field while still capturing fine motion details from the optical flow. The fusion is achieved by a weighted combination of the gyro field and a motion derived from the image-based flow.
  • Network Architecture: The overall framework is built upon a convolutional neural network, similar to existing unsupervised methods like UPFlow. It employs a pyramid encoder-decoder structure. The SGF module is integrated at each layer of the decoder, allowing for multi-scale fusion.

Datasets

  • Training: The paper mentions using a custom dataset for training, which includes videos with synchronized gyroscope readings.
  • Evaluation: A new dataset called GOF (Gyroscope Optical Flow) is introduced. This dataset comprises four categories: regular scenes (RE), low-light scenes (Dark), foggy scenes (Fog), and rainy scenes (Rain). It includes synchronized gyroscope readings and, importantly, a manually labeled ground-truth optical flow for evaluation. The authors note that existing datasets like Sintel and KITTI are not suitable for their evaluation due to the absence of gyroscope data.

Key Insights and Ideas

  • Gyroscope as a Robust Prior: The paper demonstrates that gyroscope data can serve as a powerful prior for background motion, especially in challenging visual conditions where image content is unreliable.
  • Self-Guided Fusion for Targeted Integration: The SGF module's ability to learn where to fuse gyro information (via the fusion map) is crucial. This prevents the gyro data from overwhelming image-specific motion details and allows for a more nuanced integration.
  • Unsupervised Learning Benefits from Inertial Data: By combining unsupervised learning with gyroscope data, GyroFlow achieves state-of-the-art performance without requiring ground-truth labels for training, making it more practical for real-world applications.
  • Challenging Scenes are Key Differentiators: The most significant improvements are observed in challenging scenes (dark, fog, rain), highlighting the core problem GyroFlow addresses.

Key Results

  • Quantitative Performance: GyroFlow achieves a state-of-the-art average Endpoint Error (EPE) of 0.717 on the GOF evaluation set, which is 26.46% better than the second-best method. It significantly outperforms other unsupervised methods in challenging scenes.
  • Qualitative Improvements: Visual comparisons show that GyroFlow produces much more accurate and complete optical flow fields in low-light, foggy, and rainy conditions compared to methods like ARFlow and UFlow. The fusion of gyro and image-based flow leads to better motion recovery, especially around object boundaries.
  • Robustness: The method demonstrates robustness across various scene types, including regular scenes where it still offers improvements over existing methods.

Limitations and Future Work

  • Limitations:
    • The paper acknowledges that the performance of unsupervised methods can be affected by the lack of ground-truth labels during training, which limits their ability to be refined on specific datasets.
  • While the SGF module is effective, the paper notes that integrating it at all pyramid layers yields the best results, suggesting potential for further optimization in how and where fusion occurs.
  • Future Work:
    • The authors suggest that further research could explore more sophisticated fusion strategies or investigate how to leverage gyroscope data for other vision tasks.
  • The development of more comprehensive datasets with synchronized inertial data for various challenging scenarios could also be a future direction.

Summary updated

BibTeX
@misc{li2021gyroflow,
  author = {Haipeng Li and Kunming Luo and Shuaicheng Liu},
  title = {{GyroFlow: Gyroscope-Guided Unsupervised Optical Flow Learning}},
  year = {2021},
  eprint = {2103.13725},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2103.13725},
}
Figure