Skip to content
AI.info

Evaluation

Intended Use, Units, Populations, and Harm

Learn how evaluation units, target populations, sampling frames, time horizons, and harm models determine the meaning of every reported result.

By the end you can

Example

158,323 radiographs, 47,392 patients, three hospitals

Row counts hide how much independent evidence a table actually holds. A pneumonia-screening study put that gap on the public record. Zech and colleagues trained convolutional neural networks on 158,323 chest radiographs and published the result in PLOS Medicine in 2018. Those images came from 47,392 patients at three hospital systems. The NIH Clinical Center supplied 112,120 images from 30,805 patients, Mount Sinai Hospital 42,396 from 12,904, and the Indiana University Network for Patient Care 3,807 from 3,683.

Nobody asked the networks to learn where an image came from. They learned it anyway. “CNNs were able to directly detect hospital system of a radiograph for 99.95% NIH (22,050/22,062) and 99.98% MSH (8,386/8,388) radiographs.” Site provenance was worth learning because pneumonia prevalence differed sharply between the sites. A model that knew nothing but the site could score well on the pooled data. The same shortcut reappeared in chest radiography during COVID-19: a 2021 paper in Nature Machine Intelligence found detectors selecting site provenance over signal.

Read the row count as evidence and this dataset looks like 158,323 independent facts about pneumonia. Read the unit and it is three.

  • Three counts of one table: 158,323 radiographs, 47,392 patients, three hospital systems. Only the last one bounds how many independent settings the evidence covers.
  • Split at random by image and the site stays recoverable, because the site is legible in the pixels: 99.95% for NIH images (22,050/22,062) and 99.98% for Mount Sinai images (8,386/8,388).
  • Site identity is worth predicting because outcome rates travel with it. Pneumonia prevalence was 34.2% at Mount Sinai Hospital, 1.2% at the NIH Clinical Center and 1.0% at Indiana.
  • A trivial model using only hospital-system prevalence reached AUC 0.861 (95% CI 0.855–0.866) on the joint MSH–NIH dataset. Internal performance significantly exceeded external performance in 3 of 5 natural comparisons: the jointly trained MSH–NIH model scored internal AUC 0.931 against external AUC 0.815 at Indiana, P = 0.001.

Visual

Four units that must be named separately

A single project can involve several legitimate units, and the Zech study contains all four at once. The observation unit is one chest radiograph. The prediction unit is the image-level pneumonia score the network emits for it. The decision unit is the patient — one of the 47,392 people whose care changes when that score crosses a threshold. One patient may contribute several images. The analysis unit is the level at which the evidence is actually independent, and here that is the hospital system. There were three: the NIH Clinical Center, Mount Sinai Hospital and the Indiana University Network for Patient Care.

The four numbers attached to those units are 158,323, 158,323, 47,392 and 3. A report that names only the first invites its reader to imagine the last.

FigureHierarchy · 4 levels
  • Observation unit

    The row or event supplied to the model, such as an image, query, or sensor window.

    • Prediction unit

      The entity for which one output is produced, such as a transaction or document.

      • Decision unit

        The entity on which an action is taken, such as a patient, account, or production batch.

        • Analysis unit

          The independent unit used for uncertainty estimates and statistical comparisons.

Comparison

Sample, frame, and target are not synonyms

Generalization requires a defensible relationship among three populations. A device that sits on millions of fingers shows how far apart they can drift. Pulse oximeters read poorly on patients with darker skin, and the UK Department of Health and Social Care's independent review of equity in medical devices, published in March 2024, locates that failure not in an algorithm but in the population the devices were built on: “One of the main reasons for the poorer performance of pulse oximeters for patients with darker skin tones is that they have tended to be tested and calibrated on light-skinned individuals, whose readings are then taken as the norm.”

That is the three-population gap stated as a fact rather than a caution. The observed sample was the set of calibration readings actually collected. The sampling frame was the volunteers who could be recruited into calibration studies, which skewed light-skinned. The target population was everyone whose blood oxygen would later be read by the device. Nothing in the calibration data announced the difference. The reader had to know to ask.

Both halves of the correction are now written down by regulators. Recommendation 2 of the review asks that “Validation of devices should be conducted in the intended use population and setting, such as at home or in an ICU”. On 6 January 2025 the FDA proposed updated recommendations of its own. They would increase the number of clinical study participants and require performance data across a range of skin pigmentations, assessed two ways: a subjective method, the Monk Skin Tone Scale, and an objective one, calculation of individual typology angle.

FigureComparison · 3 columns

Observed sample

The cases that actually appear in the evaluation table.

  • Affected by missingness
  • May overrepresent heavy users
  • Can include duplicates
  • Supports only sampled evidence

Sampling frame

The source from which cases could have been selected.

  • Defined by logging and eligibility
  • May omit silent failures
  • Changes with product access
  • Constrains reachable conclusions

Target population

The people, events, or conditions for which the claim is intended.

  • Defined by intended use
  • May include future environments
  • Requires explicit exclusions
  • Cannot be assumed from convenience data

Dependence changes both splits and uncertainty

Many standard calculations assume observations are independent or weakly dependent. Repeated measurements, shared devices, households, geographic clusters, and coordinated behavior violate that simplification.

Three regulators have written down which dependencies count. In October 2021 the U.S. FDA, Health Canada and the UK MHRA jointly issued ten guiding principles for good machine learning practice in medical device development. Guiding Principle 4 is titled “Training Data Sets Are Independent of Test Sets”, and it does not leave the sources of dependence to the reader's judgment: “Training and test datasets are selected and maintained to be appropriately independent of one another. All potential sources of dependence, including patient, data acquisition, and site factors, are considered and addressed to assure independence.”

