GxP Insights

EU GMP Annex 22: AI in Pharmaceutical Manufacturing

GMP Annex 22 is the first EU GMP annex dedicated to artificial intelligence in pharmaceutical manufacturing. What the draft requires, which models it allows in critical applications, and how to prepare your site while the revision moves towards the final text.

G GuideGxP 5 min read
✓ Official sources and references ✓ Practical approach ✓ For pharmaceutical professionals
GUIDEGXP · PRACTICAL GMP INSIGHTS
Illustrazione editoriale GuideGxP a colori sul tema GMP: intelligenza artificiale nella produzione farmaceutica secondo l'Annex 22.

GMP Annex 22 is the first EU GMP annex entirely dedicated to artificial intelligence in the manufacture of active substances and medicinal products. Published as a draft on 7 July 2025 alongside the revisions of Annex 11 and Chapter 4, it attracted around 1,300 consultation comments and, according to EMA, the final text is expected by the end of 2026. Meanwhile AI has already entered many facilities — in monitoring, machine vision, documentation — and the question for QA and CSV teams is no longer "whether" but "under which controls". This guide covers what the draft requires, which models it allows in critical GMP applications, what stays out, and how to prepare your site without waiting for the final text.

GMP Annex 22: what it is and where the revision stands

Annex 22 is a new annex to EudraLex Volume 4, drafted by EMA's GMP/GDP Inspectors Working Group together with PIC/S, setting requirements for the use of artificial intelligence and machine learning in the manufacture of active substances and medicinal products. The European Commission put it out for public consultation from 7 July to 7 October 2025, as a single package with the revised Annex 11 (computerised systems) and Chapter 4 (documentation).

The current status is clear and worth stating without ambiguity: Annex 22 is still a draft and is not in force. The EudraLex Volume 4 index does not list it, and for computerised systems — AI included — the applicable reference remains the 2011 version of Annex 11, read together with Chapter 1 and the ICH Q9(R1) principles. The consultation, however, generated around 1,300 comments, the drafting group is working through them, and EMA's programme indicates publication of the final document by the end of 2026: whoever waits for the final text to start will be months behind.

Scope: which AI models the draft covers

The draft applies to AI/ML models embedded in computerised systems used in critical GMP applications, i.e. with a direct impact on patient safety, product quality or data integrity. Within that perimeter, the consultation version allows only one category of models:

  • static models: they do not adapt during use by incorporating new data;
  • with deterministic output: identical inputs produce identical outputs.

According to the draft, dynamic or adaptive models, models with probabilistic outputs, and generative AI including LLMs remain excluded from critical applications. In non-critical applications these tools can be used, provided the output is checked by qualified personnel who take responsibility for it. A practical example: an LLM helping draft an SOP can be managed today with documented human oversight; the same LLM deciding batch disposition cannot.

AI in GMP is one of the topics we follow most closely in The Pragmatic GMP, GuideGxP's free weekly newsletter: every week one regulatory topic broken down into operational decisions, before it becomes a finding. Subscribe to follow Annex 22 all the way to the final text.

The draft requirements: from training data to monitoring

The core of Annex 22 is a complete model lifecycle, built on the same principles as Annex 11 but with AI-specific expectations. The table summarises the main blocks of the consultation draft and what they mean in practice for your site.

Draft area What it asks for What it means in practice
Intended use Documented definition of intended use and permitted input space State which decision the model supports, with which data, and what it explicitly does not do
Training and test data Quality of training data; independent and representative test set Physical, documented separation between development data and test data, with a representativeness rationale
Performance Metrics and acceptance criteria defined before evaluation Predefined pass/fail thresholds proportionate to the use-case risk, not generic averages
Explainability Explainability techniques where applicable (e.g. feature attribution) Being able to show an inspector why the model produced that output
Change control The model under change control before deployment No update, retraining or supplier patch outside change control
Monitoring Metrics for input data drift and performance; human review where necessary Validation does not end at go-live: a continuous monitoring plan with re-evaluation triggers is needed

One cross-cutting point in the draft concerns suppliers: the vendor's documentation on the model must be made available and reviewed by the regulated user. GMP responsibility cannot be outsourced through a cloud contract.

Generative AI and LLMs: the exclusion EMA is reconsidering

The most debated part of the draft is precisely the exclusion of generative AI, LLMs and adaptive models from critical applications. The consultation showed broad support for a risk-based approach driven by the use case rather than the technology type, and EMA has reopened the question: on 30 June and 1 July 2026 it brought regulators, industry and AI experts together in Amsterdam for a multistakeholder workshop on how to enable the responsible use of these models in GMP.

The workshop's central theme was guardrails: measures to prevent, detect and contain hallucinations, incorrect recommendations and fabricated data, together with meaningful human oversight, drift monitoring, change control over evolving models and governance of cloud suppliers. The workshop report now feeds the drafting of the final text. The plausible direction: not a ban by category, but control requirements proportionate to criticality — with the burden of proof on whoever wants to use the model.

Annex 22, Annex 11 and Chapter 4: one package

Annex 22 is not read on its own. The revision went to consultation as a coherent package: Chapter 4 covers documentation and data governance, Annex 11 the lifecycle of computerised systems — validation, security, suppliers, cloud services — and Annex 22 adds the AI-specific expectations for models. The draft makes the link explicit: Annex 22 supplements Annex 11, it does not replace it. For your site this means something concrete: a system with AI inside remains first of all a computerised system, with URS, risk assessment, validation, audit trail and periodic review. The model requirements are added on top of that foundation, they do not replace it.

How to prepare now, without waiting for the final text

  1. Inventory your use cases: map where AI is already present or planned — including AI "hidden" in supplier software updates — and classify each case as GMP critical or non-critical.
  2. Document the intended use: for each use case, the supported decision, the permitted input space, and the human accountable for the final decision.
  3. Apply Annex 11 today: risk assessment, proportionate validation, change control and audit trail already apply now to any system with AI components.
  4. Predefine metrics and thresholds: performance criteria and uncertainty-handling rules written before testing, not after.
  5. Set up monitoring: input drift, performance drift, re-evaluation triggers and a documented manual fallback.
  6. Tighten supplier agreements: quality agreements guaranteeing visibility of model updates, logs and test evidence.

GuideGxP recommendation

Treat Annex 22 as a snapshot of the questions an inspector will ask anyway, draft or no draft: which decision does the model support, which data was it trained and tested on, who answers for the output, what happens when it is wrong. If your site can answer these four questions in writing for every AI use case, the final version of the annex will be an update, not a remediation project. And the starting point remains computerised systems discipline: that is where Annex 22 has its roots.

To build that foundation — validation lifecycle, evidence, audit readiness under Annex 11 and GAMP 5 — GuideGxP's Operational Guide to Computer System Validation (CSV) in GxP Environments covers exactly the path onto which the AI requirements of Annex 22 are grafted, with ready-to-use templates.

Official sources

THE PRAGMATIC GMP · EVERY MONDAY

The GMP topics that matter, in 7 minutes.

One GMP topic, one real-world example and one practical action, based on official sources and inspection trends.
Discover The Pragmatic GMP →