Franรงais

๐ŸŽญ AI and ethics

Applied AI โ€” Beginner Level ๐ŸŸข ยท Session 6

Yann Isola

โ€œAI is a mirror: it reflects our data, our choicesโ€ฆ and our faults.โ€

On the program today ๐Ÿ—บ๏ธ

  1. โš–๏ธ Bias: when AI is unjust unintentionally
  2. ๐Ÿ” Privacy: where does the data come from? (often from us!)
  3. โœ‹ consent and GDPR
  4. ๐Ÿ“ฆ The black box: why AI cannot be explained
  5. ๐Ÿš— Responsibility: who is guilty?
  6. ๐ŸŒ The environment and ๐Ÿ’ผ the work
  7. ๐Ÿ“œ The laws: the European AI Act โš 
  8. โš–๏ธ The AI Tribunal โ€” itโ€™s up to you to plead!

A true story to start ๐Ÿ•ต๏ธ

A large company is building an AI to sort CVs and identify the best candidates.

A few months later, we discovered that the AI discarded almost all women's CVs.

No one asked him to do this. ๐Ÿค”

Soโ€ฆ where does the problem come from?

The answer: data ๐Ÿ“Š

  • The company had recruited mainly men for 10 years
  • The AI learned about these past recruitments
  • She concluded: โ€œgood candidate = male profileโ€
  • She even learned to penalize words like โ€œwomenโ€™s teamโ€ฆโ€

๐Ÿ’ก The phrase to remember from the whole session:
โ€œAn AI is never more accurate than the data that fed it.โ€

The bias mechanism ๐Ÿ”„

The apprentice cook analogy ๐Ÿ‘จโ€๐Ÿณ

An apprentice who learns by watching ONE chefโ€ฆ
If the boss salts too much โ†’ the apprentice salts too much. Without asking any questions.

Imperfect world โ†’ imperfect data โ†’ AI that learns these flaws
              โ†’ unfair decisionsโ€ฆ at LARGE scale and VERY fast

โš ๏ธ Bias is not a failure: the AI โ€‹โ€‹reproduces faithfully what it has been shown. That's the trap.

Very real biases โ€” 3 examples ๐Ÿ“Œ

1. ๐Ÿ‘ค Facial recognition
Less than 1% error on some facesโ€ฆ more than 30% on others (dark-skinned women). Cause: training photos not diverse enough. Consequence: innocent people arrested by mistake.

2. ๐Ÿ“„ Recruitment
The CV sorter of history โ€” abandoned by the company.

3. ๐Ÿ“ข Targeted advertising
Well-paid job offers shown more often to men; expensive loans targeting certain neighborhoods.

๐ŸŽฎ Demo: the bias simulator

It's up to you! (session web page, tab 1)

  1. Train a mini sorting AI with balanced data โ†’ everything is fine โœ…
  2. Train it with unbalanced data โ†’ it becomes unfair โŒ
  3. Has AI changed? No. What has changed? The data.

How to correct bias?
โœ”๏ธ More diverse data ยท โœ”๏ธ Tests on all groups ยท โœ”๏ธ Diverse teams ยท โœ”๏ธ Regular audits

Privacy: where does the data come from? ๐Ÿ”

The AIs learned thanks toโ€ฆ us:

๐Ÿ“ธ Our published photos ๐Ÿ” Our research
โœ๏ธ Our texts (posts, opinions, comments) ๐Ÿ‘† Our clicks and viewing times
๐Ÿ“ Our position GPS ๐ŸŽค Sometimes our voice

๐Ÿ’ก โ€œIf it's free, your data is often the payment.โ€
(Not always true โ€” but always worth wondering!)

Consent โœ‹

Have you been asked for permission?

  • In theory yes: the general conditions of useโ€ฆ
  • โ€ฆthat no one reads! ๐Ÿ˜… Reading them all would take weeks per year
  • Often vague, hidden, or โ€œtake it or leave itโ€ consent

The right question to always ask yourself:

โ€œDoes this app really NEED this data to work?โ€
๐Ÿ—บ๏ธ A maps app that wants your position: logical.
๐Ÿงฉ A puzzle game that wants your contacts and your microphone: ๐Ÿคจ

GDPR: our European shield ๐Ÿ›ก๏ธ

