Anonymizing Personal Data for AI: Masked Is Still Personal

To anonymize personal data for AI, research teams mask names before the prompt. Why a masked transcript is still personal data and what the log has to record...

An analyst has a focus group transcript and a deadline. She wants a summary of the complaints by Monday. The transcript carries eight first names, one surname, a phone number someone read out loud, the employer of one participant and a story about another participant's daughter changing schools. Before any of it goes into a prompt, somebody has to decide what leaves the company. Teams that try to anonymize personal data for AI usually make that decision by hand, with find and replace, when they make it at all.

Key Takeaways

  • GDPR Recital 26 says personal data that have undergone pseudonymisation should be considered information on an identifiable person. Data protection rules do not apply to anonymous information.
  • The EDPB's Guidelines 01/2025, adopted for consultation on 16 January 2025, state that pseudonymised data is still personal data, even when another party keeps the additional information.
  • Brazil's LGPD, Article 12, treats anonymized data as outside the law unless the anonymization can be reversed with reasonable effort.
  • Rocher, Hendrickx and de Montjoye estimated in Nature Communications in 2019 that 99.98 percent of Americans would be correctly re-identified in any dataset using 15 demographic attributes.
  • The Dutch data protection authority reported in August 2024 that it had received breach notifications caused by employees entering patient and customer data into AI chatbots.

Anonymization, pseudonymization and masking are three different things

Anonymization is processing after which a person can no longer be identified by reasonable means. Brazil's LGPD, Article 5, defines anonymized data as data about a person who cannot be identified, considering the reasonable technical means available at the time of processing.

Pseudonymization replaces identifying details so the data can no longer be attributed to a person without additional information that is kept separately. GDPR Article 4(5) adds the condition that matters: the additional information must be kept separately and protected by technical and organisational measures. LGPD Article 13, paragraph 4, says the same in Brazilian law, with the information kept by the controller in a controlled and secure environment.

Masking is the practical act: a name becomes PERSON_1, an email becomes EMAIL_1, before the text reaches the model. Masking is a way to pseudonymize. On its own, it does not anonymize anything.

The distinction sounds academic until a client's privacy team asks which of the three the agency did.

How research teams prepare a prompt today

PERSONAL EXPERIENCE In the research teams I have worked with, the preparation step looks like this. The analyst opens the transcript, searches for the participants' first names and replaces them with P1 to P8. She leaves the employer, because it seems relevant to the complaint. She leaves the daughter's school, because she did not notice it. Then she pastes the result into whichever assistant she uses, often on a personal account.

Nobody logs what was pasted. Nobody keeps the list that maps P3 back to a real person, because it lived in her head. The team still has no record of what left, and no way to answer a client security questionnaire with anything better than a policy document.

What goes wrong when nobody controls the prompt

Regulators already see the result. On 6 August 2024 the Dutch data protection authority, the Autoriteit Persoonsgegevens, reported a number of breach notifications caused by employees sharing personal data with AI chatbots. Its two examples: an employee of a medical practice entered patients' medical data into a chatbot, contrary to the practice's agreements, and an employee of a telecom company entered a file with customer addresses.

Neither case involved a research agency, and neither needed one. A focus group transcript holds the same kind of data, often more of it.

When it happens in research, the agency answers to the client who owns the study and to the respondents who signed a consent form that said nothing about a personal chatbot account. The analyst who pasted the transcript was trying to deliver on time. The gap is in the process: there is no control over what the team sends, and no record of it afterwards.

Why a masked transcript is still personal data

The legal texts agree on the core point. GDPR Recital 26 says pseudonymised data should be considered information on an identifiable person. The EDPB's summary of Guidelines 01/2025 puts it plainly: pseudonymised data that can be linked back to an individual using additional information is still personal data, even when another party keeps that information. LGPD Article 12 keeps anonymized data outside the law only while the anonymization cannot be reversed with reasonable effort.

The technical literature explains why. NIST IR 8053, on de-identification, says the practice can reduce privacy risk, and that researchers have shown some de-identified data can be re-identified. Rocher, Hendrickx and de Montjoye estimated that 99.98 percent of Americans would be correctly re-identified in any dataset using 15 demographic attributes.

A quasi-identifier is a detail that identifies nobody alone and identifies someone in combination: age, neighbourhood, job title, employer, a rare illness. Qualitative research is full of them, because the story is the data. A masked name next to an unmasked employer and a daughter's school is a pseudonym, at best.

What masking catches and what it misses

UNIQUE INSIGHT Automatic detection works well on patterns and badly on stories. The table pairs each kind of identifier in a research transcript with what a masking layer can do about it.

Identifier in the transcriptExampleWhat automatic masking doesWhat the team still has to decide
Direct identifiersName, email, phone, ID numberDetects most and swaps in typed placeholdersWhether any slipped through in unusual formats
Client and brand namesThe client, its products, competitorsCatches them only from a project listKeep that list current for every study
Quasi-identifiersEmployer, job title, neighbourhood, ageCatches some, misses manyWhich ones the task needs, and which to generalize
Story detailsAn illness, a child's school, a family eventRarely caught by patternsSummarize or remove before the prompt
The placeholder keyPERSON_1 means a real nameNothing, unless the key is kept apartWho holds the key, and where

