Unsupervised Learning Optical Flow by Robust Reconstruction and Edge-Aware Smoothing

Lingtong Kong, Jie Yang

Abstract

Optical flow estimation is a fundamental task in computer vision, yet high-performing supervised models are often limited by the scarcity of real-world ground-truth data. This paper presents a novel unsupervised framework that leverages a structural similarity (SSIM) based reconstruction loss and an edge-aware smoothing term. By moving beyond the traditional "brightness constancy" assumption, the proposed method achieves state-of-the-art unsupervised performance on both synthetic and real-world benchmarks, demonstrating significant robustness to lighting changes and shadows.

Introduction

Estimating per-pixel motion between video frames, known as optical flow, is critical for applications ranging from autonomous driving to video editing. While deep learning has significantly advanced the field, most top-tier models rely on massive supervised datasets. Generating ground truth for real-world scenes is prohibitively expensive and often technically limited (e.g., sparse LiDAR data).

Furthermore, existing unsupervised methods frequently depend on the brightness constancy assumption, which posits that a pixel's intensity remains constant as it moves. In practice, this assumption is frequently violated by shadows, reflections, and varying illumination. This research addresses these challenges by introducing a learning framework that is both unsupervised and resilient to environmental noise.

Proposed Method

The framework utilizes a PWC-Net style architecture, employing a coarse-to-fine strategy. It consists of a Siamese Pyramid Network for feature extraction and a Flow Estimation Network that predicts motion across five distinct scales.

The proposed unsupervised learning framework, highlighting the Siamese Pyramid Network, Flow Estimation Network, and the integration of Robust Reconstruction and Edge-Aware Smooth losses.

Core Loss Functions

The primary innovation lies in the design of the loss functions:

  1. Robust Reconstruction Loss: Instead of a standard $L_1$ loss, the authors incorporate Structural Similarity (SSIM). By comparing local patterns of pixel intensities rather than raw brightness, the model becomes resilient to global and local illumination shifts.
  2. Edge-Aware Smooth Loss: To ensure natural flow fields, a smoothing constraint is applied. This constraint is "edge-aware," using image gradients to align motion boundaries with object boundaries, preventing motion "bleeding" between foreground and background.
  3. Differentiable Warping: A spatial transformer module warps the second frame back to the first based on predicted flow, enabling end-to-end unsupervised training.

Experimental Setup and Datasets

The model was evaluated on two key benchmarks:

  • Flying Chairs: A synthetic dataset of 22,232 image pairs featuring 3D chair models. This served as the initial training ground.
  • KITTI (2012 & 2015): A real-world dataset from a moving vehicle, characterized by complex lighting and reflections. The authors utilized 789 image pairs for unsupervised fine-tuning.

Results and Key Insights

The proposed method outperformed several established unsupervised baselines in terms of End Point Error (EPE). On the Flying Chairs dataset, it achieved an EPE of 4.01, a marked improvement over previous methods. On KITTI 2012, the model reached an EPE of 3.11 in non-occluded areas.

Qualitative results on synthetic datasets, showing input images alongside their corresponding estimated flow fields.

Key findings include:

  • SSIM Superiority: SSIM is significantly more effective than $L_1$ loss for real-world scenes like KITTI, where shadows are prevalent.
  • Multi-Scale Optimization: Applying robust losses across all five levels of the feature pyramid allows the model to capture both large displacements and fine details.
  • Border Masking: Masking pixels near image borders during training improved performance on KITTI by mitigating the impact of heavy occlusions at the edges.

Conclusion

This work demonstrates that unsupervised optical flow estimation can achieve high accuracy by focusing on structural similarity and edge-aware constraints. While the model shows strong generalization, future work may involve explicit occlusion reasoning—such as predicting occlusion masks—to further enhance performance at image boundaries and in complex scenes.

Summary updated

BibTeX
@article{kong2019unsupervised,
  author = {Lingtong Kong and Jie Yang},
  title = {{Unsupervised Learning Optical Flow by Robust Reconstruction and Edge-Aware Smoothing}},
  journal = {Aust. J. Intell. Inf. Process. Syst},
  year = {2019},
}
Figure