Segmentation labels images at the pixel level, but “segmentation” covers three different tasks. Mixing them up leads to guidelines that do not match the model and masks that need redoing. Here is how semantic, instance and panoptic segmentation differ, and what to settle before labeling.
Semantic segmentation
Every pixel gets a class, such as road, sidewalk, car, person, sky or vegetation. Objects of the same class are not separated: two touching cars become one “car” region.
- Used for: drivable area, land cover from aerial images, crop and weed maps, scene understanding.
- Key rules: a complete class list including “background” or “other”, and how to label ambiguous surfaces.
Instance segmentation
Each individual object gets its own mask and ID. Two touching cars become two separate masks. Background areas such as road or sky are usually not labeled.
- Used for: counting, tracking and measuring individual objects, robotic picking, cell and particle analysis, defect sizing.
- Key rules: how to split touching or overlapping objects, and whether masks include occluded parts.
Panoptic segmentation
Panoptic segmentation combines both. Countable objects (“things”) such as cars and people get instance masks, while uncountable regions (“stuff”) such as road and sky get semantic masks. Every pixel is labeled exactly once.
- Used for: autonomous driving and robotics, where a system needs to understand both the objects and the surfaces around them.
- Key rules: which classes are things and which are stuff, and how to resolve pixels that could belong to either.
Decisions to make before labeling
- Class list and definitions, with example images for each class and for the confusing pairs.
- Boundary rules: how tightly masks follow edges, how to treat blur, shadows, reflections and transparent objects.
- Occlusion: label only visible pixels, or the estimated full object.
- Minimum size: the smallest region worth labeling.
- Ignore regions: areas too ambiguous to label, marked so they do not count as errors.
Quality checks for masks
- Overlap with reference masks (IoU) per class, reported separately for small and large objects.
- Boundary distance from the reference, in pixels.
- Missed and extra objects for instance work, counted separately from mask quality.
- Class confusion: which classes are most often mixed up.
Our guide to annotation quality metrics covers sampling and reporting.
Speeding up segmentation without losing quality
Model-assisted pre-labeling and smart selection tools can cut labeling time considerably, but every pre-labeled mask still needs human correction against the rules. Reviewers should pay particular attention to edges and small objects, where assisted tools are weakest.
See our semantic and instance segmentation service, compare annotation types, or request a pilot.
Related
Frequently asked questions
What is the difference between semantic and instance segmentation?
Semantic segmentation labels each pixel with a class but does not separate objects of the same class. Instance segmentation gives every individual object its own mask.
What is panoptic segmentation?
A combination of both: countable objects get instance masks and background regions get class labels, so every pixel is labeled exactly once.
Which segmentation type is most expensive?
Panoptic is usually the most work because every pixel is labeled and objects are separated, followed by instance and then semantic segmentation.