AI GLOSSARY · AI CONCEPTS

Image segmentation

Markdown version · Wikidata Q56933

Definition

Image segmentation is a computer vision task that partitions an image into groups of pixels, for example labelling each pixel with a class or outlining each separate object, instead of only naming what the picture contains.

Also called: semantic segmentation, instance segmentation, panoptic segmentation, segmentation deep learning, image segmentation deep learning.

In plain language

Image segmentation answers the question of which pixels belong to what. Where a classifier says there is a dog in the photo, and a detector draws a box around it, segmentation traces the dog's outline, so every pixel is marked as dog, grass or sky. It is used where exact shapes matter, such as separating a tumour from healthy tissue in a scan or road from pavement in a driving camera. There are several kinds: some label classes without instance IDs, so separated cars can form disconnected regions with the same class label, while instance methods distinguish each car. Supervised methods commonly use pixel-labelled training images, which can be costly to annotate; other methods, such as graph-based segmentation, do not require such a training set, and it can fail on lighting or objects it has not seen.

Technical definition

IBM describes three forms. Semantic segmentation assigns a class to every pixel without separating individual objects. Instance segmentation delineates the exact shape of each object instance. Panoptic segmentation combines both. Long, Shelhamer and Darrell show that convolutional networks trained end to end, pixels to pixels, can do semantic segmentation by converting classification networks into fully convolutional networks that accept inputs of any size and produce outputs of matching size. Mask R-CNN, by He and colleagues, extends Faster R-CNN with a branch that predicts an object mask alongside the bounding-box branch, for instance segmentation.

Worked examples in this catalogue

Catalogue examples point at a skill, guide or coding tool listed on this site, with what to run and what you see. An example marked illustrative describes the item from its own documentation; it was not executed for this page. Platform Scores are our assessment under a published method, not a safety guarantee.

  1. Skill by Skill Almanac · Illustrative, not executed

    image-spec-check 57/100 · Provisional, not yet measuredScored · Method v0.2 · How we score

    What you see
    Exported images checked against your own spec table, with exact advice on what to resize, crop, re-export or replace.
    Why it exercises the concept
    Adjacent: it checks file properties against rules you write, and it does not look at what is in the image. It does not segment anything.
  2. Skill by Hugging Face · Illustrative, not executed

    huggingface-datasets 25/100 · Provisional, not yet measuredScored · Method v0.2 · How we score

    What you see
    Hugging Face datasets read through the Dataset Viewer API: metadata, rows, search and filters.
    Why it exercises the concept
    Adjacent: supervised segmentation often uses pixel-labelled images. The Dataset Viewer workflow lets you inspect dataset rows and metadata; it does not itself demonstrate segmentation training or prediction.
  3. Skill by Skill Almanac · Illustrative, not executed

    split-leakage-check 53/100 · Provisional, not yet measuredScored · Method v0.2 · How we score

    What you see
    Checks of train, validation and test files for duplicates, shared groups, time and label leakage, printing JSON.
    Why it exercises the concept
    Adjacent: a segmentation dataset still needs a clean split, and near-duplicate images, such as frames from one video, can sit on both sides. The skill can inspect supplied tabular IDs or groups, but explicitly misses image similarity and transformations; listing image paths alone does not detect near-duplicate frames.

How it shows up when you use agents

Coding agents such as Claude Code, Codex and Cursor do not segment images themselves. They can write code that calls a segmentation model, wire it into a pipeline, or run the library's evaluation script. The result is usually a mask: an array the size of the image in which each pixel holds a class number or an object ID. When an agent says it "found the objects", ask whether it produced boxes or masks, because the two answer different questions.

What breaks when this is misunderstood: people choose the wrong kind. Semantic class labels do not encode separate object identities. Touching same-class objects may form one connected region, while separated objects may form several; connected-region counts are not guaranteed object counts. Instance segmentation distinguishes object instances. Panoptic segmentation combines both. Another common slip is to judge a model on a handful of attractive examples. A next action is to inspect masks on awkward images, such as poor light, overlapping objects and unusual angles, and to check the training labels the model was built from. See computer vision for the wider field and convolutional neural network for the network type behind the fully convolutional approach.

The inspected example cards are adjacent image and dataset checks, not demonstrations of segmentation.

Common confusions

  • Segmentation versus object detection. Detection places a bounding box around each object. IBM describes instance segmentation as object detection that produces exact shape masks instead of rough boxes.
  • Semantic versus instance segmentation. Semantic segmentation labels every pixel with a class but does not separate individual objects. Instance segmentation outlines each object separately and ignores background "stuff".
  • Segmentation versus image classification. Classification gives one label for a whole image. Segmentation gives a label, or a mask, at the level of pixels.
  • Myth. Segmentation needs a special kind of network that cannot reuse classification work. The FCN paper converts existing classification networks into segmentation networks and fine-tunes them.

Terms that mention Image segmentation

1 terms mention this one

More in AI concepts

Next steps

  1. image-spec-check A skill that exercises it.
  2. Training data Related term.
  3. Computer vision Related term.
  4. All glossary terms A to Z and by family.

Sources

Definitions are written by Skill Almanac from these sources and were checked against them on 2026-11-25. Wikipedia is never the only source.

Review record

Last verified

Drafted by Claude (original draft); OpenAI Codex (bounded factual repairs); sources and example targets checked by Independent automated source review (OpenAI Codex); not human peer review on 2026-11-25. Last verified .

Change log (4)
  • : Independent automated factual/example review completed. Cached US query estimate aligned to receipt; no traffic promise. Final technical gate recorded separately; publication disabled.
  • : First version.
  • : Bounded source repairs: Qualified supervised pixel-label requirement; distinguished semantic class labels from connected regions/instance counts and stated image-leakage checker limits. Pending independent re-review.
  • : Automated review completed; approved for the staged public release. Search indexing is controlled by the release configuration.