Skip to content

Privacy and preparation

Stable pseudonym dataset tradeoff: links gained, trails exposed

By SourceX Editorial · Reviewed by Noah Loul ·

9 sections

Short answer

A stable pseudonym keeps relationships a model learns from, such as a customer's repeat visits, and gathers every record it touches into one trail that is easier to single out. Choose the narrowest scope that keeps the relationship your task needs. In 41,915 synthetic patient encounters, per-year pseudonyms kept 71.8% of repeat-visit links with 66.4% of encounters on unique trails; one pseudonym for all three years kept 100% and 85.2%.

Redaction

Stable pseudonym dataset

This page covers stable pseudonym dataset tradeoff: links gained, trails exposed.Illustrative

Key takeaways

  • Pseudonym scope, meaning how many records one person's token covers, is a separate decision from the hashing method and from who holds the key.
  • On 41,915 synthetic patient encounters, moving from per-year to three-year pseudonyms raised repeat-visit links kept from 71.8% to 100% and encounters on a unique trail from 66.4% to 85.2%.
  • Single records almost never stood out (374 encounters, 0.9%, in every scope); scope decided what those records unlock: nothing under per-encounter tokens, a mean of 16.18 further encounters under three-year tokens.
  • Date precision is a second dial, but a weaker one here: coarsening months to quarters cut encounters on unique trails under three-year tokens from 85.2% to 76.3% while keeping every link.
  • The EDPB's draft guidelines say pseudonyms should not be transmitted without a reason such as collating records sent at different times, so record the reason for each scope you keep.

What does the stable pseudonym dataset tradeoff decide?

It decides how far one person's pseudonym reaches: one record, one case, one month, one delivery or the whole archive. Each step wider keeps more relationships between records and lets more of one person's activity be read together, so the scope is a privacy decision as much as a data design choice.

Scope is easy to confuse with two neighboring decisions. The method, such as a keyed hash or a lookup table, decides whether anyone can recompute a token; custody decides who could reverse it. The guides on consistent placeholders and on key custody linked below cover both. Scope is the third question, and it survives a perfect answer to the other two: a token that never changes for years still assembles a long trail, however well the key is guarded.

A defensible answer needs two pieces of evidence: a written list of the relationships the buyer's task actually reads, and a uniqueness test on the trails each candidate scope produces. This page supplies a measurement of that test on public sample data, a review matrix that maps relationships to the narrowest scope that keeps them, and a final-delivery checklist. It is general information, not legal advice, and it names the jurisdiction of each piece of guidance it cites.

Why does a wider scope add linkability even when the key is safe?

Because linkage is the whole point of a stable pseudonym. Every record that shares a token adds facts to the same trail, and the more facts a trail holds, the fewer other trails resemble it. A trail that matches no other in the release can be singled out, and anyone who recognizes one of its records then reads the rest.

The standards bodies describe the mechanism in their definitions. NIST's glossary, drawing on SP 800-188 and ISO/IEC 20889, describes pseudonymization as a technique that removes the association with the data subject while keeping an association between that person's characteristics and one or more pseudonyms (a paraphrase of the glossary entry). In the UK, the ICO's guidance treats pseudonymisation as a security and risk-reduction measure and says it is "not a way of transforming personal data to the extent the law no longer applies".

The European Data Protection Board is stricter about when tokens should travel at all. Its Guidelines 01/2025 on pseudonymisation, adopted for public consultation in January 2025, state: "Pseudonyms might be needed to collate data records transmitted at different times when they relate to the same data subjects, or for the establishment of a back channel where transmitted personal data or the result of the processing of this data needs to be returned to the sender. In the absence of such reasons, pseudonyms should not be transmitted." For data covered by EU law, then, every scope wider than a single record needs a stated reason, and the reason sets how wide the scope may go.

How much does each scope keep and expose? A measurement on synthetic patient records

