Anonymisation/Pseudonymisation

Whether data in connection with artificial intelligence (AI) are anonymised or pseudonymised is determined primarily by data protection law, in particular the General Data Protection Regulation (GDPR). This page explains the legal bases, practical examples, case law, contract drafting and the tasks of lawyers.

1. Legal bases for anonymisation and pseudonymisation

1.1 GDPR

  • Art. 4 No. 1 GDPR (personal data): AI systems frequently process personal data such as customer, location or usage data. As soon as such data are processed, the GDPR applies.
  • Art. 25 GDPR (data protection by design): The provision expressly names pseudonymisation as an appropriate technical and organisational measure.
  • Art. 32 GDPR (security of processing): Pseudonymisation is named as a possible security measure.
  • Art. 6 GDPR (lawfulness of processing): Data processing is only permitted if there is a legal basis. The GDPR no longer applies to anonymised data, as they no longer relate to an identifiable person (Recital 26).

1.2 ePrivacy law and national legislation

  • National data protection laws (in Germany in particular the Federal Data Protection Act) supplement the GDPR.
  • The ePrivacy Directive (2002/58/EC), implemented in Germany in the Telecommunications Digital Services Data Protection Act (TDDDG), specifically governs the handling of communications data and access to terminal equipment.

2. Anonymisation and pseudonymisation in the AI context

2.1 Anonymisation

  • Definition: Complete removal of the link to an identifiable person. Re-identification with reasonable effort must be ruled out.
  • Legal consequence: The GDPR does not apply to the anonymised data.
  • Example: Aggregated health data for research without attribution to individuals.

2.2 Pseudonymisation

  • Definition: Replacing identifying characteristics with a pseudonym so that the data can only be attributed to a person with the use of additional information kept separately (Art. 4 No. 5 GDPR).
  • Legal consequence: The risk for data subjects decreases, but the data remain personal; the GDPR continues to apply.
  • Example: Use of a hash value instead of a name in an AI database.

3. Practical examples

3.1 Use of health data

  • Facts: An AI analyses patient data to improve diagnostic algorithms.
  • Necessity: If the data are effectively anonymised, the GDPR does not apply. If they are only pseudonymised, the GDPR remains applicable; a legal basis for processing health data (Art. 9 GDPR) is then required, with pseudonymisation being an essential safeguard.

3.2 Automated advertising

  • Facts: An AI analyses online user data to deliver personalised advertising.
  • Necessity: Pseudonymisation, for example by encrypting or truncating IP addresses, protects the personal data processed by the AI.

4. Judgments and decisions

4.1 CJEU, judgment of 19 October 2016, C-582/14 (Breyer)

  • Content: Dynamic IP addresses are personal data if the controller has legal means to identify the person with the help of additional information held by third parties.
  • Relevance: The decision is decisive for distinguishing between pseudonymised and anonymised data.

4.2 CJEU, judgment of 4 September 2025, C-413/23 P (EDPS v SRB)

  • Content: Pseudonymised data are not personal data in every case and for every person. Whether a person is identifiable is assessed, for the purposes of the information obligation, from the perspective of the controller at the time of collection, not from the perspective of the recipient.
  • Relevance: Anyone who passes on pseudonymised data to service providers, for example for training or analysis by AI, must still inform data subjects about the recipients; for the recipient, on the other hand, the data may, depending on the circumstances, not be personal data.

5. Contract drafting

5.1 Data protection agreements

  • Data processing agreement (Art. 28 GDPR): Obligation of the processor to comply with the agreed anonymisation and pseudonymisation measures.
  • Standard contractual clauses: For transfers to third countries, appropriate safeguards for data protection are required.

5.2 Licence agreements for AI software

  • Provision that the AI software can work with pseudonymised data.
  • Provisions on liability for data breaches and data misuse.

5.3 Research collaborations

  • Contracts should stipulate that only anonymised or pseudonymised data may be exchanged.

6. Tasks of lawyers

6.1 Data protection advice

  • Review of anonymisation and pseudonymisation concepts.
  • Drafting privacy notices and internal policies.

6.2 Contract drafting

  • Drafting contracts that meet data protection requirements.
  • Inclusion of clauses on data minimisation and encryption.

6.3 Compliance review

  • Review of compliance with data protection requirements in AI projects.
  • Carrying out data protection impact assessments (Art. 35 GDPR).

6.4 Representation before authorities

  • Defence in cases of data protection breaches.
  • Negotiations with data protection supervisory authorities on appropriate measures.

Practical Legal Examples

Pseudonymised data for a training project

A hospital group wants to use treatment data for a prediction model. Pseudonymised data remain personal data as long as attribution is possible. We developed a procedure with a trust centre in which the developers have no access to the key.

Anonymity from the recipient’s perspective

A company passes pseudonymised data to an external service provider. According to the case law of the CJEU (C-413/23 P), the recipient’s means may be decisive for the question of whether data are personal. We examine whether the data are anonymous for the recipient and document the assessment.

Free text in customer enquiries

An energy supplier wants to analyse customer enquiries with AI. Names and contract numbers can be filtered out, but free texts often still contain identifying information. We recommended a combination of automatic detection, sample checks and access restrictions.

Anonymisation before data sharing

A transport company wants to share movement data with a university. Movement profiles can be attributed to individuals with just a few data points. We defined the aggregation and minimum group sizes and drafted a data use agreement.

Scroll to Top