Skip to content
mentoor

Topic 1 of 6 · 5 min read

Choosing a lawful basis for AI processing

Goal: Pick and justify the lawful basis for three AI uses of personal data, including one legitimate-interest balancing test.

Under the GDPR you may only use personal data if you can name one of six lawful bases for each purpose, and you must pick it before you start. The six are consent, contract, legal obligation, vital interests, public task and legitimate interests. Each AI use of personal data needs its own answer.

Check yourself · 1 of 3

Which statement about lawful bases is correct?

Choose one answer

Why it matters

People often say "we have consent" for everything. That is rarely right. Consent must be free, specific, informed and as easy to withdraw as to give. If a customer cannot use your service without agreeing, or you cannot actually stop using their data when they withdraw, it is not valid consent. A wrong basis is hard to fix later, because you cannot swap it after the fact.

How to choose

Take one purpose at a time and ask which basis honestly fits.

  1. Contract. The AI feature is needed to deliver what the person signed up for. A translation tool translating the text the user submitted is a good example.
  2. Consent. The use is optional and the person can say no with no penalty. "Use my chats to improve the model" is a typical case.
  3. Legitimate interests. You or a third party has a real interest, the processing is necessary for it, and the person's rights do not outweigh it. This is the usual basis for training and fraud detection, and it needs a written balancing test.
  4. Legal obligation, public task, vital interests. Narrow. They fit specific laws, public bodies and emergencies.

The balancing test has three parts: the purpose is legitimate, the processing is necessary (no less intrusive way gets you there), and the balance favours you once you weigh what people would reasonably expect and what safeguards you add. Write the answer down. Special category data, such as health, also needs a separate condition from Article 9.

Before and after

Before: "Our lawful basis is consent, because users accepted the terms."

Accepting terms to use a product is bundled and not freely given for a separate purpose like model training.

After: "Support replies use the ticket text under contract. Training a spam filter on ticket text relies on legitimate interests: we recorded the test, removed names and emails first, and offer an easy opt-out."

What goes wrong

  • Picking one basis for the whole project instead of one per purpose.
  • Treating legitimate interests as a free pass and skipping the written test.
  • Choosing consent, then continuing to use the data after it is withdrawn.

Examples

Three uses, three bases

A clinic uses an AI scribe to draft notes: contract for care, plus an Article 9 health condition. It uses chat logs to improve the scribe: legitimate interests with an opt-out, or consent if it wants to keep the data identifiable. It uses an AI to email marketing: consent, because the law on electronic marketing requires it in most cases.

A short balancing test

Purpose: detect fake accounts. Necessity: a rule-only filter missed too many, and less data was not enough. Balance: users expect fraud checks, data stays 30 days, no profiling for ads. Result: legitimate interests, reviewed yearly.

Key points

  • Every purpose needs its own lawful basis, chosen before processing starts.
  • Consent only counts when it is free, specific, informed and easy to withdraw.
  • Legitimate interests need a written test: purpose, necessity and balance.
  • Training on personal data is a different purpose from serving the user, so it needs its own basis.
  • Special category data needs an Article 9 condition on top of the lawful basis.

Common mistakes

  • Writing one lawful basis for the whole AI project.
  • Assuming that accepting terms of service is consent for model training.
  • Skipping the written balancing test because the interest feels obvious.
  • Forgetting the extra condition for health, biometric or other special category data.

Check yourself · 2 of 3

What are the three parts of a legitimate-interests balancing test?

Choose one answer

Check yourself · 3 of 3

A company wants to use support tickets, with names removed, to train a spam filter. Which basis is the most natural fit?

Choose one answer

Practice items, not counted towards your mastery.

Where to go in your country