This analysis measured both sides on synthetic records, so no real person is involved. Synthea, an open-source simulator, describes its output as synthetic, realistic (but not real) patient data, and its public sample repository includes a CSV set of 12,352 synthetic patients. The analysis kept the 41,915 encounters dated 2017 through 2019, three full calendar years, which belong to 8,963 patients, 6,897 of whom had more than one encounter in that window.

Each released encounter carried only three facts: its month, its class (wellness, ambulatory, outpatient, urgent care, emergency or inpatient) and the patient's county, one of 14. The patient key was replaced by a pseudonym under four scopes: a fresh token for every encounter, one token per patient per calendar quarter, one per patient per calendar year, and one per patient for all three years. For each scope the script counted repeat-visit links kept, meaning consecutive encounters of the same patient that carry the same token, out of 32,952 such pairs, and the encounters that sit on a trail no other token in the release shares.

The table gives the results with encounter dates released to the month; the chart below adds the same four scopes with dates coarsened to quarters:

How much does each scope keep and expose? A measurement on synthetic patient records
Pseudonym scopeTokens in releaseRepeat-visit links keptEncounters on a unique trailSingled-out encounters that unlock others
Fresh token per encounter41,9150 of 32,952 (0.0%)374 (0.9%)0 of 374 (0.0%)
Per patient per quarter26,54615,369 (46.6%)15,365 (36.7%)251 (67.1%)
Per patient per year18,26823,647 (71.8%)27,821 (66.4%)328 (87.7%)
Per patient, all three years8,96332,952 (100.0%)35,714 (85.2%)360 (96.3%)
Line chart of repeat-visit links kept against encounters on a unique trail for four pseudonym scopes, per encounter, per quarter, per year and all three years, with one line for monthly dates (0.9 to 85.2 percent) and one for quarterly dates (0.2 to 76.3 percent).
Measured on 41,915 synthetic Synthea patient encounters, 2017 to 2019, at synthea-sample-data commit 84f5980.

What the measurement shows, and where it stops

Scope moves utility and exposure together, and the first step brings the largest jump in exposure. A quarterly token kept 46.6% of repeat-visit links and already put 36.7% of encounters on unique trails, against 0.9% under per-encounter tokens. Per-year tokens kept 71.8% of links with 66.4% of encounters on unique trails, and one token for all three years kept every link with 85.2%. The per-year figures partly reflect uneven years in the sample: 25,428 of the 41,915 encounters fall in 2019.

The single-record view shows where the exposure comes from. In every scope, the same 374 encounters (0.9%) have a month, class and county that no other encounter shares, so someone who knew of that one visit could find it. Under per-encounter tokens the trail ends there. Under three-year tokens, 360 of those 374 (96.3%) lead to further encounters of the same patient, 6,050 in all, a mean of 16.18 for each singled-out encounter.

Date precision is a second dial. Coarsening months to quarters, with scope unchanged, cut encounters on unique trails from 85.2% to 76.3% under three-year tokens and from 66.4% to 54.5% under per-year tokens, and every link each scope keeps survived. Here coarsening bought less than one step down in scope, so a team that needs long histories should expect to combine treatments rather than rely on one.

The limits matter as much as the numbers. The records are synthetic, the release carries only three attributes, and a unique trail is a precondition for singling someone out, not proof that anyone could be named. Real records add free text, codes, amounts and exact times, which make trails more distinctive, and real health data comes with de-identification rules of its own, so read these shares as a demonstration of the test, not a benchmark or a compliant release design.

The privacy-utility review matrix: match each relationship to the narrowest scope

Start from the relationships the buyer's task reads, not from the tokens your tooling can generate. For each relationship the matrix names the narrowest scope that keeps it, what that scope adds to linkability and the test or record that settles the choice.

Defaults assume one recipient under contract; a wider release, or sensitive records such as health or employee data, moves every row toward the narrower option:

