Recurrent Instance Segmentation

Bernardino Romera-Paredes, Philip Hilaire Sean Torr · DOI

Abstract

Instance segmentation is a fundamental computer vision task that requires identifying and delineating every individual object in an image. Traditional methods often rely on complex, multi-stage pipelines that separate detection from segmentation. This paper introduces Recurrent Instance Segmentation (RIS), a novel end-to-end framework that treats instance segmentation as a sequential process. By utilizing a Convolutional LSTM (ConvLSTM) with spatial memory, the model learns to identify and segment objects one-by-one. This approach effectively addresses the "permutation problem" and handles occlusions by maintaining an internal state of previously discovered instances. Experimental results on plant phenotyping and person segmentation datasets demonstrate that RIS achieves state-of-the-art performance, particularly in challenging counting tasks.

Introduction

Instance segmentation represents a significant leap beyond simple object detection. While detection provides bounding boxes, instance segmentation requires pixel-level precision for each distinct object. Most existing approaches at the time of this research utilized a "divide and conquer" strategy: generating object proposals, classifying them, and then refining masks. However, these independent modules often fail to benefit from joint learning. Furthermore, standard pixel-wise loss functions struggle with the inherent lack of order in object instances—the "permutation problem."

Methods: The RIS Architecture

The authors propose Recurrent Instance Segmentation (RIS), an end-to-end model designed to segment instances sequentially, mimicking the human process of scanning a scene to count objects.

Overview of the RIS architecture showing the sequential extraction of object masks from an input image.

The architecture consists of several key components:

  1. Feature Extraction: An input image is processed by a Fully Convolutional Network (FCN) to produce a rich feature map.
  2. Recurrent Engine: A Convolutional LSTM (ConvLSTM) serves as the core of the system. Unlike standard LSTMs, the ConvLSTM maintains spatial dimensions in its hidden state, acting as a "spatial memory" that tracks which parts of the image have already been segmented.
  3. Spatial Inhibition Module: To ensure the model focuses on a single object at each time step, a log-softmax layer is applied across the spatial map. This creates a competitive environment where only the most confident object mask is produced in the current iteration.
  4. Bipartite Matching Loss: To train the model without enforcing an arbitrary order on objects, the authors use a loss function based on the Hungarian algorithm. This ensures the predicted sequence of masks is compared against the ground truth in the most optimal way, making training invariant to the order of discovery.
Detailed view of the recurrent unit's output branches for mask generation and confidence estimation.

As shown in the detailed view of the recurrent unit, the model branches into two paths: one for generating the high-resolution mask (via upsampling) and another for estimating the confidence score of the current detection.

Experimental Evaluation

The RIS model was evaluated on two distinct and challenging datasets:

  • Plant Phenotyping (CVPPP): Specifically the A1 subset of leaf images. This dataset is particularly difficult because leaves often overlap and look nearly identical, requiring precise instance-level separation for accurate counting.
  • Multiple Person Segmentation: The model was trained on MSCOCO and evaluated on the Pascal VOC 2012 validation set, testing its ability to handle complex human poses and occlusions.

Key Results

The RIS framework demonstrated significant improvements over existing methods:

  • Leaf Counting: On the CVPPP dataset, RIS achieved a "Difference in Count" (DiC) of 0.2, a substantial improvement over previous state-of-the-art methods which ranged from 0.8 to 3.6.
  • Person Segmentation: On Pascal VOC 2012, the model achieved an Average Precision ($AP^r$) of 50.1 (with CRF post-processing), outperforming contemporary methods like MNC and SDS.
  • Handling Occlusion: Qualitatively, the model showed a remarkable ability to "hallucinate" the full shape of partially occluded objects, leveraging its internal spatial memory to understand object continuity.

Conclusion and Future Work

Recurrent Instance Segmentation offers a powerful alternative to traditional proposal-based methods by treating segmentation as a sequential discovery process. While the model excels at counting and handling occlusions, some limitations remain. The initial masks can be "blobby" due to the lower resolution of the ConvLSTM feature maps, currently requiring a CRF for sharpening. Future work could involve integrating edge-refinement directly into the network and extending the model to handle a wider variety of object classes simultaneously.

Summary updated

BibTeX
@inproceedings{romeraparedes2016recurrent,
  author = {Bernardino Romera-Paredes and Philip Hilaire Sean Torr},
  title = {{Recurrent Instance Segmentation}},
  booktitle = {European Conference on Computer Vision},
  year = {2016},
  doi = {10.1007/978-3-319-46466-4\_19},
}
Figure