Recurrent Fully Convolutional Networks for Video Segmentation

Sepehr Valipour, Mennatullah Siam, Martin Jägersand, Nilanjan Ray

TL;DR

This paper introduces a novel architecture for video segmentation that combines Fully Convolutional Networks (FCNs) with Convolutional Gated Recurrent Units (Conv-GRUs). By replacing standard matrix multiplications with 2D convolutions inside the recurrent memory units, the model successfully captures temporal dynamics across video frames without losing spatial information or exploding the parameter count, enabling efficient, end-to-end video segmentation.

What Problem Does This Paper Address?

While Convolutional Neural Networks (CNNs) and FCNs have driven massive leaps in single-image segmentation, the real world is not a set of static images. Much of the visual information we process relies on motion and temporal context.

Historically, researchers tried to solve video segmentation by either concatenating multiple frames together (which is highly inefficient and yields marginal gains) or by feeding CNN features into standard Recurrent Neural Networks (RNNs). The problem with standard RNNs (like LSTMs or GRUs) is that they require 1D vector inputs. Flattening a 2D image or feature map destroys crucial spatial connectivity and results in massive, computationally prohibitive weight matrices. The authors tackle this gap by designing a network that inherently understands both the 2D spatial layout of an image and the temporal changes across a sequence of frames, all while operating in an "online" (frame-by-frame) fashion.

Methods

The authors propose a Recurrent Fully Convolutional Network (RFCN). The architecture takes a standard FCN (like VGG-16 cast to fully convolutional layers) and inserts a recurrent layer before the final deconvolution (upsampling) step.

The key innovation is the use of a Convolutional Gated Recurrent Unit (Conv-GRU).

  • Standard GRU: Uses dot products on flattened vectors. If you feed it a feature map, the weights matrix grows to the power of four relative to the spatial dimensions, making it impossible to train on anything but tiny images.
  • Conv-GRU: Replaces the dot products in the GRU gating equations with 2D convolutions. This preserves the $h \times w$ spatial dimensions of the feature maps and drastically reduces the number of learnable parameters by sharing weights across the spatial domain.

The network is trained end-to-end using a sliding window approach over the video frames, outputting a pixel-wise segmentation map for the last frame in the window.

Datasets

The authors evaluated their models on a mix of synthetic and real-world datasets:

  • Moving MNIST: A synthesized dataset of moving digits, used for baseline testing and architecture validation.
  • Change Detection Dataset: Realistic videos focusing on moving object segmentation (e.g., pedestrians, cars).
  • SegTrack V2: 14 video sequences with manually segmented objects of interest, featuring both single and multiple objects.
  • DAVIS (Densely Annotated Video Segmentation): 50 high-resolution videos featuring complex real-world challenges like occlusions, fast motion, nonlinear deformation, and motion blur.

Key Insights and Ideas

  • Spatial structure matters in memory: Flattening feature maps to feed into standard RNNs is a fundamental mismatch for vision tasks. Conv-GRUs prove that keeping the 2D structure intact inside the recurrent gates is crucial for learning motion patterns efficiently.
  • Implicit motion learning: The recurrent units learn the motion of segmented objects implicitly. The network doesn't need explicit optical flow calculations fed into it; it learns to track the object based on the temporal evolution of the feature maps.
  • Strategic placement of the recurrent node: By placing the Conv-GRU before the deconvolution (upsampling) layer, the network operates on a compressed, coarse state space. This speeds up training, reduces memory footprint, and helps the optimizer find better generalized local minima.

Key Results

The addition of temporal memory via Conv-GRUs provided a clear quantitative boost over static, frame-by-frame baselines:

  • On the SegTrack V2 dataset, the recurrent RFC-VGG achieved a ~5% improvement in F-measure over the baseline static FC-VGG (77.67% vs. 72.54%).
  • On the challenging DAVIS dataset, RFC-VGG showed a ~3% improvement in F-measure (63.04% vs. 60.66%).
  • In ablation studies on Moving MNIST, GRU architectures outperformed LSTMs.
  • Qualitatively, the recurrent network produced much cleaner, tighter segmentation masks around moving objects. It was better at ignoring background noise and maintaining the shape of the object through occlusions compared to the frame-by-frame baseline.

Limitations and Future Work

The authors note that the performance of the RFCN is inherently tied to its baseline FCN counterpart. If the base network extracts poor spatial features, the recurrent unit's ability to improve the segmentation is limited.

For future work, the authors suggest extending the framework from binary foreground/background tracking to full semantic video segmentation (multi-class). They also propose stacking multiple recurrent layers to capture richer, more complex dynamic representations, and integrating the Conv-GRU module into newer, state-of-the-art base segmentation architectures.

Summary updated

BibTeX
@inproceedings{valipour2017recurrent,
  author = {Sepehr Valipour and Mennatullah Siam and Martin Jägersand and Nilanjan Ray},
  title = {{Recurrent Fully Convolutional Networks for Video Segmentation}},
  booktitle = {IEEE/CVF Winter Conference on Applications of Computer Vision},
  year = {2017},
  url = {https://openreview.net/forum?id=oOIR3pBauUy},
}
Figure