---
title: "PII redaction tools for AI training data: what they find and miss"
description: "PII redaction tools for AI training data: Presidio, spaCy, AWS Comprehend, Google Sensitive Data Protection and Azure, what each detects and where it runs."
canonical: https://plety-desk.vercel.app/about/guides/pii-redaction-tools-for-ai-training-data
last-updated: 2026-11-26
---

# PII redaction tools for AI training data: what they find and miss

By Plety. Updated 2026-11-26.

PII redaction tools for AI training data find personal details in text and mask them. Open-source libraries such as Presidio and spaCy run on the company's own machines, while Amazon Comprehend, Google Cloud Sensitive Data Protection and Azure AI Language run as cloud services. None finds everything, so automated detection is one step in removing personal data, not the whole of it.

## Which PII redaction tools are used for AI training data?

This guide compares five tools: two open-source libraries and three cloud services. PII stands for personally identifiable information, meaning details such as names, contact details and ID numbers; UK law uses the term personal data. The table compares what each tool's own documentation says it detects and where it runs, as of November 2026.

Each tool reports where in the text it found an entity and what type it is. Amazon Comprehend and Azure also return a confidence score for each detection, which can be used as a threshold.

*PII detection tools compared from their own documentation, as of November 2026*

| Tool | What it detects | Where it runs | Point to check |
| --- | --- | --- | --- |
| Presidio (open source, MIT licence) | Names, locations, phone numbers, email addresses, card numbers, IBANs, IP addresses and more, plus UK NHS numbers, National Insurance numbers, passport numbers, postcodes, driving licence numbers and vehicle registrations | Wherever the company installs it: Python, PySpark, Docker or Kubernetes | Now a community-owned project; Microsoft's old GitHub pages redirect to its new site |
| spaCy named entity recognition (open source, MIT licence) | 18 entity types in its English models, including PERSON, ORG, GPE (places), DATE and MONEY | A Python library on the company's own machines | No labels for email addresses, phone numbers or ID numbers |
| Amazon Comprehend PII detection | Names, addresses, email addresses, phone numbers, card and bank details, passwords, usernames and more, plus UK NHS numbers, National Insurance numbers and Unique Taxpayer References | AWS cloud, in a region the company chooses, including Europe (London) | English and Spanish text only; real-time calls take up to 100 KB, redacted copies come from batch jobs |
| Google Cloud Sensitive Data Protection | Built-in infoTypes including PERSON_NAME, EMAIL_ADDRESS, PHONE_NUMBER and STREET_ADDRESS, plus UK National Insurance, NHS, passport, driving licence, taxpayer reference and electoral roll numbers | Google Cloud, with a processing region such as London (europe-west2) if specified | Data sent to the europe multi-region is not processed in London |
| Azure AI Language PII detection | Person, organisation, address, email, phone number and many ID types, including UK National Insurance, NHS, driving licence, electoral roll and taxpayer numbers, in text, conversations and .pdf, .docx or .txt files | Azure cloud, or a Docker container on the company's own hardware | Containers send billing data to Azure, not the text analysed |

## Why does it matter where PII detection runs?

Where detection runs decides whether the unredacted records ever leave the company. Presidio and spaCy are libraries, so the text stays on servers the company controls. Microsoft says its PII container lets a company host the detection API on its own infrastructure, and that Azure AI containers do not send customer data, such as the text being analysed, to Microsoft, although they must stay connected to Azure for billing.

Cloud services receive the raw text. AWS's documentation on AI services opt-out policies says AWS AI services may use and store customer content for service improvement, including model training, and might store it in a Region outside the one being used. Amazon Comprehend is on its list of covered services, and an organisation can opt out. Google says data sent to its europe multi-region is not processed in London, so London processing has to be specified as europe-west2.

Running detection inside the company's own environment keeps the most sensitive copy, the one before redaction, under the company's control. https://plety-desk.vercel.app/about/questions/how-is-personal-data-removed-from-business-records explains who carries out the removal and under what contract.

## What do PII redaction tools miss?

Every tool misses some personal data, and the vendors say so. Presidio's documentation warns that automated detection may not find all sensitive information, and says additional systems and protections should be used.

Microsoft's transparency note for the Azure PII feature says that in redaction, false negatives could lead to personal information leakage, and recommends a process for human review and testing with the real data the system will process. It says context matters: a ten-digit number on its own is just a number, person names need linguistic context, and a single chat message may not carry enough context for an ID number to be recognised.

