AI-Powered Redaction Tool
Developing a PoC for a smart solution that anonymizes personally identifiable information (PII) in documents across industries
ABOUT the project
- Client:
- Leobit's Internal Project
- Location:
-
USA
- Company Size:
- 200+ Employees
- Industry:
-
Information Technology
- Solution:
- Custom Software
Technologies:
Leobit developed a proof of concept for an AI redaction solution that detects and anonymizes personal data across text and documents in multiple formats. The solution can replace sensitive details with masked values or realistic fake data without changing the original document structure.
While building the product, we ran into several challenges. We found that an off-the-shelf AI model tended to over-redact, that converting documents for editing could unintentionally break the very elements we needed to detect, and that design decisions could get lost further down the pipeline. We worked through each issue by testing against real documents rather than relying on assumptions based on the documentation.
CUSTOMER
An internal Leobit initiative built to explore Azure AI Language capabilities for personally identifiable information detection and to create a reusable compliance component for client projects.
Business Challenge
Many companies, especially those working in regulated sectors, face challenges while sharing documents containing personal data. This problem applies to numerous domains, ranging from fintech to HR management and recruitment. Manual anonymization of private data in documents is slow and can break document formatting. Also, each missed identifier may carry regulatory risk under GDPR, HIPAA, and similar frameworks.
Our team decided to build a tool that would run detection and redaction automatically across common document formats, without altering how those documents look when they reach the recipient.
Project
in detail
Our R&D team identified the demand for fast and effective document redaction tools in the corporate software market. We decided to build a simple PoC that will address this issue while allowing our team to explore the capabilities of Azure AI Language.
We started by designing the solution architecture: a detection layer, redaction models, and format preservation. We also defined the criteria for what counts as sensitive information that must be anonymized. This categorization took some time and was one of the most challenging parts of the initial phase because it required us to outline the types of data and the anonymization logic explicitly. The goal was simple. Once we anonymize one piece of data, no connected data in the document can expose it.
Our team built a simple .NET back end and Angular front end for the solution. We connected it to Azure AI Language, which detects sensitive data in multiple languages. After that, our specialists applied different redaction models to anonymize that data in documents. The tool was applied in real-world conditions and showed some issues with processing documents. As a result, we decided to proceed with the tool’s continuous configuration and stabilization.
After implementing the tool’s core functionality, our specialists tuned the models with custom configurations to identify sensitive data more accurately. We also set up the tool to preserve the original formatting of .txt, .docx, and .pdf files. The next stage involved the deployment of the solution. We had to create a custom deployment path due to its tooling limitations.
Smart PII Redaction
Azure AI Language powers the AI side of document redaction. The model detects sensitive information and decides whether each item needs anonymizing. It recognizes when data stops being sensitive because related data is already anonymized, so it avoids over-redacting the output. We built the tool’s anonymization to meet diverse regulations, including HIPAA and GDPR.
Outputs in a Consistent Format
The initial approach anonymized a converted copy of the document, but format conversion disrupted the layout and made personal data harder for AI to detect. The solution was to identify sensitive data in the original document and transfer those findings to a copy that preserves the original formatting.
As a result, the tool delivers output as .txt, .docx, and .pdf files with the original formatting preserved. As a result, no manual post-redaction edits are needed. It also offers custom redaction settings. Users can replace anonymized information with either masked values or realistic fake data depending on their needs and preferences.
Technology Solutions
- Effective integration with Azure AI Language that ensures intelligent anonymization of data in documents
- Custom configurations for better accuracy and improved logic of the anonymization workflow
- Custom approach for that ensures that the original document formatting is preserved and the tool delivers outputs as .txt, .docx, and .pdf files
Value Delivered
- Hands-on experience with document data anonymization through custom configuration of Azure AI Language
- Reusable framework that can be applied across different industries with emphasis on sensitive data protection, such as healthcare, legaltech, insurtech, fintech, etc.
- Effective validation approach that involved testing the tool in real-world conditions, quickly surfacing the issues, and fixing them in the short term