Learning to Extract Motion from Videos in Convolutional Neural Networks

Damien Teney, Martial Hebert

Introduction

In modern video analysis, such as action recognition, researchers typically employ a "two-stream" approach. This involves one Convolutional Neural Network (CNN) processing RGB frames for spatial appearance and a separate CNN processing pre-computed optical flow for temporal motion. However, relying on external, classical optical flow algorithms creates a significant bottleneck. It prevents end-to-end training from raw pixels and limits the motion representation's ability to be fine-tuned for specific downstream tasks.

Furthermore, traditional optical flow methods often struggle with dynamic textures (like rippling water) or transparent, overlapping motions due to rigid assumptions like brightness constancy. While deep learning alternatives like FlowNet exist, they require massive datasets and deep architectures to learn motion from scratch. This paper introduces a lightweight CNN designed to extract dense optical flow directly from raw video frames by baking classical signal processing principles and strict rotation invariance into the network architecture.

Architecture and Methodology

The authors derive their architecture directly from the classical "motion energy model" used in signal processing, implemented as a fully convolutional network. To ensure efficiency and reduce data requirements, the network incorporates several built-in physical invariances:

  • Local Normalization: The model uses local brightness subtraction and contrast normalization.
  • Phase Invariance: By squaring filter responses and applying max-pooling, the network ignores whether an edge transitions from dark-to-light or light-to-dark.
  • Strict Rotation Invariance: The weights of the convolutional layers are mathematically constrained so that filters for different orientations are strictly rotated versions of a single canonical filter. This reduces the number of learned filters by a factor of 24, eliminating the need for massive data augmentation.
The proposed fully convolutional architecture for dense optical flow extraction, showing the progression from input frames through convolutional and pooling layers to the final dense flow.

To handle larger motions, the network employs a multiscale approach, processing downscaled versions of the input and utilizing a recurrent "coarse-to-fine" warping step to iteratively refine the flow.

Distributed Representation and Key Insights

A standout feature of this model is its use of a distributed decoding layer. Before outputting a final 2D flow vector, the network generates a softmax distribution over discrete speeds and orientations. This allows the model to represent multiple motions at a single pixel, enabling it to successfully model transparencies and complex textures where traditional algorithms fail.

The pipeline from input frames to a distributed representation over orientations and speeds, which is then projected as a final flow map.

By designing network layers to mimic known signal processing properties, the network is guided toward the correct solution with minimal data. Remarkably, the model can be trained on as few as 8 video sequences from the Middlebury dataset while remaining competitive with engineered methods.

Experimental Results

Despite its lightweight nature and tiny training set, the model achieves an End-Point Error (EPE) of 0.70 on the Middlebury private test set. Qualitatively, the network excels at estimating motion in complex dynamic textures like steam or water and can identify overlapping transparent motions, such as a person moving behind a fence.

Ablation studies confirmed that the custom normalizations and rotation constraints are critical; without them, the network fails to converge on such small datasets. However, the model does have limitations: the reliance on local spatiotemporal filters results in somewhat blurry flow maps, and it struggles with the large, fast motions found in datasets like MPI Sintel (EPE of 10.04).

Conclusion

This research demonstrates that physics-informed deep learning can be highly efficient. By constraining the network with established signal processing principles, the authors created a differentiable "building block" for motion extraction. This lightweight architecture is ideally suited for integration into deeper systems for high-level tasks like video classification, where the motion representation can be fine-tuned end-to-end to serve the specific needs of the broader system.

Summary updated

BibTeX
@inproceedings{teney2016learning,
  author = {Damien Teney and Martial Hebert},
  title = {{Learning to Extract Motion from Videos in Convolutional Neural Networks}},
  booktitle = {ACCV},
  year = {2016},
  url = {https://openreview.net/forum?id=gUMIA0749Au},
}
Figure