📘 CodingMarble Learn

AI Ethics: Using Artificial Intelligence Fairly and Safely

AI systems learn patterns from data and then make decisions. AI ethics asks whether those decisions are fair, safe and respectful. The main issues are bias (unfair data gives unfair results), privacy (personal data needs consent and protection), transparency (people should know why an AI decided something), accountability (a human stays responsible), safety and misuse (deepfakes, false information), and social impact (jobs, the digital divide, the environment). Responsible AI means checking all of these before and after an AI is used.

🎬 Step-by-step story

  1. An AI learns from data. Ten old examples go in, the AI finds a pattern, and then it makes new decisions on its own.
  2. Bias: 8 of the 10 examples are blue. The AI learns that blue is normal and now says YES to blue people far more often. Unfair data makes unfair AI.
  3. Privacy: much AI data is about people. Personal data should be taken only with consent, stored safely and used only for the purpose people agreed to.
  4. Black box or glass box? A closed AI just says No. An explainable AI shows the reason, so people can check it and challenge mistakes.
  5. A human stays in charge: the AI suggests, a person checks and decides, and someone is accountable if harm is done. AI also changes jobs, so people learn new skills.
  6. Try it: change how many training examples are orange and watch the YES rate of each group and the fairness gap.

Tip: drag the 3D scene to turn it. Use two fingers to zoom.

🤔 Common doubts, cleared

If a computer just does maths, how can it be unfair?

The maths copies the patterns in the data. If the data favours one group, the results do too, as the 8 blue : 2 orange step shows.

Why does an AI need my personal data at all?

To learn patterns about people it needs examples. That is why consent, limited collection and safe storage matter.

Why should an AI explain itself if it is usually right?

When it is wrong, people need the reason to spot the mistake and appeal. A black box gives no way to check.

Who is to blame if an AI makes a harmful decision?

The people and organisation that built and used it. A human stays accountable.

Can we make an AI perfectly fair?

Not perfectly, but we can shrink the gap a lot by balancing data and testing each group. Try the slider.

What is AI ethics?

Artificial intelligence (AI) is software that learns patterns from data and uses them to predict or decide. Ethics is the study of right and wrong. So AI ethics asks: is this AI fair? Is it safe? Does it respect people?

An AI does not have its own values. It copies the patterns in its data and follows the goal its makers gave it. That is why the people who design, train and use AI are responsible for what it does.

Five key principles

Bias in data and algorithms

Bias means a system leans unfairly towards or against a group. It can enter in three ways:

Example: a hiring AI trained on ten years of past hires, mostly men, may learn to rank women lower. Fixes: collect balanced data, test results for each group, remove unfair features and keep checking after launch.

Privacy and the ethics of AI data

AI needs huge amounts of data, and much of it is about people: photos, voices, locations, health and shopping history. Good practice:

Many countries now have data protection laws, such as the EU's GDPR and India's DPDP Act 2023. Copyright is also an issue: AI trained on artists' or writers' work without permission raises questions of fairness and ownership.

Transparency, accountability and safety

Some AI models are a black box: even their makers cannot easily say why they gave an answer. Explainable AI shows the main reasons for a decision, so people can check it and appeal.

Accountability means a human is responsible. For high-stakes decisions (medical, legal, loans, exams) a person should review the AI's suggestion: this is called human in the loop.

Safety and misuse: AI can make mistakes with confidence ("hallucinations"), can be used to make deepfakes and false news, and can be tricked. Safe AI is tested, watched after release and has limits on harmful uses.

AI and social change

AI helps in medicine (reading scans), farming (crop disease alerts), translation and accessibility (voice for people who cannot see). It also brings problems:

Assessing social impact of an AI project: list who is affected, what could go wrong for each group, how to measure fairness, and how people can complain. Humans and AI work best together: AI handles speed and scale, humans bring judgement, care and values.

Try it: be the fairness tester

In the last 3D step, set the number of orange examples to 2, then 5, then 8. Write down the YES rate for each group. Which mix gives the smallest gap? At home: open any app on your phone and find its privacy settings. Which data does it collect? Would you agree to all of it?

Key formulas and definitions

Worked examples

1. A face-unlock AI works for 99 of 100 light-skinned users but only 90 of 100 dark-skinned users. What is the problem and one fix?

Step 1: Error rates: 1% vs 10%, so the system is less accurate for one group. Step 2: This is bias, most likely from training data with too few darker faces. Step 3: Fix: add many more varied faces to the training data and test accuracy separately for each group before release.

2. A hiring AI says YES to 60 of 100 men and 30 of 100 women with similar marks. Find the fairness gap.

YES rate for men = 60%. YES rate for women = 30%. Gap = 60 − 30 = 30 percentage points. A large gap with similar marks shows the AI is unfair and must be fixed before use.

3. A school wants to use cameras with AI to mark attendance by face. List two ethical checks.

1. Privacy and consent: tell students and parents, ask permission, store face data securely and delete it later. 2. Fairness and accountability: test that it works for every student, and let a teacher correct mistakes instead of trusting the AI fully.

Common mistakes

Practice quiz

1. Bias in AI most often comes from:
2. Explainable AI means the AI:
3. Human in the loop means:
4. Which is a privacy principle?
5. A deepfake is:

Practice: answer these yourself

Type or choose your answer, then press Check. Use a hint if you are stuck; the full solution appears after you answer.

Frequently asked questions

What is AI ethics in simple words?

It is the set of rules and questions that help us make sure AI is fair, safe, private, explainable and that humans stay responsible for it.

What are the main ethical issues of AI?

Bias and fairness, privacy, transparency, accountability, safety and misuse (like deepfakes), job changes, the digital divide and environmental cost.

How can students use AI ethically?

Use AI to learn, not to copy; check facts it gives; do not share other people's data or photos; say when you used AI; and report unfair or harmful outputs.

Where this is taught

CBSE (India)Class 10Part B: Revisiting AI Project Cycle & Ethical Frameworks for AI
CBSE (India)Class 10Part B: Ethics in Data Science
CBSE (India)Class 11AI Ethics and Values
South Korea중학교 2학년Artificial intelligence
South Korea고등학교 2학년Social impact of AI
South Korea고등학교 2학년AI project
South Korea고등학교 2학년Science and digital ethics
South Korea고등학교 2학년Life and ethics in the AI age
South Korea고등학교 2학년Social problems in a changing world
China九年级(初三)Module: AI and smart society
China高一Comp.1 Ch.4 Intelligent era
China高三Sel.4 Introduction to AI

Learn first

Learn next

Related lessons

All Computer Science lessons