GDPR = General Data Protection Regulation (Europe, 2018)

Your right In plain language
Access โ€œShow me the data you have on meโ€
Rectification โ€œCorrect what is wrongโ€
Deletion โ€œDelete my dataโ€ (right to be forgotten)
Clear consent We must ask, not trick
Protection of minors Parental consent for the youngest

Fines of up to 4% of global turnover ๐Ÿ’ธ โ€” In France, the police: the CNIL

๐ŸŽฎ Demo: the privacy checker

Web page, tab 2 โ€” and exercise 2 at home!

  • Check the apps and permissions of your phone
  • Discover your โ€œexposure profileโ€
  • Receive concrete advice to regain control

Goal: not fear โ€” lucidity. ๐Ÿ˜Ž
We observe โ†’ we understand โ†’ we adjust.

The black box ๐Ÿ“ฆโ“

Imagine a strange distributor: you insert your fileโ€ฆ
๐Ÿ’ก beep beep โ€ฆ he takes out a paper: โ€œREFUSEDโ€.
Why? The machine does not respond. No one can explain precisely.

Why? Big AI calculates via millions of internal settings automatically adjusted. No human has written โ€œif X then refuseโ€.

It often works very well... but explaining each decision is very difficult.

When the black box becomes serious โš ๏ธ| Domain | The annoying question |

|---|---|
| ๐Ÿฅ Health | โ€œNo treatment for you. " - For what ? A doctor must be able to check! |
| โš–๏ธ Justice | Evaluate a โ€œrisk of recidivismโ€ without explanation? And the freedom of the person? |
| ๐Ÿฆ Bank | โ€œCredit refused.โ€ For no reason โ†’ impossible to challenge or improve |

๐Ÿ“ The principle: the more a decision impacts a human life,
the more we must demand explanation + human control.

Responsibility: the crash test ๐Ÿš—๐Ÿ’ฅ

An autonomous car does not detect a pedestrian and causes an accident.
Who is responsible? Vote! ๐Ÿ™‹

  1. ๐Ÿง‘ The โ€œdriverโ€?
  2. ๐Ÿญ The manufacturer?
  3. ๐Ÿ’ป Developers?
  4. ๐Ÿค– AI itself?
  5. ๐Ÿ›๏ธ The state that authorized these cars?

The answer (spoiler: not the AI) โš–๏ธ

  • ๐Ÿค– AI cannot be responsible: no conscience, no legal personality. You don't put software in prison.
  • ๐Ÿ• Parallel: if a dog bites, we don't judge the dog โ€” we turn to the master.
  • The answer depends on the promises of the manufacturer: โ€œkeep your hands on the wheelโ€ โ‰  โ€œsleep peacefullyโ€.
  • โš  Laws are being written right now, all over the world. You will vote on these topics one day!

Responsibility is always human (or corporate). Never that of the machine.

Environmental impact ๐ŸŒโšก โš 

Training a very large AI means:

  • โšก As much electricity as hundreds of homes for a year โš 
  • โœˆ๏ธ A CO2 footprint comparable to several transatlantic flights โš 
  • ๐Ÿ’ง water to cool data centers โš 

And every use counts: a request to a large generative AI consumes significantly more than a traditional web searchโ€ฆ ร— billions per day โš 

The environment: both sides ๐ŸŒ—

The honest debate:

๐Ÿ˜Ÿ Concerns ๐ŸŒฑ Hopes
Exploding consumption More sober models in development โš 
Water and electricity for data centers Centers powered by renewable โš 
Futile use = waste? AI helps the environment: electricity networks, weather, deforestation, agriculture

๐Ÿค” To discuss: generating a funny meme vs helping to discover a drug โ€” where do we put the cursor?

AI and work ๐Ÿ’ผ

๐Ÿ”„ Processed โš ๏ธ Endangered Tasks โœจ New professions
Doctor (diagnostic aid) Repetitive entry Bias Auditor
Graphic designer (generative tools) basic translation AI Ethicist
Prof (custom supports) Sorting documents Data Protection Officer (thanks GDPR!)
  • ๐Ÿ“œ History repeats itself: the computer has eliminated jobs... and created much more. But AI will faster โ†’ train continuously!

๐Ÿ’ก โ€œAI probably won't take your job. But someone who knows how to use it could transform it.โ€
AI: a tool, not a replacement.