Patient, data acquisition, site. Those are the three levels that turned 158,323 rows into far less than 158,323 pieces of evidence in the chest radiograph case. Principle 3 covers the other half of the contract. It requires that data sets be “Representative of the Intended Patient Population” so that “results can be reasonably generalized to the population of interest”.

Dependence does not make evaluation impossible. It changes the split unit, resampling method, confidence interval, and interpretation of effective sample size.

The correct row count for a metric may differ from the correct unit for uncertainty.

Key idea

Harm is experienced at the decision unit

A false positive attached to a transaction may freeze an entire account. Ten errors on one person are not ethically or operationally equivalent to one error on each of ten people. Evaluation should therefore report concentration, repeated burden, exposure, and recovery pathways when decisions accumulate over time.

The group-concentrated version of this has been measured on chest radiographs. Larrazabal and colleagues, writing in PNAS in 2020, trained “three deep neural network architectures” on “two well-known publicly available X-ray image datasets” “under different gender imbalance conditions”. That is, they varied how much of the training data came from each gender and watched what happened to the group left short. Their abstract reports it in one sentence: “We found a consistent decrease in performance for underrepresented genders when a minimum balance is not fulfilled.”

The 2024 UK review of equity in medical devices cites that paper, as its reference 33, and states the consequence plainly: “a large study of two x-ray datasets… found women to be underrepresented. This led to lower accuracy rates when diagnosing women”. An aggregate accuracy figure computed over the whole test set would have moved very little while this was happening. The group carrying the loss was, by construction, the smaller one. The number that would have shown it is the one nobody was required to print.

Aggregate error rates can hide concentrated harm.

Analogy

A survey drawn from one crowded train

Interviewing every passenger on one packed train produces a great many answers about a city’s commuting habits. Route, time, and rider selection have already narrowed what those answers can represent.

Volume cannot repair a biased frame. A second train and a third would add responses of the same shape, and the estimate would grow more precise around the wrong number.

Google Flu Trends is that sentence with figures attached. The model was built by finding the best matches among 50 million search terms to fit 1,152 CDC data points. It then overshot the actual influenza level in 2011–2012 by more than 50%, and reported overly high flu prevalence in 100 of the 108 weeks from 21 August 2011 to 1 September 2013. In February 2013 Nature reported it predicting more than double the CDC's proportion of doctor visits for influenza-like illness. Lazer and colleagues published the post-mortem in Science in 2014.

The failure was not new. An independent evaluation in PLOS Computational Biology in October 2013 had already found that the original model missed the spring 2009 pandemic wave at all geographic levels, giving incidence estimates 30–40 fold lower than those based on ILI surveillance.

The Science authors gave the underlying assumption a name: ““Big data hubris” is the often implicit assumption that big data are a substitute for, rather than a supplement to, traditional data collection and analysis.” Hundreds of millions of queries were not a wider frame than 1,152 CDC data points. They were one train, sampled harder.

More observations from the same narrow source do not create broader coverage.

Steps

Draft the population statement

A useful evaluation report says all of this near the beginning, and one field has already turned it into a numbered checklist item. CONSORT-AI, published in Nature Medicine in 2020, adds 14 new items to the trial-reporting standard. It was developed through a two-stage Delphi with 103 respondents, a consensus meeting with 31 stakeholders and a pilot with 34 participants. It refuses to let eligibility be a single question. Item 4a(i) asks for it at the level of participants; item 4a(ii) says: “State the inclusion and exclusion criteria at the level of the input data.”

The split exists because the two questions come apart in practice, and the size of the gap has been measured. Martindale and colleagues reviewed 65 AI randomised trials in Nature Communications in 2024. Participant-level criteria were reported in 98% of trials, input-data-level criteria in only 74%, against a median overall concordance of 90%. Nearly every trial says who was eligible. A quarter of them never say which data were.

Steps 2 and 4 below are that missing quarter. Naming the target, stating inclusion at both levels, identifying the dependence structure, recording exclusions and choosing the analysis unit is not a private discipline. In at least one field it is a published item with a compliance rate attached to it.

FigureProcess · 5 steps
  1. 1. Name the target

    Specify the people, entities, environments, and time horizon covered by the claim.

  2. 2. Define inclusion

    State which events become eligible and which logging conditions are required.

  3. 3. Identify dependence

    List repeated users, devices, sites, sessions, or campaigns that link observations.

  4. 4. Record exclusions

    Document populations that lack evidence or require separate validation.

  5. 5. Choose analysis units

    Align split, variance estimation, and subgroup reporting with the real source of independence.

The population statement is part of the result

A metric without a population statement invites the reader to imagine broader coverage than the data support. Naming the evaluation unit and the exclusions is not administrative detail. It is part of the scientific claim. Every case in this lesson is the same failure seen from a different angle: 158,323 radiographs that were three sites, a calibration frame of light-skinned individuals used to certify a device for everyone, a gender-imbalanced training set whose cost fell on the smaller group, and 50 million search terms that were still one train.

The remedy has a name and a format. Mitchell and colleagues proposed model cards in 2018: “short documents accompanying trained machine learning models” that carry “benchmarked evaluation in a variety of conditions, such as across different cultural, demographic, or phenotypic groups” and that “disclose the context in which models are intended to be used”. Intended use is written down rather than assumed by the reader.

Later lessons use these definitions to design splits, confidence intervals, slices, and online experiments.

Every result should answer: “For which units, drawn from which population?”

Key takeaways