liveBook · Manning

Data annotation

As explained in Deep Learning with Python, Third Edition

The process of having people manually label or correct dataset examples.

Data annotation turns collected examples into targets a supervised-learning model can predict. Labels may be retrieved automatically, but many projects require people to label examples by hand, making annotation labor-intensive and central to model quality. section 6.1.2

Choosing labelers for image data

A cat-versus-dog classifier may need only general annotators. Dog-breed classification requires specialized knowledge, while labeling CT scans for bone fractures requires medical expertise. Crowdsourcing platforms such as Mechanical Turk can be inexpensive and scalable, but may produce noisy labels; specialized providers can save time while reducing control. section 6.1.2

Use these practical rules when planning annotation:

  • Treat annotation quality as target quality: inconsistent labels limit the quality of the trained model. section 6.1.2
  • Match the labeling workforce to the task: use broad participation for simple categories and experts for specialized judgments. section 6.1.2
  • Consider control, cost, scalability, and noise when comparing self-labeling, crowdsourcing, and specialized companies. section 6.1.2

Human correction in image segmentation

For the SA-1B dataset, human experts first manually segmented a small image set. An initial model then assisted semiautomated collection, while people corrected and further annotated its results. The goal was a unique segmentation mask for every object, with roughly 100 masks per image on average. section 11.3.2

Figure 11.7 An example image from the SA-1B dataset
sa1b example

Inspect an example SA-1B image to see the many object masks produced through the annotation pipeline. section 11.3.2

How Deep Learning with Python, Third Edition covers it

How deep it goes
Extends from manual labels and provider tradeoffs to expert correction in a semiautomated segmentation pipeline.
Examples
Uses cat-versus-dog labels, dog-breed classification, fracture scans, and SA-1B object masks as annotation examples.
What it assumes
Assumes collected inputs for supervised learning and distinguishes annotation from later model development.
What you can do after
Apply it by selecting suitable labelers and weighing expertise, cost, scalability, control, and label noise.
How it connects
Links supervised learning, dataset collection, data quality, crowdsourcing, segmentation, and model development.

Also explained in

Compare how 10 books explain data annotation →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Deep Learning with Python, Third Edition. The section links point to the parts of the book it draws on.