Weakly Supervised Instance Segmentation

Machine Learning
Introduced by
Multiple contributors (e.g., Hsu et al., Khoreva et al.)
Year
2015–2019
Type
Weakly supervised deep learning for pixel-wise instance delineation
Family
Deep learning / NLP / CV

What does it do?

Weakly supervised instance segmentation trains deep networks to delineate individual object instances at pixel level using cheaper, incomplete annotations, such as bounding boxes, image-level labels, or point clicks, instead of full pixel-wise masks.

It aims to produce an instance-level mask for each object while reducing annotation effort. Mask quality is generally below that of fully supervised training, and the size of the gap depends on the weak signal used.

The intuition behind the method

Full instance segmentation requires annotators to draw precise pixel boundaries around every object, which is slow and costly at scale. Weakly supervised methods learn from coarser signals: a bounding box indicates where an object roughly lies, an image-level tag indicates which categories appear, and a click marks an object's centre. The model then infers the detailed mask boundary from these cues, often by combining geometric priors, self-training on its own predictions, or auxiliary losses derived from the weak labels. Masks obtained this way are typically less accurate at the boundary than masks learned from full annotation.

History

Interest in weakly supervised instance segmentation grew in roughly 2015–2019, alongside fully convolutional networks and Mask R-CNN. Hsu et al. (2019) introduced the bounding-box tightness prior as a training signal for weakly supervised instance segmentation at NeurIPS. Image-level localisation builds on the observation that CNNs trained for classification can expose discriminative image regions, as shown by Zhou et al. (2016).

When to use it

Choose weakly supervised instance segmentation when you need instance-level masks for many images, a full pixel-annotation budget is not available, and bounding boxes (or image-level labels) can be collected per instance. It suits domains where mask annotation is a bottleneck, such as medical imaging, satellite imagery, or industrial inspection. Do not use it when precise boundaries are essential and a sufficiently large set of mask-annotated images exists, because a fully supervised model such as Mask R-CNN is then expected to outperform it. Avoid it also for highly irregular or heavily occluded objects, where weak cues may not give enough spatial guidance. Image-level labels alone are a poor fit for dense scenes with many instances of the same class.

Limitations and considerations

  • Masks generally trail fully supervised methods, especially on thin structures and at occluded boundaries.
  • The tightness prior assumes each box is tight and axis-aligned; rotated or loosely drawn boxes violate this assumption.
  • Image-level supervision gives no spatial cue to separate overlapping instances of the same class.
  • Self-training can amplify early errors, so mistakes can propagate across pseudo-label rounds.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Replaces pixel masks with bounding boxes or image-level labels, lowering annotation cost.
  • Can use standard instance segmentation architectures such as Mask R-CNN or YOLACT, changing mainly the supervision signal.
  • Self-training on pseudo-labels can improve masks over successive rounds without additional human annotation.
  • Makes instance masks feasible in domains where full mask annotation is impractical at scale.
  • Boundary regularisation such as CRF post-processing can be applied without mask-level ground truth.

Applications

  • Medical image analysis, where pixel-level annotation by clinicians is expensive and time-consuming.
  • Satellite and aerial imagery segmentation of buildings, vehicles, or agricultural parcels using bounding-box labels.
  • Industrial defect detection and quality inspection with box-annotated defect regions.
  • Biological image analysis, such as cell or plant instance delineation in microscopy.

How it works

How it works

1

Instead of pixel-wise masks, the training images carry a weaker signal. The most common setting is a bounding box around each instance. Other options are image-level category labels, scribbles, or one click per object. Drawing a box is usually quicker than tracing a polygon mask.

2

A region proposal network or anchor-based detector proposes candidate instance regions. With box supervision, the ground-truth box supplies the spatial region of interest. With image-level supervision, class activation maps (CAMs) are used first to localise objects, since CNNs trained on image labels can expose discriminative image regions (Zhou et al.).

3

A loss is built from the weak labels. For bounding-box supervision, a tightness prior requires the predicted mask to touch all four edges of its box. For image-level labels, a classification loss on pooled feature maps guides localisation. Additional regularisation, such as GrabCut-style priors or conditional random fields, can sharpen boundaries without mask-level ground truth.

4

A mask head, often adapted from Mask R-CNN or a similar framework, predicts a binary mask for each proposal under the weak supervision signal. It learns to separate foreground from background within the proposed region.

5

Masks predicted in an initial round can serve as pseudo-labels for later self-training rounds, so mask quality may improve over iterations. Errors made in early rounds can carry forward, so pseudo-labels should be checked before reuse. Optional post-processing such as dense CRF or bilateral filtering can further align boundaries with image edges.

Common pitfalls

  • Assuming bounding boxes are tight. Loose boxes make the tightness prior treat background as foreground.
  • Stopping after the first round and treating its pseudo-labels as ground truth.
  • Relying on image-level labels for dense, multi-instance scenes, where localisation is ambiguous.
  • Reporting only mask IoU. Standard mask IoU can hide poor contour accuracy, so boundary metrics such as Boundary IoU or the F-measure should also be reported.
  • Applying the method to heavy occlusion or very small instances without dedicated handling, which leads to missed or merged instances.

Frequently asked questions

What is the most common form of weak supervision for instance segmentation?

Bounding-box annotations are a widely used weak signal because they are comparatively easy to collect, spatially informative, and compatible with tightness-prior losses. Image-level labels are cheaper but provide far less spatial guidance and struggle with multi-instance scenes.

How much accuracy do I lose compared to fully supervised training?

Weakly supervised methods generally trail fully supervised training on the same images, and the size of the gap depends on the dataset, the weak signal and the refinement strategy. Take reported benchmark figures from the original papers for the setting you plan to use, and where possible compare against a fully supervised baseline trained on your own data.

Can I combine weak and strong labels?

Yes. A hybrid setting combines a small set of fully annotated images with a larger weakly annotated set, and it is closely related to semi-supervised instance segmentation. Whether the added mask annotations help, and by how much, depends on the dataset and method, so check the gain against a weakly supervised baseline in your own setting.

Does weak supervision work for heavily occluded or overlapping instances?

This is the hardest setting for any weak supervision approach. Image-level labels cannot distinguish individual overlapping instances. Box-supervised methods can partially handle occlusion if boxes are annotated per instance, but boundary quality degrades in dense, heavily overlapping scenes.

What evaluation metrics should I report?

Report mask Average Precision at multiple IoU thresholds (AP50, AP75, AP) following the COCO protocol. Also report Boundary IoU or the F-measure for boundary accuracy, because standard mask IoU can overestimate contour quality in weakly supervised settings.

Related methods

Sources

  1. Hsu, C.-C., Hsu, K.-J., Tsai, C.-C., Lin, Y.-Y., & Chuang, Y.-Y. (2019). Weakly supervised instance segmentation using the bounding box tightness prior. Advances in Neural Information Processing Systems (NeurIPS), 32.

    Open publication reference
  2. Zhou, B., Khosla, A., Lapedriza, A., Oliva, A., & Torralba, A. (2016). Learning deep features for discriminative localization. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2921–2929.

    Open DOI reference