Skip to content
ReEnvision
← Unit 2: Data: what AI learns from

When data goes wrong

Too little data, lopsided data and outdated data each damage a model in a predictable way.

Lesson 2.4 50 minNo coding required

Objectives

By the end of this lesson, you will be able to:

  • Identify common flaws in datasets
  • Predict how a specific flaw will affect a model's behavior
  • Suggest practical ways to check and improve a dataset

Key terms

Representative
A dataset is representative when it reflects the full range of people and situations the model will meet.
Sampling bias
A flaw that arises when the data collected does not reflect the whole group it is meant to describe.
Garbage in, garbage out
The principle that flawed data produces a flawed model, however clever the method.

Reading

Garbage in, garbage out

A model has no way to know its data is flawed. It learns whatever is there. If the data is wrong, incomplete or lopsided, the model will be too, and it will apply those flaws quickly and consistently to everyone it touches.

Most real-world AI failures trace back to data rather than to complicated mathematics. Learning to ask good questions about data is the most valuable AI skill a non-engineer can have.

Four common flaws

Too little data. With only a handful of examples, a model cannot tell a real pattern from a coincidence.

Unrepresentative data. If a voice recognition system learns mostly from one accent, it will work best for that accent and worse for others. The people left out of the data get the worst service.

Wrong or inconsistent labels. Mistakes in the answers teach the model mistakes.

Outdated data. The world changes. A model trained on shopping habits from years ago may fit today's shoppers poorly. Language shifts, prices change, new words appear.

Asking better questions

You do not need to be a programmer to examine a dataset. Ask: Who and what is in this data, and who is missing? How was it collected, and did people agree to it? Who labeled it, and how carefully? How old is it? Does it match where the model will be used?

When a gap is found, the fixes are practical: collect more examples from the missing group, relabel with clearer guidelines, refresh old data, and test the model separately on each group of people it serves rather than only on the overall average.

Try it · Interactive lab

Who is in the data?

A voice app learns from recordings of two accents. Change the mix of the training data and watch who the app works for.

Accent A speakers95%
Accent B speakers55%

On a test set with the same mix as the training data, the company would report 91% accuracy.

Try this: set accent B to 10% and compare the reported accuracy with what accent B speakers experience. Then find the mix that treats both groups the same. This is a simplified simulation, but the pattern is real: a model is tuned to whoever its data contains most.

Build it in the AI StudioSpot the BiasMeet an AI that learned from lopsided data, then fix it yourself.

Group activity 20 min

Dataset doctors

You will need

  • Four short scenario cards, each describing a model and its training data with one hidden flaw (for example: a skin-condition app trained almost entirely on light skin tones; a job-screening model trained on ten years of past hires from one company; a plant identifier trained on photos from one country; a slang detector trained on text from 2010)
  1. 1

    Each group gets one scenario card.

  2. 2

    Diagnose: which flaw does the dataset have? Who would be affected, and how?

  3. 3

    Prescribe: write two concrete steps the builders should take before releasing the model.

  4. 4

    Present your diagnosis and prescription. The class may ask one challenging question of each group.

Discuss

  1. Q1

    Why might a company not notice that its dataset leaves a group out?

  2. Q2

    A model is 95% accurate overall but 60% accurate for one group. Is "95% accurate" an honest description?

  3. Q3

    Think of a community you belong to. Would you expect it to be well represented in the data behind popular AI tools? Why?

Write your answer to one of the questions. Saved only on this device.

Quick check

Choose an answer to see whether you were right, and why.

  1. 1A voice assistant understands some accents far better than others. What is the most likely cause?

  2. 2What does "garbage in, garbage out" mean?

  3. 3Which check best reveals whether a model serves everyone fairly?

Key takeaways

  • A model inherits every flaw in its data.
  • Watch for data that is too small, unrepresentative, mislabeled or out of date.
  • Ask who is missing, and test a model on each group it will serve.