TL;DR
GyroFlow is the first deep learning framework to fuse gyroscope data with image content for unsupervised optical flow estimation. By converting raw gyro readings into a dense "gyro field," it overcomes the classic failure modes of traditional image-only methods in challenging environments like rain, fog, and low-light conditions.
What Problem Does This Paper Address?
Optical flow estimation—tracking the per-pixel motion between consecutive video frames—is a foundational task in computer vision. Most existing methods, whether traditional or deep learning-based, rely heavily on visual cues and operate under the assumption of brightness and gradient constancy.
However, when a camera operates in challenging real-world conditions like heavy rain, dense fog, or pitch-black night scenes, these visual assumptions completely break down. Image textures disappear, and illumination changes unpredictably, causing standard optical flow algorithms to fail.
Conversely, gyroscopes are entirely immune to visual degradation. They provide precise angular velocities regardless of whether it is day or night, rainy or clear. While gyroscopes can accurately describe global camera rotation (background motion), they cannot capture the independent movement of dynamic foreground objects. The challenge lies in cleanly fusing this non-visual inertial data with visual image content to get the best of both worlds.
Methods
The authors introduce GyroFlow, an unsupervised learning framework that integrates gyroscope guidance into a coarse-to-fine pyramid network architecture. The pipeline consists of two main innovations:
- Gyro Field Generation: Raw 3-axis gyroscope readings and timestamps are extracted directly from the mobile device's Hardware Abstraction Layer (HAL) to ensure tight synchronization. Because most mobile phones use rolling shutters (where rows of pixels are exposed sequentially rather than all at once), a single global rotation matrix is insufficient. The authors group rows into patches, compute individual homographies, and smoothly interpolate the camera orientation using quaternions and Spherical Linear Interpolation (SLERP) to generate a dense, continuous motion field called the gyro field ($G_{ab}$).
- Self-Guided Fusion (SGF) Module: Inserted at each layer of the pyramid decoder, the SGF module dynamically blends the gyro field with the image-derived optical flow features. It uses a Map Block to generate a fusion map ($M_{ab}$) that ranges from 0 to 1, effectively distinguishing static background regions (which align perfectly with the gyro field) from dynamic foreground objects. A Fusion Block then uses this map to guide the network, allowing it to rely on the gyro prior for the background while focusing its visual processing capacity on local foreground details.
Datasets
Because existing standard optical flow benchmarks (like MPI-Sintel and KITTI) lack synchronized gyroscope data, the authors introduced a new dataset:
- GOF (Gyroscope Optical Flow): This dataset contains video sequences captured with a non-OIS smartphone camera alongside perfectly synchronized gyro readings. It includes 5,000 frames for training and a 280-pair evaluation set split across four distinct environmental categories: Regular (RE), Dark, Fog, and Rain. The evaluation set features highly accurate, manually refined ground-truth flow labels.
Key Insights and Ideas
- Decoupling Global and Local Motion: Providing the network with an explicit global motion prior (the gyro field) simplifies the learning problem. The network does not have to waste capacity trying to infer complex camera ego-motion from degraded or textureless visuals; instead, it can focus entirely on resolving fine local motion boundaries.
- The Power of Inertial Priors in the Dark: In extremely low-light scenes where image texture is virtually non-existent, the gyro field alone achieves better performance than many state-of-the-art image-based optical flow networks.
- Rolling Shutter Matters: Failing to account for rolling shutter artifacts completely degrades the utility of gyro data for pixel-level tasks. Row-by-row patch homography modeling is essential for tight visual-inertial alignment.
Key Results
- State-of-the-Art Performance: GyroFlow achieves an average Endpoint Error (EPE) of 0.717 across the entire GOF evaluation set, outperforming the best existing unsupervised method (UFlow) by 26.46%.
- Robustness in Challenging Scenes: In "Dark" scenarios, GyroFlow maintains an EPE of 0.902, whereas standard unsupervised methods like UFlow and ARFlow degrade significantly (errors of 1.641 and 1.205, respectively).
- Sharper Boundaries: Even in regular, well-lit scenes, incorporating the gyro field helps the network produce sharper and cleaner flow boundaries around moving objects compared to baseline methods.
Limitations and Future Work
- Hardware Requirements: GyroFlow strictly requires synchronized gyroscope data at inference time, meaning it cannot be applied to standard legacy video streams or cameras lacking inertial sensors.
- Rotation-Only Assumption: The gyro field generation assumes rotation-only camera motion (or that the scene is distant enough that translation causes negligible parallax). While rotation accounts for the vast majority of high-frequency camera shake on mobile phones, true 3D camera translation is not captured by the gyroscope. The authors note that incorporating accelerometers or full 6-DoF IMU state estimation is a promising direction for future work.
Summary updated