Specialty Digest

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

Online Courses / University Track / Learning from Data

Module 8 · Wrap-up

Discussion prompt, recap and references

Reflect on one question, review the module and find the named sources.

  • 25 minutes
  • Recap
  • References

Real-world case: Hundreds of covid-19 prediction models, and almost none fit to use

2020 · A living systematic review of prediction models

In early 2020, as covid-19 spread, researchers around the world rushed to build models that could help doctors: tools to diagnose the disease, to predict which patients would become seriously ill, and to find people at risk. A team of methodologists called COVID-PRECISE decided to read them all, and to keep reading as more appeared.

Their first review, published in the BMJ in April 2020, included 31 models from 27 studies. They judged the models to be poorly reported and at high risk of bias, with reported performance that was probably optimistic, and they did not recommend any of them for use in practice. The review was kept up to date as a living systematic review. One later update screened 37,421 titles and included 169 studies describing 232 models, and the final version screened 126,978 titles and included 412 studies describing 731 models or validations.

In a later update the team reported that all the models they assessed were rated at high or unclear risk of bias, and that reported performance ranged widely, from 0.65 to more than 0.99 in diagnostic models. The more striking the number, the less it could be trusted without knowing how the cases were chosen, how the model was tested and whether the data were representative.

The review did not say the authors were careless; it showed that urgency and enthusiasm are poor substitutes for the routine steps of a modelling project: a clear task, a representative sample, honest testing against a baseline and complete reporting. The reviewers also urged authors to follow established reporting guidelines so that readers could judge their models.

How the case shows what you learned in this module

Module ideaIn the case
Task and sampleModels built on unrepresentative cases cannot be trusted on the patients they will be used for.
Honest testingPerformance figures were often optimistic because of how models were tested.
A baselineA striking number means little without a simple comparison.
ReportingPoor reporting made it impossible for readers to judge or reuse many models.

Workplace takeaway. A project is not finished when a number is produced; it is finished when the task, data, testing and limits are written down so that others can judge it.

Sources: Wynants et al. (2020), Prediction models for diagnosis and prognosis of covid-19: systematic review and critical appraisal, BMJ 369:m1328 (living review)

Discussion prompt

20 minutes. Choose a prediction you could make from about twenty cases in your own work or study. In 150 to 200 words, state the task, the baseline, how you would split the cases, how you would choose a rule, what you would report from the test and what limits you would state.

Private: nothing you type here is sent or stored.

This course has no discussion board yet, so the prompt is a private reflection.

Recap

  • Frame the task, choose a baseline and split before fitting.
  • Fit candidates on training, choose on validation and test once.
  • Report accuracy, precision, recall and the baseline with the sample size.
  • State limits and an owner so the model can be rechecked.

Flashcards: 12 workplace review cards

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 12 · What is the first step of a modelling project?
PredictwhatFromfeaturesUsedecision
Frame

Write one sentence: what is predicted, from what, for whom and for what use. Everything later is judged against it.

Card 2 of 12 · What is a baseline and why do you need one?
Ruleno learningComparemodelBeat itor stop
Baseline

A rule that needs no learning, such as always predicting the most common outcome. A model that does not beat it is not worth using as it stands.

Card 3 of 12 · When do you split the cases?
Training8Validation6Test6
Split

Before fitting anything or looking at results: for example 8 training, 6 validation and 6 test cases from 20.

Card 4 of 12 · What are the training, validation and test sets for?
TrainfitValidatechooseTestconfirm
Three sets

Training fits the candidate rules, validation chooses between them and the test confirms the chosen rule once.

Card 5 of 12 · What is a threshold rule?
FeaturevisitsValue4Predictrenew
Threshold

A rule that predicts yes at or above a value of one feature, for example renew if visits per month are at least 4.

Card 6 of 12 · How do you find the best threshold on the training cases?
Tryt = 1 to 8CounterrorsBest87.5%
Search

Try each value, count the errors and compute the accuracy. For eight cases, t = 4 and t = 6 each make one error: 87.5 percent.

Card 7 of 12 · Why is training accuracy optimistic?
Chosento fitNew caseslowerExpecta gap
Optimism

The rule was chosen because it fits those cases. New cases will usually give a slightly lower score.

Card 8 of 12 · What do you do when two rules tie?
Rule 4100%Rule 666.7%Chooserule 4
Tie

Score both on the validation cases and choose the better. In the library example the rule at 4 scores 100 percent and the rule at 6 scores 66.7.

Card 9 of 12 · Why use the test cases only once?
TestonceChangespoils itReportthat number
Once

If the rule is changed after seeing the test, the test has influenced the model and no longer gives a fresh estimate.

Card 10 of 12 · How much does one test case matter?
n = 616.7 pointsn = 601.7 pointsSayn
Noise

With n test cases one case is worth 100 divided by n points: 16.7 points when n = 6. Small samples give noisy scores.

Card 11 of 12 · How do you compute precision and recall?
Precision75%Recall100%Accuracy83.3%
Rates

Precision is TP over TP plus FP; recall is TP over TP plus FN. With TP 3, FP 1, FN 0 they are 75 percent and 100 percent.

Card 12 of 12 · What does an honest report contain?
Resultvs baselineLimitsn, scopeOwnerrecheck
Report

Purpose, data, the rule, the test result against the baseline with the sample size, limits and a named owner with a recheck date.

Module notes

Key terms. Task statement: what is predicted, from what and for what use. Baseline: a rule that needs no learning. Training, validation and test sets: cases for fitting, choosing and final checking. Threshold rule: predict yes at or above a value. Confusion matrix: counts of TP, FP, FN and TN. Model card: a short record of purpose, data, performance and limits.

Rules and formulas. accuracy = right ÷ all; precision = TP ÷ (TP + FP); recall = TP ÷ (TP + FN); one case in n is worth 100 ÷ n points.

Limits of this module. The examples use tiny invented sets so that every figure can be checked by hand. Real projects need many more cases, more features and repeated validation, but they follow the same sequence of steps.

Next

You have reached the end of the course. Return to the course overview or the University Track.

References and further reading