AI Ethics and Bias

A modern artificial intelligence system doesn't follow a recipe of rules that a programmer wrote out by hand. Instead it is shown huge piles of examples — millions of photos, sentences, job applications, medical scans — and it learns the patterns in them. Show it enough pictures labelled "cat" and "not a cat" and it works out, all by itself, what tends to make a cat a cat.

That is astonishingly powerful. But it hides a trap that is easy to miss: an AI can only learn from the examples it is given, so whatever is in the data ends up in the model. If the examples are lopsided, unfair, or full of human prejudice, the AI will quietly soak that up and then repeat it — confidently, instantly, and to millions of people at once. This page is about that trap: where AI bias comes from, why it matters, and why "the computer decided" is never the same as "the decision was fair".

A machine that copies its examples

Imagine a company that has hired people for the last ten years. It wants to save time, so it trains an AI to sift job applications: it feeds in every past applicant's CV, labelled with whether that person was eventually hired. The AI's job is to spot the pattern that separates "hired" from "not hired" and apply it to new applicants.

Sounds sensible — until you notice what the AI is really copying. If, in the past, the company mostly hired men for engineering roles (perhaps because of human bias, or simply because mostly men applied), then "was a man" becomes part of the winning pattern. The AI has no idea what fairness is. It just learns: CVs that look like the ones we hired before score highly. So it starts marking down women's CVs — not because anyone told it to, but because the past it learned from was already unequal. This is not a made-up worry; a real recruitment tool built by a large tech company had to be scrapped for exactly this reason.

Watch the pipeline below. Biased or lopsided data goes in; the model faithfully learns the same lopsidedness; and biased decisions come out — now wearing the disguise of objective, mathematical "computer output".

Where does the bias come from?

Bias doesn't sneak in by magic. It almost always enters through the data, in one of three ways:

Notice the common thread: in every case the AI is behaving exactly as designed — it is learning the patterns in its data really well. The problem is that the data itself was flawed. As programmers say: garbage in, garbage out.

Why it matters: unfairness at scale

A single biased human interviewer affects the handful of people they meet. A biased AI can screen millions of applications, loans, or scans — the same skewed judgement, applied over and over, at the speed of a computer. That is what makes AI bias so serious: it doesn't just repeat unfairness, it multiplies it, and it does so invisibly, hidden inside something that looks neutral and technical.

These systems increasingly make or shape decisions that change lives:

When an AI is biased in any of these, real people are unfairly denied opportunities or wrongly targeted — and because it feels "scientific", the mistake is often harder to challenge than a human's would be.

An AI is not automatically neutral, fair, or objective. It is tempting to think "a computer worked it out, so it must be unbiased" — but a computer only knows what its data taught it. A model trained on biased data will reproduce that bias confidently and precisely, dressed up as cold hard maths. "The algorithm decided" does not make a decision correct or fair. The bias doesn't disappear when a machine does it — it just gets a lab coat. That is exactly why humans must keep checking both the data going in and the outcomes coming out, and never treat an AI's answer as unquestionable.

The "black box" problem

With a hand-written program you can read the rules and see exactly why it did something. Many powerful AI models are different: they learn patterns spread across millions of tiny numbers (their internal "weights"), and no single number means anything you could point at. So even the people who built the system often can't fully explain why it gave a particular answer. This is called the black box problem, and the field trying to open the box up is called explainability.

Why does that matter for ethics? If a bank's AI refuses your loan, you deserve a reason — and "the model said no, we're not sure why" is not good enough. Without explanations you can't tell whether a decision was reasonable or biased, you can't appeal it fairly, and you can't fix the fault. A model being accurate most of the time isn't the whole story if nobody can say why it is wrong the rest of the time.

Who is responsible when AI gets it wrong?

When an AI makes a harmful or unfair decision, who is accountable? This is one of the hardest questions in computing ethics, because responsibility is spread out:

"The AI did it" is not an acceptable answer — software isn't a person and can't be held responsible. A machine cannot be taken to court, apologise, or lose its job. So most experts argue that the humans and organisations who build and use these systems must stay accountable for what they do. This is why laws, testing, and independent auditing of AI systems are growing so quickly.

It's a natural idea — delete the sensitive column from the data and the bias must vanish, right? Sadly no. Other information often acts as a proxy: a postcode can hint at ethnicity, a first name can hint at gender, the gap in someone's employment history can hint at having children. A model can quietly rebuild the very pattern you tried to hide, from clues you left in by accident. Removing bias is much harder than deleting one label — it takes careful, ongoing testing of the outcomes across different groups, not just tidying the inputs.

The wider picture

Bias is the sharpest ethical issue, but AI raises several others that a GCSE-level citizen should recognise:

Almost nobody serious argues that. The same technology also spots cancers in scans earlier than doctors can, translates between languages instantly, helps disabled people use computers by voice, predicts extreme weather, and speeds up the discovery of new medicines. AI brings enormous benefits — the goal of AI ethics isn't to stop it, but to build and use it responsibly: with representative data, tested outcomes, clear accountability, and a human keeping watch. The interesting question is almost never "AI: yes or no?" but "AI, used how, checked by whom?"

Checking for bias yourself

You don't need to build a neural network to audit one. A simple, powerful check is to run the model on different groups and compare how often it's right. If the accuracy is much worse for one group, that's a red flag — exactly the kind of test a responsible team must run before trusting a model. This tiny program compares a face-recognition system's accuracy on two groups:

// Made-up test results: how many faces the AI got right out of 1000, per group. const correctGroupA: number = 970; // faces well-represented in the training data const correctGroupB: number = 720; // faces under-represented in the training data const total: number = 1000; const accA: number = (correctGroupA / total) * 100; const accB: number = (correctGroupB / total) * 100; const gap: number = accA - accB; console.log("Accuracy on group A: " + accA + "%"); console.log("Accuracy on group B: " + accB + "%"); console.log("Fairness gap: " + gap + " percentage points"); if (gap > 5) { console.log("RED FLAG: this model is much less accurate for group B."); console.log("Likely cause: group B was under-represented in the training data."); } else { console.log("The model performs similarly for both groups."); }

A single overall accuracy figure ("94% correct!") can hide a serious fairness gap. Breaking the results down by group is one of the most important habits in responsible AI.