Walker Moody / Projects

PII Redaction Tool

Senior Capstone · team of five

A full-stack tool that finds personally identifiable information in PDF documents and permanently removes it.

Python · Microsoft Presidio · spaCy · XLM-RoBERTa (Transformers) · PyMuPDF · FastAPI · Angular

Source on GitHub

The project

This was our Senior Capstone project, built by Walker Moody, Blaire Wallace, Ash Sonar, Jace Fergusson, and Josiah Luke. You upload a PDF in the web app, and it comes back with names, addresses, phone numbers, dates, medical record numbers, and other personal details blacked out. Detection uses local models rather than calls to an LLM service.

How detection works

  • Rules: Microsoft Presidio with spaCy, plus custom recognizers for dates, US street addresses, and medical record numbers.
  • Machine learning: a fine-tuned XLM-RoBERTa token classifier for names, locations, addresses, ZIP codes, emails, phone numbers, card numbers, and dates.
  • The two result sets are merged, so each catches what the other misses, and a heuristic picks up names in page headers.
  • PyMuPDF applies true redactions that delete the underlying text, not just draw a box over it.

App and evaluation

A FastAPI server exposes the redaction pipeline to an Angular front end with a PDF viewer. We measured detection with evaluation and test scripts run against synthetic medical records, resumes, and other sample documents.

About Walker Moody