liveBook · Manning

Image segmentation

As explained in Machine Learning System Design

Segmentation is a computer-vision labeling formulation that identifies the pixels belonging to an object or region.

Image segmentation labels the exact pixels belonging to an object or region. Choosing it is a product decision: pixel-level outputs require different tools, expertise, time, and models than image-level or region-level labels. section 3.1 section 6.2.4

Choose segmentation deliberately by checking:

  • Whether the product needs the exact shape and boundaries of a target rather than its presence or a surrounding region. section 6.2.4
  • Whether the labeling team can provide sufficiently detailed annotations, given available experts, time, interfaces, and quality-control processes. section 6.2.4
  • Whether partial or inaccurate labels justify considering weakly supervised learning when precise annotation is impractical. section 6.2.4
  • Whether a comparable solution matches both the business domain and technical requirements such as latency, platform, data model, and volume. section 3.1

Fine-grained manufacturing inspection

An assembly-line system needed subpixel-accurate outputs to locate extremely small components. Because manufacturing examples were scarce, image-matting techniques from medical analysis and photo or video editing provided useful ideas. Hair segmentation illustrates the difficulty: separating hair from a background can require avoiding downsampling and using soft labels that assign pixels weighted foreground and background membership. section 3.1 section 3.1

Figure 6.2 Various approaches to data labeling
figure

Compare binary classification, multiclass classification, detection, and segmentation to see how annotation granularity changes the available product and model choices. section 6.2.4

How Machine Learning System Design covers it

How deep it goes
Defines pixel-level labeling and illustrates subpixel precision, soft labels, and annotation constraints without detailing model architectures.
Examples
Uses assembly-line component inspection, medical malignancy labeling, and hair-background separation as examples.
What it assumes
Assumes product goals and needs, while distinguishing image-level, region-level, and pixel-level labeling from the ground up.
What you can do after
Evaluate whether pixel-level labels fit product needs and whether annotation resources support them.
How it connects
Connects image segmentation with image matting, object detection, classification, weakly supervised learning, and data labeling.

Also explained in

Compare how 6 books explain image segmentation →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Machine Learning System Design. The section links point to the parts of the book it draws on.