Skip to content

What is hidden stratification in an AI system?

Hidden stratification occurs when apparently satisfactory overall results mask poor AI model performance on subgroups not identified during training or testing.

Hidden stratification is the presence, in data used by an artificial intelligence system, of unidentified subgroups where performance can be much worse than the overall result. For example, a broad diagnostic category may include forms of a disease that are difficult to detect. If the more common cases are recognized well, the overall score can hide errors on the less common forms. The problem arises when the labels assigned to cases do not adequately capture differences that matter for how the system will be used. Nor is it limited to personal characteristics: it can also stem from disease severity or the conditions under which the data was collected. Evaluating performance on known groups is useful, but it cannot guarantee finding the ones nobody has identified yet. Deciding whether to use a model therefore means examining aggregate results as well as the errors and possible differences among cases.

A study of hidden stratification in medical imaging shows another case: on its pelvic X-ray sample, sensitivity (the ability to detect hip fractures that are present) was 98.1% overall and 90% for the 38 subtle fractures. These are results for that model and sample, not a universal estimate.

See also: Evals (model evaluation)Evals are systematic assessments that measure an AI system against defined cases and criteria, helping teams compare versions and understand its risks.

The Gender Shades case

In Gender Shades, researchers examined three commercial systems that classified gender from faces. On their test set, error rates reached 34.7% for darker-skinned women, compared with a maximum of 0.8% for lighter-skinned men. On the same set, overall accuracy ranged from 87.9% to 93.7%; each single figure, the authors note, obscured substantial differences between subgroups.

An enterprise example

Suppose a company is evaluating a system that routes support requests. The system's overall routing accuracy looks adequate, but a review of its errors turns up recurring problems in a group the initial evaluation did not anticipate: messages with unusual attachments. The team adds human-verified examples to a separate test set and compares that group's score with the overall score. System evaluations can then measure the issue without assuming that adding data automatically fixes it. Until that group's score reaches an agreed-upon threshold, those messages go to a human agent. If the group has only a few cases, the estimate remains uncertain and more observations are needed.

Why it matters for decision makers

During procurement, first decide internally which errors cost the most, then ask the vendor which groups it tested and how many cases each contains. NIST guidance notes that risk management becomes more reliable when measurement looks past test-case averages to pockets of failure with potentially significant costs, and it suggests documenting checks before and after deployment. Error review can surface unexpected groups, and up-front risk categories help test foreseeable risks, but neither method alone guarantees complete coverage. Model monitoring should keep these group-level breakdowns and reopen the analysis when data or use changes.

Frequently asked questions

Compare results across relevant groups and examine errors for unexpected shared features, recognizing that no method finds every group.

No. It can also involve the form or severity of a disease, data collection conditions, or other differences in the data that affect performance.
  • Evals (model evaluation)Evals are systematic assessments that measure an AI system against defined cases and criteria, helping teams compare versions and understand its risks.
  • Model monitoringModel monitoring tracks the data, predictions, and outcomes of models in production to detect changes and decide when their performance calls for action.
  • Cohort analysisCohort analysis tracks groups of customers who share a starting event and compares them over time, revealing differences in behavior that averages can hide.
  • Model cardA model card documents a machine learning model's intended uses, evaluation results, and limitations, helping adopters judge whether it fits a given task.

See it in the universe

If it touches your company's data, getting that data in order is the first thing I do.

See Data Foundations

Or write to me.