Security

How to de-identify an immigration file before any AI sees it

A four-step method for immigration professionals: replace direct identifiers with consistent placeholders, judge indirect ones, avoid PDF traps, and review the outgoing text while keeping the key on your own computer.

An immigration document whose names and numbers are replaced by placeholders such as PERSON_1

The goal: keep the reasoning, lose the identity

De-identifying a file for AI is not the same as redacting it for disclosure. A redacted document hides information; a de-identified one replaces it, consistently, so the facts still make sense. "[PERSON_1] married [PERSON_2] on [DATE_1] and their child [PERSON_3] lives with [PERSON_2] in [ADDRESS_1]" still lets a model analyse ties to home country. "████ married ████ on ████" does not.

A fictional refusal paragraph before and after de-identification: names, UCI, passport number and address replaced by placeholders such as PERSON_1 and UCI_1
Same facts, no identity. Fictional example.

Step 1: direct identifiers, always

These identify a person on their own. Replace every one, everywhere it appears:

IdentifierWhere it hides in an immigration filePlaceholder
NamesApplicant, spouse, children, parents, hosts, employers' contacts, the officer's salutation, email signatures[PERSON_1]
UCI and application numbersLetter headers, every page footer, file names[UCI_1]
Passport and ID numbersBiodata page, travel history, visa counterfoils[PASSPORT_1]
Dates of birthForms, family information, ages computed in submissions[DOB_1]
Addresses, phones, emailsLetterheads, invitations, employment letters, bank statements[ADDRESS_1]

Use the same placeholder for the same value every time, including spelling variants such as a surname written in capitals or with a middle name.

Step 2: indirect identifiers, case by case

Some details identify a person only in combination: an uncommon nationality, a small hometown, an exact job title at a named employer, a rare medical condition, a specific event reported in the news. Ask whether the legal question needs the exact detail. A visitor visa analysis needs "employed as a senior engineer since 2019", not the company's name; it needs "two children in the home country", not their schools.

Keep what the legal reasoning depends on: dates that affect deadlines, amounts that affect financial sufficiency, the travel history the officer relied on. Hide what only identifies.

Step 3: beware of PDF traps

  • Visual boxes are not redaction. A black rectangle over text usually leaves the text layer intact, and AI tools read the text layer.
  • Scans are pictures. Text-extraction tools cannot read them, and image-reading tools read everything, including stamps and handwriting.
  • Metadata travels. Document properties, comments and earlier versions can carry names.
  • File names count. "Smith_John_Refusal.pdf" undoes careful work inside the file.

Step 4: review the outgoing text, then keep the key

Read the exact text that will be sent, not the original file. Automatic tools miss things; so do tired people. Then keep the list that links each placeholder to its real value on your own computer, and put the real names back only after the draft comes back.

How CaseVane automates the four steps

  1. Your browser extracts the text from text-layer PDFs; scanned pages are refused rather than guessed, and the files are never uploaded.
  2. A small name-recognition model (GLiNER) runs in your browser alongside fixed patterns for UCI and application numbers, and replaces names, numbers, dates of birth, addresses, phones and emails with consistent placeholders.
  3. You see the de-identified text with every placeholder highlighted, and can select anything missed and press Hide selected text.
  4. The placeholder map stays in your browser tab; the finished draft comes back sealed to that tab, and the real names are put back only there.

Indirect identifiers remain your judgment: use your own file reference rather than the client's name, and hide details the draft does not need. See how CaseVane keeps client files private for the encryption that follows.

This article is general information for licensed professionals, not legal advice. Check the current text of the Act, the Regulations and IRCC's instructions before relying on any point.