A4.4.1 · Ethical considerations
Ethics of machine learning
By the end you can
Discuss bias, privacy and consent, accountability, transparency, security, environmental and social effects, and online harms raised by machine learning.
A model that decides who gets a loan, a job interview or a medical scan has real consequences for real people. Machine learning is powerful because it finds patterns in data without being told the rules. That is also its risk: it can find patterns we would not endorse, apply them to millions of people, and do so in a way nobody can easily inspect. This page covers the main ethical issues. As always with ethics, the aim is not to learn a list of “right answers” but to weigh benefits and harms for everyone affected, and to reach a conclusion you can justify.
The main issues#
| Issue | The question it raises | Example |
|---|---|---|
| Does the system treat groups of people equally? | A recruitment tool that rates women lower because past hires were mostly men. | |
| and | Whose data is used, and did they agree knowing what it was for? | An app that sells location and heart-rate data. |
| Who is responsible when it goes wrong? | A self-driving car crash: manufacturer, owner, or software developer? | |
| Can the decision be explained and challenged? | A refused loan that even the bank cannot explain. | |
| Security | Can the system be attacked or manipulated? | Inputs altered to fool a medical or driving system. |
| Environmental impact | What does it cost in energy and resources? | Training very large models uses large amounts of electricity. |
| Societal effects | What happens to jobs, access and inequality? | Automation that removes some jobs and benefits those with access to the technology. |
These issues are connected. A non-transparent model makes bias harder to find; a lack of accountability makes harm harder to put right; collecting more data to improve fairness can threaten privacy.
Bias in training data#
means systematic unfairness for or against a person or group. A model has no opinions, but it copies its data, so bias gets in through the data. There are several routes:
- History is recorded. If a bank once refused loans in a particular neighbourhood, that decision sits in the records, and a model trained on them learns to refuse that neighbourhood.
- Some people are missing. A diagnostic tool trained mainly on data from one group may be less accurate for others, leading to misdiagnosis.
- Stereotypes in text. A language model trained on biased text can repeat the stereotypes in it.
- It can be subtle. Even apparently neutral data, such as news articles, can carry the viewpoints of those who wrote it.
Real cases make the point. One large online retailer is reported to have stopped using a recruitment tool after it was found to rate women’s applications lower because of the historical hiring data. A risk-scoring tool used in some US courts was found in a widely cited analysis to label one group of defendants as high risk who did not go on to reoffend more often than another. Credit-scoring systems trained on historical financial data can reproduce unequal access to loans.
A company has 400 past applicants in two groups, A and B. Skill is spread equally in both groups, and anyone with a skill score of 60 or more is genuinely qualified. In the past, human recruiters asked group B for a higher score. A model is now trained to copy those past decisions. Applicants in group B mostly live in area 1; group A mostly in area 0.
The past human decisions
Share of equally qualified applicants who are hired
The trained model
Share of equally qualified applicants who are hired
With only the skill score the two groups are treated almost alike (a gap of -1 percentage points). The model still learned a single skill threshold from biased examples, so it is a little off for everyone, but it does not use the group.
Removing the sensitive column is not enough if another column stands in for it. And a model that is accurate at copying past decisions is not the same as a fair one.
Three things to take from the lab. First, a model told the group and trained to match past decisions copies the bias. Second, when the group is hidden but home area is available, the area stands in for it (a ) and much of the unfairness comes back. Third, it is fair to ask what “fair” should mean: matching past decisions is not the same as treating equally qualified people equally.
Cases that have been reported#
Examples make an exam answer concrete. These are cases reported in the textbooks. Describe them as reported, and use them to illustrate an issue rather than as proof of a general rule.
| Case | What was reported | Issue |
|---|---|---|
| A recruitment tool, 2018 | A large online retailer is reported to have scrapped an experimental hiring tool that rated women lower, because it had learned from past hiring data. | Bias from history |
| COMPAS risk scores | A tool used by some US courts to estimate the risk of reoffending was reported to give one racial group higher risk scores than another. | Bias, fairness, transparency |
| A hospital app and patient data | A health-data project involving a well-known AI company was found to have broken UK privacy law because patients had not been properly told how their data would be used. | Consent and privacy |
| A fitness-app heat map, 2018 | A map of users’ activity was published and unintentionally showed the locations of secret military bases and patrol routes. | Privacy |
| A social-media chatbot | A chatbot released on social media was manipulated by users and, within a day, was posting offensive messages. | Security: manipulated inputs |
| A film-ratings data set, 2006 | A data set released as “anonymous” was matched with public ratings elsewhere, so some people could be re-identified. | Privacy: anonymisation can fail |
Security deserves its own mention, because a machine learning system can be attacked in ways that ordinary software cannot. puts bad examples into the training data to steer the model. uses crafted inputs (for example tricky prompts) to make a trained model give wrong or forbidden answers. Model inversion tries to extract sensitive training data from the model. A system that is not secure cannot be fair or private either.
Machine learning in online communication#
- . Models can generate and spread false content at scale. A can make it appear that someone said or did something they did not, and has been used for fraud.
- Harassment and hate speech. Models can detect and filter harmful content, but bots can also be used to automate abuse, and filters can wrongly silence legitimate voices.
- Bias in recommendation and moderation. Systems that choose what you see or what is removed can treat groups unequally and shape what people believe. A system built to maximise engagement tends to recommend more of what you already like, which can create an that hardens opinions.
- Anonymity and accountability. Anonymity protects vulnerable people but can also shield abuse. Tools to identify users raise surveillance concerns.
- Privacy. Targeted advertising relies on detailed tracking of online behaviour, and models can infer things people never told them, such as a health condition. Data that is meant to be anonymous can sometimes be matched with other data and re-identified.
Reducing the harm#
No single fix works, so the approach is several layers together.
- Better data: representative, diverse and checked for bias; personal data sanitised and anonymised before use.
- Testing: measure results for different groups before and after launch (not just overall accuracy), and keep monitoring.
- Diverse teams who are more likely to notice problems that others miss.
- Consent and transparency: tell people what is collected and how decisions are made; give them a way to challenge a decision.
- Human oversight for decisions that matter, so a person remains accountable.
- Security against attack and misuse, and regulation that sets minimum standards.
Check yourself
Ethics of machine learning
Quick questions, made fresh every time and marked here. Do a few until they feel easy.
Exam practice
Paper 1-style questions
6 questions · 23 marks
Write your answer as you would in the exam, then show the mark points and tick each one your answer made. These are our own questions in the style of the exam, not past-paper questions.
1.Outline four ethical issues raised by the use of machine learning.
[4]Outline: A brief account: the main points, without much detail.
2.Explain how bias in training data can lead to a machine learning model treating groups unfairly.
[4]Explain: Give reasons: say what happens AND why, or how one thing causes another.
3.A company removes the column “gender” from its recruitment data and claims the resulting model cannot be biased by gender. Explain why this claim may be wrong.
[3]Explain: Give reasons: say what happens AND why, or how one thing causes another.
4.Describe the privacy concerns raised by a fitness app that uses machine learning on its users’ health and location data.
[3]Describe: A detailed account: say what happens, step by step if it is a process.
5.Outline the ethical concerns of using machine learning in online communication.
[3]Outline: A brief account: the main points, without much detail.
6.A company uses a model trained on ten years of its past hiring decisions to shortlist job applicants automatically. Discuss the ethical implications.
[6]Discuss: Look at the question from more than one side, weigh the points against each other, and come to a conclusion.
Past papers
Old exam questions on this topic
From HL Paper 1, May 2014 to November 2025. These papers were set on the previous syllabus, so the wording may differ from today's exam, but the topic is the same. Find the questions and markschemes in your school's past-paper pack.
| Paper | Question | Marks | About |
|---|---|---|---|
| May 2022 | 13(d) | 3 | An ethical concern in developing self-driving vehicles |
| November 2020 | 10(d) | 6 | Ethical issues in sharing customers’ data with marketers |
In a nutshell
- Ethical issues in machine learning: bias and fairness, privacy and consent, accountability, transparency and explainability, security, environmental cost, effects on jobs and society, and misuse such as deepfakes and misinformation.
- Bias comes from the data (past discrimination, under-represented groups, subtle patterns) and from design choices. A model repeats and can amplify what it learns, at scale.
- Removing a sensitive column does not remove the bias if proxy variables remain. Test the outcomes for different groups.
- Reducing harm: representative data, audits and testing, informed consent and anonymisation, explainable models, human oversight, clear responsibility, and regulation.
- A good discussion weighs benefits against harms for the different people affected and reaches a reasoned conclusion.
