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

Process validation and ongoing verification

AI gathers the validation batch data from the batch records and the laboratory, compares it with the protocol's criteria, flags what drifts from the trend and drafts the report with its sources. The system computes the statistics, without AI. Quality assurance decides.

How it would work

Three validation batches of a sample tablet, from the protocol to the report reviewed by quality assurance.

  • AI prepares
  • A person decides
  • Recorded in the trail
Illustrative example, not a real case

The process, documents and data in this walkthrough are fictitious. They show how the AI would work; your actual process may be different, and the system is designed around yours.

The protocol and the three batches

Once the three batches are made, AI receives the approved protocol, the batch records and the laboratory results.

What comes in

123

Validation protocol

Batches
Three consecutive commercial-scale batches
Critical parameter
Granule moisture at the end of drying
Critical attribute
Content uniformity

Batch records 1, 2 and 3

Moisture at the end of drying within range in all three batches; in batch 2, close to the upper limit.

Laboratory results

Content uniformity of the three batches: conforms.

Today and with AI

What changes in every report and in the follow-up afterwards.

TodayWith AI

TodayEach batch's values are copied by hand from the batch records and the laboratory into the report

With AIAI extracts each value with its source: the record it comes from

TodayThe statistics are computed in spreadsheets that also have to be verified

With AIThe system computes them, without AI, with the same method in every report

TodayA value that passes but nears the limit can go unnoticed

With AIAI flags it for quality assurance to assess

TodayOngoing verification repeats the work throughout the product's life

With AIEach new batch is added to the same follow-up, with its sources

Which AI it uses and why

It gathers, flags and drafts; the calculations, without AI.

Extraction
A language model finds in the batch records and the laboratory results the value of each critical parameter and attribute, with its source.
Trends
An anomaly detection model compares each batch with the others and flags what drifts, even when it passes.
Calculations without AI
Means, spread and capability are computed by the system with fixed methods.
What it doesn't do
It doesn't decide whether the process is validated or change the protocol.

Regulatory fit

Where it sits in the draft Annex 22 and which regulations apply.

  1. CriticalIt decides something GMP: only with a static, deterministic model
  2. Non-criticalAI prepares and a person decides
  3. Outside GMPAnnex 22 doesn't apply directly

Deciding whether a process is validated is a GMP decision, and here quality assurance makes it: the model prepares the report. The draft Annex 22 allows generative AI in non-critical uses, with qualified personnel responsible for the result. Annex 15 requires the protocol to define the critical parameters and attributes with their criteria, and the process trends to be monitored throughout the product's life.

EU GMP Annex 15, 5.7
Process validation establishes whether all important quality attributes and process parameters are consistently met, and documents why each is considered critical or not.
Annex 15, 5.20 and 5.21
Generally a minimum of three consecutive batches under routine conditions; the protocol defines the critical process parameters, the critical quality attributes and their acceptance criteria.
Annex 15, 5.29 to 5.32
Ongoing process verification throughout the product lifecycle: process trends, statistical tools where appropriate and actions such as enhanced sampling.
Draft Annex 22
Generative AI only in non-critical uses, with qualified personnel responsible for the result.

See the Annex 22 guide

The seven pieces of evidence for this case

What we would deliver for this model.

01Intended use

Gather the data of validation and ongoing verification batches, flag trends and draft the report. It doesn't decide the validation.

02Level of autonomy

Drafts. Nothing leaves the draft without quality assurance's approval.

03Test data

Approved validation reports, with their batch records and results, kept apart from the ones used to tune the instructions.

04Sources for every proposal

Each value links to the batch record or result it comes from; whatever drifts is marked as pending.

05Version under change control

The model, its version, the instructions and the system's calculation methods.

06Recorded oversight

The proposal and what quality assurance accepted or corrected.

07Monitoring in production

How many values and conclusions are corrected; if the figure rises, the system flags it.

See what the seven pieces of evidence are

Frequently asked questions

About this use case.

  • It can draft it: it gathers each batch's data with its source, compares it with the protocol's criteria and proposes the conclusion. Under the draft Annex 22, generative AI fits non-critical uses like this one, because quality assurance decides the conclusion.

  • The system, with fixed methods and without AI. Annex 15 calls for statistical tools where appropriate to support conclusions on the variability and capability of the process; AI only finds the data and drafts.

  • It adds each new batch to the follow-up and flags what drifts from the trend. Quality assurance then assesses actions such as enhanced sampling, which is what Annex 15 provides for.

Other use cases

The same way of working in other processes.

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

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

What we need from you

To plan the system with real data.

  • The approved validation protocol
  • Access to the batch records and the laboratory results
  • Your report template and ongoing verification procedure
  • Earlier validation reports, for testing

Does it look like your process?

Tell us how you do it today and we'll tell you whether AI adds enough to justify validating it.