anonym.legal

By · Last updated 2026-05-27

Terug naar BlogTechnisch

GDPR ML-trainingsdata-anonimisering

GDPR beperkt het gebruik van persoonsgegevens voor ML-training buiten het oorspronkelijke verzamelingsdoel. Datawetenschappers die vertrouwen op ad-hoc Python-scripts creëren auditproblemen.

May 27, 20267 min lezen
ML training dataGDPR data scienceSchrems IItraining dataset anonymizationresponsible AI

Eén script is niet genoeg

Elk datawetenschapsteam heeft iets geschreven als dit:

import re
def anonymize_email(text):
    return re.sub(r'[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}', '[EMAIL]', text)

Dit vervangt e-mailadressen. Meer doet het niet. De dataset bevat nog steeds namen, telefoonnummers en medische ID's. Ze faalt nog steeds bij een GDPR-audit.

De kloof tussen "ik heb de e-mails geanonimiseerd" en "deze dataset is GDPR-compliant" is groot. Teams onderschatten het constant.

Wat GDPR van ML-training vereist

GDPR Artikel 5(1)(b) beperkt doelverschuiving. Als gegevens zijn verzameld voor één doel, is het gebruik voor een ander doel — zoals ML-training — een aparte verwerkingsactiviteit die zijn eigen rechtsgrondslag vereist.

Recital 50 laat enige ruimte voor verenigbare doelen. Maar ML-training op klantgegevens die zijn verzameld voor dienstverlening valt zelden in die categorie. GDPR vereist gewoonlijk:

  • Expliciete toestemming voor ML-training, of
  • Ware anonimisering vóór training, zodat de gegevens buiten GDPR-bereik vallen

Wat ware anonimisering vereist

Voor ML-trainingsdata moet anonimisering:

  1. Alle directe identifiers verwijderen: namen, e-mails, telefoonnummers, ID-nummers, adressen
  2. Quasi-identifiers behandelen: leeftijd + functietitel + locatie kunnen samen identificeren
  3. k-anonimiteit overwegen: elke record moet overeenkomen met ten minste k-1 andere records op alle attributen
  4. Reproduceerbaar zijn: dezelfde input produceert dezelfde gemaskeerde output voor consistency van de dataset

Het ad-hoc script-probleem

Ad-hoc Python-scripts creëren audithiaten:

  • Inconsistentie: datawetenschapper A en B schrijven verschillende scripts, produceren inconsistente outputs
  • Geen auditlogboek: er is geen record van wat werd geanonimiseerd en wanneer
  • Onderhoud: scripts breken wanneer dataformaten veranderen
  • Dekking: scripts missen onbekende PII-types

De CNIL controleerde meerdere AI-bedrijven in 2024. Ze vonden ad-hoc anonimiseringsscripts die e-mails misten in gecombineerde velden, namen misten in niet-gestructureerde tekst en geen audittrail hadden. De bevinding: de anonimisering was onvoldoende.

Systeembenadering

anonym.legal's API integreert in ML-datapijplijnen:

from anonym_legal import AnonymClient
client = AnonymClient(api_key="...")
result = client.anonymize(text=record, entities=["PERSON", "EMAIL", "PHONE", "ID_NUMBER"])
anonymized_record = result.anonymized_text

Het auditlogboek per record documenteert welke entiteiten werden gevonden en vervangen. Dit is de GDPR-documentatie die een DPO of CNIL-auditor nodig heeft.

Klaar om uw gegevens te beschermen?

Begin met het anonimiseren van PII met 285+ entiteitstypen in 48 talen.

About this page

We update this page when our platform or the law changes.

Read our founder note for how we work.

Each change shows up in the timestamp at the top.

Related reading

We follow these rules

  • GDPR (EU 2016/679).
  • ISO/IEC 27001:2022.
  • NIS2 (EU 2022/2555).
  • HIPAA safe harbor under 45 CFR § 164.514(b)(2).

Our promise

We do not sell your data.

We do not train models on your text.

We store your files in Germany.

You can delete your account at any time.

You own your work.

Where we run

Our servers live in Falkenstein, Germany.

We use Hetzner. They hold ISO 27001 certification.

All data stays in the EU.

Backups run every day.

Need help?

Email support@anonym.legal.

We reply within one business day.

How we test

We run a full check suite on every release.

Each surface gets its own sweep script and report.

Human reviewers spot-check the output each week.

We track recall and precision on a labelled set.

Bad runs block the deploy.

What we never do

  • We never sell your information to third parties.
  • We never train models on what you upload.
  • We never keep your work after you delete it.
  • We never share keys with any outside firm.
  • We never run ads inside the product.

Plans in plain words

We sell credits, not seats.

One credit covers one short job.

Long jobs use a few credits each.

You can top up at any time.

Unused credits roll over each month.

Read the plans page for current rates.

Who built this

A small team of engineers and lawyers built this.

We ship from Europe and work in the open.

Our founder note spells out why we started.

Where to start

How the parts fit

A browser add-on cleans text inside Chrome.

A Word plug-in handles drafts in Office.

A small desktop tool works on whole folders.

An agent protocol link feeds large models safely.

All four share one core engine and one rule set.

Words from our team

We started this work after a lunch about cookies.

One friend kept getting odd ads on her phone.

We asked why a court file leaked through a draft.

We sketched the first build on a napkin that week.

By month three we had a tiny demo for a friend.

She used it on her first case the next day.

Common questions we hear

Can the tool read scanned PDFs? Yes, with OCR.

Does it work on long files? Yes, in small chunks.

Can I roll my own rule set? Yes, save it as a preset.

Does it run offline? The desktop build runs offline.

Do you keep my files? No, the cloud build wipes after each run.

Will it learn from my work? No, we never train on inputs.

A short tour of the workflow

Upload a file or paste a snippet of prose.

Pick the entities you want gone from the draft.

Choose a method: replace, mask, hash, encrypt, or redact.

Press run and watch the side panel show each hit.

Skim the result and tweak any rule that misfired.

Save the cleaned file or send it to a teammate.