Unsupervised convolutional neural networks for motion estimation

Aria Ahmadi, Ioannis Patras · DOI

TL;DR

This paper introduces a novel approach to estimating dense motion fields between image pairs using Convolutional Neural Networks (CNNs) trained in an unsupervised manner. By leveraging a differentiable optical flow constraint as the cost function, they enable end-to-end training without requiring ground truth motion data, achieving performance comparable to state-of-the-art supervised methods.

What Problem Does This Paper Address?

Estimating motion fields, which describe how pixels move between consecutive frames in a video, is crucial for many computer vision tasks like video compression, medical imaging, and action recognition. Traditional methods, like the Horn-Schunck method, rely on minimizing a cost function. More recently, Deep Neural Networks (DNNs) have shown promise, but a major hurdle has been the need for large datasets with ground truth motion fields for supervised training. Such ground truth data is scarce, limiting the applicability of supervised DNNs to synthetic datasets or requiring extensive fine-tuning on specific datasets. This paper tackles the challenge of training a motion estimation CNN effectively without relying on this expensive ground truth data.

Methods

The core innovation lies in training a CNN for motion estimation in an unsupervised fashion. Instead of using ground truth, the authors design a cost function based on the classical optical flow constraint: the intensity of a pixel in the reference frame should match the intensity of its corresponding pixel in the target frame after accounting for motion. This constraint is differentiable with respect to the motion field, allowing for backpropagation of errors and end-to-end training of the CNN.

The CNN itself is a fully convolutional network with 12 layers, featuring an encoder-decoder structure. The encoder part creates a compact representation of motion information through downsampling, and the decoder reconstructs the motion field using upsampling. For handling large motion magnitudes, the method incorporates a coarse-to-fine iterative scheme. At test time, the CNN outputs an update to the motion field, which is then used to warp the second frame. This process is repeated iteratively, and the motion field is filtered (using a median filter) after each update.

Datasets

  • Training: The authors trained their Unsupervised CNN (USCNN) on 20,000 pairs of consecutive grayscale frames randomly selected from the UCF101 dataset.
  • Evaluation:
    • UCF101: Tested on 10,000 pairs from the same dataset, ensuring no overlap with training data. For ground truth, they used the output of EpicFlow, which they consider a state-of-the-art method.
  • MPI-Sintel Final: A synthetic dataset used to evaluate generalization capabilities.

Key Insights and Ideas

  • Unsupervised Training is Viable: The paper demonstrates that a simple, differentiable optical flow constraint is sufficient for training a CNN to estimate motion fields effectively, bypassing the need for expensive ground truth data.
  • Differentiable Cost Function is Key: The choice of a differentiable cost function is critical, enabling the backpropagation of errors through the network and facilitating end-to-end learning.
  • Generalization Without Fine-tuning: The trained USCNN shows good generalization to unseen datasets like MPI-Sintel without requiring any further fine-tuning, highlighting the robustness of the unsupervised approach.
  • Coarse-to-Fine for Large Motions: Integrating a coarse-to-fine iterative scheme helps the network handle larger motion magnitudes, a common challenge in optical flow estimation.

Key Results

  • UCF101 Performance: The USCNN achieved comparable performance to state-of-the-art methods on the real UCF101 dataset, particularly for motions less than 5 pixels. For larger motions, its accuracy was slightly lower, as expected from coarse-to-fine methods.
  • MPI-Sintel Performance: On the synthetic MPI-Sintel dataset, the USCNN demonstrated better performance than LDOF and comparable performance to other state-of-the-art methods.
  • Architecture: The proposed CNN architecture is fully convolutional, allowing it to handle input images of varying sizes.

Limitations and Future Work

  • Large Motion Accuracy: The paper acknowledges that for motions larger than 5 pixels, the accuracy of their method (and other coarse-to-fine methods) is somewhat reduced.
  • Comparison to FlowNet: The authors note that direct comparison with FlowNet is difficult as its training network and dataset are not publicly available.
  • Future Work: Not explicitly detailed, but the success of unsupervised training opens avenues for exploring more complex unsupervised cost functions or architectures for motion estimation.

Summary updated

BibTeX
@inproceedings{ahmadi2016unsupervised,
  author = {Aria Ahmadi and Ioannis Patras},
  title = {{Unsupervised convolutional neural networks for motion estimation}},
  booktitle = {ICIP},
  year = {2016},
  doi = {10.1109/icip.2016.7532634},
}
Figure