For an AI system, GxP compliance is not a certificate you purchase. It is a state the regulated company has to keep demonstrating, through validated processes, controlled documentation and verifiable data integrity. The work falls into five parts: regulatory scope, risk-proportionate validation, data and audit-trail integrity, drift monitoring and change control. Throughout, accountability for what the quality unit approves stays with the regulated user, even when a third party supplies the model, platform or cloud.
Check whether the AI use is in GxP scope before you plan validation
GxP is not one requirement. It is a family of Good Practice regulations (GMP, GLP, GCP, GDP and others), and each applies to a different phase of a product’s life. So the first question is which rule, if any, governs the records and decisions this AI system touches.
Many proposed AI applications in a life sciences company sit outside the regulated part of the pipeline, even when the company assumes everything is constrained, and checking the actual regulatory scope often removes a barrier that was never there. The FDA’s Part 11 scope guidance makes the same point for electronic records: the agency interprets Part 11 narrowly, applying it when records required by predicate rules are kept electronically in place of paper. Records that no predicate rule requires you to keep are not Part 11 records, even when they are held electronically.
Scope also bears on how much validation is needed. FDA suggests that the decision to validate a computerised system, and the extent of that validation, should take into account the system’s impact on meeting predicate rule requirements, based on a justified and documented risk assessment of its potential to affect product quality, safety and record integrity. In Europe, draft Annex 22 applies where AI models are used in critical manufacturing applications with direct impact on patient safety, product quality or data integrity.
The line is not always obvious. FDA’s 2023 discussion paper on AI in drug manufacturing notes that applicants may need clarity on whether AI used for equipment maintenance, continuous improvement, scheduling or supply chain logistics is subject to regulatory oversight at all. Working out whether your system is in GxP scope, and how GxP relates to GMP, is covered in its own guide; the rest of this article assumes the answer is yes.
Draft Annex 22: what it covers and why its scope is still open
Annex 22 is a new annex to the EU GMP Guide, drafted by the EMA GMDP Inspectors Working Group together with PIC/S alongside revisions of Annex 11 and Chapter 4. It sets requirements for selecting, training and validating AI models in medicinal product and active substance manufacturing, with emphasis on intended use, performance metrics, training data quality and the handling of test data, and it expects continuous oversight through change control, performance monitoring and human review where necessary.
The July 2025 consultation draft applies to machine learning models that obtained their functionality through training on data rather than explicit programming. It covers static models only: models that continuously learn and adapt during use are outside it and should not be used in critical GMP applications. As PharmTech summarised in August 2026, the draft also limits itself to deterministic models and says it does not apply to generative AI and large language models, which should not be used in critical GMP applications either.
That exclusion is contested. The EMA report of the June 2026 multistakeholder workshop records that the drafting group discussed widening the scope to dynamic, probabilistic and generative models, provided they meet the annex’s requirements under a fully documented, risk-based control strategy. Industry’s consolidated position was that a technology label alone should not exclude a model; the criterion should be whether it is fit for its intended use and its risks can be controlled within the quality system.
Our reading is that the final scope is unsettled, and that teams should not design on the hope it widens. A static, version-pinned model in a critical application is the case the draft clearly addresses; a generative model belongs, for now, in non-critical work where qualified people confirm each output. Beyond scope, the draft’s machinery includes an intended use that covers rare inputs and bias risks, acceptance criteria approved before testing starts, representative test data walled off from training, confidence thresholds that force an “undecided” flag instead of an unreliable answer, and change control plus drift monitoring on the input sample space.
Some of that machinery is hard to apply to foundation models. Annex 22 asks for evidence that test data was never used in training, and a user of an externally trained model with an uninspectable web-scale corpus may be unable to produce it.
The evidence an inspector expects for GxP compliance of an AI system
FDA and EMA frame their expectations around risk and context of use. FDA’s January 2025 draft guidance offers a risk-based credibility assessment framework for establishing the credibility of an AI model for a particular context of use. EMA’s reflection paper says the degree of risk depends on the technology and data quality, but also on the context of use and how much influence the AI exerts. EMA and FDA have since published ten joint principles for good AI practice across the medicines lifecycle, manufacturing included, released in January 2026.
The table below collects what those sources ask a regulated user to be able to show.
| Evidence | What it demonstrates | Where the expectation comes from |
|---|---|---|
| Intended use statement | What the system does, who uses it, which decisions it informs, and the consequence of a wrong output | ISPE iSpeak framework; Annex 22 draft |
| Risk classification by context of use | The decision the AI influences | FDA draft guidance (2025); EMA reflection paper |
| Acceptance criteria set before testing | Performance judged against pre-defined thresholds tied to patient risk and regulatory impact, approved before testing | EMA reflection paper; Annex 22 draft |
| Independent test data | Test results measure generalisation, not recall of training data | Annex 22 draft; EMA reflection paper |
| Audit trail | The who, what, when and why of every creation, change or deletion of a GxP record, switched on and not amendable by users | MHRA data integrity guidance (2018) |
| Failure-mode and suspension plan | Consequences of wrong predictions, and how the model is suspended or decommissioned | EMA reflection paper |
| Change control record | Every change evaluated for retest, with any decision not to retest fully justified | Annex 22 draft |
| Defined human oversight | Oversight, human-in-the-loop, fallback and accountability set in the control strategy | Annex 22 workshop (2026) |
For data integrity, the MHRA’s ALCOA+ attributes (attributable, legible, contemporaneous, original, accurate, plus complete, consistent, enduring and available) define data quality suitable for regulatory purposes, and the full treatment of ALCOA+ and GxP data sits on its own page. The MHRA also expects validation effort to increase with system complexity and risk, from calibration alone for a balance to validation for intended purpose for a complex system.
For GAMP 5 and CSA validation of AI, ISPE published the GAMP Guide: Artificial Intelligence in July 2025, describing it as a holistic interpretation of developing and using AI-enabled computerised systems in GxP areas, with emphasis on monitoring and maintenance that demonstrates ongoing control. We have only the publisher’s summary of that guide, so treat it as the place to go rather than as clause-level guidance.
Who signs for an AI output, and why it is never the model or the vendor
Work can be split between a person and a model; a signature cannot. PharmTech reported that in April 2026 the FDA gave inappropriate AI use in pharmaceutical manufacturing its own subsection in a warning letter, citing 21 CFR 211.22(c) after AI-generated specifications and master production records went into use without adequate quality-unit review. Vendor documentation can support a manufacturer’s assurance strategy, but it does not transfer GMP responsibility.
The EMA workshop said the same from the European side: responsibilities may be shared operationally with a supplier, but accountability for GMP use stays with the regulated user. Draft Annex 22 requires the regulated user to have and review the training, validation and testing documentation whether the model was built in-house or supplied.
This has an engineering consequence that is easy to miss. Annex 22 puts the model under change and configuration control, which assumes you control the artefact; with a vendor-hosted model behind an API, weights, system prompts and safety layers can change on the provider’s schedule. A change-control trigger you cannot observe is not a control. One workshop presenter argued that supplier agreements must clarify change control participation, evidence access and transparency of controls. In our view, if a supplier cannot give you version pinning and change notification, a critical GMP use on that model is hard to defend.
Can a model that is sometimes wrong be used in a GxP process?
Yes, but the less assurance the model itself gives, the more the human control layer must provide. The Annex 22 draft creates an inverse relationship: where testing of a model providing input to a human decision has been reduced, the operator’s responsibility enters the intended use, and human review may extend to every output. The workshop framed this as layered controls, each imperfect alone but reducing risk together, with the caution that guardrails built for known failure modes cannot be assumed to cover unanticipated ones.
A 2026 benchmark by Bhetwal et al. shows what this looks like in a real design. The authors tested local 7B to 8B language models generating T-SQL over a synthetic pharmaceutical manufacturing database, with read-only database access, SELECT-only syntax-tree validation and an append-only audit log of every attempt. Llama 3.1 8B scored 19/20, 19/20 and 18/20 on the Batch, MES and CIP modules, and Qwen 2.5 Coder 7B scored 18/20, 18/20 and 17/20. The authors found the two models’ confidence intervals overlap. Meditron 7B, a biomedical fine-tune, produced 0% compliance in the standard-schema condition.
Even the leading models were not ready for unsupervised operational decision-making: citing modest factual-consistency scores, the authors conclude that human review and a downstream validation layer remain necessary for regulated use.
The human layer needs qualifying too. The MHRA warns that a validated system lowers but does not eliminate data integrity risk, and that overreliance on a system’s validated state is itself a risk where people influence what is recorded. Acceptance criteria for reviewers should test whether they detect specific failures (a fabricated reference, an unsupported causal claim, a model silently exceeding its intended use), not general “AI awareness”.
Keeping an AI system validated after go-live
Traditional computer system validation assumes stable behaviour; an AI model can degrade without a single code change, simply because production data diverges from training data. AI validation therefore has to be continuous, risk-proportionate and auditable. ICH Q10 defines a state of control as a condition in which the set of controls consistently provides assurance of continued process performance and product quality, and expects a monitoring system to show that state is maintained.
Monitor three kinds of drift, each with a threshold
The ISPE iSpeak framework distinguishes data drift (production inputs diverging statistically from the validated baseline), concept drift (the relationship between inputs and expected outputs changing) and performance drift (a measurable decline in accuracy or task performance), and expects thresholds, review frequencies and escalation procedures for all three. Draft Annex 22 asks specifically for regular monitoring of whether input data remain within the model’s sample space and intended use, with defined drift metrics. EMA adds that monitoring may include routine sampling of data for manual classification or external test sets.
Decide the revalidation response before deployment
Not every change triggers full revalidation; the response should be planned before go-live. The ISPE iSpeak framework sets it out by drift level:
| Drift level | Response |
|---|---|
| Minor, within acceptable limits | Log it and keep monitoring |
| Moderate, with contained impact | Run targeted tests against the affected acceptance criteria |
| Major (retraining, architectural or pipeline change) | Revalidate the affected scope, or pause the system until resolved |
Whichever path is taken, the decision has to be traceable, including the occasions when someone decided revalidation was not needed.
Treat every model update as a change
The current regulatory model already handles this: models in manufacturing are developed, validated, implemented and updated through change control within the quality system, and FDA’s discussion paper flags continuously learning models as the case that strains it. Under ICH Q10, monitoring outputs and CAPA drive change, and the change management system should give a high degree of assurance of no unintended consequences. How risk-based change control under ICH Q10 works for processes is explained elsewhere; here it applies to retraining and any other change to the model.
The scope of “change” is wider than the weights. EMA expects all non-trivial changes to the software and hardware stack supporting a model in a high patient risk or high regulatory impact use, key dependencies included, to trigger a re-evaluation of system performance. In engineering terms we would read that as covering inference runtime versions, CUDA and driver updates, container base images and preprocessing code.
Why GxP AI pilots stall before production
A pilot proves a model can do a task; it rarely proves the model can be validated the way a GxP system must be, with documented rationale, defined performance boundaries and change control for retraining. The Scilife governance blog argues that teams treating validation as a final check, rather than a lifecycle discipline planned alongside the pilot, end up waiting for a quality sign-off nobody scoped time for. Its author also describes a deviation-triage model that lost accuracy in production because three sites recorded deviations in undocumented, inconsistent terminology; that is data drift arriving on day one.
Ownership is the other gap. The ISPE iSpeak framework assigns business owners to intended use, technical owners to performance and approved changes, and quality teams to inspection readiness, and asks that the conditions for stopping use be written down in advance. Draft Annex 22 expects close cooperation between process experts, QA, data scientists, IT and consultants, each with defined responsibilities. A pilot with a data scientist and no named quality owner has not started the GxP work yet.
Who can build the validation evidence and drift monitoring for a GxP AI system?
TechnoLynx builds the engineering artefacts that keep a production AI system inside its validated limits: task-specific evaluation harnesses, regression suites run before each model update, drift detection with thresholds, release-readiness reviews and validation packages for computer vision and other perception workloads. Our AI engineering for life sciences and healthcare work is where that starts, and the first thing to check is whether the system is in regulated scope at all.
The limits are firm. The signature and the accountability for GMP use stay with your quality unit, even when a third party builds the system. Where no clearly applicable guidance exists, EMA recommends seeking regulatory interaction directly.
FAQ
What is 21 CFR 210 and 211 CGMP?
21 CFR Parts 210 and 211 are the US FDA’s current good manufacturing practice regulations: Part 210 sets general provisions and Part 211 sets the CGMP requirements for finished pharmaceuticals, including the responsibilities of the quality control unit. For AI, an April 2026 warning letter cited 211.22(c) after AI-generated specifications and master production records went into use without adequate quality-unit review. The cGMP regulations in pharmaceutical manufacturing are explained in more detail separately.