Unsupervised Learning Layers for Video Analysis

Liang Zhao, Yang Wang, Yi Yang, Wei XuarXiv 2017

Abstract

This paper presents two unsupervised learning layers (UL layers) for label-free video analysis: one for fully connected layers, and the other for convolutional ones. The proposed UL layers can play two roles: they can be the cost function layer for providing global training signal; meanwhile they can be added to any regular neural network layers for providing local training signals and combined with the training signals backpropagated from upper layers for extracting both slow and fast changing features at layers of different depths. Therefore, the UL layers can be used in either pure unsupervised or semi-supervised settings. Both a closed-form solution and an online learning algorithm for two UL layers are provided. Experiments with unlabeled synthetic and real-world videos demonstrated that the neural networks equipped with UL layers and trained with the proposed online learning algorithm can extract shape and motion information from video sequences of moving objects. The experiments demonstrated the potential applications of UL layers and online learning algorithm to head orientation estimation and moving object localization.

Introduction

Deep Neural Networks (DNNs) are notoriously "data-hungry," requiring massive amounts of annotated data to perform well on tasks like image classification or object detection. However, in many real-world domains, labels are expensive or impossible to obtain. Meanwhile, unlabeled video data is virtually infinite. This paper addresses the challenge of extracting useful representations from raw pixels by focusing on inherent temporal constraints. It asks: can we design a layer that inherently understands that the world moves smoothly, and use that "smoothness" as a training signal?

Methodology

The authors propose an objective function based on two competing goals:

  1. Temporal Consistency: Minimize the distance between the representations of consecutive video frames ($y_t$ and $y_{t-1}$).
  2. Information Preservation: Maximize the variance (entropy) of the output to prevent the network from "cheating" by mapping every single frame to the same constant value (a degenerate solution).

Two implementation strategies are provided. For offline analysis, a closed-form solution uses generalized eigenvectors of a Laplacian matrix. For practical applications, an online learning algorithm utilizes a gradient-based update rule with short-term and long-term moving averages. This allows UL layers to be integrated into standard deep learning frameworks and trained via backpropagation. These layers can serve as a final cost function or be inserted between regular hidden layers to provide local training signals, capturing different temporal scales depending on the layer depth.

Experiments and Results

The researchers evaluated their approach across several settings, including synthetic sequences, head orientation estimation, and moving object localization.

Synthetic Sequences and Robustness

Initial testing involved synthetic sequences of 28 randomly selected 2D points rotating around a centroid. These sequences were used to test the model's ability to discover underlying physical laws without labels.

Figure 1: Synthetic sequences used to evaluate the UL layers' ability to extract motion information.

The network successfully encoded the rotation angle of objects in its output. Furthermore, the algorithm demonstrated significant robustness to noise. As shown in the noise level analysis, the error degrades smoothly even when up to 40% noise is added to the input, suggesting the method is robust enough for messy, real-world video.

Figure 5: Error vs. Noise Level, demonstrating the algorithm's robustness to input noise.

Real-World Applications

On the QMUL Multiview Face Dataset, the model learned to estimate head orientation (pan and in-plane rotation) qualitatively well, capturing low-level features like edges in early layers. In moving object localization tasks, such as the "walking man" dataset, the proposed unsupervised method achieved a 96.5% correlation with ground truth, outperforming previous constraint-based methods that relied on more complex physical laws.

Conclusion

The introduction of UL layers provides a versatile framework for label-free video analysis. By enforcing temporal consistency while preserving information, these layers allow neural networks to extract meaningful shape and motion information directly from raw video streams. Future work includes automating hyperparameter tuning for layer depth and extending these constraints to the spatial domain to further improve representation learning.

Summary updated

BibTeX
@misc{zhao2017unsupervised,
  author = {Liang Zhao and Yang Wang and Yi Yang and Wei Xu},
  title = {{Unsupervised Learning Layers for Video Analysis}},
  year = {2017},
  eprint = {1705.08918},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1705.08918},
}
Figure