En este modulo
- GDPR and the AI Act: two laws, one system
- Legal basis for processing data with AI
- DPIAs for AI systems
- Art. 22: automated decision-making
- International transfers with AI providers
- Anonymization vs pseudonymization in AI
- Data minimization applied to AI
- Data subject rights with AI
- Ejercicio practico
- Puntos clave
GDPR and the AI Act: two laws, one system
The GDPR (2018) protects personal data. The AI Act (2024) regulates how AI is used. They do not replace each other. They overlap. Complying with one does not exempt you from the other.
The critical intersection: when you use AI with personal data. This activates both regulations simultaneously:
- GDPR: legal basis, minimization, data subject rights, DPIA, transfers
- AI Act: risk classification, transparency, human oversight, documentation
A CV screening system with AI triggers: Art. 22 GDPR (automated decision-making), Annex III.4 AI Act (employment, high-risk), DPIA obligation (Art. 35 GDPR), and AI Literacy (Art. 4 AI Act). All at once.
Legal basis for processing data with AI
Every processing of personal data with AI requires a legal basis under Art. 6 GDPR. The 3 most relevant for enterprise AI:
1. Legitimate interest (Art. 6.1.f)
The most commonly used for internal AI. Requirements:
- Real and specific interest (not generic "improve service")
- Necessity: AI is necessary to achieve that interest
- Balancing: your interests do not override the data subject's rights
- Document the balancing test
Valid example: "We use AI to detect fraud in transactions. Legitimate interest: protecting our customers and the company. The AI analyzes transaction patterns (not sensitive data). The impact on the data subject is minimal (only suspicious transactions are blocked with human review)."
2. Performance of a contract (Art. 6.1.b)
When AI is necessary to deliver the contracted service. Example: a customer service chatbot that processes the user's query to resolve it.
3. Consent (Art. 6.1.a)
Rarely the best option for enterprise AI. Consent must be freely given, specific, informed, and unambiguous. And revocable. If the data subject revokes it, you must stop processing their data with AI. This can be operationally complex.
Practical recommendation
For internal AI (productivity, analysis, automation): use legitimate interest. Document the balancing test. For AI that directly affects external persons (scoring, profiling, decisions): assess case by case. If the impact is significant, you probably need a DPIA in addition to a legal basis.
DPIAs for AI systems
The Data Protection Impact Assessment (DPIA, Art. 35 GDPR) is mandatory when the processing "is likely to result in a high risk to the rights and freedoms" of natural persons. AI triggers this obligation in multiple scenarios.
When it is mandatory with AI
- Systematic evaluation of personal aspects (profiling, scoring)
- Large-scale processing of special category data (Art. 9)
- Systematic monitoring of a publicly accessible area
- Use of new technologies (AI is considered "new technology")
- The system is on the national authority's list (each DPA has its own list)
DPIA structure for AI
DPIA: [Name of AI system]
1. DESCRIPTION OF PROCESSING
- What AI system is used (name, provider, version)
- What personal data it processes (categories, volume)
- Purpose of the processing
- Legal basis invoked
- Data flow (where data comes from, where it goes, who accesses it)
2. ASSESSMENT OF NECESSITY AND PROPORTIONALITY
- Is AI necessary or is there a less invasive alternative?
- Is the data the minimum necessary?
- Is there a defined retention period?
3. RISK ASSESSMENT
- Risk of discrimination/algorithmic bias
- Risk of re-identification (if data is pseudonymized)
- Risk of errors (hallucinations, false positives)
- Risk of unauthorized access
- Risk of transfer to third countries
4. MITIGATION MEASURES
- Human oversight implemented
- Anonymization/pseudonymization applied
- Encryption in transit and at rest
- Access control (who can see data)
- Bias testing conducted
- Incident plan
5. DPO CONSULTATION
- DPO opinion
- Prior consultation with supervisory authority if residual risk is high
6. DECISION AND REVIEW
- Approved/rejected/conditional
- Next review date
Art. 22: automated decision-making
Art. 22 GDPR is especially relevant for AI. It establishes that the data subject has the right not to be subject to a decision based solely on automated processing which produces legal effects or similarly significantly affects them.
What this means in practice
- If AI makes the final decision without real human intervention, Art. 22 applies
- If a human reviews the AI's decision before execution, it probably does not apply (if the review is genuine, not rubber-stamping)
- "Significant effects": credit denial, non-selection in hiring, insurance denial, access to services
Exceptions (Art. 22.2)
- Necessary for entering into or performance of a contract
- Authorized by EU or member state law
- Based on the data subject's explicit consent
Mandatory safeguards (Art. 22.3)
Even with an exception, you must guarantee:
- Right to obtain human intervention
- Right to express their point of view
- Right to contest the decision
Typical case: CV screening
A system that automatically discards CVs without a human seeing the rejected ones triggers Art. 22. Solution: the system classifies/prioritizes, but a human reviews all (including the "rejected") before the final decision. Human intervention must be real and meaningful, not just a confirmation click.
International transfers with AI providers
Most AI providers (OpenAI, Anthropic, Google) have servers in the US. If you send personal data to these services, there is an international data transfer.
Transfer mechanisms
- Adequacy decision: the US has the EU-US Data Privacy Framework (DPF) since July 2023. If the provider is DPF-certified, the transfer is lawful. OpenAI and Google are certified.
- Standard contractual clauses (SCCs): if the provider is NOT in the DPF. Requires an additional Transfer Impact Assessment (TIA).
- No transfer: use local models (self-hosted on your servers). Maximum security, zero transfer.
Practical verification
- Check if the provider is in the DPF:
dataprivacyframework.gov/list - If not: request signed SCCs + conduct TIA
- Document in the record of processing activities
- Review periodically (the DPF could be invalidated like Safe Harbor and Privacy Shield before it)
Anonymization vs pseudonymization in AI
Anonymization
Data that does NOT allow identifying the person either directly or indirectly, even when combined with other data. If data is truly anonymized, the GDPR does not apply.
The problem: true anonymization is extremely difficult with AI. Models can re-identify persons from combinations of apparently anonymous data (location + schedules + purchase patterns = identifiable person).
Pseudonymization
Data that does not directly identify but could identify with additional information (the pseudonymization key). GDPR DOES apply to pseudonymized data, but considers it a valid mitigation measure.
Practical recommendation
- For sharing data with external AI: pseudonymize at minimum (replace names, IDs, emails with codes)
- Do not assume pseudonymization = anonymization. GDPR still applies
- For aggregate analyses: use aggregated data (not individual) when possible
- Document the anonymization/pseudonymization techniques used
Data minimization applied to AI
Art. 5.1.c GDPR: data must be "adequate, relevant and limited to what is necessary." With AI, the temptation is "give it all the data so it performs better analysis." Mistake.
Practical application
- Before uploading data to AI: ask "do I need ALL these fields?" If you only need to analyze sales trends, do not include customer names or emails
- Filter columns: remove PII fields before uploading CSV/Excel to AI
- Prompts without data: when possible, describe the problem without pasting the actual data. "I have 500 customers in 3 categories, the distribution is 40/35/25. What segmentation strategy do you recommend?"
- Synthetic data: for testing and development, use synthetic data that replicates the structure without containing real data
Data subject rights with AI
When you process personal data with AI, data subjects retain all their GDPR rights:
- Access (Art. 15): right to know what data of theirs your AI systems process and for what purpose
- Rectification (Art. 16): if the data is incorrect, it must be corrected. This includes data used as AI input
- Erasure (Art. 17): right to be forgotten. If you delete a customer's data, you must also delete it from any dataset used by AI
- Objection (Art. 21): the data subject can object to AI processing based on legitimate interest
- Not be subject to automated decision-making (Art. 22): see previous section
- Information (Art. 13-14): inform that you use AI to process data, what logic is applied, and what consequences it has
Practical challenge: right to erasure with AI
If a model was trained on a customer's data and the customer requests erasure, you need to not only delete the data from the dataset but potentially retrain the model (machine unlearning). This is technically complex. Practical solution: do not train models with identifiable personal data. Use only anonymized data for fine-tuning.
Ejercicio practico
- Choose an AI system in your organization that processes personal data
- Identify the applicable legal basis (legitimate interest, contract, consent)
- If legitimate interest, document the balancing test
- Determine if you need a DPIA (use the criteria from this module)
- If yes: complete the DPIA structure from the template
- Verify the international transfer: is the provider in the DPF? SCCs?
- Identify which data subject rights are most complex to fulfill with your system
Puntos clave
Puntos clave from LG05
- GDPR and the AI Act overlap, they do not replace each other. Complying with one does not exempt you from the other.
- Recommended legal basis for internal AI: legitimate interest with documented balancing test.
- DPIA is mandatory when AI performs profiling, scoring, or processes special category data at scale.
- Art. 22: if AI makes the final decision without a genuine human, the data subject has extra rights.
- Transfers: check the DPF for the US. If not, SCCs + TIA. Or local models.
- True anonymization is difficult. Pseudonymize at minimum, but GDPR still applies.
- Minimization: do not give AI more data than strictly necessary.
Guia de estudio — Conceptos clave de LG05
RGPD y AI Act: dos leyes, un sistema
- RGPD:base legal, minimizacion, derechos del interesado, DPIA, transferencias
- AI Act:clasificacion de riesgo, transparencia, supervision humana, documentacion
Base legal para tratar datos con IA
- Interes real y concreto (no generico "mejorar el servicio")
- Necesidad: la IA es necesaria para lograr ese interes
- Ponderacion: tus intereses no prevalecen sobre los derechos del interesado
- Documentar la ponderacion (test de balance)
- Ejemplo valido: "Usamos IA para detectar fraude en transacciones. Interes legitimo: proteger a nuestros clientes y la empresa. La IA analiza patrones de transaccion (no datos sensibles). El impacto en el interesado es minimo (solo se bloquean transacciones sospechosas con revision humana)."
- Recomendacion practica: Para IA interna (productividad, analisis, automatizacion): usa interes legitimo. Documenta el test de balance. Para IA que afecta directamente a personas externas (scoring, perfilado, decisiones): evalua caso por caso. Si el impacto es significativo, probablemente necesitas DPIA ademas de base legal.
DPIAs para sistemas de IA
- Evaluacion sistematica de aspectos personales (perfilado, scoring)
- Tratamiento a gran escala de datos sensibles (Art. 9)
- Vigilancia sistematica de zona publica
- Uso de nuevas tecnologias (la IA se considera "nueva tecnologia")
- El sistema esta en la lista de la autoridad nacional (AEPD tiene lista propia)
- Que sistema IA se usa (nombre, proveedor, version)
Art. 22: decisiones automatizadas
- Si la IA toma la decision final sin intervencion humana real → aplica Art. 22
- Si un humano revisa la decision de la IA antes de ejecutarla → probablemente no aplica (si la revision es real, no rubber-stamping)
- "Efectos significativos": rechazo de credito, no seleccion en proceso de empleo, denegacion de seguro, acceso a servicios
- Necesario para celebrar o ejecutar un contrato
- Autorizado por derecho de la UE o estado miembro
- Consentimiento explicito del interesado
Transferencias internacionales con proveedores IA
- Decision de adecuacion:EE.UU. tiene el EU-US Data Privacy Framework (DPF) desde julio 2023. Si el proveedor esta certificado DPF, la transferencia es legal. OpenAI y Google estan certificados.
- Clausulas contractuales tipo (SCCs):si el proveedor NO esta en DPF. Requieren Transfer Impact Assessment (TIA) adicional.
- No transferir:usar modelos locales (DeepSeek, Qwen en tu servidor). Maxima seguridad, cero transferencia.
- Verificar si el proveedor esta en el DPF:
- Si no: solicitar SCCs firmadas + realizar TIA
- Documentar en el registro de actividades de tratamiento
Anonimizacion vs pseudonimizacion en IA
- El problema: la anonimizacion real es extremadamente dificil con IA. Los modelos pueden reidentificar personas a partir de combinaciones de datos aparentemente anonimos (ubicacion + horarios + patrones de compra = persona identificable).
- Para compartir datos con IA externa: pseudonimizar como minimo (sustituir nombres, IDs, emails por codigos)
- No asumir que pseudonimizacion = anonimizacion. El RGPD sigue aplicando
- Para analisis agregados: usar datos agregados (no individuales) cuando sea posible
- Documentar las tecnicas de anonimizacion/pseudonimizacion usadas
Siguiente: LG06 - Intellectual Property and AI
Who is the author of AI-generated text? What rights exist? What about training data? Intellectual property in the age of AI.
Ir al modulo LG06