Self-supervised Segmentation by Grouping Optical-Flow

Aravindh Mahendran, James Thewlis, Andrea Vedaldi

Abstract

The $S^3$-CNN framework teaches a neural network to understand objects in static images by observing their motion in videos. By using optical flow as a "free" supervisory signal to group pixels with coherent motion during training, the model learns a rich feature representation that can be used for image segmentation and object recognition without requiring any manual human labels.

Introduction

Deep learning typically requires massive amounts of manually labeled data, such as ImageNet, to learn useful visual features. This dependency is expensive and scales poorly. To address this, researchers have turned to self-supervised learning, where models perform "proxy tasks" using naturally available data.

This paper addresses the challenge of learning object-level concepts from raw video. It leverages the Gestalt principle of "common fate"—the idea that pixels belonging to the same object tend to move together. The goal is to create a model that can segment an object in a single static image, having learned what an "object" looks like by observing motion patterns in the past.

Methodology

The authors introduce the Self-Supervised Segmentation-CNN ($S^3$-CNN). The core idea is to train a Fully Convolutional Network (FCN) to predict a segmentation mask from a single input image.

The S3-CNN framework and the Affine Motion Loss mechanism.

The training process utilizes optical flow as a supervisory signal through a coherence objective. The loss function encourages the model to find segments where the motion is coherent. Two primary loss variants are proposed:

  1. Affine Motion Loss: This fits a geometric affine transform to the motion within a predicted segment, making it ideal for rigid objects or distinct parts.
  2. Low Entropy Motion Loss: Designed for noisy, real-world data, this variant calculates a histogram of motion magnitudes within a segment and minimizes its entropy, forcing the segment to cover an area with consistent speed.

Crucially, at inference time, the optical flow is discarded. The model segments the image based solely on the visual features it learned during the motion-observation phase.

Datasets and Evaluation

The model was pre-trained on 150,000 video sequences from the YFCC100m dataset. Evaluation was conducted across several benchmarks:

  • Synthetic Cubes: A toy dataset of rotating and translating cubes to validate the affine model.
  • MPI Sintel: An animated movie dataset used to test segmentation of complex characters.
  • YouTube Objects: Real-world videos used to test the robustness of the entropy loss.
  • Pascal VOC 2007: A standard classification task used to measure how well the self-supervised features transfer to general computer vision tasks.

Key Results and Insights

The $S^3$-CNN achieves impressive data efficiency, reaching competitive performance with only 150k images, whereas competing methods often require millions. When fine-tuned for object classification on Pascal VOC 2007, the VGG-16 based $S^3$-CNN achieved 76.35% mAP, performing comparably to leading self-supervised methods like "Colorization" (77.2%).

Qualitative segmentation results on synthetic cubes, Sintel characters, and real-world YouTube objects.

Qualitatively, the model successfully learned to segment heads and bodies in the Sintel dataset and isolated animals in the YouTube Objects dataset. This demonstrates that motion-based training translates to meaningful spatial boundaries in static images.

Discussion and Limitations

While promising, the method relies heavily on the quality of optical flow. In real-world footage, flow can be noisy, necessitating the use of the simpler "histogram entropy" loss. Additionally, handling complex ego-motion (camera movement) remains a computational challenge. Future work may involve refining these segments by combining self-supervised approaches with small amounts of labeled data to achieve the precision of fully supervised models.

Summary updated

BibTeX
@inproceedings{mahendran2018self,
  author = {Aravindh Mahendran and James Thewlis and Andrea Vedaldi},
  title = {{Self-supervised Segmentation by Grouping Optical-Flow}},
  booktitle = {Workshops @ ECCV},
  year = {2018},
  doi = {10.1007/978-3-030-11021-5\_31},
}
Figure