Open-source detection tools say this about themselves. The documentation of Presidio, a widely used PII detection library, states that there is no guarantee it will find all sensitive information, and recommends additional safeguards. That honesty is the right starting point for any research team.

Masking before the prompt, step by step

The UK regulator frames the first step. The ICO's guidance on AI and data protection says data minimisation means identifying the minimum personal data needed for the purpose and processing only that, and that using AI does not change the requirement.

  1. Decide, per task, what the model needs. A complaint summary needs the complaints and a participant number. It does not need a phone number.
  2. Detect direct identifiers and replace them with typed placeholders, the same placeholder for the same person across the whole file, so the summary still says who said what.
  3. Add the study's own list: client, brands, competitors, product code names.
  4. Keep the placeholder key inside the company, apart from the masked text. The EDPB calls the protected context the pseudonymisation domain.
  5. Block a prompt that still carries protected data after masking. A warning the analyst can click past changes nothing.
  6. Log who sent which prompt, for which project, and what was masked.
  7. Restore real names only in the output the analyst sees, and only when the task needs them.

What leaves with the prompt, and what stays inside

A diagram in two zones. Inside the company, the analyst's request contains a name, an email, a phone number and an employer. A masking step replaces the name with PERSON_1, the email with EMAIL_1 and the phone with PHONE_1, and flags the employer for a decision. The placeholder key, which maps PERSON_1 back to the real name, stays inside the company, kept apart from the masked text, and every prompt is written to a log with user, project, masked fields and status. Only the masked prompt crosses to the model. A closing line says the masked prompt is still personal data, so the key and the log stay inside. Illustrative example, no real data.

Masking decides what crosses to the model. The key and the log are what make the decision checkable later.

The reasoning behind steps one and four is the one we gave in the article on informed consent for AI: what the respondent agreed to is the outer limit of what the prompt may carry.

The log is the other half of the control

UNIQUE INSIGHT Masking reduces what leaves. The log proves what left. The Dutch authority's advice to organisations that allow chatbots is to make clear to employees which data they may and may not enter. A rule nobody can check is a hope, so the log is what turns it into a control. It records the user, the role, the project, the time, the masked fields and whether the prompt was blocked. That is also the record a client's security questionnaire asks for, and the one a team writing its AI policy for a research agency needs to point at.

Where CassiAI comes in

CassiAI is a software engineering company specialized in the pains of market research, innovation and insights, founded by Cassiano Albuquerque after twenty years in market research. We automate research projects with or without language models.

Shadow AI Guard is a CassiAI product that puts a company login on every prompt, masks personal data before it reaches the model, answers only from documents each person may open and logs every access for audits, data protection reviews and client security questionnaires.

The Shadow AI Guard page lists the layers. Names, ID numbers, emails and phone numbers turn into placeholders before the prompt leaves, and a rule blocks any prompt that still carries protected data. Every access, prompt and answer is logged with user, role, team and project, and the log exports for audits. Document search passes the model only the passages a person could already open at the source. When nothing may leave, an open-source model runs in the company's own cloud and region.

Masking lowers the risk. It does not turn a transcript into anonymous data, and the legal basis for each study stays with the client's counsel. What we build is the step most teams still do by hand, done the same way every time, with a record.

FAQ

Is pseudonymized data still personal data?

Yes. GDPR Recital 26 and the EDPB's Guidelines 01/2025 both treat pseudonymised data as personal data, because it can be linked back to a person with additional information.

Does masking names make a transcript anonymous?

No. Employers, places, ages and personal stories can identify a participant in combination. Rocher and colleagues showed how few attributes re-identification needs.

What is the difference between anonymization and pseudonymization?

Anonymized data can no longer be linked to a person by reasonable means. Pseudonymized data can, with additional information kept separately. LGPD Articles 5 and 13 define both.

Can a research team use AI with respondent data?

It depends on the consent, the contract and the law that applies, which is a question for counsel. In practice, minimise the data per task, mask before the prompt and log every use.

What should an AI prompt log record for a research team?

User, role, project, time, which fields were masked, whether the prompt was blocked, and the answer. That is enough to reply to a client security questionnaire with evidence.

Masking is where the decision gets written down

UNIQUE INSIGHT Every prompt that carries a transcript is a decision about respondent data, whether anyone notices or not. Masking before the prompt and logging after it turn that decision from a habit in one analyst's head into a rule the whole team follows and the client can inspect. The placeholder protects the name. The story still needs a person who reads it before it leaves.

If your analysts still prepare transcripts for AI with find and replace on a personal account, ask them to show you the last prompt they sent. We will show you the same task with masking, the block rule and the log in place.

About the author

Cassiano Albuquerque is the founder of CassiAI. He spent twenty years in market research operations before building software for research teams. To talk about how your team prepares data for AI, contact him on LinkedIn.

Published by CassiAI. Read the full article at https://www.cassiai.com/blog/anonymize-personal-data-ai.