Specialty Digest

Global English editionLearners’ Study Dashboard — in development
The Knowledge Library for All

Flashcards: open the module flashcards (end-of-module review with workplace questions).

Online Courses / University Track / Learning from Data

Module 7 · Lesson 4 · Core

Feedback loops, limits and documenting a model

See how a model can shape the data it later learns from, when not to use one and what to write down.

  • 50 minutes
  • Serves O7
  • Assumes M7.L3

Phase 1: Prepare

Step 1 Warm-up recall

From M7.L3: what is drift?

Private: nothing you type here is sent or stored.

Step 2 Learning goal

By the end of this lesson you can:

  • describe a feedback loop (Foundation);
  • say when a model should not be used (Core);
  • write the main items of a short model card (Core).

Phase 2: Teach

Step 3 A familiar example

A council sends inspectors to the shops its model rates riskiest. Next year's records show more problems at those shops, but they are the only shops anyone looked at.

Step 4 Clear explanation

A feedback loop arises when a model's output changes the data it will later learn from.

Model flagstop 20 shopsInspectors gowhere flaggedFaults foundonly thereNew dataseem to confirm
A loop: where the model sends attention decides where data are recorded, and the next model learns from those data.

Suppose a model picks the 20 riskiest of 100 shops and inspectors find faults in 10 of them, a recorded rate of 50%. The other 80 shops were not inspected, so they have no recorded faults. A new model trained on the records will see a strong pattern, but it cannot tell whether the 80 shops are truly safer, because no one looked. Collecting some inspections at random, outside the model's choices, gives data that are not distorted by the loop.

Some situations call for not using a model, or for using it only to prioritise human review: when mistakes cannot be undone, when the data are known to be biased, when people affected cannot appeal, or when no one can say how it reached a result. A model also says nothing about cause. It finds patterns in past data and does not tell you what would happen if you changed something.

Finally, write it down. A short model card records what a model is for, its data, its label, its measured performance by group, its limits and its owner.

Question for a short model cardExample answer
What is it for?Ranking loan applications for human review, not automatic refusal
What data built it?Applications 2019 to 2023 from one region; source and date range stated
What does it predict, and is the label a proxy?Default within 12 months; recorded outcome, not intent
How well does it work, for whom?Error rates reported by group and against a baseline
What are its known limits?Not tested on self-employed applicants; do not use outside the region
Who owns it and when is it rechecked?Named owner; monthly accuracy check with an alert level

The aim is not paperwork. It is that the next person, or the same person a year later, can tell when the model should be trusted and when it should not.

Step 5 Worked example (4 marks)

A model picks 20 of 100 shops for inspection and faults are found in 10. A manager says the other 80 shops must be safer because nothing was recorded there. Respond.

  1. Recorded rate in the inspected shops = 10 ÷ 20 = 50%. (1 mark)
  2. The 80 other shops were not inspected, so their zero is “not looked at”, not “no faults”. (1 mark)
  3. The comparison is distorted by who was inspected. (1 mark)
  4. Answer: the claim is unsupported; inspect a random sample of the 80 to find out. (1 mark)

Go deeper: the professor's notes

Loops distort later data; write a model card so limits stay visible.
Loop

Output shapes data.

Card

Document.

Human

Keep in loop.

Model flagsshopsInspectflaggedFindfaults thereLearnbiased data
Limits

Model card

ItemEntry
Purposerank for review
Datasource and dates
Limitsstated
Ownernamed

At work: Inspections

Twenty of 100 shops inspected.

  1. Note who was inspected.
  2. Add random inspections.

What a careful practitioner decides. Zero recorded is not zero faults.

Phase 3: Practise

Step 6 Learner practice (instant-marked)

1. A feedback loop is when:

2. Random inspections help because they:

3. A model finds patterns but does not show:

4. A model card records:

Phase 4: Close

Step 7 Recap

  • Feedback loops distort the data a later model learns from.
  • Some decisions should not be left to a model alone.
  • A model card records purpose, data, performance by group, limits and owner.

Step 8 Exit ticket (ungraded)

Name two items you would put on a model card.

Private: nothing you type here is sent or stored.

Step 9 Go further (Extension)

Draft a six-line model card for a model or forecast you use.

In industry: Pneumonia, asthma and a rule nobody should follow

A health-risk study found that the most accurate model for predicting death from pneumonia was a neural net. A simpler rule-based model trained on the same data learned a surprising rule: a history of asthma lowers a patient's chance of dying from pneumonia. Acting on it could have meant that asthmatics were not hospitalised, which would be dangerous. The pattern reflected something else in the data, and because the simpler model was readable, the rule could be found and removed.

Link to this lesson. Readable models make it possible to question a pattern that scores well.

Source: Caruana et al. (2015), Intelligible Models for HealthCare, KDD 2015; Caruana, Intelligible Machine Learning for Critical Applications Such As Health Care, AAAS 2017

Common mistakes

MistakeWhy it fails
Treating recorded data as completeAsk who decided where to look.
Using a model for decisions that cannot be undoneKeep a person in the decision.
No documentationWrite purpose, data, limits and owner.

Limits. Documentation does not make a model good; it makes its limits visible.

Flashcards for this lesson (3)

Tap a card to reveal the answer. Read the question, answer it aloud or in writing first, then check yourself against the explanation.

Card 1 of 3 · What is an alert level?
MonitormonthlyBelow 85%alertActretrain
Alert level

A rule agreed in advance for when to act on monitoring, such as investigate if monthly accuracy falls below 85 percent. Set it before the data arrive.

Card 2 of 3 · What is a feedback loop?
FlagshopsInspectthereDatabiased
Loop

When a model's output decides where data are collected. Inspectors sent only to flagged shops find faults only there, and the next model learns that pattern as if it were the whole truth.

Card 3 of 3 · What goes on a model card?
PurposeuseDatasourceLimitsowner
Model card

Purpose, the data used, what the label measures, performance by group and against a baseline, known limits, and a named owner with a date to recheck.

Review with flashcards

Test yourself on this module with workplace flashcards and detailed answers.

Open the module flashcards