Skip to main content

Minimising bias in data collection and preprocessing

Instruction and application
Complete

Lineage and metadata reduce the chance that opaque, unfair data reaches your model. Bias can still enter during collection and preprocessing—sometimes silently until real users are harmed.

What is bias?

Bias is systematic skew in data, labels, features or outcomes. It may come from unrepresentative samples, inconsistent measurement, proxy variables or human labelling choices. The damage often appearslate, after deployment.

Common bias types (with mitigations)

Data bias

Training data does not reflect the real world. Mitigation: broaden sources, languages and geographies; document exclusions; monitor slice metrics.

Sampling bias

The sample differs from the target population. Mitigation: design sampling plans for coverage; weight or resample carefully; document known gaps.

Confirmation bias

Teams select or interpret data to match prior beliefs. Mitigation: pre-register evaluation slices; independent review; adversarial testing.

Measurement bias

Collection or labelling rules differ across groups or time. Mitigation: standardise instruments and label guides; audit labelers; harmonise historical schema changes.

Algorithmic bias

Models amplify inequality even when raw inputs look neutral. Mitigation: fairness constraints, post-processing, regular audits, diverse review panels.

Human bias

Annotators or product owners encode stereotypes into labels or objectives. Mitigation: diverse labeling teams, rubrics, inter-rater reliability, appeals channels.

Key points

Ignoring bias risks unfair decisions, reputational crises and regulatory enforcement. Mitigation is technical and organisational: metrics alone cannot replace accountable process design.

Mitigation strategies in depth

Diverse data collection

Scenario: A loan model trained mainly on historical approvals inherits past discrimination.Response: add regulated alternative data (where permitted), community finance signals and carefully validated features; pair with fairness testing.

Key point

“More data” is not automatically better—more representative, well-documented data is.

Data augmentation for fairness

Scenario: An image classifier confuses occupational roles with gender because training photos skew stereotypical.Response: oversample underrepresented roles, generate synthetic-but-realistic images where policy allows and re-balance evaluation sets.

Bias detection tooling

Scenario: A résumé screener recommends men for leadership roles disproportionately.Response: run toolkits such as Fairlearn or AI Fairness 360 to measure disparity; apply constraints, reweighting or remove proxy features; revalidate after each retrain.

Ethical foundations beyond math

Fairness and equity:

test outcomes and errors across protected and operational slices where law and ethics apply.

Transparency and explainability:

pair preprocessing documentation with model explanations for denials, care pathways or risk scores.

Accountability:

assign owners for dataset approvals, publish audit cadence and create escalation when metrics breach thresholds.

Moderation and language models illustrate the stakes: automated systems can disproportionately flag dialects or communities when training data and policies are not continuously reviewed.

Action item: Quiz

You are a data scientist working for a loan application company. Your team has developed an AI model to predict loan approval. After initial testing, you notice that applicants from certain postcodes, which are historically associated with lower-income communities, have a significantly lower approval rate compared to applicants with similar financial profiles from wealthier areas.

Your HR department is using an AI-powered resume screening tool to shortlist candidates for a software engineering role. A colleague points out that the tool seems to be consistently ranking candidates who list specific (and relatively niche) open-source contributions higher than others with potentially stronger overall experience and more diverse skill sets. You suspect this might be due to the training data heavily featuring past successful hires who happened to have these specific contributions. What is the most likely type of bias at play here, and what initial action should you recommend to investigate it?

You are part of a team developing an AI tool to help prioritise customer support tickets. After deployment, you notice that tickets submitted in languages other than English are consistently being assigned a lower priority, even when the issue described is critical. The training data for the AI primarily consisted of English-language support tickets. Which bias mitigation strategy would be most effective in addressing this issue and ensuring equitable prioritisation for all customers?

In progress