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 / Executive Track / AI Strategy for Decision-Makers

Module 3 · Lesson 2 · Core

Labels, measures and the real outcome

See why the label a model learns and the test it is given decide its value, with worked figures on missed cases and false alarms.

  • 50 minutes
  • Serves O3
  • Assumes M3.L1

Phase 1: Prepare

Step 1 Warm-up recall

From M3.L1: name two dimensions of data quality.

Private: nothing you type here is sent or stored.

Step 2 Learning goal

By the end of this lesson you can:

  • define a label in plain terms (Foundation);
  • compute missed cases and false alarms from rates (Core);
  • explain why an outside test beats a vendor claim (Core).

Phase 2: Teach

Step 3 A familiar example

A school that judges pupils by attendance, not learning, will end up with pupils who attend. A model that learns a stand-in for the outcome you care about will deliver the stand-in.

Step 4 Clear explanation

A label is the outcome a model is trained to predict. It is often a stand-in for what you actually care about, so the link between the two matters.

Real eventwhat you care aboutLabelwhat was recordedModellearns the labelResultonly as good as the link
A label is a chosen stand-in for the real outcome: the model learns the stand-in, not the outcome.

A widely used hospital sepsis alert shows the risk. An outside team tested the Epic Sepsis Model on 38,455 hospitalisations at one university hospital between December 2018 and October 2019. Part of the concern was how sepsis had been defined during model development: as the time a clinician intervened, so the model learned to predict what clinicians had already noticed. The results fell short of the vendor figures.

MeasureReported in one external testMeaning
Sensitivity33%Caught one in three sepsis cases
Cases not detected67%Two in three missed
Patients alerted18%Many alerts to staff
Positive predictive value12%Most alerts were false alarms
Area under the curve0.63Vendor reported 0.76 to 0.83

Apply those rates to an invented 1,000 patients with 70 sepsis cases (7%). A sensitivity of 33% finds about 23 of them and misses about 47. Alerting 18% of patients is 180 alerts, so about 23 of 180, or 13%, are true, close to the 12% reported. Staff would face a large pile of false alarms and still miss most cases.

The lesson for a leader is plain: ask what the label really is, and test the system on your own data before you rely on a vendor figure.

Step 5 Worked example (4 marks)

A tool is tested on 1,000 cases, 50 of which are real. It finds 30 and raises 200 alerts in total. How many real cases are missed, and what share of alerts are true?

  1. Missed = 50 − 30 = 20. (1 mark)
  2. True alerts = 30. (1 mark)
  3. Share of alerts true = 30 ÷ 200 = 15%. (1 mark)
  4. Answer: 20 missed; 15% of alerts are true. (1 mark)

Go deeper: the professor's notes

Ask what the model really learned.
Label

What the model predicts.

Stand-in

A proxy for the real outcome.

Sensitivity

Share of real cases found.

False alarm

An alert that is not real.

Real cases70Found23Missed47Alerts180
Applying the rates to 1,000 patients

Reported outside test

MeasureValue
Sensitivity33%
Alerts true12%
AUC0.63

At work: Alerts that are true

30 true of 200 alerts.

  1. 30 ÷ 200 = 15%.

What a careful practitioner decides. Most alerts are false alarms; plan staff time accordingly.

Phase 3: Practise

Step 6 Learner practice (instant-marked)

1. A label is:

2. 70 cases and 33% sensitivity: about how many are missed?

3. 180 alerts, of which 23 are true, is about:

4. The best test of a vendor claim is:

Phase 4: Close

Step 7 Recap

  • The label is often a stand-in for the real outcome.
  • Missed cases and false alarms follow from the rates.
  • Test on your own data.

Step 8 Exit ticket (ungraded)

A tool finds 40 of 80 real cases and raises 160 alerts. What share of alerts are true?

Private: nothing you type here is sent or stored.

Step 9 Go further (Extension)

Write down the label used by a system you know and say how it differs from the real outcome.

In industry: Epic Sepsis Model: tested outside the vendor

A study in JAMA Internal Medicine in 2021 tested the Epic Sepsis Model on 38,455 hospitalisations at one university hospital. It reported a sensitivity of 33%, a positive predictive value of 12% and an area under the curve of 0.63, below the 0.76 to 0.83 reported by the vendor. The model alerted on 18% of patients and did not detect sepsis in 67% of those who had it.

Link to this lesson. Lesson link: ask what the label is and test on your own data.

Source: Wong et al., JAMA Internal Medicine, June 2021; editorial by Habib, Lin and Grant, August 2021.

Common mistakes

MistakeWhy it fails
Accepting the vendor figureTest on local data.
Ignoring false alarmsCount alerts that are true.
Not asking what the label isFind the stand-in.

Limits. The 1,000-patient figures are invented from the reported rates. The study covers one hospital and one period; later versions of the product may differ.

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 happened with the experimental Amazon recruiting tool?
Data10 yearsSkewmostly menResultscrapped
Skewed data, skewed model

Reuters reported it was trained on ten years of resumes that came mostly from men and learned to mark down resumes with the word women. The project was scrapped; Amazon said recruiters never used it alone.

Card 2 of 3 · What is a label?
Real eventcare aboutLabelrecordedModellearns label
The stand-in

The outcome a model is trained to predict. It is often a stand-in for what you really care about, so ask how the two differ.

Card 3 of 3 · What did the outside test of the Epic Sepsis Model find?
Sensitivity33%Missed67%AUC0.63
Test outside the vendor

A sensitivity of 33% and an AUC of 0.63, against 0.76 to 0.83 reported by the vendor. It missed 67% of sepsis cases and alerted on 18% of patients.

Review with flashcards

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

Open the module flashcards