Beginner level · Module 4: Data Privacy, Consent and Responsible Data Use · Lesson 3 of 3
Identifiers, Re-identification and Safe Sharing
Learners find direct and indirect identifiers in an educational dataset and use simple techniques (removal, coding, banding and grouping) to reduce re-identification risk before data is shared.
In this lesson you will
- Distinguish direct and indirect identifiers
- Apply simple de-identification techniques to a dataset
Key concepts
direct identifierindirect (quasi-)identifierre-identificationbanding and groupingaccess control
The lesson
A direct identifier, such as a name, phone number or ID number, identifies someone on its own. Indirect identifiers, such as school, year of birth, village or a rare disability, identify someone in combination. In a small payam, 'female, born 2009, school X, hearing impairment' may describe exactly one student.
Simple techniques reduce the risk. Remove columns that are not needed. Replace IDs with random codes. Turn exact values into bands (an age band instead of a date of birth). Group small categories together, and do not publish counts below a minimum, such as fewer than five students.
De-identification lowers risk but does not remove it, so control access as well. Share the minimum, with named people, under a written agreement, and keep a log of who received what.
Step by step
- Open the fictional exam-results file provided by the instructor.
- Mark every column as a direct identifier, an indirect identifier or non-identifying.
- Apply removal, coding, banding and grouping.
- Count how many records are still unique on school + age band + gender, and group further if needed.
An 'anonymised' exam-results file that identified students
A composite, illustrative case: names were removed from a shared file, but combinations of other columns still identified individual students.
Context
A fictional county education office shared a file of 3,200 secondary-school examination results with a research partner to build a model that predicts which schools need extra support. Names and student numbers were removed before sharing.
Challenge
The file still contained school, gender, exact date of birth, home village and a disability field. In small schools, many combinations were unique: one row was the only female student born in a given month at her school with a recorded disability, so anyone who knew her could find her results and her disability status.
What they did
- Counted how many rows were unique on school + gender + date of birth: 41% were unique, and most of them were in rural schools with fewer than 60 candidates.
- Replaced date of birth with an age band, home village with county and the disability field with a yes/no flag that is only reported for groups of at least five.
- Grouped schools with fewer than 30 candidates into 'small rural schools' for analysis.
- Re-checked group sizes until every combination of school group, gender and age band contained at least five students.
- Replaced the informal file transfer with a written data sharing agreement covering purpose, named users, a ban on re-identification, secure storage and deletion after the project.
Results
- The shared file no longer contained any combination describing fewer than five students, and it was still detailed enough for school-level support modelling.
- The office adopted a simple rule: no student-level file leaves the office without a group-size check and a signed agreement.
Lessons for your own work
- Removing names is not anonymisation; indirect identifiers in combination can single people out, especially in small communities.
- Rural and disabled students, who often need the most protection, are the easiest to re-identify because their groups are small.
- De-identification should be combined with access controls and a written sharing agreement.
Practice activity
De-identify a fictional 300-row exam-results file and document every change in a privacy log.
Expected result: A safer dataset in which no combination of indirect identifiers describes fewer than five students, plus a clear privacy log.
Check your understanding
-
Why is removing names not enough?
Show answer
Combinations of indirect identifiers can still identify a person, especially in small communities.
-
What is banding?
Show answer
Replacing exact values with ranges, such as an age band instead of a date of birth.
Further learning
Taught live by an instructor — online or in person. Free course lessons are for self-study and do not lead to a certificate — see registration options.