MODULE 07 · 2+ HOURS · SHIP RESPONSIBLY

Deploying AI
Ethically & Safely

Putting AI where people use it, watching if it goes wrong later, and treating people fairly — explained simply.

Going live
Fairness & privacy
10 Quiz Questions
8 Real-World Examples
10 Quiz Questions
🚀 Deployment 🔄 MLOps ⚖️ Ethics 📜 Governance
↓ scroll to begin

From notebook to live app

Training a model on your laptop is only half the story. Real people need a safe, fast way to send a photo or question and get an answer — every day, not just once in class.

💡 Deployment means “put it where users are.” A chatbot on a website, face unlock on a phone, or a defect checker on a factory PC are all deployments.

What changes when you go live:

Before launch checklist (simple):

  1. Test on photos or text the model never saw.
  2. Measure speed — how long until the user gets an answer?
  3. Plan what to show when the system is unsure (“I don’t know” is OK).
  4. Log errors without storing private data you do not need.
FROM TRAINING TO REAL USERS train model test it put online users ask watch

Figure — Build, launch, then keep checking it still works.

ONE USER QUESTION — WHAT HAPPENS user types website server AI model answer

Figure — If any step fails, user sees error — not a blank screen.

Ways to share AI with people

WayWhat it meansUsed forExample
Website / appUser sends text or photo onlineHomework helper, support chatSchool study website
On deviceModel runs on phone or robotFast, more private, offline sometimesKeyboard word suggestions
APIOther apps call your AI over internetOne brain, many appsTranslation used inside many apps
Batch jobRuns overnight on many itemsReports, not instant chatScore 10,000 forms by morning
Embedded in machineInside factory PC or cameraStop belt when defect seenVision PC next to conveyor

What to watch after launch

MeasurePlain EnglishWhy care
SpeedSeconds until answerUsers leave if too slow
UptimeIs the service online?Homework due at midnight
Error rateHow often it crashesTrust drops fast
Complaints“Wrong answer” reportsEarly sign of drift or bias
CostCloud bills for AI callsPopular app can get expensive
Good error message “Our helper is busy — try again in a minute.” User knows what to do.
Bad error message Blank screen or code “500” — user thinks they broke something.
Version tag Store which model answered each request — helps fix yesterday’s bug today.
Example — chat homework helper: Many students open it Monday at 8 a.m. The server must handle hundreds of questions at once, or queue them politely. If the model file fails to load, show a clear message — not a silent failure.
Example — factory vision PC: Camera sends every bottle image to a program on a local computer (no cloud needed). If the PC reboots, the line should stop safely until vision is back — not ship unchecked bottles.
Try it · Design a “busy server” message for students

Write two sentences a 12-year-old would understand. What should NOT be shown (internal error codes)?


When the world changes, models can get worse

Drift means the real world moved but the model stayed the same. New slang, new phone cameras, new spam tricks — the old brain is still answering yesterday’s world.

Think of a spam filter trained in 2020. It learned old scam phrases. In 2026, scammers use new emoji patterns and new links. The filter still runs, but more spam slips through until someone retrains it on fresh emails.

Three simple types of drift:

What teams do: Watch simple charts, read user complaints, retrain on new data, or roll back to the last model that worked — like undoing an app update.

DRIFT — WORLD CHANGED, MODEL DID NOT past today real world old model still assumes past

Figure — Gap grows when training data no longer matches today.

WHEN QUALITY DROPS — FIX LOOP notice problem collect new examples retrain or roll back test again

Figure — Same cycle as deployment: never “launch and forget.”

Signs you may need to retrain or fix

SignWhat users noticeExample
More wrong answersComplaints go upSpam filter misses new emoji spam
New inputsPhotos or words look differentNew phone camera colour style
Rules changedLaw or school policy shiftedStricter privacy for student photos
Old softwareSecurity holes, crashesIoT camera never updated
Sudden “always yes”Model says OK to everythingBroken sensor feeding zeros

Who does what (small team view)

RoleJob in plain English
DeveloperBuilds app, connects model, fixes crashes
Data personCollects new labelled photos or text
Domain expertTeacher, nurse, engineer — says if answers make sense
OperatorWatches dashboards, restarts service if down
Example — spam filter: New emoji-heavy scams appear. Old model misses them until the team labels 500 new spam emails and retrains. For a week, humans double-check the “spam” folder.
Example — fruit vision: Farm switches to a new apple variety that is more yellow. Camera still works, but the model was trained on red apples. Accuracy drops until new photos are labelled and added to training.

