Pharma · · 9 min read
GxP AI validation: what QA teams need from training and test data
Acumen Editorial · Updated November 24, 2026
AI has reached GxP work faster than most validation playbooks. Classic computer system validation checks that software does what its specification says. A model has no fixed specification. Its behavior comes from data, so the evidence that it works has to come from data too.
We build expert-labeled test sets for regulated pharma and life sciences teams. This guide covers what regulators now expect and what QA should demand from the data behind an AI validation.
Why does GxP AI validation matter now?
Because regulators have started saying it out loud. In April 2026, FDA issued a warning letter to a drug manufacturer that had used AI agents to generate specifications, procedures and master production records. DLA Piper's analysis notes FDA cited quality unit approval failures under 21 CFR 211.22(c) and missing process validation. Staff said they did not know certain requirements because the AI agent never flagged them. DLA Piper's summary was blunt: "AI does not excuse the failure to implement fundamental controls."
In Europe, the draft EU GMP Annex 22 on artificial intelligence went to consultation from July to October 2025 with revised Annex 11 and Chapter 4. A November 2026 BioProcess Online column reports the draft drew about 1,300 comments, with a final text expected by the end of 2026. Our summary of EMA's AI guidance for pharma covers the wider European picture.
FDA's January 2025 draft guidance on AI to support regulatory decisions for drugs and biologics adds a seven-step, risk-based credibility framework: define the question, define the context of use, assess model risk, plan credibility activities, execute, document and decide adequacy.
What does draft Annex 22 ask for?
The draft is narrow on purpose. It covers AI models in critical GMP applications, those with direct impact on patient safety, product quality or data integrity. Per the BioProcess Online column, it applies to static models with deterministic output, and states that generative AI and large language models "should not be used in critical GMP applications." Non-critical generative uses still need qualified people checking outputs.
The requirements that matter most for data:
- Intended use approved by a process subject matter expert before acceptance testing
- Test data split by input characteristics, such as site, equipment, material or defect type
- Acceptance criteria set and approved by an SME before testing, at least as strict as the process the model replaces
- Feature review when approving results, so reviewers see what drives decisions
- Low-confidence outputs flagged as undecided and routed to a person
- Records of human review, with every output checked where criticality demands it
Annex 22 is still a draft, and its wording may change. The direction is clear enough to plan around.
What should QA require from AI test data?
The test set is the validation. If it is thin, biased or labeled by the wrong people, nothing downstream fixes it. We would make these non-negotiable.
| Requirement | What good looks like | Why QA cares |
|---|---|---|
| Independence | Test items never used in training or tuning; provenance documented | Prevents inflated results |
| Coverage | Stratified by site, product, equipment, defect type or case type | Matches the intended use space |
| Rare and hard cases | Deliberate share of edge cases and known failure modes | Averages hide critical misses |
| Expert labels | Labels by qualified SMEs, with credentials on file | Defensible in inspection |
| Multi-reviewer agreement | Two or more labelers per item, adjudicated, agreement reported | Shows the ground truth is stable |
| Version control | Frozen, versioned set reused for every change | Supports change control and comparison |
| Audit trail | Who labeled what, when and how disagreements were resolved | ALCOA+ data integrity |
The expert label row is where projects slip. A visual inspection model needs labels from people who reject batches for a living. A pharmacovigilance triage model needs case processors and safety physicians. Generalist annotators can produce volume, not inspectable ground truth. Our piece on verifying human-generated training data covers how to prove labels came from the people you paid for.
How do you set acceptance criteria for a GxP AI model?
Set them before you see any results, and tie them to the process the model replaces.
- Measure the current process. Find the human or legacy error rate on the same task. Annex 22's draft asks for no decrease.
- Name release blockers. A missed critical defect or a missed serious adverse event fails the model regardless of its average.
- Report by stratum. Pass at every site and product, not just overall.
- Include confidence behavior. Check that low-confidence cases are flagged, not guessed.
- Define the human step. If a reviewer checks outputs, record that in the intended use and monitor reviewer performance too.
FDA's Computer Software Assurance guidance, finalized in 2025 for device production and quality system software, takes a risk-based view of how much testing is enough. It was written for device makers, but the logic is a useful reference for pharma QA: test hardest where failure would hurt patients most.
What happens after the model is validated?
Validation is a starting point. Models drift as materials, equipment, case mix and documentation change. Plan for:
- Periodic re-testing on the frozen set, plus a fresh sample of recent production data
- Re-validation on any model, data or threshold change, under change control
- Monitoring of human reviewers, as the Annex 22 draft treats operator performance like any manual process
- Trend review of undecided and overridden outputs
Our guide to AI model change control in pharma covers the post-release side in detail.
Which GxP AI uses carry the most validation risk?
Risk follows impact on the patient and the product. A rough ordering we use when scoping test data:
- Highest: visual inspection and batch release support, deviation and CAPA classification that drives product decisions, and adverse event case triage. These touch product quality or patient safety directly and need the deepest expert-labeled test sets.
- Medium: drafting of SOPs, specifications and validation documents. The April 2026 warning letter shows these still need full quality unit review, and the review itself should be tested on planted errors.
- Lower: search, summarization and translation for internal reference, with no direct GMP decision attached. These still need human checks and clear limits on use.
Classify each use before building the test set. The classification decides how many items you need, who labels them and how strict the acceptance criteria must be.
How Acumen helps
Acumen supplies the expert-labeled test data GxP AI validation depends on. We recruit credential-checked pharmacists, safety physicians, quality and regulatory specialists, build stratified and independent test sets, label with multi-reviewer adjudication and deliver agreement scores, labeler credentials and a full audit trail ready for QA files. The same panel re-labels for periodic review. See our medical affairs and regulatory expert data capability.
For related reading, see our pharma AI procurement checklist, our guide to pharma AI agent governance and our explainer on inter-rater reliability in medical AI.
FAQ
What is GxP AI validation?
GxP AI validation is documented evidence that an AI model performs reliably for its intended use in a regulated process such as manufacturing, quality control, clinical operations or pharmacovigilance. It rests on a defined intended use, acceptance criteria set before testing, an independent test set labeled by qualified experts and a documented human review step.
What is EU GMP Annex 22?
Annex 22 is a draft addition to the EU GMP guidelines covering AI in critical GMP applications. It went to consultation from July to October 2025. The draft applies to static, deterministic models, excludes generative AI and LLMs from critical uses, and asks for SME-approved intended use, acceptance criteria, test data and human review records.
Can generative AI be used in GxP processes?
Under the draft Annex 22, generative AI and large language models should not be used in critical GMP applications that directly affect patient safety, product quality or data integrity. They can support non-critical tasks if qualified people check outputs. FDA's April 2026 warning letter shows AI-generated GMP documents still need quality unit review.
How is AI validation different from computer system validation?
Computer system validation checks software against a fixed specification. AI validation has to show a model behaves acceptably across the real range of inputs, because its behavior comes from data. That shifts the evidence to test data quality: independence, coverage, expert labels, reviewer agreement and performance by stratum, plus monitoring for drift.
Who should label test data for GxP AI validation?
Qualified subject matter experts for the task: quality and inspection specialists for manufacturing defects, case processors and safety physicians for pharmacovigilance, regulatory specialists for submission content. Use at least two labelers per item, adjudicate disagreements, record credentials and keep a full audit trail so labels hold up in inspection.
How often should a GxP AI model be re-validated?
Re-validate under change control whenever the model, training data, thresholds or intended use change. Between changes, re-test periodically on the frozen test set plus a fresh sample of production data, and monitor undecided outputs, overrides and reviewer performance. Set the cadence by risk, with critical applications reviewed most often.