Disentangling Motion, Foreground and Background Features in Videos

Xunyu Lin, Victor Campos, Xavier Giró-i-Nieto, Jordi Torres, Cristian Canton-FerrerarXiv 2017

Abstract

This paper introduces an unsupervised framework to extract semantically rich features for video representation. Inspired by how the human visual system groups objects based on motion cues, we propose a deep convolutional neural network that disentangles motion, foreground and background information. The proposed architecture consists of a 3D convolutional feature encoder for blocks of 16 frames, which is trained for reconstruction tasks over the first and last frames of the sequence. A preliminary supervised experiment was conducted to verify the feasibility of proposed method by training the model with a fraction of videos from the UCF-101 dataset taking as ground truth the bounding boxes around the activity regions. Qualitative results indicate that the network can successfully segment foreground and background in videos as well as update the foreground appearance based on disentangled motion features. The benefits of these learned features are shown in a discriminative classification task, where initializing the network with the proposed pretraining method outperforms both random initialization and autoencoder pretraining. Our model and source code are publicly available at https://imatge-upc.github.io/unsupervised-2017-cvprw/ .

Introduction

Deep learning typically thrives on massive, human-annotated datasets. However, labeling video data is incredibly expensive and time-consuming. Meanwhile, the world is full of unlabeled video data that humans learn from naturally without explicit supervision. The challenge in computer vision is how to build an internal representation of the world’s dynamics—the "what," "where," and "how"—from raw pixels alone. Previous unsupervised methods often struggled to separate the static "where" (background) from the dynamic "what" (foreground) and the "how" (motion). This paper tackles the problem of feature disentanglement: ensuring that the neural network learns specific features for specific roles.

Methodology

The authors propose an autoencoder-styled architecture using a 3D Convolutional Neural Network (C3D) as the encoder. The core innovation lies in how the "bottleneck" (the compressed representation of the video) is handled. The encoder’s output is partitioned into three separate feature sets: Foreground, Background, and Motion. These features are fed into specialized decoders. One reconstructs the background, while another reconstructs the foreground.

To learn motion, the model tries to predict the foreground of the last frame in a sequence by applying the "Motion" features to the foreground of the first frame. This is achieved using cross-convolution, where motion features act as kernels that transform the appearance features. The model is trained by minimizing the L1 distance between the original frames and the reconstructed versions. To prevent the background features from "cheating" and storing foreground info, the authors use segmentation masks to weight the loss function.

The proposed architecture disentangles video features into motion, foreground, and background components for frame reconstruction.

Results and Discussion

The researchers evaluated their framework using a subset of the UCF-101 action recognition dataset. When the pretrained encoder was fine-tuned for action recognition, it achieved 62.5% accuracy. This significantly outperformed both random initialization (52.2%) and a standard unsupervised autoencoder (56.8%). A 10% jump over random initialization demonstrates that the disentangled features are much more semantically meaningful.

Comparison of action recognition accuracy across different initialization methods on the UCF-101 subset.

Qualitatively, the network showed an ability to generalize the foreground. In one example, even though only a person was labeled in the ground truth, the network's reconstructed foreground also included the dog walking beside them, proving it learned "foreground" based on motion cues rather than just mimicking the provided boxes. However, the reconstructed frames are currently blurry due to the L1 loss, which tends to produce "average" results when uncertain.

Conclusion

The proposed framework successfully separates static backgrounds from moving actors and updates foreground appearance based on disentangled motion features. Future work aims to use Generative Adversarial Networks (GANs) for sharper results and integrate automated segmentation methods like uNLC to make the pipeline truly unsupervised, removing the need for manual masks.

Summary updated

BibTeX
@misc{lin2017disentangling,
  author = {Xunyu Lin and Victor Campos and Xavier Giró-i-Nieto and Jordi Torres and Cristian Canton-Ferrer},
  title = {{Disentangling Motion, Foreground and Background Features in Videos}},
  year = {2017},
  eprint = {1707.04092},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1707.04092},
}
Figure