What is data labeling?
The AI Glossary
In our classes, we often pause to explain the ideas behind AI and the language used to describe it. These posts grew out of those conversations. They’re for anyone who would like to understand AI better, with no technical background assumed.
Data labeling means adding information that tells a learning or evaluation system how an example should be interpreted. A label may identify the category of a message, mark a lesion in an image, record an outcome or indicate which of two answers a reviewer prefers. The activity is also called annotation.
For a simple text classifier, an example might be a patient message labeled “appointment request.” For an image task, the label could be a category for the whole picture or an outline marking a particular region. These are different labeling tasks, with different requirements for expertise and time.
Labels can come from people, measurements, existing records or automated procedures. They are not automatically verified truths. A billing code may be convenient to obtain while being an imperfect representation of a clinical condition. A specialist’s interpretation may be well informed but uncertain, especially in an ambiguous case.
A useful labeling process makes the rules explicit. What counts as a positive case? What should a reviewer do when information is missing? Can an example belong to several categories? Where disagreement is expected, forcing everyone into one answer may conceal uncertainty rather than resolve it.
Teams often compare labels from more than one reviewer and arrange adjudication: a process for examining disagreements. The point is not always unanimous agreement. It is to understand whether disagreement reflects unclear instructions, a difficult judgment or a genuine limitation of the reference information.
AI can propose labels to reduce manual work, but those proposals need their own quality checks. Using the same model to create all the reference labels and then grade its own outputs risks rewarding its assumptions. A sample checked independently by appropriate reviewers can help reveal that problem.
For a psychiatric care-pathway dataset, “admitted to hospital” is an observed event. “Would benefit most from admission” is a clinical judgment. Labeling both as though they were interchangeable teaches a misleading lesson before training even begins. The labeling question is therefore part of the clinical question, not a clerical task that can be settled afterwards.
Sources: Gebru and colleagues — Datasheets for Datasets (2021); Hugging Face — Token Classification
Further reading from Harvard Chan: Public Health Perspectives — How Health Care Leaders Can Build Effective, Bias free AI (2022).
To learn more, take a look at the AI in Health Care Certificate of Specialization from the Advanced Learning Academy at Harvard T.H. Chan School of Public Health. You can take an individual course or work toward the full certificate.
I’m a doctor, not a statistician. I teach the AI in Health Care Certificate of Specialization with Dr. Heather Mattie, a statistician and co-director of Harvard Chan’s Health Data Science master’s program. For more on data science and statistics, see Harvard Chan’s Health Data Science resources.
AI is a fast-moving field. This explanation reflects our class discussions and related material at the time of writing. Terminology, capabilities and tools may change.
For suggested additions or corrections, please email me at tpanch@hsph.harvard.edu.
Dr. Trishan Panch
Program Director, AI in Health Care
Harvard T.H. Chan School of Public Health — Advanced Learning Academy
Lead with AI in Health Care
The AI Pragmatist is a monthly newsletter from ALA faculty, with new explainers & essays from the Advanced Learning Academy