AI can help or harm people

If training photos mostly show one skin tone, one age group, or one language, the system may work worse for everyone else. That is unfair — and sometimes against the law.

Bias usually comes from data and design choices, not because the computer “hates” someone. Examples:

Privacy: Photos, voice, and location are personal. Collect only what you need. Say why. Let people say no when possible.

Explainability: People ask “why did the AI say no?” Simple reasons help (e.g. “flagged as spam because link pattern”). Deep neural networks are harder to explain — another reason to keep humans in the loop for big decisions.

HIGH-STAKES DECISION — HUMAN IN THE LOOP AI suggests human reviews final decision explain

Figure — AI assists; human decides for loans, medical, discipline, policing.

Fairness ideas — simple checklist

QuestionWhy it mattersExample
Who is in the training data?Missing groups → worse results for themFace unlock fails on some skin tones
Who gets hurt if wrong?Pick human review for big decisionsLoan denied by mistake
Did we ask consent?Photos and voice are personalSchool hallway camera
Can we explain the answer?Appeals and trust“Spam because suspicious link”
Can user opt out?Respect choiceOptional “smart” grading assist

Privacy — types of data and care level

Data typeSensitivityCare needed
Public web textLowerStill check copyright and bias
Student homeworkHighSchool rules, parent consent, secure storage
Face imageVery highConsent, limit storage time, secure servers
Health recordsVery highLaw, doctor oversight, encryption
Location from phoneHighExplain why; allow off switch
Example — hiring tool: If it learned from past hires and past hires were uneven, it may favour the same schools or hobbies. Humans must review rejections; the AI should not auto-reject alone.
Example — classroom plagiarism checker: Flags similar text. Teacher reads both essays before accusing a student. The flag is a hint, not a verdict.
Discuss · Should “emotion AI” score job interviews?

List two reasons yes and two reasons no. What could go wrong if the camera lighting is bad?


High-risk AI needs more care

Laws and school or company policies ask: What is this system for? What must it never do alone? Who is responsible if someone is harmed? How can people complain?

Governance is not only lawyers — it is clear rules so teams do not ship risky AI by accident. For student projects, a one-page “model card” is enough practice.

High-risk areas (need extra care): health, policing, hiring, loans, exams, critical infrastructure. Often require human oversight, logs, and testing before wide use.

Incident book: When something goes wrong, write it down — what happened, who was affected, what you changed. Same idea as a school accident log.

WHO IS RESPONSIBLE? AI system team builds boss approves user harmed

Figure — Many people share responsibility for high-risk AI.

Model card — what to write down (one page)

SectionPlain English — what to write
PurposeWhat job is this AI for? (e.g. “flag possibly bruised apples”)
Not forWhat it must never decide alone (e.g. “fire an employee”)
Training dataWhere photos or text came from; how many examples
Known weak spotsDark rooms, wet apples, cracked camera lens
MetricsHow accurate on held-back test set (simple %)
ContactWho fixes problems; how to complain
Last updatedDate and version number

High-risk uses — extra rules people expect

Use areaWhy extra careTypical safeguard
Medical diagnosisLife and healthDoctor decides; regulated testing
Police surveillanceFreedom and privacyLaw, oversight, audit logs
Exam scoring aloneFairness for studentsHuman grades; AI only assists
Child monitoringVulnerable usersParent consent, minimal data
Example — school attendance camera: Before turning it on, the school writes: purpose (count entries), not for (grading behaviour), who can see video, how long clips are kept, and how parents opt out. The AI only counts — it does not publish student rankings.
Try it · Draft three lines for a model card on your Module 8 project

Purpose, not for, known weak spot. Share with a partner — can they explain your project back to you?


Quick Knowledge Check

10 easy questions on using AI safely in the real world. Instant feedback on every answer.

Score: 0 / 0

Key Takeaways

Module 7 in short: ship carefully, watch for drift, and think about who gets hurt if the AI is wrong.

↑ Back to Top
📚 Further reading:
• NIST AI Risk Management Framework — nist.gov
• EU AI Act portal — European Commission
• Partnership on AI — partnershiponai.org