UPI Study › Courses › Introduction to Artificial Intelligence › Free lessons › Lesson 9.1 Free with a free account
Navigating the Ethical Landscape of AI
Introduction to Artificial Intelligence · Chapter 9: AI Applications, Ethics, and the FutureSection 9.1 · lesson 62 of 6915 min · free with a free account
Free preview
Create a free account to keep watching
It takes a minute and costs nothing. Your free account unlocks all of Chapter 1 and 3 more lessons of Introduction to Artificial Intelligence.
Lesson complete
Earn the 3 college credits for Introduction to Artificial Intelligence
Enrolling adds a quiz after each lesson, the graded work and the official transcript. Recommended for credit by NCCRS.
Next lesson: AI in Everyday Life: Current Applications →← Designing and Programming Advanced Robotic PlatformsNext lesson: AI in Everyday Life: Current Applications →
In this lesson
Frameworks and tools for fairness, privacy, explainability and accountability in AI.
- Compare utilitarian, deontological and virtue ethics as lenses for AI decisions
- Identify sources of algorithmic bias and explain why fairness measures conflict when base rates differ
- Explain privacy protections such as data minimization, differential privacy, randomized response and federated learning
- Describe how explainability, accountability practices and defenses against adversarial attacks support trustworthy AI
Free study notes
Get this lesson's notes by email
The key points and 4 practice questions with answers, in your inbox. One email, free.
One email. Unsubscribe in one click.
Transcript
Everything said in the video, section by section (1,969 words). Read along, or search it.
Opening Question
Faster Routes, Slower Neighborhood
A delivery company tests a new route-planning AI. It cuts total delivery time by 12 percent. But in one neighborhood, service becomes 30 percent slower. Should the company switch it on? When an AI system touches thousands of lives, how do we decide whether it's fair, who answers when it fails, and what it may know about us?
Ethical Frameworks
Utilitarian, Deontological and Virtue Lenses
Ethical frameworks are structured ways of asking what the right thing to do is. Three traditions dominate discussions of AI. A utilitarian looks at consequences: add up the gains and losses. If the total benefit clearly outweighs the harm, deploy. Its weakness: it can accept serious harm to a minority. A deontologist looks at duties and rights. Every neighborhood is owed fair service, so a large, unexplained loss for one group is a problem. Its weakness: duties can conflict. Virtue ethics asks what a fair, honest and caring company would do: probably look for a version that doesn't sacrifice one area, and tell residents what changed. Its weakness: vaguer guidance.
Core Principles
Five Principles of AI Ethics
The three lenses often disagree, and that's useful: each shows something the others miss. In practice, teams combine them. They estimate overall benefits, check for violations of rights and fairness, and ask whether the decision reflects their values. Most AI ethics guidelines boil this down to five principles: fairness, privacy, transparency, accountability, and safety. The rest of this lesson takes them in turn.
Algorithmic Bias
Where Unfair Differences Come From
Algorithmic bias means systematic, unfair differences in how a system treats, or performs for, different groups. It needs no bad intentions: data records a world that may already be unequal. Historical bias: the data accurately records an unfair world, like a lending history shaped by past discrimination. Sampling bias: some groups are scarce in the data, like a face model trained mostly on light-skinned faces. Measurement bias: a convenient stand-in replaces what we care about, like past arrests standing in for crime, when arrests depend on where police patrol. Aggregation and evaluation bias: one model fitted to groups that differ, or one average accuracy hiding poor results for a small group. And deployment bias and feedback loops. A tool that sends more patrols to some areas finds more incidents there, and then sends even more.
Proxies
Why Deleting Race or Gender Fails
This is real. Audits of commercial face-analysis systems found error rates as high as about 35 percent for darker-skinned women, against under 1 percent for lighter-skinned men. A tempting fix is to delete the sensitive attribute, like race or gender. It rarely works, because other features act as proxies. A postal code can reveal a lot about race or income. And deleting the attribute removes the ability to check whether outcomes are fair across groups.
Fairness Measures
Parity, Opportunity, Odds and Precision
To judge fairness, compare how a model treats different groups. Four measures are common, and each takes a different view of fair. Demographic parity: equal approval rates across groups. Equal opportunity: among people who truly qualify, each group is approved equally often. That's equal true positive rates. Equalized odds adds a second condition: unqualified people are also wrongly approved equally often. Equal true and false positive rates. And predictive parity: among those approved, the same share of each group truly qualifies. That's equal precision.
Worked Example
One Threshold, Two Base Rates
A worked example. A loan model sees two groups of 200 applicants. In group A, 120 would repay. In group B, only 80 would. One threshold for everyone catches 80 percent of those who'd repay, and wrongly approves 20 percent of those who wouldn't, in both groups. Group A: 96 correctly approved, 16 wrongly. Group B: 64 correctly, 24 wrongly. So group A's approval rate is 0.56, and group B's is 0.44. Precision is 0.86 against 0.73. Equalized odds holds exactly. But demographic parity fails, and so does predictive parity. The cause: different base rates of repayment.
Conflicting Measures
Matching Approval Rates Breaks Equalized Odds
Now the lender lowers group B's threshold, until its approval rate matches group A's 0.56. Under the example's score assumption, other things move. Group B's true positive rate rises to 0.90, and its false positive rate to 0.34. Precision falls to 0.64. Equalized odds is now broken. This isn't a quirk. Mathematical results show that when base rates differ, a model that isn't perfect can't satisfy several of these measures at once. A well-known dispute over a criminal risk score turned on exactly this: critics pointed to unequal false positive rates, and its makers to equally accurate scores. So teams must choose the measure that fits the harm they most want to avoid, and explain it. For loans, maybe equal opportunity. For screening, false positive rates.
Quick Check
Which Fairness Measure Holds
Quick check. Group X has 100 applicants, and 60 would repay. The model approves 50, and 45 of them would repay. Group Y has 100 applicants, and 40 would repay. The model approves 50, and 36 of them would repay. Which is the same for X and Y? Pause, and decide. The fraction accepted overall: 50 percent in both groups. So demographic parity holds. Equal opportunity fails: X approves 45 of its 60 qualified people, 75 percent, but Y approves 36 of 40, 90 percent. And predictive parity fails: 45 of 50 approved in X would repay, 90 percent, against 36 of 50 in Y, 72 percent. Different base rates again.
Reducing Bias
Before, During and After Training
Bias can be reduced at several stages. Before training, improve the data: collect more examples from under-represented groups, reweight them, and fix unreliable labels. During training, add a fairness requirement: penalize the model when its error rates differ across groups. That usually costs a little overall accuracy. After training, adjust decisions, for instance with different thresholds per group. That raises legal and ethical questions of its own. And throughout: test results by group, review with the people affected, monitor after launch, and offer an appeal. That's ongoing work, not a one-time check.
Privacy
Inference, Re-Identification and Memorization
Privacy is a person's ability to control information about themselves. AI raises four special concerns. Inference: models can work out sensitive facts, like health or politics, from harmless-looking purchases or posts. Re-identification: removing names often isn't enough. One well-known study estimated that about 87 percent of people in the United States could be identified from just a postal code, birth date and sex. Aggregation: many small, separate pieces of data, combined, reveal a detailed picture. And memorization: models can sometimes reveal parts of their training data.
Consent and Protections
Minimization, Differential Privacy and Federated Learning
Consent means a person agrees to how their data will be used. Meaningful consent is informed, specific, freely given, and withdrawable. In practice it's often weak. Long terms go unread, agreement is bundled with the service, and data collected for one purpose may later train a model for another. Ownership is even less settled. Is data about you owned by you, by the company that collected it, or by the service storing it? And what if you withdraw it? Practical protections help. Data minimization: collect only what's needed, and keep it only as long as needed. Anonymization, remembering re-identification is possible. Differential privacy adds calibrated noise, so results barely change whether or not any one person is included. Federated learning trains on people's own devices, sharing only model updates. And access controls with audit logs limit who can see data, and record who did.
Randomized Response
A Coin Flip That Hides Each Answer
The idea behind differential privacy shows up in an old poll trick: randomized response. A company wants the share of employees who've done something embarrassing. Each person flips a coin in private. Heads: answer truthfully. Tails: flip again, and say yes on heads, no on tails. One person's yes proves nothing: it could be the coin. Yet the group can be measured. If the true share is p, a yes comes with probability p over two, plus a quarter. So p is the observed share, minus 0.25, over 0.5. If 400 of 1,000 say yes, p is 0.15 over 0.5: 0.30. The price of privacy is noise. In one simulation of 2,000 repeated polls, the estimates spread about 3 percentage points either way. More people, more accuracy.
Transparency and Explainability
A Counterfactual Explanation for a Loan
Transparency is openness about the whole system: that AI is used, for what, on what data, and with what limits. Explainability is narrower: why this particular output? Short decision trees and simple scores are interpretable by design. Complex models need explanations after the fact, like which inputs mattered, or which change would flip the answer. A toy lender scores two times income, minus three times debts, plus years employed, in tens of thousands of dollars, and approves at 20. An applicant earns 60,000, owes 20,000, and has worked 4 years. Twelve, minus six, plus four: 10. Denied. Twenty thousand more income gives 14. No debts gives 16. Both together give exactly 20: approved. So does 50,000 more income alone. That's a counterfactual explanation: something the applicant can act on. But for complex models, explanations are approximations, and a persuasive one isn't proof the decision was fair.
Accountability and Safety
Who Answers When AI Causes Harm
Accountability means that when an AI system causes harm, someone can be identified, questioned, and required to put things right. With data providers, developers, deployers and users all involved, that's hard. Five practices help. Documentation of models and data sets. Logs and audit trails. Impact assessments before launch. Human oversight. And a way to appeal and get errors corrected. Safety means the system behaves as intended, even in unusual conditions: testing, monitoring, safe fallbacks, and people overseeing high-stakes choices. One safety problem is specification gaming: told to maximize clicks, a content system may promote sensational material. Making a system's goals match what people intend is called alignment.
Attacks on Models
Adversarial Examples and Data Poisoning
AI also adds new ways to attack a system, aimed at the model itself. Adversarial examples are inputs altered in tiny, deliberate ways that cause a wrong output. They attack at test time. Why tiny changes work: take 100 inputs, each with a weight of 0.5, and a decision margin of 1.5. Nudge every input by 0.04, in the harmful direction. Each nudge moves the score by only 0.02, but a hundred of them add up to 2.0: past the margin. The more inputs, as in an image, the easier this gets. Data poisoning corrupts the training data instead, to degrade the model or plant a hidden trigger. In one toy test, random label errors did no harm, but crafted points at 14 percent reversed the classifier. Defenses: check where data comes from, screen it for outliers, limit who can add to it, and test against known attacks.
Quick Check
Do 400 Tiny Nudges Flip the Decision
Quick check. A model has 400 inputs, each with a weight of 0.2, and a decision margin of 3. An attacker nudges every input by just 0.05, the harmful way. Does the decision flip? Pause, and work it out. Yes. Each nudge shifts the score by 0.05 times 0.2: 0.01. Four hundred of them add up to 4.0, more than the margin of 3. Judging by one tiny shift is the trap. It's the sum over many inputs that does the damage.
Back to Routing
Applying Every Lens and Tool
Back to the routing AI. A utilitarian tallies the 12 percent gain against the 30 percent loss. A deontologist asks whether that neighborhood is owed better. A virtue lens looks for a fairer version. The toolkit adds the rest: measure the effect group by group, protect the data the system uses, explain the change to residents, and name who answers for it.
Key Takeaways
AI Ethics in Summary
To sum up. Utilitarian, deontological and virtue lenses often disagree, and each reveals something the others miss. Bias can enter at every stage, and deleting a sensitive attribute doesn't remove it. Fairness measures conflict when base rates differ, so teams must choose and explain. Privacy needs real consent and protections like minimization, differential privacy and federated learning. Explanations and accountability let people challenge decisions, while adversarial examples and data poisoning attack the model itself.
Think About It
Choosing One Fairness Measure for Loans
Here's something to think about. You must pick one fairness measure for a tool that screens loan applications. Which would you pick, and whose interests would it favor? Which ethical lens shaped your answer, and what would someone using another lens say?
About Introduction to Artificial Intelligence at UPI Study
Introduction to Artificial Intelligence (Computer Science 373) is a self-paced online course of 69 video lessons in 9 chapters, from intelligent agents and search to game strategy, neural networks, logic and reasoning, machine learning, language, robotics and AI ethics. It carries a NCCRS credit recommendation for 3 semester credits.
Every lesson transcript is free on pages like this one, and the videos are free with a free UPI Study account. Enrolling adds a practice quiz after each lesson, the graded work and final exam that earn the credit, lifetime access, and an official transcript on completion. UPI Study has helped over 130,000 students with college credits. ACE and NCCRS have over 2,100 cooperating colleges that will consider accepting credits; the final decision is with the universities.
Enroll now → Course details Download the syllabus All Computer Science courses Every course with PRO →
Compare: AI vs Current Trends in CS and IT
Why take it here
Why students take Introduction to Artificial Intelligence with UPI Study
Where the credit goes
Universities that work with NCCRS
Introduction to Artificial Intelligence carries a NCCRS credit recommendation. These universities work with NCCRS; some are UPI Study's signed partners. ACE and NCCRS have over 2,100 cooperating colleges that will consider accepting credits; the final decision is with the universities.
Thomas Edison State UniversitySigned partner
University of the PeopleSigned partner
Charter Oak State CollegeSigned partner
Strayer UniversitySigned partner
Columbia Southern UniversitySigned partner
Indiana TechSigned partner
Penn StateWorks with NCCRS
Southern New Hampshire UniversityWorks with NCCRS
SUNYWorks with NCCRS
+many more cooperating universitiesFind my college →Find my college → Not listed? Ask Athena in the corner of this page, or book a 15-minute call.
FAQ
Questions students ask us
About Navigating the Ethical Landscape of AI
What causes algorithmic bias in AI systems?
Why can't a model satisfy every fairness measure at once?
How does randomized response protect privacy?
What is an adversarial example in machine learning?
About the Introduction to Artificial Intelligence course
How many college credits is Introduction to Artificial Intelligence?
How much does Introduction to Artificial Intelligence cost and what is included?
Which universities accept UPI Study credits?
How long does Introduction to Artificial Intelligence take?
How are the exams done?
How do my credits reach my college?
Ready for the full course? Earn 3 credits in Introduction to Artificial Intelligence.
69 video lessons, a quiz after each one, and the graded work that earns the credit. Recommended for credit by NCCRS.
3 credits · NCCRSEnroll →