Guide: what the draft Annex 22 requires of AI in GMPRead the guide

Artificial intelligence an inspector can review

We bring AI into the company's processes and deliver the evidence that it does what it claims: what it is used for, how it was tested, which version is in production and who approved each proposal.

  • Intended use defined and approved
  • Model version under change control
  • A person always decides

Use cases

How AI would work in a specific process, with a step-by-step walkthrough

In every case AI prepares and a person decides, and the system keeps a record of both.

Illustrative examples, not real cases

These are design proposals with fictitious examples, not completed projects. The processes shown are illustrative and may not match yours: the system is designed around your actual process. The systems we have already built are in Projects.

Automated visual inspection of injectables

A vision model checks every filled container, separates the defective ones and sends the ones it isn't sure about to a person.

GMPManufacturingComputer visionCritical

Deviation investigation and CAPA

AI finds the deviations in the history that describe the same problem and drafts an investigation with every source cited.

GMPQuality assuranceGenerative AINon-critical

Pharmacovigilance case intake

AI extracts the data from the report, checks whether the case is valid, proposes the MedDRA coding and looks for duplicates.

GVPPharmacovigilanceExtraction and codingOutside GMP

Laboratory equipment qualification

AI drafts the OQ protocol from the URS and the manufacturer's manual, with one test per requirement and the source of every criterion.

GMPQuality controlExtraction and draftingNon-critical

Process validation and ongoing verification

AI gathers batch data against the protocol's criteria, flags what drifts from the trend and drafts the report with its sources.

GMPQuality assuranceExtraction and trendsNon-critical

Tablet and blister inspection

A vision model checks every blister on the packaging line and separates incomplete ones or those with damaged tablets.

GMPManufacturingComputer visionCritical

Laboratory audit trail review

AI ranks the events of the chromatography data system's audit trail by priority, hiding none; the reviewer decides.

GMPQuality controlRules and anomaliesNon-critical

Inspection readiness

For a question from the inspector or a self inspection, AI finds the records that answer it and proposes a reply with its sources.

GMPQuality assuranceSearch with sourcesNon-critical

Material receipt

At each receipt, AI compares the delivery note, the purchase order, the supplier's labels and its certificate of analysis, and flags what doesn't match.

GMPSupply chainExtraction and comparisonNon-critical

The seven pieces of evidence of a validated model

What we deliver for each model.

A model is not validated like a spreadsheet formula. Its output is probabilistic and its provider releases new versions. That is why the documentation of a system with AI includes pieces a conventional system doesn't need. Together they make up the model documentation: the evidence package you show in an inspection.

Intended use
What task the model performs, on what data, and what is out of scope. Everything else is measured against this definition.
Level of autonomy
Whether the model suggests, drafts or executes with approval. It is decided according to the risk to the patient and the product, and the decision is justified in writing.
Test data
Real, representative cases, kept separate from those used to tune the system. The acceptance criterion is set before testing.
Sources for each proposal
Each proposal shows which documents or records it comes from, so the reviewer can check it.
Version under change control
The model, its version, the instructions and the configuration are part of the validated system. A new version from the provider doesn't reach production without going through change control.
Recorded oversight
The audit trail keeps what the model proposed, with which version, and what the person accepted, corrected or rejected; that person is trained to understand the output and challenge it.
Monitoring in production
The share of proposals that get corrected or rejected is measured continuously. If it rises, the system flags it before an audit finds it.

Layered controls

Prevent, detect and contain.

No control is perfect on its own, so we combine them in three layers. Each one is tied to a specific failure mode and a measurable acceptance criterion, and the risk assessment is updated when an unforeseen failure mode appears.

  • At the input: checking that the case is within the intended use before it reaches the model
  • In the model: cited sources for each proposal and a confidence score
  • At the output: thresholds, review by a person and a return to a safe state, with a defined escalation path, when something fails

Your data doesn't train third-party models

Data and model provider.

Nor does it leave the European Union or the country your regulations require, whether the system runs on your infrastructure or we run it for you.

  • We don't resell any model or any platform: we choose the one that suits the case
  • The system is ready to switch models, under change control and without being rebuilt
  • If the model comes from a third party, it has to provide the evidence needed to control it, such as logs and the rationale for its outputs: GMP accountability stays with your company

Where we don't use AI

What a person always decides.

Certifying a batch, deciding to notify an authority, approving a change and deciding the disposition of an out-of-specification result belong to people with a name and accountability. AI can prepare the information for those decisions, but it doesn't make them.

The draft Annex 22 to the EU GMP Guide currently restricts critical applications to static, deterministic models and leaves generative models for non-critical uses, with a person reviewing the output. Since the consultation, the European Medicines Agency has been considering allowing them with a risk-based control strategy, and the report of its latest workshop stresses that accountability stays with people and cannot be delegated to AI. The final text has not been published yet, and we design so the system can adapt to it without being rebuilt. We explain it section by section in the Annex 22 guide.

And if the risk assessment concludes that a model's uncertainty cannot be controlled, the conclusion is not to use it, and that conclusion is documented.

Where could AI help you?

We start from a real case in your process and tell you whether AI adds enough to justify validating it.