How to validate an AI use case for automation in GMP manufacturing
By QLogix · Published · 14 min read
The short answer
An AI use case in GMP manufacturing is validated like any computerised system, for its intended use and in proportion to risk, with three additions that come from the model: acceptance criteria written as measured performance before testing, test data kept independent of the training data, and monitoring after go-live because a model's performance can drift. The risk is set by how much the model's output drives a GMP decision and how serious a wrong decision would be. No GMP text written only for AI was in force in the EU or the United States on 28 November 2026, so the work rests on EU GMP Annex 11 and 21 CFR 211.68, read with draft Annex 22 and FDA's draft credibility framework.
- From the intended use statement to monitoring in operation.
- 8 steps
- Decision consequence, model influence, uncertainty, complexity and detectability set the effort.
- 5 factors
- Status of EU GMP Annex 22 and FDA's AI credibility guidance on 28 November 2026.
- Draft
Key takeaways
- An AI use case in GMP manufacturing needs validation whenever its output can affect product quality, patient safety or data integrity. The model sits in a computerised system, and EU GMP Annex 11 and 21 CFR 211.68 already apply to it.
- Validation is of the use case, not of the model in general: the same model can be acceptable as an adviser to an operator and unacceptable as the only check before a batch decision.
- The effort follows risk. FDA's draft framework sets model risk from model influence and decision consequence, and EMA's 2026 workshop report on Annex 22 adds uncertainty, complexity and how detectable the model's errors are.
- Three things are specific to AI: acceptance criteria written as measured performance before testing, test data kept independent of the data used to train and tune the model, and monitoring in operation for drift.
- A human reviewer is a control that has to be defined, trained and checked. EMA's workshop report records that oversight cannot compensate for inadequate validation.
- Draft Annex 22 keeps generative AI and large language models out of critical GMP applications and allows them in non-critical ones with qualified human review. That line was under discussion, and no final text had been published on 28 November 2026.
Where is AI used for automation in GMP manufacturing?
AI is used in GMP manufacturing wherever a pattern in data can take over a judgement that a person or a fixed rule made before: reading an image, estimating a quality attribute from process signals, predicting an equipment failure, or reading a record for what does not fit. The uses differ less in their technology than in what the output is allowed to do. A model that advises an operator, a model that decides which records a reviewer sees, and a model that accepts or rejects a unit on its own are three different validation problems.
The table lists common uses with the role the model plays and how its criticality usually falls. Criticality here follows draft EU GMP Annex 22: a critical application has a direct impact on patient safety, product quality or data integrity. The last column is a typical reading, not a rule. The same use can be critical at one site and not at another, depending on what else checks the output.
Common AI uses in GMP manufacturing, by the role the model plays
| Use | What the model does | Who or what acts on the output | Typical criticality |
|---|---|---|---|
| Automated visual inspection | Classifies a unit as acceptable or defective from images | The machine rejects the unit, with a qualified manual inspection as the reference | Critical |
| Soft sensor in process control | Estimates a quality attribute from process signals in real time | The control system adjusts the process, or an operator does | Critical when it controls the process or replaces a test |
| Batch record review by exception | Marks the entries and events a reviewer needs to look at | The reviewer, then the quality unit | Critical when records it does not mark go unreviewed |
| Environmental and utility monitoring | Detects trends and unusual patterns in monitoring data | The quality unit, which investigates what is flagged | Often critical: a missed trend is a missed signal |
| Predictive maintenance | Predicts a failure or a drift in equipment from sensor data | Maintenance planning, alongside the fixed preventive schedule | Usually non-critical while the fixed schedule stays |
| Deviation and investigation drafting | Drafts a summary, proposes causes and finds similar past events | The investigator, who decides and signs | Non-critical with qualified review of every draft |
| Scheduling and resource planning | Proposes a production or laboratory schedule | The planner | Outside GMP impact in most cases |
Does an AI use case in GMP manufacturing need validation?
Yes, whenever its output can affect product quality, patient safety or data integrity. A model does not run on its own: it sits inside a computerised system, and the rules for computerised systems already apply. In the EU that is EudraLex Volume 4, Annex 11, which expects a computerised system to be validated for its intended use. In the United States it is 21 CFR 211.68 for automatic and electronic equipment, with 21 CFR Part 11 for electronic records and signatures. The quality unit's responsibilities do not move because a model made a suggestion.
What is missing is a GMP text written specifically for AI that is in force. Two drafts show where regulators are heading. The European Commission published draft Annex 22, Artificial Intelligence, for consultation in July 2025, and EMA published a report of an expert workshop on its scope on 2 October 2026. FDA published its draft guidance on the credibility of AI models used to support regulatory decisions for drugs and biological products in January 2025, and it covers models used in manufacturing. Neither had been finalised when this article was published on 28 November 2026. Industry practice is set out in the ISPE GAMP Guide: Artificial Intelligence, published in July 2025 for use alongside GAMP 5 (Second Edition).
A use with no GMP impact, such as a planning aid, does not need GMP validation. It still needs a recorded decision that says why it has none, because the question an inspector asks first is how you know.
What makes validating AI different from validating conventional software?
Conventional software does what its code says, so validation shows that the configured functions meet the requirements. A machine learning model does what its training data taught it, so three things change.
- Performance is statistical. A classifier is not right or wrong as a whole: it has a rate of missed defects and a rate of false alarms, measured on a set of cases. The requirement has to be written as a measured performance, with the number of cases that makes the measurement meaningful.
- The evidence depends on the data. A model tested on the data it learned from will look better than it is. The test data has to be kept apart from the data used for training and tuning, and it has to represent what the model will meet in use, including the difficult and rare cases.
- Performance can change without a change to the software. A new raw material supplier, a different camera or a new product can move the inputs outside the range the model was tested on. That is why monitoring in operation is part of validation and not an afterthought.
How do you decide how much validation an AI use case needs?
By the risk of the use, not by the label on the technology. FDA's draft credibility framework builds model risk from two factors: model influence, which is how much the model's output contributes to the decision compared with other evidence, and decision consequence, which is how serious the outcome is if the decision is wrong. A model whose output is confirmed by an independent test has less influence than one that decides alone.
EMA's report of the 2026 workshop on Annex 22 records that criticality alone was considered insufficient, and names the factors to weigh: the decision consequence, the model's influence, its uncertainty, its complexity and how detectable its errors are. Detectability matters most in practice. An error that the next process step would catch is a different risk from one that leaves the site unseen.
The matrix shows how the first two factors combine. It is an illustration: neither document prescribes a scoring grid, and each company justifies the level for its own use.
Model risk from model influence and decision consequence
Model influence
| Low | Medium | High | |
|---|---|---|---|
| High | Medium: the model decides, on a matter of small consequence | High | High: the model decides alone on product quality |
| Medium | Low | Medium | High |
| Low | Low: the model advises, and little depends on it | Low | Medium: an independent check confirms the output |
Decision consequence
What are the steps to validate an AI use case in GMP?
Eight steps, in this order. The order matters because each step fixes something the next one is judged against: the acceptance criteria are meaningless without the intended use, and the test result is meaningless if the criteria were written after seeing it.
- Step 1. Write the intended use: the task, the decision the output informs, who or what acts on it, the inputs the model is expected to see and the limits of that range.
- Step 2. Assess the risk: the decision consequence, the model's influence, its uncertainty and complexity, and how its errors would be detected. Record whether the use is critical, and why.
- Step 3. Decide go or no-go on the design. A risk assessment may conclude that the use is not acceptable as designed, and that an independent check or a narrower task is needed first.
- Step 4. Set the acceptance criteria before testing, as measured performance, at least as good as the process the model replaces.
- Step 5. Assemble the test data: independent of the training and tuning data, representative of the intended use, with its origin, its labels and who verified them recorded.
- Step 6. Test the model and the system it runs in: performance against the criteria, behaviour on inputs outside the intended range, and the computerised system's own controls such as access, audit trail and interfaces.
- Step 7. Define and verify the human oversight: who reviews what, what they check, how they override, and where their decision is recorded. Train the reviewers and test that the review works.
- Step 8. Release under change control with a monitoring plan: the measures watched in operation, their thresholds, who looks at them and what triggers revalidation.
Eight steps to validate an AI use case in GMP manufacturing
- 1
Intended use
The task, the decision, the expected inputs and their limits
- 2
Risk
Consequence, influence, uncertainty, complexity, detectability
- 3
Go or no-go on the design
Add a control or narrow the task where the risk is not acceptable
- 4
Acceptance criteria
Measured performance, set before testing
- 5
Independent test data
Apart from training data and representative of use
- 6
Testing
The model against its criteria, and the system around it
- 7
Human oversight
Defined in procedures, trained and verified
- 8
Release and monitoring
Change control, thresholds and revalidation triggers
What acceptance criteria and test data does an AI model need?
Draft Annex 22 asks for acceptance criteria set before testing, with performance at least as good as the process the model replaces. That gives every use a reference. For automated visual inspection it is the qualified manual inspection; for a soft sensor it is the laboratory method; for review by exception it is the full review.
Write the criteria for the errors that matter, not for accuracy overall. In defect detection a missed defect and a false reject are different errors with different consequences, so each gets its own limit, and the limit for missed critical defects is the one the quality unit will defend. Overall accuracy hides this: a model can score well on a set where defects are rare and still miss most of them.
The draft also asks that test data be kept independent of the data used for training and validation, and that it represent the intended use. In practice that means the test set is drawn and locked before development starts, people who build the model cannot see it, it covers each product, format and defect type in scope, and the record shows where every case came from and who confirmed its label. A test set that is reused after each retraining slowly stops being independent, so plan how it is refreshed.
Two further requirements of the draft shape the test plan. It expects the features that drive the model's output to be shown, which is a check that the model is looking at the defect and not at the background. And it expects a confidence score to be recorded, so that low-confidence results are flagged for a person instead of acted on. The threshold for that flag is itself an acceptance criterion.
Can generative AI and AI agents be used in GMP manufacturing?
In non-critical applications, yes, with qualified human review. The draft of Annex 22 published for consultation says generative AI and large language models should not be used in critical GMP applications, and where they are used in non-critical ones it expects personnel with adequate qualification and training to be responsible for checking that the output is fit for its purpose. Drafting an investigation summary that an investigator reviews and signs is the standard example.
That limit may move. EMA's workshop report of 2 October 2026 says the drafting group has discussed allowing adaptive, probabilistic and generative models in GMP applications where they are supported by a fully documented, robust, risk-based control strategy, and that concerns remain about what such a strategy needs. No revised text had been published on 28 November 2026.
For an AI agent, which takes actions in systems and does not only produce text, validate the actions. List each action the agent can take, classify each by its GMP impact, and let the agent act only through the same permissions, rules and audit trail as a person. An agent that drafts a deviation for review is a non-critical use. An agent that could close one is not, and the design should make that impossible, not unlikely.
What does human oversight of AI have to look like?
Specific enough to be tested. A statement that a person reviews the output is not a control. The procedure has to say who reviews, which outputs they review, what they check each one against, how they reject or override it, and where their decision is recorded.
EMA's workshop report is direct on the limits of this control. It records that oversight cannot compensate for inadequate validation, and that regulators asked how automation bias is managed and how the reviewer's own performance is monitored. Automation bias is the tendency to accept what the system proposes. The practical answers are to make the reviewer look at the evidence and not only at the conclusion, to seed known cases into the review from time to time, and to track how often reviewers disagree with the model. A reviewer who has never disagreed is a signal worth investigating.
The report also records industry's position that oversight is broader than a human in the loop, which is one possible control and not a default for every use. For a high-speed inspection machine, a person cannot review each unit. Oversight there is the qualification of the model, the challenge sets run at defined intervals, the monitoring of reject rates and the authority to stop the line.
What stands between a model's output and a GMP decision
- DataData and inputs under controlInputs checked against the range the model was tested on, with out-of-range inputs refused or flagged
- AIA validated model with a confidence thresholdPerformance shown against criteria set in advance, with low-confidence results routed to a person
- People decideDefined human oversightWho reviews, what they check, how they override, and how their review is recorded and assessed
What happens after go-live: monitoring, drift and change control?
Validation continues in operation. The workshop discussion describes validation as a lifecycle and not a one-time event, and the draft annex asks for the model to be kept under change and configuration control, for its performance to be monitored, and for a watch on input data drifting outside the range it was tested on.
A monitoring plan names the measures, their limits and their owner. Typical measures are the model's performance on a challenge set run at a fixed interval, the rate of flags and rejects compared with its validated range, the share of low-confidence results, the rate at which reviewers override the model, and a check that the inputs still look like the test data. A limit crossed is a quality event with an investigation, not a note in a log.
Retraining a model is a change. So is a new version of a supplier's model, a new product in scope, or a change to the camera, the sensor or the pre-processing. Each goes through change control with an assessment of how much of the validation has to be repeated. Where a third party provides the model or runs it as a service, the agreement has to give you visibility of its changes before they reach production, because the position recorded at the workshop was that accountability stays with the regulated company.
The life of a validated AI use case
- 1. Validate for the intended useCriteria set in advance, independent test data, defined oversight
- 2. Operate under controlA locked version, with access, audit trail and configuration control
- 3. MonitorChallenge sets, flag and reject rates, low-confidence share, overrides, input drift
- 4. Investigate a limit crossedA quality event, with the cause and the batches or records affected
- 5. Change under change controlRetraining, a new version, a new product or a new sensor, each assessed
- 6. Revalidate what the change touchesWith test data the changed model has not seen
- A change to the model, its data or its use starts the cycle again.
What should the validation package for an AI use case contain?
The documents an inspector can follow from the decision to use the model through to the evidence that it still works. The table lists them with the question each one answers. For a low-risk use several of them fit on a few pages, and FDA's final guidance on computer software assurance, written for device production and quality system software, supports matching the depth of the record to the risk: the record needs to show the intended use, the risk decision, what was tested and the conclusion.
The validation package for an AI use case
| Document | The question it answers | Specific to AI |
|---|---|---|
| Intended use statement | What does the model do, for which decision, on which inputs? | The expected input range and its limits |
| Risk assessment and go or no-go decision | Why is this use acceptable, and with which controls? | Model influence, uncertainty, complexity, detectability |
| Data record | Where did the training and test data come from, and who verified the labels? | Independence of the test data |
| Validation plan with acceptance criteria | What performance was required, decided before testing? | Criteria per type of error, and the confidence threshold |
| Test report | Did the model and the system meet the criteria? | Performance by product and defect type, and behaviour outside the range |
| Oversight procedure and training records | Who reviews what, and are they trained to? | How overrides are made and recorded |
| Monitoring plan | How will a loss of performance be seen, and by whom? | Drift measures, limits and revalidation triggers |
| Supplier assessment and agreement | What evidence and what notice of changes does the supplier give? | Model versions and visibility of changes |
Where should a manufacturer start?
- List every AI use in GMP activities, in operation or planned, with the decision each one informs.
- For each, record whether it is critical and the five factors: decision consequence, model influence, uncertainty, complexity and detectability.
- Start with a use where an independent check already confirms the output, such as drafting with review or prediction alongside a fixed schedule. The validation is lighter and the organisation learns the method.
- Before any development on a critical use, write the intended use and the acceptance criteria, and draw and lock the test data.
- Write the oversight procedure as a test script: if you cannot test that the review works, it is not yet a control.
- Put the monitoring measures and their limits in place before release, with a named owner.
- Ask each supplier of a model for its validation evidence and for notice of changes before they reach production.
Common questions
Does AI used in GMP manufacturing need to be validated?
Yes, when its output can affect product quality, patient safety or data integrity. The model is part of a computerised system, so EU GMP Annex 11 and, in the United States, 21 CFR 211.68 apply. The depth of validation follows the risk of the use. A use with no GMP impact needs a recorded decision saying why it has none.
How is an AI model validated for GMP use?
In eight steps: write the intended use, assess the risk, decide go or no-go on the design, set acceptance criteria as measured performance before testing, assemble test data independent of the training data, test the model and the system around it, define and verify the human oversight, and release under change control with a monitoring plan.
What acceptance criteria should an AI model meet in GMP?
Criteria set before testing, written as measured performance for each type of error that matters, and at least as good as the process the model replaces, which is what draft EU GMP Annex 22 asks for. For defect detection that means separate limits for missed defects and false rejects, not one figure for overall accuracy.
Can generative AI be used in GMP manufacturing?
In non-critical applications, with qualified people responsible for checking the output. Draft EU GMP Annex 22 says generative AI and large language models should not be used in critical GMP applications. EMA's workshop report of 2 October 2026 says the drafting group has discussed allowing them under a documented, risk-based control strategy, and no revised text had been published on 28 November 2026.
Is a human in the loop enough to make an AI use acceptable in GMP?
No. EMA's 2026 workshop report on Annex 22 records that human oversight cannot compensate for inadequate validation. A reviewer is one control. It has to be defined in a procedure, the reviewers have to be trained, and the review's own effectiveness, including automation bias, has to be checked.
Does retraining an AI model require revalidation?
Retraining is a change and goes through change control, with an assessment of how much of the validation has to be repeated. The retrained model is tested against the acceptance criteria on test data it has not seen. A new supplier version, a new product in scope and a change to a sensor or camera are changes in the same way.
Is EU GMP Annex 22 or FDA's AI guidance in force?
Neither was on 28 November 2026. Annex 22 was published as a draft for consultation in July 2025 and was being revised. FDA's guidance on the credibility of AI models for drug and biological product decisions was published as a draft in January 2025. EU GMP Annex 11 and 21 CFR 211.68 are in force and apply to systems that contain a model.
Sources
- European Commission: stakeholder consultation on EudraLex Volume 4, Chapter 4, Annex 11 and new Annex 22
- EMA: Report of the multistakeholder workshop on expert contributions to artificial intelligence guidance development (Annex 22), EMA/156789/2026
- EudraLex Volume 4, Annex 11: Computerised Systems
- FDA draft guidance: Considerations for the Use of Artificial Intelligence to Support Regulatory Decision-Making for Drug and Biological Products (January 2025)
- 21 CFR 211.68 Automatic, mechanical, and electronic equipment, eCFR
- 21 CFR Part 11 Electronic records; electronic signatures, eCFR
- Federal Register, 24 September 2025: Computer Software Assurance for Production and Quality System Software, final guidance, notice of availability
- ISPE GAMP Guide: Artificial Intelligence (July 2025)
This article is general information for quality and regulatory professionals. It is not regulatory or legal advice. Check the source documents for their current status before acting on them.
More from the blog
- AI in quality · 19 November 2026Open-weight AI models on your own GPUs: advantages, disadvantages and what to check firstRunning an open-weight model on GPUs you own keeps prompts and documents inside your network, fixes the model version until you decide to change it, and ends the dependence on a supplier's service. In exchange you take on the hardware, the operation, the security of the model file, the licence review and all of the validation evidence, and the model that fits your hardware may not match the strongest hosted ones. It pays for steady, heavy work on data that should not leave. For occasional use and for the hardest tasks a hosted model is usually the better choice, and most companies end up using both.
- Validation · 13 November 2026How do you know a statistics package gives the right numbers? The QLogix accuracy statementBy comparing it with values computed independently, digit by digit, every time it changes. The QLogix statistics engine is run against 58 NIST reference datasets, against distribution values computed in 50-digit arithmetic and against reference software on every release, and the agreement is published as a statement the comparison run writes itself.
- AI in quality · 12 November 2026AI in life sciences in 2026: where it is used, what regulators expect and where to startIn 2026 AI is used at every stage of a medicine's life: finding targets and designing molecules, planning and running trials, monitoring processes, drafting investigations and screening safety reports. Regulators use it too, to read what companies submit. The uses that last share one design: a defined context of use, connected data that can be traced, validation in proportion to risk, and a named person who decides. FDA's credibility guidance and the EU's GMP annex on AI are still drafts, the joint FDA and EMA principles are published, and the EU AI Act's high-risk dates have moved to 2027 and 2028.