Data Privacy Basics
Whose data is it, anyway? Advitha's coaching center wants to build an app that predicts which students need extra help. It has years of records: names, phone numbers, marks, attendance, even notes about health. The data could really help students, but every row is about a real person who never expected it to train an AI system.
Much of the data AI learns from is about people. This lesson covers the basics of handling it responsibly: what counts as personal data, why consent and purpose matter, and how to share less.
Personal, Sensitive and Non-Personal Data
| Kind | Examples | Why it matters |
|---|---|---|
| Personal data | Name, phone number, address, email, a photo of a face | It identifies a person, alone or combined with other data |
| Sensitive personal data | Health, money, religion, biometrics such as fingerprints, children's data | Misuse can cause serious harm, so it needs extra care |
| Data collected around you | Camera video, location history, app activity | People often don't notice it being collected |
| Non-personal data | Average prices, weather readings, totals with no names | It can't identify anyone, so it is usually safe to share |
Data can identify someone even without a name. A postcode, a birth date and a school together can point to one person. That is why removing the name column is not always enough.
Consent and Purpose
Consent means people knowingly agree to their data being collected and used. Purpose means the data is used only for what they agreed to. Advitha's coaching center collected phone numbers to send class updates; using them to train a model is a new purpose, and it needs a new, clear agreement.
| Good practice | What it looks like |
|---|---|
| Ask clearly | Plain words about what is collected and why, not hidden in long terms |
| Collect only what you need | No phone numbers if the task only needs marks |
| Use it only for the stated purpose | Class updates stay class updates |
| Protect it | Limited access, passwords, encryption |
| Let people see, correct or delete it | A simple way to ask |
Share Less: Remove What the Task Doesn't Need
The safest personal data is the data you never share. Before using data for analysis or AI, keep only the fields the task needs and replace names with anonymous IDs:
students = [
{"name": "Navika", "phone": "00000 00001", "marks": 91},
{"name": "Srihitha", "phone": "00000 00002", "marks": 84},
]
# Keep only what the task needs: an anonymous ID and the marks
shared = [{"student": f"S{i + 1}", "marks": s["marks"]} for i, s in enumerate(students)]
print(shared)[{'student': 'S1', 'marks': 91}, {'student': 'S2', 'marks': 84}]The marks are still useful for analysis, but names and phone numbers never leave. Replacing identifiers like this is called pseudonymization; it lowers the risk, but someone with the original list could still match the IDs back, so the data still needs protecting.
Laws Differ, Principles Don't
Many countries have data protection laws, as of November 2026. Two well-known ones are the European Union's General Data Protection Regulation (GDPR) and India's Digital Personal Data Protection Act, 2023. Their details differ, and this lesson is not legal advice, but the core ideas are shared: collect with consent, use only for the stated purpose, collect no more than needed, protect it, and respect people's rights over their own data.
Common Mistakes
Thinking public data is free to use for anything. A photo posted publicly was shared for people to see, not necessarily to train a model.
Thinking removing names makes data anonymous. Other fields together can still identify someone.
Collecting everything "just in case". Every extra field is extra risk, and many laws require collecting only what is needed.
Pasting personal data into AI tools. What you type may be stored by the service; "Privacy: What Not to Share with AI" covers this in detail.
Interview Corner
What is personal data?
Any information that identifies a person, directly, like a name or a photo of a face, or indirectly, like a combination of postcode, birth date and school. Sensitive personal data, such as health or financial information, needs extra protection.
What do consent and purpose limitation mean?
Consent means people knowingly agree to their data being collected and used. Purpose limitation means the data is used only for what they agreed to; a new use, such as training an AI model, needs a new basis such as fresh consent.
Practice
Exercise: plan a privacy-safe dataset. Advitha's coaching center wants to predict which students need extra help. List the fields you would keep, remove or replace with an ID, from: name, phone number, marks, attendance, health notes, parent's income and city. Then write the one-paragraph consent message you would show students, in plain words.
Check your understanding:
- Give two examples of personal data and two of sensitive personal data.
- Why might removing names not be enough to protect people?
- What is the difference between consent and purpose?
Key Takeaways
Quick reference
| Term | Meaning |
|---|---|
| Personal data | Information that identifies a person |
| Sensitive personal data | Personal data whose misuse can cause serious harm |
| Consent | People knowingly agreeing to how their data is used |
| Purpose limitation | Using data only for the purpose people agreed to |
| Data minimization | Collecting and keeping only what the task needs |
| Pseudonymization | Replacing identifiers, such as names, with IDs |
Was this tutorial helpful?