Laws: the European AI Act ๐Ÿ“œ โš 

  • ๐Ÿ‡ช๐Ÿ‡บ Adopted in 2024 โš  โ€” first major law in the world dedicated to AI
  • Gradual application over several years โš 
  • The brilliant idea: classify AI by risk level ๐Ÿ”บ

The European duo:

  • GDPR โ†’ protects data
  • AI Act โ†’ regulates the uses of AI

The risk pyramid ๐Ÿ”บ| Level | Examples | Rule |

|---|---|---|
| ๐Ÿ”ด Unacceptable | Social rating of citizens, manipulation of the vulnerable | INTERDIT |
| ๐ŸŸ  High risk | Recruitment, credit, justice, exams, medical | Strict conditions: tests, transparency, human control |
| ๐ŸŸก Limited | Chatbots, generated images, deepfakes | Must warn: โ€œI am an AIโ€ |
| ๐ŸŸข Minimal | Anti-spam, game AI, recommendations | Free |

๐Ÿง  Tip: the more AI touches on freedom, money, health, education โ†’ the higher it rises in the pyramid.

Itโ€™s up to you to classify! ๐ŸŽฏ

Where do you place these AIs in the pyramid?

  1. ๐ŸŽต An AI that suggests a playlist
  2. ๐Ÿ“ An AI that grades your patent copies
  3. ๐Ÿ›๏ธ A state that awards โ€œgood citizen pointsโ€
  4. ๐Ÿ’ฌ A homework help chatbot
  5. ๐Ÿฆ An AI that decides your student loan

(Answers: 1โ†’๐ŸŸข, 2โ†’๐ŸŸ , 3โ†’๐Ÿ”ด, 4โ†’๐ŸŸก, 5โ†’๐ŸŸ )

โš–๏ธ The AI Tribunal

The case to be judged:

โ€œJules-Verne college wants to use AI to grade papers and predict student success.โ€

๐ŸŸข Defense ยท ๐Ÿ”ด Prosecution ยท ๐Ÿ‘ฅ Jury ยท โš–๏ธ Judges

Let the trial begin!

The rules of the trial ๐Ÿ“‹

  1. Preparation of teams โ€” 5 min
  2. Pleading defense ๐ŸŸข โ€” 2 min flat
  3. Plea accusation ๐Ÿ”ด โ€” 2 min flat
  4. Right of reply โ€” 1 min each
  5. Jury questions โ€” 3 min
  6. Vote ๐Ÿ—ณ๏ธ (web page, tab 3) + reasoned verdict

โš ๏ธ Golden rule: we plead the imposed position, even if we think the opposite. Itโ€™s strength training for the brain! ๐Ÿ’ช๐Ÿง 

The final twist ๐ŸŽฌ

This case has already happened. In real life.

๐Ÿ‡ฌ๐Ÿ‡ง United Kingdom, 2020: exams canceled (Covid) โ†’ an algorithm awards final grades.

Result:

  • ๐Ÿ“‰ Underrated disadvantaged high school students
  • ๐Ÿ˜ก Demonstrations in the street: โ€œF** the algorithm!โ€*
  • ๐Ÿ—‘๏ธ System abandoned in a few days

Does this change your verdict?

What to remember ๐ŸŽ’

  1. โš–๏ธ An AI is never fairer than its data (bias)
  2. ๐Ÿ” Our data is worth gold; GDPR gives us rights
  3. ๐Ÿ“ฆ Important decision โ†’ require transparency + human control
  4. ๐Ÿง‘ Responsibility is always human, never that of AI
  5. ๐ŸŒ AI has an environmental cost โš  โ€” to weigh against the benefits
  6. ๐Ÿ’ผ AI: a tool that transforms work, not a replacement
  7. ๐Ÿ“œ The AI Act โš : a pyramid of risks, from ๐Ÿ”ด prohibited to ๐ŸŸข free

Thank you! ๐ŸŽญ

At home:

๐Ÿ“ฑ Exercise 2: the privacy audit of your phone
โ“ The quiz (10 questions)

Next time:

We continue the adventure โ€” until then, keep your eyes peeled:
spot an AI ethical dilemma in the news of the week! ๐Ÿ—ž๏ธ

Applied AI โ€” Yann Isola