The privacy-utility review matrix: match each relationship to the narrowest scope
Relationship the task usesNarrowest scope that keeps itLinkability it addsTest or record that settles it
Who said what inside one ticket, thread or documentPer record or per threadLow: the trail ends with the threadRead 20 processed threads end to end; roles stay distinct and no token appears in two threads
The full life of one case, from request to resolutionPer caseLow to moderate: one case's events and timingEvery case chain resolves after tokenization and the token count equals the case count
Repeat behavior within a period, such as reopened tickets or repeat ordersPer person per quarter or yearModerate: one period's activity per personTrail uniqueness test at the delivered date precision, with both shares recorded
Long-run history, such as lifetime value or churnPer person for the whole archiveHigh: every record for a person in one trailUniqueness test at archive scope, then date coarsening or attribute banding until the agreed mark is met
Joining a later delivery to an earlier oneThe same key reused across deliveriesHigh and growing: trails lengthen with each refreshA written reason for collating deliveries and a rerun of the test on all deliveries combined
No relationship across recordsNo pseudonym at allNone from the tokenA note that the task was checked and needs no linkage; the identifier column is dropped

Does removing direct identifiers settle it? The strongest objection

No. Stripping names, emails and account numbers and moving files over an encrypted channel deal with direct identification and interception, and leave a third risk untouched: what the remaining trail reveals once it arrives. In the measurement above every scope released the same three attributes and no direct identifier, yet the share of encounters on unique trails ran from 0.9% to 85.2% on scope alone.

The recipient sits inside the picture, not outside it. The EDPB's draft guidelines say: "The pseudonymisation domain should include the recipient, its processors and all persons acting under the authority of the recipient or one of its processors, at least to the extent they have access to the pseudonymised data." A trail that is harmless in the supplier's systems, where nobody studies it, can behave differently in a buyer's analytics environment, where studying records is the job.

Privacy is also only one of the questions. A dataset can pass every uniqueness test and still fall outside what customer contracts, privacy notices or platform terms allow, so the scope decision runs alongside a rights review and never replaces one.

Final-delivery checklist for pseudonym scope

Run the checklist on the final files, after every other preparation step, because later edits can merge or split tokens. Each item should leave a record a reviewer can open:

At a glance

Final-delivery checklist for pseudonym scope

Checklist · 9 items

  1. Relationship list: the links the task needs, each tied to a matrix row and approved by the data owner.
  2. Scope per entity type: customers, staff, vendors and accounts can each have a different scope, and each one is written down.
  3. Reason for any cross-record token: for EU data, the reason the EDPB guidelines accept, such as collating records sent at different times.
  4. Trail uniqueness result: the share of tokens and of records on unique trails at the delivered date precision, with the script version.
  5. Treatment log: date coarsening, attribute banding or suppression applied when a result missed the agreed mark, with the rerun.
  6. Cross-delivery check: if tokens persist across deliveries, the test rerun on every delivery combined.
  7. Recipient boundary: confirmation that keys, lookup tables and entity crosswalks stay outside the recipient's environment.
  8. Leak check: free text, file names and attachments searched for original identifiers that would bypass the token.
  9. Sign-off: privacy reviewer, data owner and date, with open exceptions listed instead of closed by default.

0 of 9 ticked. Tick each item as you go.

Where the scope decision sits in a SourceX license

It belongs in scoping, before any data moves. SourceX's trust page leaves the boundary to the supplier, who picks the systems, records and date ranges and keeps everything else out, and it says that once SourceX gives the go-ahead, the data is "extracted, transferred and de-identified through approved processing routes." Its legal framework page adds that "personal details such as names, emails, phone numbers and account numbers are removed or replaced" and that the method used is recorded for each dataset.

Both pages are plain about the limit: de-identification reduces risk but cannot remove it, and the supplier agreement records that re-identification may still be possible. A supplier that arrives with its relationship list and a uniqueness result can settle scope in concrete terms rather than general ones, which is the point of doing the work early.

Whether a company's records justify that work is an earlier question, answered by a short assessment with no data upload. An assessment is not an offer.

Methods note: corpus, rules and what was not measured

