NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Iterative Learning for Instance Segmentation

Tuomas Sormunen, Arttu Lämsä, Miguel Bordallo LópezarXiv 2022

Abstract

Instance segmentation typically requires extensive manual labeling, creating a bottleneck for specialized industrial applications. This paper presents a semi-supervised iterative learning framework that leverages a small "bootstrapping" set of annotated images to generate pseudo-ground truth labels from unannotated data. By iteratively retraining on these self-generated labels, the model achieves high performance with minimal human intervention.

Introduction

Deep learning models for instance segmentation, such as Mask R-CNN, are notoriously data-hungry, often requiring thousands of hand-drawn masks. In specialized fields like industrial visual inspection, generating such datasets is prohibitively expensive and time-consuming. This research explores an iterative learning approach to bridge this gap, aiming to produce complex segmentation masks starting from as little as a single annotated image.

Methods

The proposed pipeline utilizes the Mask R-CNN architecture within the Detectron2 framework and consists of four main phases:

  1. Initiation: A model pre-trained on the COCO dataset is fine-tuned using a minimal "bootstrapping set" (ranging from 1 to 30 manual annotations).
  2. Inference: The bootstrapping model performs inference on a larger unannotated dataset.
  3. Iterative Loop: Detections exceeding a predefined confidence threshold are treated as "ground truth" for subsequent training rounds. The model iteratively refines its masks and discovers new instances.
  4. Evaluation: Performance is measured against a separate, fully annotated test set using standard metrics like Average Precision (AP75).
The proposed iterative learning pipeline, showing the transition from a small bootstrapping set to a self-reinforcing training loop.

Datasets

The framework was evaluated on two real-world datasets representing distinct visual inspection challenges:

  • Coffee Dataset: Microscopic images of coffee grounds, characterized by irregular shapes, overlapping particles, and blurred edges.
  • Fruits Dataset: A public dataset of dates, figs, and hazelnuts, including "distractor" objects (gold-foiled items) to test the model's discriminative capabilities.

Key Insights: The Threshold Tightrope

A critical finding is the sensitivity of the model to the confidence threshold hyperparameter. A low threshold allows for rapid instance discovery but risks introducing noise (false positives) into the training set. Conversely, a high threshold ensures quality but may cause the model to learn too slowly or fail to discover new object variations.

Number of instances discovered over iterations at different confidence thresholds compared to the ground truth.

The balance between training epochs and generalization is also vital; excessive training on a small initial set can lead to overfitting on specific shapes rather than learning the underlying patterns of the unannotated data.

Results

On the Coffee Dataset, the system achieved an AP75 of 58.7% with 30 initial annotations. Remarkably, even with a single manual annotation, the model reached 50.8% AP75. On the Fruits Dataset, the model achieved 100% AP75 within three iterations using a 0.25 threshold. Qualitative analysis confirmed the model's ability to segment heavily overlapping particles, a common failure point for standard detection algorithms.

Limitations and Future Work

The primary limitation observed was "distractor confusion," where the model occasionally segmented non-target objects with similar shapes. Future work will explore integrating clustering modules to improve class differentiation and automating hyperparameter selection to enhance the system's "plug-and-play" utility for non-experts.

Summary updated

BibTeX
@misc{sormunen2022iterative,
  author = {Tuomas Sormunen and Arttu Lämsä and Miguel Bordallo López},
  title = {{Iterative Learning for Instance Segmentation}},
  year = {2022},
  eprint = {2202.09110},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2202.09110},
}
Figure