1Start from intended use and risk.
An AI model is validated inside a computerised system, so the usual rules apply first. EU GMP Annex 11 asks for risk management through the system’s life cycle, with the extent of validation “based on a justified and documented risk assessment”.¹ What changes with AI is how much the intended use has to say. Draft Annex 22 asks for the task to be described “in detail based on an in-depth knowledge of the process”, with a full characterisation of the input data the model will see, including common and rare variations, limitations and possible biased inputs. A process subject matter expert is responsible for the description, which is approved before acceptance testing starts. Where it helps, the inputs are divided into subgroups, such as accept and reject decisions, sites, equipment or defect types.²
FDA’s January 2025 draft guidance frames the same step as a context of use: the model’s role and scope in answering a question, and what other evidence is used alongside it. Model risk then combines model influence, how much the model’s output counts, with decision consequence, how serious a wrong decision would be, and the credibility evidence needed rises with that risk.³ EMA’s reflection paper of September 2024 expects manufacturers to manage the risks of AI “from early development to decommissioning”.⁴
2Set acceptance criteria before testing.
Draft Annex 22 asks for test metrics suited to the use, such as a confusion matrix, sensitivity, specificity, accuracy, precision or F1 score for a model that classifies product, with acceptance criteria defined by a process expert and approved before testing. The criteria may differ by subgroup, and they must be “at least as high as the performance of the process it replaces”, so that performance has to be known first.² FDA asks for every performance estimate to come with confidence intervals.³ EMA prefers metrics that are insensitive to class imbalance, such as the Matthews correlation coefficient, and says pre-defined performance thresholds related to the context of use support a model’s credibility.⁴
3Keep the test data independent.
The test is only meaningful if the model has never seen the test data. Draft Annex 22 expects technical or procedural controls that keep test data out of development, training and validation, either by collecting it after training or by splitting it off before training starts. Split-off test data sits behind access control and an audit trail, with no copies elsewhere, and the record shows which data was used for testing, when and how often. Staff who have seen the test data should not train or validate the same model; where that is impossible, they work in pairs with a colleague who has not.²
The test data must represent the whole intended use, stratified across subgroups and large enough for adequate statistical confidence, with labels verified to a very high degree of correctness, for example by several experts or by laboratory tests. Generating test data or labels, for example with generative AI, “is not recommended”, and any use of it should be fully justified.² EMA adds that a test set is used once: if the model needs more development, “a completely new and independent test dataset is required”.⁴
4Run and document the test.
| Evidence | Draft Annex 22 | FDA draft guidance |
|---|---|---|
| Intended use or context of use | Section 3 | Steps 1 and 2 |
| Risk | Section 2.3 | Step 3 |
| Plan approved before testing | Section 7.2 | Step 4 |
| Metrics and acceptance criteria | Section 4 | Step 4 |
| Independent test data | Sections 5 and 6 | Step 4 |
| Deviations documented and justified | Section 7.3 | Step 6 |
| Explainability | Section 8 | Not a separate step |
| Confidence and uncertainty | Section 9 | Step 4 |
| Decision on fitness for use | Section 7 | Step 7 |
In draft Annex 22 the plan sets out the intended use, metrics, acceptance criteria, test data, test script and how the metrics are calculated, and a process expert helps write it.² During testing of a model for critical use, draft Annex 22 asks the system to record which features drove each classification, using techniques such as SHAP, LIME or heat maps, and to have those features reviewed as part of approving the results; it also asks for a confidence score per output and a threshold so that the model classifies only when that is suitable.²
5Keep it validated in use.
Validation does not end at release. Draft Annex 22 puts the model, its system and its process under change control and configuration control before deployment, and asks for regular monitoring of model performance and of drift in the input data.² FDA expects changes to a manufacturing model to go through the change management system of the pharmaceutical quality system, with parts of the credibility assessment repeated as needed.³ EMA says that for uses with high patient risk and high regulatory impact, all non-trivial changes to the software and hardware stack, including key dependencies, need a re-evaluation of performance, and that every model, especially one without a human in the loop, needs a system risk management plan that includes how to suspend or decommission it.⁴
6Generative AI and large language models.
Draft Annex 22 does not cover generative AI and LLMs and says they should not be used in critical GMP applications. In non-critical uses, qualified people are responsible for checking the output.² That may change: EMA’s report of its expert workshop of 30 June and 1 July 2026 says the drafting group has discussed allowing them with a documented, risk-based control strategy, and records the message that human oversight “cannot compensate for inadequate validation”.⁵⁶ FDA asks that where a human is in the loop, evaluation measures the human-AI team, not the model alone.³
7Where the GAMP AI Guide fits.
ISPE published the GAMP Guide: Artificial Intelligence in July 2025, a 290-page guide meant to be used in parallel with GAMP 5 Second Edition, for AI-enabled computerised systems in GxP use.⁷ Its contents follow the system life cycle through concept, project, operation and retirement, covering data splitting, testing, system monitoring and change and configuration management along the way, with further appendices on AI maturity by autonomy and adaptiveness, model categories and explainable AI.⁸ It is an industry guide, not a regulation; the expectations above come from the regulators. For the general lifecycle it builds on, see GAMP 5 Second Edition.
8How it runs in Seal.
In Seal, assurance starts from intended use and function risk, and supplier evidence, the configuration baseline, testing, anomalies and release stay linked, so each change is assessed from what moved (computer system assurance). The validation and AI assurance guide applies the same approach to Neil, Seal’s AI agent: evaluate it on representative jobs with expert-reviewed acceptance criteria, include obsolete procedures, conflicting records, missing units and insufficient evidence, define when Neil should stop or ask, and run the same cases again after a relevant model or configuration change, keeping failures as well as successes. A general model benchmark does not establish suitability for your process.
The guide also treats an AI-generated test as a starting point, to review against the requirement and execute, not as evidence in itself. Neil is not used in GMP execution: it proposes changes, their tests run, and your team releases them.
References
- 1EudraLex Volume 4, Annex 11: Computerised Systems, revision 1, European Commission, January 2011. https:/
/ health. ec. europa. eu/ system/ files/ 2016- 11/ annex11_ 01- 2011_ en_ 0. pdf (read 6 November 2026) - 2EudraLex Volume 4, Annex 22: Artificial Intelligence, draft for consultation, European Commission and PIC/S, July 2025. https:/
/ picscheme. org/ docview/ 9715 (read 6 November 2026) - 3Considerations for the Use of Artificial Intelligence to Support Regulatory Decision-Making for Drug and Biological Products, Draft Guidance for Industry and Other Interested Parties, FDA, January 2025. https:/
/ www. fda. gov/ media/ 184830/ download (read 6 November 2026) - 4Reflection paper on the use of Artificial Intelligence (AI) in the medicinal product lifecycle, EMA/
CHMP/ CVMP/ 83833/ 2023, European Medicines Agency, 9 September 2024. https:/ / www. ema. europa. eu/ en/ documents/ scientific- guideline/ reflection- paper- use- artificial- intelligence- ai- medicinal- product- lifecycle_ en. pdf (read 6 November 2026) - 5Multistakeholder workshop on expert contributions to artificial intelligence guidance development (Annex 22), report, EMA/156789/2026, European Medicines Agency, 2026. https:/
/ www. ema. europa. eu/ en/ documents/ report/ report- multistakeholder- workshop- expert- contributions- artificial- intelligence- guidance- development- annex- 22_ en. pdf (read 6 November 2026) - 6Good manufacturing practice: Multistakeholder workshop on expert contributions to artificial intelligence guidance development (Annex 22), event page with the report first published 2 October 2026, European Medicines Agency. https:/
/ www. ema. europa. eu/ en/ events/ good- manufacturing- practice- multistakeholder- workshop- expert- contributions- artificial- intelligence- guidance- development- annex- 22 (read 6 November 2026) - 7ISPE GAMP Guide: Artificial Intelligence, ISPE, July 2025. https:/
/ ispe. org/ publications/ guidance- documents/ gamp- guide- artificial- intelligence (read 6 November 2026) - 8ISPE GAMP Guide: Artificial Intelligence, table of contents, ISPE, 2025. https:/
/ ispe. org/ sites/ default/ files/ publications/ guidance- documents/ 2025- TOC/ GAMP_ Guide- AI_ TOC. pdf (read 6 November 2026)
AQuestions and answers
What is the ISPE GAMP Guide: Artificial Intelligence?
An ISPE guide published in July 2025 on developing and using AI-enabled computerised systems in GxP areas. It is meant to be used alongside GAMP 5 Second Edition and covers the life cycle from concept to retirement, supplier activities, data and model governance, and testing. It is industry good practice, not a regulation.
Can a large language model be validated for GMP use?
Draft Annex 22 offers no route for critical uses: it leaves generative AI and LLMs out of its scope and says they should not be used in critical GMP applications. In non-critical work they can be used with qualified people responsible for checking each output. The Annex 22 drafting group has since discussed whether a documented control strategy could make wider use acceptable.
Does a human in the loop reduce the validation needed?
Draft Annex 22 contemplates reduced testing where a person makes the decision using the model’s output, but then the operator’s responsibility must be written into the intended use, the operator’s training and performance monitored and records of the review kept. EMA’s 2026 workshop report records that human oversight cannot make up for inadequate validation.
Can a model that keeps learning in use be validated?
Draft Annex 22 covers only static models and says dynamic models that keep learning in use should not be used in critical GMP applications. FDA’s draft guidance expects sponsors to anticipate model-directed changes and to identify and evaluate them, with manufacturing changes going through the change management system.
What is the difference between a validation dataset and validation?
In machine learning, the validation dataset is data used during development to tune the model; FDA calls it tuning data. In GMP, validation is the work of showing that the system and its model are fit for their intended use. The final test uses a separate, held-out test dataset that was never used for training or tuning.
Do we need to retest when the model or its supplier changes?
Assess every change. Draft Annex 22 asks for any change to the model, its system, the process or its physical inputs to be evaluated to decide whether the model needs retesting, with a full justification if it is not retested. That includes a new model version delivered by a supplier.
