AI GLOSSARY · AI CONCEPTS

Data labeling

Markdown version

Definition

Data labeling is the work of attaching tags, called labels, to raw data such as images, text or audio, so that a machine learning model can learn from examples that carry the right answer.

Also called: data annotation, data labelling, labeled data, AI data annotation, annotated data.

In plain language

Data labeling means people, often helped by software, mark up raw data with the answer you want a model to learn. Someone tags each photo as cat or dog, or marks each email as spam or not spam. It is like a teacher writing the correct answer next to each practice question before a student studies them. The limit is that the model learns whatever the labels say, including the mistakes. Labelling at scale can be slow and costly, and careful projects add quality checks, for example by having a second person review a sample. Labelled data that has been checked is also what a model is later tested against.

Technical definition

Labeling, also called data annotation, is a preprocessing step in supervised machine learning. Each raw item, such as an image, a sentence or a video clip, is paired with one or more labels, producing the labeled examples a model trains on. Google's machine learning glossary defines a labeled example as one that contains one or more features and a label. Workflows use a private workforce or a vendor, and some use a model to choose which items need a human, as in the AWS documentation. AWS describes validating automated labels against human-labeled data and routing uncertain items to human workers; that comparison does not make either set infallible.

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

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

    What you see
    A check of train, validation and test files for duplicates, shared groups, time and label leakage, printed as JSON.
    Why it exercises the concept
    Labeled data is usually divided into splits. This skill checks that the same item, or the same label information, does not sit on both sides of a split.
  2. Skill by Skill Almanac · Illustrative, not executed

    llm-eval-test-sets 57/100 · Provisional, not yet measuredScored · Method v0.2 · How we score

    What you see
    An eval dataset for an LLM feature, built and validated with a checker for duplicates, missing graders, imbalance and leakage.
    Why it exercises the concept
    An eval set is a small labeled dataset: each case needs the expected answer or a grader. The checker shows what a flawed labeled set looks like.
  3. Skill by Hugging Face · Illustrative, not executed

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

    What you see
    Dataset metadata, rows, search and filters read through the Hugging Face Dataset Viewer API.
    Why it exercises the concept
    Public labeled datasets are hosted there. Reading the rows lets you see what the labels look like before you rely on them.
  4. Skill by Skill Almanac · Illustrative, not executed

    regex-from-labeled-examples 37/100 · Provisional, not yet measuredScored · Method v0.2 · How we score

    What you see
    A Python regular expression proposed from labeled match and non-match strings, then proved against every supplied example in a row-by-row table.
    Why it exercises the concept
    It is labeling at small scale: each string carries a label, and the table shows where the result disagrees with a label.

How it shows up when you use agents

When you use a model through Claude Code or Codex, in a typical agent session you do not label anything. Labeling happened earlier, when the provider built the data a model learned from. It returns when you build your own checks. A test set for a prompt or an agent is a set of labeled examples: an input and the answer you expect. Each label in it is a judgement someone made, and the later scores are only as trustworthy as those judgements.

The labels you write become the ground truth your results are compared with, and they are what a supervised learning model trains on. The skill llm-eval-test-sets builds an eval dataset with a checker for duplicates, missing graders and leakage.

What breaks when labeling is misunderstood: people treat labels as facts, then blame the model when it scores badly on cases the labels got wrong. A next action is to read a sample of your labels by hand, ask a second person to label the same sample, and look at where you disagree before you build anything on the set. This is a form of human in the loop work, and it takes time. Then run split-leakage-check so the same item does not appear in both training and test files.

Common confusions

  • Data labeling versus ground truth. Labeling is the activity of adding labels. Ground truth is the label set, once it is verified, that you treat as the reference. See Ground truth.
  • Labeled versus unlabeled data. Supervised learning needs labeled examples. Unsupervised learning works on data with no labels. See Unsupervised learning.
  • Human versus automated labeling. The two are often mixed. The AWS documentation describes an automated process that uses machine learning to decide which data needs to be labeled by humans.
  • Myth. A label is correct because it exists. Labels come from people or tools that can disagree or err; compare a sample with an independently checked reference.

Terms that mention Data labeling

5 terms mention this one

More in AI concepts

Next steps

  1. split-leakage-check A skill that exercises it.
  2. Machine learning (ML) Related term.
  3. Ground truth 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) and Codex (targeted revisions); sources and example targets checked by Independent automated source review (OpenAI Codex); not human peer review on 2026-11-25. Last verified .

Change log (5)
  • : 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.
  • : Verifier pass: applied verifier corrections to unsourced or overstated claims.
  • : Applied bounded batch06 source-scope repairs; independent affected-claim recheck pending.
  • : Automated review completed; approved for the staged public release. Search indexing is controlled by the release configuration.