Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

A model learns whatever patterns are in its training data, including gaps and historical inequalities. If one group of patients is under-represented, or their records are less complete, the model can work well on average and poorly for them. For that reason this chapter treats data quality and fairness together.

Data quality dimensions

Assess your training data on each of these dimensions:

DimensionQuestions
CompletenessAre values missing? At random, or more often for certain groups, wards or times of day?
AccuracyAre the labels correct? Are annotation guidelines applied consistently?
ConsistencyAre the same cases recorded and labelled the same way across annotators, wards and sites?
TimelinessDoes the data reflect current practice, or have protocols, assays or documentation changed since?
RepresentativenessDoes the mix of patients match the population where the system will be used?

Assessing representation

Describe your training data in three ways: demographic (age, sex, and ethnicity or socioeconomic status where recorded and lawful), clinical (disease severity, subtype, other conditions) and technical (site, ward, equipment, measurement protocol). Compare each with the population where the system will be used and record the differences you find.

Collecting attributes such as ethnicity is sensitive. They are special category data under the GDPR, and some may not be in your records at all. Decide with your data protection officer which attributes you may collect and on what basis European Parliament and Council (2016). For systems that will become high-risk under the EU AI Act, Art. 10(5) allows providers to process special category data to detect and correct bias, under strict safeguards European Parliament and Council (2024).

Bias detection in training data

Look at three things. First, the distribution of labels across groups: a difference can reflect real differences in disease, or historical differences in who was tested and diagnosed, and you need to know which. Second, the distribution of inputs: the model may use an input as a stand-in (a proxy) for group membership, such as postcode for income. Third, missing data: in healthcare, data is rarely missing at random, because what gets measured depends on what clinicians suspect and how busy the ward is.

Bias correction techniques

When you find a bias, several technical measures can reduce it:

References
  1. Lekadir, K., Frangi, A. F., Porras, A. R., & others. (2025). FUTURE-AI: international consensus guideline for trustworthy and deployable artificial intelligence in healthcare. BMJ, 388, e081554. 10.1136/bmj-2024-081554
  2. European Parliament and Council. (2016). Regulation (EU) 2016/679 – General Data Protection Regulation. Official Journal of the European Union.
  3. European Parliament and Council. (2024). Regulation (EU) 2024/1689 of the European Parliament and of the Council on artificial intelligence. Official Journal of the European Union.