Corpus: downloads/10k_synthea_covid19_csv.zip in github.com/synthetichealth/synthea-sample-data at commit 84f5980, read on 2026-10-28; the Synthea project's README describes its output as synthetic, realistic (but not real) patient data. The script read patients.csv (patient ID and county) and encounters.csv (encounter ID, start, patient and class) from the zip and saved aggregate counts only. An encounter's date is the first ten characters of its START value as written, with no time zone conversion. Of 321,528 encounters, the 253,713 dated before 2017 and the 25,900 dated after 2019 were dropped.

Rules: a patient's encounters are sorted by start date, then encounter ID, and a link is kept when two consecutive encounters carry the same token. A trail profile is the county plus the sorted list of (period, class) for every encounter under the token, and a trail is unique when no other token in the same scope has an identical profile. A singled-out encounter is one whose period, county and class occur in no other encounter. The quarterly variant replaces months with calendar quarters throughout. Percentages are rounded once, half up, to one decimal; the mean is rounded to two decimals.

Not measured: re-identification of anyone, which synthetic data cannot support and which was not attempted; free text, codes, costs and exact timestamps; outside data an attacker might hold; and any SourceX dataset. The script, pseudonym_scope_synthea.py, and its aggregate output are kept for recount.

Frequently asked questions

Is a dataset with stable pseudonyms still personal data?

Usually it should be treated as personal data. The ICO says pseudonymisation is not a way of transforming personal data to the extent the law no longer applies (UK guidance). Treat a pseudonymized release as personal data unless counsel concludes otherwise for that release, and remember that a long trail can single someone out without anyone touching the key.

Should pseudonyms stay the same from one delivery to the next?

Only when the task needs to join deliveries. The EDPB's draft guidelines accept collating records transmitted at different times as a reason to send pseudonyms and say pseudonyms should not be transmitted without such a reason. If tokens persist across deliveries, rerun the uniqueness test on all deliveries combined each time.

Is coarsening dates better than narrowing pseudonym scope?

They do different jobs and work best together. In the sample measurement, coarsening monthly dates to quarters cut encounters on unique trails under three-year tokens from 85.2% to 76.3% while keeping every link, whereas per-year tokens at monthly dates reached 66.4% at the cost of some links. Pick the combination that keeps the relationships the task reads and meets your agreed mark.

How do we run the trail uniqueness test on our own records?

Build the release exactly as you plan to deliver it, group records by token and write each token's trail as the sorted list of its released attributes. Count the trails that match no other and report the share of tokens and of records on them at the delivered date precision. Keep the script and its output with the release so the result can be rerun.

Does a separate pseudonym for each buyer replace a narrower scope?

No. Per-recipient tokens stop two buyers from joining their copies, but each buyer still receives full-length trails. Scope limits what one trail holds inside one copy, so the two controls address different risks and are often used together.

Sources

  • EDPB Guidelines 01/2025 on pseudonymisation (adopted for consultation January 2025) say pseudonyms might be needed to collate records sent at different times or for a back channel and otherwise should not be transmitted, and that the pseudonymisation domain should include the recipient, its processors and persons acting under their authority. Source
  • The ICO's UK GDPR guidance says pseudonymisation is not a way of transforming personal data to the extent the law no longer applies. Source
  • NIST's glossary, citing SP 800-188 and ISO/IEC 20889, describes pseudonymization as removing the association with a data subject while keeping an association between the subject's characteristics and one or more pseudonyms (paraphrased). Source
  • Synthea's README describes it as a synthetic patient population simulator whose goal is to output synthetic, realistic (but not real) patient data and associated health records. Source
  • The 10k Synthea COVID-19 CSV set (patients.csv, encounters.csv) at commit 84f5980 is the public synthetic data the scope measurement reads. Source
  • SourceX's trust page says the supplier picks the systems, records and date ranges in scope, that after the go-ahead data is extracted, transferred and de-identified through approved processing routes, and that the supplier agreement records that re-identification may still be possible. Source
  • SourceX's legal framework page says personal details such as names, emails, phone numbers and account numbers are removed or replaced, the method is recorded for each dataset, and de-identification reduces risk but cannot remove it entirely. Source

See if your company qualifies

A short company assessment. No data uploads are needed.

See if your company qualifies