Skip to content

Implement tiered PII detection pipeline #3

@AimelHassan

Description

@AimelHassan

Proposal for the detection module architecture based on the project brief.

Suggested three-tier approach:

  1. Regex/pattern matching for structured PII (emails, IPs, phone numbers via phonenumbers library)
  2. spaCy NER for names, organizations, locations
  3. HuggingFace transformer fallback for context-dependent cases

The phonenumbers library by Google handles 200+ regional formats
which solves false positives from raw regex on phone numbers.

Detection tier selection could be configurable per policy:
real-time middleware prioritizes speed (tier 1+2),
batch analysis can use higher recall (all three tiers).

Happy to prototype this if mentors want a PoC.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions