Privacy and Data Protection
Apply privacy principles such as consent, purpose limitation and data minimization to AI, understand re-identification risk and privacy-enhancing techniques.
Welcome back!
Step 1 of 11Learn
Anonymous until it isn't
In the late 1990s, a US state agency released health records of state employees for research, with names, addresses and Social Security numbers removed. The governor assured the public that patients' privacy was protected. A graduate student, Latanya Sweeney, bought the city's voter roll for $20, which contained names alongside ZIP code, birth date and sex. Matching those three fields, she found the governor's own medical records and mailed them to his office.
Sweeney later estimated that about 87% of the US population could be uniquely identified by just those three facts: five-digit ZIP code, full date of birth and sex. Other studies have re-identified people from "anonymized" movie ratings, search logs, taxi trips and location traces. With location data, a handful of time-stamped points is often enough to single out one person.
This is re-identification: linking supposedly anonymous data back to individuals by combining it with other data. It matters enormously for AI, because AI systems are hungry for data and very good at finding patterns, including patterns that reveal identities or sensitive traits.
AI raises privacy questions at every stage: what data is collected to train a model, whether people agreed to that use, what the model can infer about people, whether it can leak training data, and how inputs from users are stored.
Step 2 of 11Practice · Choose one
Why could the governor's "anonymized" health records be re-identified?
Step 3 of 11Practice · Diagram
How two datasets were linked
Tap the region that made re-identification possible.
Tap the shape that answers the question, then press Check.
- Health records
Names removed, but diagnoses kept.
- Voter roll
Public, bought for $20; includes names.
- Health records only
- Diagnoses
- Prescriptions
- Health records + Voter roll (overlap)
- ZIP code
- Birth date
- Sex
- Voter roll only
- Name
- Address
Step 4 of 11Learn
Core data protection principles
Privacy laws around the world, from the EU's General Data Protection Regulation (GDPR) to many US state laws and laws in Brazil, India, Japan and elsewhere, share a common set of principles. They predate modern AI but apply directly to it.
- Lawfulness, fairness and transparency: have a legal basis for using personal data, and tell people clearly what you do with it.
- Purpose limitation: collect data for specific, stated purposes and don't quietly reuse it for unrelated ones. Using customer support chats to train a marketing model may break the original purpose.
- Data minimization: collect only what you need. Many AI projects collect everything "in case it's useful," which multiplies risk.
- Accuracy: keep data correct and up to date, especially when it drives decisions about people.
- Storage limitation: delete data when it's no longer needed.
- Security: protect data against breaches and misuse.
- Accountability: be able to show you follow these principles.
People also have rights, which vary by law: to access their data, correct it, delete it in some cases, object to certain processing and, under GDPR, not to be subject to solely automated decisions with legal or similarly significant effects without safeguards.
AI creates special difficulties. Once data is used to train a model, "deleting" a person's data may not remove what the model learned from it, and training on scraped public web data raises unresolved questions about consent.
Step 5 of 11Diagram
Your data rights (vary by law)
Tap a shape with to see more.
- The person in the data
- Access
See what data an organization holds about you.
- Correct
Fix inaccurate data.
- Delete
In some cases, have data erased.
- Object
Refuse certain uses, such as direct marketing.
- Human review
Under GDPR: safeguards against solely automated decisions with significant effects.
Step 6 of 11Practice · Match the pairs
Match each privacy principle to a situation that violates it.
Tap an answer, then tap the place where it belongs (or drag it there).
- Purpose limitation
- Data minimization
- Storage limitation
- Transparency
- Accuracy
Step 7 of 11Learn
Inference: what AI can guess about you
AI adds a privacy risk that older systems rarely posed: inference. A model can deduce sensitive information that a person never shared.
Researchers have shown that patterns of social media likes can predict personality traits, political views and sexual orientation with surprising accuracy. Shopping patterns can suggest pregnancy before a customer has told family. Typing rhythm, gait and voice can reveal health conditions. Location data reveals religion (places of worship), health (clinics) and relationships (overnight stays).
These inferences raise hard questions. Is a prediction about your health "your data"? Should a company be allowed to infer it without asking? Even when inferences are wrong, they can lead to real consequences, such as targeted ads that reveal a condition to others, or decisions based on traits you don't have.
Generative AI adds two more concerns. First, training data extraction: large models can sometimes reproduce chunks of their training data, including personal information, when prompted in certain ways. Second, user inputs: people paste emails, medical questions, contracts and customer records into chat tools, where they may be stored, reviewed or used for training depending on the service and settings.
Responsible practice is to treat inferred sensitive information with the same care as collected sensitive information, and to ask whether an inference should be made at all.
Step 8 of 11Tap to reveal
Privacy-enhancing techniques
Data minimization and aggregation
The simplest protection: collect less, and use summaries instead of individual records where possible. Data you never collect can't leak.
Pseudonymization
Replacing names and IDs with codes. This reduces casual exposure but isn't anonymization: as the governor's case showed, remaining fields can still identify people, and under GDPR pseudonymized data is still personal data.
Differential privacy
A mathematical technique that adds carefully calibrated random noise to results or training, so outputs reveal very little about any single person. The US Census Bureau used it to protect 2020 census results, and several technology companies use it for usage statistics.
Federated learning
Training a model across many devices or organizations without collecting the raw data centrally; only model updates are shared. Used, for example, to improve phone keyboard predictions. It reduces but doesn't eliminate privacy risk.
Synthetic data
Artificial data generated to mimic the statistical patterns of real data. Useful for testing and sharing, but poorly made synthetic data can still leak details about real people or miss important patterns.
Step 9 of 11Practice · Fill in the blanks
Fill in the blanks
Linking supposedly anonymous records back to real people by combining them with other datasets is called . A technique that adds calibrated random noise so results reveal little about any individual is called .
Step 10 of 11Practice · True or false
Replacing names with random codes (pseudonymization) makes a dataset fully anonymous and safe to publish.
Step 11 of 11Practice · What would you do?
What would you do?
A retailer wants to train a model on five years of loyalty card purchases to predict which customers are likely to be pregnant, so it can send baby product offers. What is the most responsible assessment?
Lesson complete!