TL;DR
This paper introduces Recurrent Instance Segmentation (RIS), an end-to-end framework that segments objects in an image one by one using a recurrent neural network. By incorporating spatial memory and a permutation-invariant loss function, the model handles occlusions and varying object counts more naturally than traditional multi-stage pipelines.
What Problem Does This Paper Address?
Instance segmentation—the task of delineating every individual object in an image—is significantly more complex than semantic segmentation. While semantic segmentation simply asks "what class is this pixel?", instance segmentation must also answer "which specific object does this pixel belong to?"
The authors identify two major flaws in the state-of-the-art methods of 2016:
- Piecewise Pipelines: Most methods rely on a "proposal-then-classify" approach (like R-CNN). Because these modules are trained independently, they miss out on the benefits of joint, end-to-end learning.
- The Order Problem: Images are sets of objects, not sequences. Traditional networks struggle to output a variable number of objects because there is no inherent order (e.g., should the person on the left or right be "Person 1"?).
Methods
The authors propose a model inspired by how humans count: we scan a scene sequentially, using spatial memory to keep track of what we’ve already accounted for.
The RIS architecture consists of three main components:
- Feature Extraction: A Fully Convolutional Network (FCN) processes the image into a high-dimensional feature map.
- Recurrent Processing: Instead of standard LSTMs, the authors use Convolutional LSTMs (ConvLSTMs). These replace fully connected layers with convolutions, allowing the network’s "memory" to preserve the spatial layout of the image.
- Spatial Inhibition Module: This module transforms the hidden state into a single instance mask and a confidence score. It uses a log-softmax layer to create a "competing mechanism" between pixels, effectively forcing the network to focus on exactly one object at a time.
To train this sequence-based model on unordered ground truth data, the authors designed a principled loss function. They use the Hungarian algorithm to find the best possible matching between the predicted sequence of masks and the ground truth set. This makes the training process invariant to the order in which the network chooses to find objects.
Datasets
The model was evaluated on two distinct challenges:
- Pascal VOC 2012 & MSCOCO: Used for multiple person segmentation. This is a high-variance dataset involving different postures, clothing, and depths.
- CVPPP (Plant Phenotyping): Specifically the A1 subset, which involves counting and segmenting leaves on plants. This dataset is challenging due to leaf occlusions and complex shapes.
Key Insights and Ideas
- Spatial Memory as an Occlusion Handler: Because the ConvLSTM maintains a state of "visited" pixels, it can implicitly handle occlusions. If the network segments a foreground object in step one, its memory "knows" that area is explained, making it easier to identify the partially hidden object behind it in step two.
- Permutation Invariance: The use of the Hungarian algorithm in the loss function is a clever way to bridge the gap between a sequential model and a set-based problem. It allows the model to decide its own optimal "scanning" order.
- Curriculum Learning: The authors found success by starting training on images with very few objects and gradually increasing the number of objects the network was required to find.
Key Results
The RIS model demonstrated strong performance across both tasks:
- Leaf Counting: The method significantly outperformed all previous state-of-the-art approaches on the CVPPP dataset, achieving an absolute Difference in Count (|DiC|) of 1.1, compared to the next best at 1.3.
- Person Segmentation: On Pascal VOC 2012, the model achieved an Average Precision ($AP^r$) of 50.1 when combined with a Conditional Random Field (CRF) post-processing step, outperforming contemporary methods like SDS.
Qualitatively, the "Spatial Inhibition" module (shown in Figure 2) proved effective at isolating single instances from the complex feature maps generated by the FCN.
Limitations and Future Work
- Coarse Boundaries: Because the ConvLSTM operates on a lower-resolution feature map to save memory, the resulting masks are somewhat coarse. The authors currently rely on a CRF post-processing step to sharpen these boundaries.
- Data Efficiency: The model struggled to learn complex leaf shapes from scratch on the small CVPPP training set, suggesting that the end-to-end approach requires significant data or better pre-training to handle high geometric complexity.
- Multi-Class Extension: This paper focused on class-specific segmentation (e.g., "find all people"). A natural next step is extending the loss function to handle multiple object classes simultaneously.
Summary updated