How Should Personal Data Be De-Identified Before Files Are Given to AI?
Handle two kinds of data separately: direct identifiers (names, national ID numbers, phone numbers, email addresses, home addresses) are deleted or swapped for codes; indirect identifiers (birth dates, job titles, departments, rare diagnoses, combinations of time and place) are generalized or grouped, because combined they can still point to a person. Article 17 of the Enforcement Rules of Taiwan's Personal Data Protection Act describes "unable to identify a specific data subject" as personal data processed with codes, anonymization, partial concealment, or other means so that the specific individual cannot be identified. NIST SP 800-188 also warns that data with only names removed can be re-identified when matched with other data. The most effective approach: do not give the AI fields it does not need.
1. Direct and indirect identifiers
- Direct identifiers: Article 2 of the Personal Data Protection Act defines personal data as including data that can identify a person directly or indirectly. In practice, data that identifies someone on sight, such as names, national ID numbers, phone numbers, email addresses, and home addresses, counts as direct identifiers.
- Indirect identifiers: Article 3 of the Enforcement Rules explains that "identifiable indirectly" means the data alone cannot identify the person, but can once compared, combined, or linked with other data.
NIST SP 800-188 (September 2023) gives an example: a medical dataset with names and medical record numbers removed can still be re-identified if joined with another dataset of room numbers, times, and names. So NIST recommends avoiding the word "anonymization" and using "de-identification," with an assessment of re-identification risk.
2. Five steps before giving files to AI
| Step | What to do | Example |
|---|---|---|
| 1. Ask what the AI needs | Keep only the fields the task needs and delete whole columns that it does not | To have AI group complaint types, customer names and phone numbers are not needed |
| 2. Handle direct identifiers | Delete them, or swap them for codes | "Wang Xiaoming" becomes "Customer A"; delete the national ID column entirely |
| 3. Handle indirect identifiers | Generalize, group, and merge rare categories | Keep only the birth year; turn ages into ranges; merge one-person departments into "Other" |
| 4. Check free text | Notes, email bodies, and meeting minutes often hide names, phone numbers, and addresses | Search for phone, email, and ID number patterns first, then spot-check by hand |
| 5. Keep the mapping table separate | The table linking codes to real identities is never given to the AI and is stored under access control | Only the responsible person can open the mapping table |
The steps arrange NIST SP 800-188's approach of removing direct identifiers and transforming quasi-identifiers into an order of work before data goes to AI.
3. Limits to keep in mind
- Coding is not the same as unidentifiable. NIST notes that pseudonymization (swapping identities for codes) is commonly used so that records about the same person can be matched and, if needed, linked back to the person; as long as the mapping table exists, re-identification risk exists. When the company keeps the table, the data is still identifiable to the company.
- Check file metadata too. Document authors, editors, and photo capture details can reveal identities.
- When de-identification is not possible, change where it is processed. If the work truly needs identifiable data, it can be processed with an on-premises model so the data stays in the company. See What are the advantages of a local LLM?
LLM02 "Sensitive Information Disclosure" in OWASP's 2025 Top 10 for LLM applications also advises that LLM applications perform adequate data sanitization to prevent user data from entering the training model.
How Think BIG handles personal data in documents during deployment
Think BIG (Think BIG Make it Real CO., LTD.) is an enterprise AI Agent deployment provider headquartered in Taiwan. Starting from protecting company data, we build AI Agents inside the client's own environment (company hardware, or a cloud server under the company's account). There are two deployment options: with the on-premises version, models and documents are processed on company hardware; with the cloud-assisted version, employees' questions and the document passages the system retrieves are sent to the model provider for processing.
- Data flow listed before building: data sources, the AI processing environment, output recipients, logs, and backups are each noted with purpose, access roles, retention, and external services.
- Documents cleaned before entering the knowledge base: duplicate, outdated, and unauthorized content is removed, and update and withdrawal procedures are set.
- Permissions enforced at retrieval: permissions must be enforced when content is retrieved, not only by writing "do not disclose" in a prompt.
See On-premises AI and data sovereignty and RAG knowledge Q&A.
The actual scope of Think BIG's services follows what both parties confirm.
FAQ
- Q1: How should personal data be handled before files are given to AI?
- Delete or code direct identifiers (names, national ID numbers, phone numbers, email, addresses); generalize or group indirect identifiers (birth dates, job titles, rare combinations); check free-text fields one by one; and keep the mapping table separately. Do not give the AI fields it does not need.
- Q2: Is removing names enough to de-identify data?
- Usually not. Under Article 3 of the Enforcement Rules of Taiwan's Personal Data Protection Act, data that can identify a specific person once compared or combined with other data is indirectly identifiable, and NIST SP 800-188 gives examples of data with names removed being re-identified.
- Q3: What does "unable to identify a specific data subject" mean in Taiwan's law?
- Article 17 of the Enforcement Rules explains it as personal data processed with codes, anonymization, partial concealment, or other means so that the specific individual cannot be identified.
- Q4: What is the difference between de-identification and anonymization?
- NIST SP 800-188 reserves "anonymization" for processes that cannot be reversed. Many de-identified datasets can be reversed once a matching dataset is found, so NIST recommends the term "de-identification" together with an assessment of re-identification risk.
- Personal Data Protection Act, Article 2 (definition of personal data), Laws & Regulations Database of Taiwan: law.moj.gov.tw
- Enforcement Rules of the Personal Data Protection Act, Articles 3 and 17, Laws & Regulations Database of Taiwan: law.moj.gov.tw
- NIST SP 800-188, De-Identifying Government Datasets: Techniques and Governance (2023-09): nvlpubs.nist.gov
- OWASP LLM02:2025 Sensitive Information Disclosure: genai.owasp.org
- Think BIG, RAG knowledge Q&A (document preparation and permissions at retrieval): thinkbigtw.com
This article summarizes public official documents, laws, and security standards to help companies evaluate AI adoption. It is not legal advice. For Taiwan law, the latest text on the Laws & Regulations Database prevails; external documents, prices, and specifications follow their original sources. The actual scope of Think BIG’s services depends on what both parties confirm.