Legal AI

Data and governance in high-risk AI: Article 10 of the Regulation explained by Guide 7

The data used to train a high-risk AI system determine a good part of its results. Guide 7 of the Spanish sandbox, updated in July 2026, explains Article 10 of the AI Regulation and the new Article 4a on the use of sensitive data to correct bias.

Editorial photo: AI data governance
Image generated with AI

An artificial intelligence system is only as good as the data it was trained on. The European AI Regulation translates that into concrete obligations for high-risk systems in its Article 10, and Guide 7, "Data and data governance", of the Spanish regulatory sandbox pilot explains them with practical measures.

The guide is credited to the Ministry for Digital Transformation and the Civil Service. Its version 2.0 dates from 17 July 2026 and is adapted to the Digital Omnibus; version 1.0 is from 10 December 2025. Like the sandbox's other guides, it is not binding and neither replaces nor develops the rules.

We have already summarised two other guides in the series: the one on high-risk AI transparency and the one on high-risk practical cases.

What Article 10 says, according to the guide

ParagraphContent
10.1Training, validation and testing data sets must meet the quality criteria in paragraphs 2 to 4
10.2They must be subject to appropriate data governance and management practices: design, data collection and origin, preparation, assumptions about what they measure, availability and quantity, bias analysis and mitigation, and detection of gaps
10.3Data must be relevant, sufficiently representative, complete and, to the best extent possible, free of errors
10.4They must take into account the geographical, contextual, behavioural or functional setting in which the system will be used
10.6If the system is not based on training models, paragraphs 2 to 4 apply only to testing data

The Omnibus change: sensitive data

The guide explains that paragraph 5 of Article 10 has been deleted by the Digital Omnibus, and that the processing of special categories of personal data to detect and correct bias moves to the new Article 4a of the Regulation.

According to the guide, that article allows processing them exceptionally, with safeguards: anonymisation or pseudonymisation, limited access, deletion once the bias has been corrected and a record in the register of processing activities.

For a firm advising on data protection, the change is relevant: processing sensitive data to correct bias now has a specific basis in the AI Regulation, but subject to strict conditions and without ceasing to apply the General Data Protection Regulation, as the guide itself recalls.

Who is obliged

  • The provider is the main addressee of the measures.
  • The deployer has no specific requirements in Article 10, according to the guide. But if it takes part in development or handles the training or testing data, it must apply the provider's measures. And if it controls the input data, Article 26.4 obliges it to ensure they are relevant for the intended purpose.

Data quality dimensions, one by one

The guide turns the quality requirement into a working method. The first step it proposes is to determine which quality dimensions must be assessed, and it warns that the exercise must be done individually for each data element, not over the dataset as a block. Its annex lists the most common dimensions: completeness, representativeness, auditability, consistency, relevance, diversity and credibility. Not all of them are needed in every case: completeness probably always is, but consistency between data elements only matters in certain situations, for example when two data elements represent related dates and one must come before the other. It is a useful approach for advisory work: it allows asking the client for a quality map per data element, rather than a generic declaration that their data is good.

How bias is mitigated in practice

The guide classifies bias-mitigation algorithms into three families. Data-based methods act on the training set, for example by oversampling underrepresented populations or using synthetic data. Model-based methods introduce regularisation terms or constraints that impose a fairness objective during optimisation, or learn representations that reduce the effect of a specific variable. And post-hoc methods adjust the outputs, for example with group-specific decision thresholds to equalise false-positive rates. Among the concrete techniques it cites are the disparate impact remover, which edits feature values to reduce different treatment between groups, and the individual bias detector and remover, which compares decisions on individuals in the disadvantaged group with those on similar individuals in the favoured group. The guide adds two organisational practices: balancing the dataset, a task that can take up most of the development time in deep learning systems, and separating the training and evaluation teams so that one team's cognitive biases do not contaminate both phases.

The subsidiarity rule of article 4 bis

On the processing of special categories of data to correct bias, the guide details one condition worth stressing: subsidiarity. Those categories may only be used when processing other data, such as synthetic or anonymised data, does not allow the detection and correction of bias to be carried out effectively. In other words, sensitive data is the last resort, not the first. That condition comes on top of those already mentioned: technical limits on reuse, pseudonymisation, and strict, documented access controls so that only authorised persons, under adequate confidentiality obligations, handle that data. The message for practice is that the bias-correction file must justify why the non-sensitive alternatives were not sufficient, and that justification is part of the governance that article 10 requires to be documented.

Data governance ends up in the technical documentation

All this governance work has a documentary output. The guide links article 10 with article 11 and Annex IV of the Regulation: the technical documentation must include, where relevant, data sheets describing the training methodologies and techniques and the datasets used, with a general description of those datasets, their provenance, scope and main characteristics, how the data was obtained and selected, the labelling procedures and the data-cleaning methodologies, such as anomaly detection. For the supervisory authority or the notified body, that documentation is the entry point for assessing conformity; for the provider, it is the proof that data governance really existed and was not just on paper.

The measures it proposes

  1. Define the information requirements: what data the system needs.
  2. Collect from several sources, to avoid dependencies and bias, and fix a source of truth with the data owner.
  3. Control quality: completeness, consistency, representativeness.
  4. Prepare the data: standardise formats, sample, select features and label, with human oversight of automatic labelling.
  5. Analyse bias. The guide stresses that bias is not necessarily an error, but an imbalance that must be assessed in context.
  6. Control access and versions of the data and document their provenance and the presence of personal data.
  7. Manage deletion of data.
  8. Anonymise whenever possible; if that prevents detecting bias, pseudonymise and justify it.
  9. Document the measures, their application and who is responsible.
  10. Use the self-assessment questionnaire associated with the guide.

Usefulness for lawyers

In procurement. The guide's measures are a good list of questions for the provider of a high-risk system: where the data come from, how their quality has been controlled and what has been done about bias.

In litigation. When a decision supported by an AI system harms a person, data quality is one of the first questions to examine. It fits with the rules of Law 15/2022 on algorithmic discrimination, which we explain in the analysis of its Article 23.

More analysis in Legal AI.

Fuentes

  1. Ministerio para la Transformación Digital y de la Función Pública. Guía 7. Datos y gobernanza del dato, versión 2.0, 17 de julio de 2026 (PDF). Accessed 18 October 2026.

The specific data in this article come from the official sources cited.

Agente Lex Newsroom Redacción

Editorial team of AGENTE LEX. We produce analysis and news for the legal profession from public and official sources, which we link at the end of each article.

View profile and articles →