liveBook · Manning

Data annotation

As explained in Machine Learning System Design

The process of assigning annotations or target values to data examples for machine learning.

A useful dataset does not automatically have useful target values. Data annotation assigns labels to examples so they can serve a specific ML task. Labels may come from a dedicated expert team or from end users through an interface. Before organizing the work, decide what the product needs the model to determine—and what information a label must preserve. section 6.1 section 6.2.4

For a medical-image assistant, the annotation request could take several forms:

These are not interchangeable requests to the labeling team. They call for different tools, expertise, and amounts of time; the choice also affects which models and product behavior are possible. Start with the product goal rather than asking for the most detailed annotation by default. If the desired detail is impractical because expert time or tools are unavailable, consider whether inaccurate or partial labels and a weakly supervised approach are sufficient. section 6.2.4

Turn the decision into an annotation plan:

  • Record which labels are needed and where they will come from. section 6.7
  • Choose a platform; break work into tasks with readable instructions and usable interfaces. section 6.2.4
  • Plan performer training and examination, quality control, label aggregation, evaluation, and pricing. section 6.2.4

Annotating image-search results

A stock-photo search system needs people to label query–image pairs as Relevant, Irrelevant, or Can’t answer. The team may later divide relevance into finer levels. Requiring a written reason for Can’t answer can reveal issues in early annotation rounds. The platform and staffing choice remains open: compare an in-house team with third-party services and get cost estimates before committing. section 6.7.2

Figure 6.2 Various approaches to data labeling
figure

Compare the possible labeling approaches before choosing how much detail each annotated example must contain. section 6.2.4

How Machine Learning System Design covers it

How deep it goes
Works through label granularity and a labeling-workflow checklist, but defers detailed weak-supervision methods to further reading.
Examples
Uses malignancy labels on medical images and relevance labels for query–image pairs.
What you can do after
Practice/perform annotation planning by specifying labels and sources, comparing staffing options, and preparing tasks and quality checks.
How it connects
Connects classification, detection, segmentation, weak supervision, dataset design, and quality control.

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 Machine Learning System Design. The section links point to the parts of the book it draws on.