Accuracy figures show the scale. The release notes for spaCy's small English model, en_core_web_sm 3.8.0, report named entity recall of 84.36% on its evaluation data, so about 16 in every 100 entities were missed. Text inside images needs separate handling; Presidio has an image redactor that uses optical character recognition (OCR).

## What does the ICO say about the risk that remains after redaction?

The ICO accepts that some risk of identification remains, but expects it to be sufficiently remote. Its anonymisation guidance says anonymisation is about reducing the likelihood of a person being identified or identifiable to a sufficiently remote level, and that 'it is not always possible to reduce identifiability risk to a level of zero, and data protection law does not require you to do so.'

Redacted output that does not reach that level is still personal data. The ICO says that if the likelihood of identifiability is not sufficiently remote, you are still processing personal data. It also says to re-assess identification risk before granting access to new recipients and when new datasets are released, which applies each time records go to a new buyer. https://plety-desk.vercel.app/about/compliance/anonymising-business-records-for-ai-training covers the tests the ICO uses.

## How are the tools combined in practice?

Because each tool misses different things, a redaction pipeline can layer methods and then measure what gets through. Pattern and checksum rules suit structured identifiers such as NHS numbers, card numbers and IBANs, and Presidio's documentation lists checksums for those. Named entity models suit names, organisations and places. Lists of known names taken from the company's own CRM and staff directory can catch people the models miss.

A hand-labelled sample of the company's own records, checked by a person, then shows the recall the pipeline actually achieves on that material, which is a figure worth recording alongside the dataset. Plety's process removes personal data inside the company's own systems, and Plety never holds or views the records.

## Questions

### Is redaction the same as anonymisation?

No. Redaction masks the items a tool or person finds; whether the result is anonymous depends on the ICO's test of whether identification is sufficiently remote. If the company keeps a key linking masked values back to people, the data is pseudonymised, not anonymised.

### Do the cloud tools recognise UK identifiers?

Yes, but the lists differ. As of November 2026, Amazon Comprehend lists UK NHS, National Insurance and Unique Taxpayer Reference numbers, but its passport type covers US passports; Google and Azure both list UK National Insurance, NHS, driving licence, electoral roll and taxpayer numbers, and Google adds UK passports.

### Which tool handles chat transcripts?

Azure offers a separate Conversation PII feature for multi-turn chat and transcripts, and Microsoft advises sending more than one turn so the context comes with the entity. Any of the tools can process chat once it is exported as text.

## Sources

- [ICO, How do we ensure anonymisation is effective?](https://ico.org.uk/for-organisations/uk-gdpr-guidance-and-resources/data-sharing/anonymisation/how-do-we-ensure-anonymisation-is-effective/)
- [Presidio documentation (Data Privacy Stack)](https://presidio.dataprivacystack.org/)
- [Presidio, Supported entities](https://presidio.dataprivacystack.org/supported_entities/)
- [spaCy, en_core_web_sm 3.8.0 release notes](https://github.com/explosion/spacy-models/releases/tag/en_core_web_sm-3.8.0)
- [Amazon Comprehend Developer Guide, Detecting PII entities](https://docs.aws.amazon.com/comprehend/latest/dg/how-pii.html)
- [AWS Organizations, AI services opt-out policies](https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_ai-opt-out.html)
- [Google Cloud Sensitive Data Protection, InfoType detector reference](https://docs.cloud.google.com/sensitive-data-protection/docs/infotypes-reference)
- [Microsoft Learn, Transparency note for Azure Language PII](https://learn.microsoft.com/en-us/azure/ai-foundry/responsible-ai/language-service/transparency-note-personally-identifiable-information)

## Read next

- [How is personal data removed from business records?](https://plety-desk.vercel.app/about/questions/how-is-personal-data-removed-from-business-records.md)
- [Anonymising business records for AI training in the UK](https://plety-desk.vercel.app/about/compliance/anonymising-business-records-for-ai-training.md)
- [Is pseudonymised data still personal data?](https://plety-desk.vercel.app/about/questions/is-pseudonymised-data-still-personal-data.md)
- [What provenance documents a buyer should get with licensed records](https://plety-desk.vercel.app/about/for-buyers/data-provenance-documents-for-licensed-records.md)

---

Plety Limited, company number 17598186, registered in England and Wales. Registered office: 15 Hackbridge, Wallington, United Kingdom, SM6 7AU. Contact: herman.plety.official@gmail.com. Book a call: https://plety-desk.vercel.app/book.

General information, not legal advice.
