Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

In computer science, handling personal data responsibly is a central concern – legally as much as ethically. This chapter gives an overview of the most important terms and principles of data protection in the context of the European General Data Protection Regulation (GDPR; in German Datenschutz-Grundverordnung, DSGVO).

The chapter sits here because from the next chapter on we train models on real datasets, and before personal data serve as training material the terms that govern how such data may be handled ought to be clear. It is deliberately a glossary, with no mathematics and no code. Each term comes with examples and with real cases; the fine cases are all taken from the GDPR Enforcement Tracker kept by the law firm CMS and linked there by number, so that every one of them can be checked for date, amount and source.

Personal data

Personal data are any information relating to an identified or identifiable natural person. A person counts as identifiable if they can be identified directly or indirectly – by a name, by location data or by an online identifier, for instance.

Pseudonymised and encrypted data enjoy the protection of the GDPR as well, and so do supposedly anonymised data, as soon as the link to a person can be restored with reasonable effort (recital 26).

Examples:

How the GDPR came about

The GDPR did not appear out of nowhere in 2018. Four stages explain why it looks the way it does:

The central terms

An example of controller and processor: an online shop is the controller for its customer data; the parcel service that receives the delivery address and the cloud provider whose servers hold the database are processors. Both need a contract with the shop, and the shop remains the party under the obligation.

The GDPR’s basic principles (Art. 5)

  1. Lawfulness, fairness and transparency (Art. 5 Abs. 1 lit. a) – “lawfully, fairly and in a transparent manner in relation to the data subject”; the German text says “nach Treu und Glauben”, in good faith, where the English says “fairly”

  2. Purpose limitation (lit. b) – use only for “specified, explicit and legitimate purposes”

  3. Data minimisation (lit. c) – “adequate, relevant and limited to what is necessary”

  4. Accuracy (lit. d) – “accurate and, where necessary, kept up to date”; inaccurate data are to be rectified or erased

  5. Storage limitation (lit. e) – in identifiable form only for as long “as is necessary for the purposes …”

  6. Integrity and confidentiality (lit. f) – protection “against unauthorised or unlawful processing and against accidental loss”

Art. 5 Abs. 2 adds accountability to these: the controller must not only ensure that the principles are complied with but also be able to demonstrate it. That is why data protection in practice means so much documentation.

Examples of the principles:

Privacy by Design and by Default

Examples: defaults must not permit unnecessary collection of data. A cookie banner that arrives with every box already ticked breaches privacy by default. TikTok set children’s accounts to public by default and was fined €345 million for it (ETid-2032, 2023).

Data minimisation in practice

Data minimisation (Art. 5 Abs. 1 lit. c; in the old BDSG the same principle went by the name “Datensparsamkeit”, data parsimony, § 3a BDSG a.F., in the version then in force) means in practice:

The practical rule for data science projects: for every field holding personal data, ask why you have to store it. If there is no answer, leave it out. If there is one, write it down – that is your legal basis. For everything else, obtain consent.

Further terms and concepts

Fines and enforcement

What the GDPR added to the directive of 1995 is less the principles than the sanctions. It is enforced by independent supervisory authorities (Art. 51 ff.) – in Germany one per federal state plus the Federal Commissioner. Their catalogue of corrective powers (Art. 58 Abs. 2) reaches well beyond money: warnings about intended processing, reprimands after an infringement, orders to comply with a data subject’s requests, orders to rectify or erase, withdrawal of a certification, suspension of transfers to third countries – and, as the sharpest instrument, a temporary or definitive limitation or ban on processing. For a data-driven business model that is the real threat; a fine can be paid, a ban on processing cannot.

Administrative fines (Art. 83) are to be “effective, proportionate and dissuasive” and come in two tiers: up to €10 million or 2% of worldwide annual turnover in the preceding year for breaches of the controller’s own obligations (Art. 25 privacy by design or Art. 33 notification, say), and up to €20 million or 4% for breaches of the principles, of the rights of data subjects or of the rules on transfers to third countries – whichever amount is the higher. What counts in fixing the amount includes the nature, gravity and duration of the infringement, whether it was intentional or negligent, the remedial measures taken, earlier infringements, and the degree of cooperation with the supervisory authority.

Alongside supervision there is self-regulation: codes of conduct (Art. 40) are sector-specific rulebooks that associations draw up and have approved by the supervisory authority. Keeping to one makes it easier to discharge the accountability obligation of Art. 5 Abs. 2.

That disposes of two misunderstandings: data protection is neither too complicated to engage with nor free of consequences if you ignore it. At the same time, the small fines do not cost a startup its life. Mercedes paid €3,000 in Spain for a lack of cooperation with the supervisory authority (ETid-885, 2021); a corporation cares about that only because earlier infringements raise the next fine.

CaseYearAmountWhat it was aboutTracker
Meta Platforms Ireland2023€1.2 billiondata transferred to the USA with no valid basisETid-1844
TikTok2023€345 millionchildren’s accounts public by defaultETid-2032
H&M, Nuremberg2020€35.3 millionnotes on employees’ private lives and illnessesETid-405
AOK Baden-Württemberg2020€1.24 millionprize-draw data used for advertising without clean consentETid-306
notebooksbilliger.de2021€900,000 (after court)permanent video surveillance of staffETid-519
Twitter2020€450,000data breach reported too lateETid-485
Deichmann, Hungary2020€54,800access to video footage refusedETid-430
Knuddels2018€20,000passwords in clear text, exemplary reportingETid-25
School in Skellefteå2019€18,600facial recognition with ineffective consentETid-67
Police officer, Baden-Württemberg2019€1,400a witness’s telephone number used privatelyETid-50
Mercedes, Spain2021€3,000lack of cooperation with the supervisory authorityETid-885

Some everyday cases with no fine attached that are worth knowing: dashcam footage may be used in evidence, according to the Federal Court of Justice (Bundesgerichtshof, 2018), yet recording the traffic permanently remains unlawful. A circular email to all customers with the recipients visible instead of in BCC is a notifiable data breach. A phone call from “PayPal” asking for login details is not a data protection problem but fraud; data protection and IT security overlap, but they are not the same thing. The Düsseldorf open data portal shows how to publish data without giving people away.

The GDPR protects personal data. Since 2020 the EU has pursued a second, complementary aim with its European data strategy (Commission communication of 19 February 2020): data should be easier to share and use within Europe, under European rules. Out of that has come a series of regulations that apply side by side and are worth keeping apart – roughly along three lines: protection of the data subject (GDPR), rules for markets and platforms (DMA, DSA), access to and sharing of data (DGA, Data Act) – and, cutting across all of them, the AI Act as product regulation for AI systems.

For everyday work with data the GDPR remains the yardstick; the other regulations decide which data are available at all, and on what conditions a model may be placed on the market.

Further resources

References
  1. Pöge, A. (2011). Persönliche Codes bei Längsschnittuntersuchungen III. Methoden, Daten, Analysen (Mda), 5(1), 109–134. https://nbn-resolving.org/urn:nbn:de:0168-ssoar-255044
  2. Spector, A. Z., Norvig, P., Wiggins, C., & Wing, J. M. (2022). Data Science in Context: Foundations, Challenges, Opportunities. Cambridge University Press.