PII

A model to redact PII from text.

Overview

Fastino's PII model is designed to detect and redact Personally Identifiable Information (PII) and other sensitive information from text for a range of domains and use cases. It operates in a zero-shot manner, letting users define entity types to redact, and can be fine-tuned for your specific redaction requirements.

Example Use Cases

  • Automating sensitive data redaction in documents, logs, and customer support transcripts

  • Ensuring compliance with privacy regulations (e.g., GDPR, HIPAA)

  • Data sanitization for analytics or public release

Domains

Fastino's PII model was trained for a wide range of PII redaction tasks including those described below.

Domain
Description
Example Entities

Personal

Individual identifiers, contact info, and demographic attributes that can directly or indirectly reveal personal identity.

name, email address, phone number, username, gender, age, race, marital status, job title, income

Location

Geographic references such as street addresses, coordinates, and travel-related locations.

street address, city, postal code, us state, country, geo coordinates, flight departure airport, flight arrival airport, port of entry, apartment number

Temporal

Date and time values tied to individuals or transactions, such as birth dates, appointments, and admission dates.

date of birth, appointment date, transaction date, release date, coverage start date, hospital admission date, immunization date, employment start date, conviction date, wedding date

Healthcare

Protected health information including patient IDs, medical conditions, treatments, and lab results.

medical record number, patient id, medication, treatment, diagnosis, vaccine name, dosage, referral source, symptom, body mass index (BMI)

Finance

Financial account details, transaction records, loan identifiers, and card data.

credit card number, cvv, routing number, iban code, account balance, loan id, premium amount, transaction id, pension plan id, beneficiary

Government

Official government-issued identifiers including social security numbers, passports, and licenses.

social security number, passport number, driver license number, visa type, tax identification number, alien registration number, medicare beneficiary id number, national identity card, license plate number, utility meter id

Usage

Example Body
{
  "model_id": "fastino-pii-••••••••••",
  "input": [
    {
      "text": "9 AM for a Sedan for Jamie Derran",
      "parameters": {
        "entity_types": [
          "full_name",
          "car",
          "time"
        ],
        "threshold": 0.3
      }
    }
  ]
}
Example Response
[{
  "input": "9 AM for a Sedan for Jamie Derran",
  "latency_ms": 77.31,
  "message": "Responses from endpoint.",
  "output": {
    "entities": [
      {
        "start": 0,
        "end": 4,
        "label": "time",
        "text": "9 AM",
        "score": 0.5893954038619995
      },
      {
        "start": 11,
        "end": 16,
        "label": "car",
        "text": "Sedan",
        "score": 0.8889331817626953
      },
      {
        "start": 21,
        "end": 33,
        "label": "full_name",
        "text": "Jamie Derran",
        "score": 0.9932531714439392
      }
    ],
    "redacted_text": "<TIME> for a <CAR> for <FULL_NAME>"
  },
  "status": "success"
}]

Last updated