Sensor-Guided Optical Flow

Matteo Poggi, Filippo Aleotti, Stefano MattocciaICCV 2021

Abstract

This paper proposes a framework to guide an optical flow network with external cues to achieve superior accuracy either on known or unseen domains. Given the availability of sparse yet accurate optical flow hints from an external source, these are injected to modulate the correlation scores computed by a state-of-the-art optical flow network and guide it towards more accurate predictions. Although no real sensor can provide sparse flow hints, we show how these can be obtained by combining depth measurements from active sensors with geometry and hand-crafted optical flow algorithms, leading to accurate enough hints for our purpose. Experimental results with a state-of-the-art flow network on standard benchmarks support the effectiveness of our framework, both in simulated and real conditions.

Introduction

Optical flow estimation—the task of determining pixel-level motion between consecutive video frames—is a cornerstone of computer vision, essential for autonomous driving and robotics. While deep learning has significantly advanced the field, two major hurdles remain: domain shift and challenging environmental conditions. Models trained on synthetic data often struggle with real-world noise, and areas with low texture or motion blur can cause networks to "hallucinate" incorrect motion.

Researchers from the University of Bologna have developed a framework that uses sparse external "hints" (e.g., from a LiDAR or ToF sensor) to guide deep learning models toward more accurate predictions, helping them generalize from synthetic training data to complex real-world scenes.

Methodology

The Guidance Mechanism (QRAFT)

Most state-of-the-art flow networks, like RAFT, compute correlation scores—essentially a 2D map of how likely a pixel in one frame matches a pixel in the next—at 1/8th the image resolution. The authors argue that this resolution is too coarse for precise guidance. They introduce QRAFT (Quarter-resolution RAFT), which operates at 1/4th resolution.

When a sparse hint is available, the framework applies a 2D Gaussian modulation to the correlation scores. This effectively "nudges" the network to look closer to the hinted value while still allowing it to use its learned features to refine the final estimate. This soft constraint acts as a prior, ensuring that even if a hint is slightly inaccurate, the network can still find the correct match nearby.

Gaussian modulation of correlation scores: (a) raw scores, (b) the Gaussian prior from a hint, and (c) the resulting modulated scores.

Generating the Hints

Since sensors do not measure flow directly, the authors built a pipeline to create a "virtual" flow sensor:

  • Ego-motion Flow: For static regions, they use LiDAR depth and camera pose to calculate how pixels move due to the camera's own movement.
  • Dynamic Objects: They use a hand-crafted algorithm (RICFlow) combined with an instance segmentation network (Mask R-CNN) to identify and estimate the motion of dynamic objects like cars.
  • Filtering: A forward-backward consistency check removes noisy or unreliable hints before they reach the network.

Key Results

The models were evaluated on standard benchmarks including Sintel and KITTI. The results demonstrate that sensor guidance significantly improves generalization. When trained only on synthetic data and tested on real KITTI data, QRAFT with guidance reduced the outlier percentage (Fl) from 32.50% to 19.99%.

Qualitative comparison between unguided (b) and sensor-guided (c) optical flow on a real-world scene.

In simulated tests with 3% hint density, QRAFT achieved a massive improvement on the Sintel Final benchmark, dropping the End-Point Error (EPE) from 2.45 to 1.22. The system also proved effective with the noisy, low-resolution ToF sensor of a smartphone, vastly outperforming unguided models in tricky lighting conditions.

Conclusion

By treating external sensor data as a soft prior rather than an absolute constraint, the Sensor-Guided Optical Flow framework successfully mitigates the weaknesses of purely data-driven models. As active depth sensors become more common in consumer devices, this hybrid approach of combining geometric algorithms with deep learning offers a practical path toward more robust computer vision.

Summary updated

BibTeX
@inproceedings{poggi2021sensor,
  author = {Matteo Poggi and Filippo Aleotti and Stefano Mattoccia},
  title = {{Sensor-Guided Optical Flow}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2021},
  url = {https://openreview.net/forum?id=DoCaFSqMxj},
}
Figure