Validating an AI/ML tool in a GxP-regulated quality system means establishing documented, risk-based evidence that the complete system is fit for its intended use. That evidence should address the software, data, model, workflow, and people who rely on its outputs, with controls to maintain suitability after deployment. GxP refers to the applicable good-practice requirements, such as GMP .
Start by defining the quality decision the tool supports. Translate that use into testable user requirements, assess how failures could affect patients, product quality, and data integrity, and verify the controls before release. Then manage changes and monitor performance against approved limits. A vendor demonstration or a strong model benchmark does not establish that your specific workflow is validated.
What do GAMP 5 and the ISPE GAMP AI Guide contribute?
GAMP 5: A Risk-Based Approach to Compliant GxP Computerized Systems, Second Edition provides a good-practice framework for computerized-system assurance. Published in 2022, it emphasizes critical thinking, appropriate supplier involvement, and lifecycle approaches that can support iterative development. The ISPE GAMP Guide: Artificial Intelligence , published in 2025, complements that framework with guidance for AI-enabled systems and the responsibilities of regulated companies and suppliers.
These are industry guides, not regulations or regulatory approvals. Use them alongside the requirements that apply to your product, process, records, and jurisdiction. The comparison below summarizes their public descriptions and practical application; it is not a clause-by-clause interpretation of the licensed guides.
Comparison of GAMP 5 Second Edition and the ISPE GAMP AI Guide
Area |
GAMP 5 Second Edition |
AI Guide: additional focus |
|---|---|---|
| Purpose | Risk-based assurance of fit-for-intended-use computerized systems. | Applying assurance to AI-enabled systems and their specific characteristics. |
|
Lifecycle |
Specification, verification, supplier involvement, and lifecycle control. |
AI design, development, operation, use, and supplier responsibilities. |
|
Practical application |
Define intended use and scale assurance to risk. |
Address data suitability, model limitations, and the human-AI workflow. |
|
Operation |
Maintain control as the system and process change. |
Establish monitoring and maintenance for complex AI-enabled systems. |
Which regulatory expectations apply?
For US drug manufacturing, FDA's data-integrity guidance explains that computerized CGMP workflows should be validated for their intended use, with validation effort to commensurate with risk. For EU human-medicines GMP activities, Annex 11 addresses application validation, infrastructure qualification, risk management, suppliers, change control, and periodic evaluation.
Assess electronic-record obligations separately. In the United States, 21 CFR Part 11 applies within its defined scope to electronic records and signatures; using AI does not automatically make every prompt or output a Part 11 record. Determine which records support regulated activities and what must be retained to reconstruct them.
FDA's February 2026 Computer Software Assurance for Production and Quality Management System Software guidance has a medical-device production and quality-management-system scope. It should not be described as a universal pharmaceutical AI-validation requirement. EMA’s 2024 AI reflection paper provides additional lifecycle considerations for medicines, but is not a replacement for applicable GxP requirements.
Start with intended use and testable user requirements
A user requirements specification (URS) should explain what the system does, who uses it, which inputs it accepts, and how its outputs influence a quality process. Specify exclusions as clearly as permitted. Distinguish a tool that drafts a deviation summary from one that recommends a classification or automatically routes a record. Their failure consequences and control needs can differ.
For example, an illustrative intended-use statement could read: The system proposes deviation categories for trained quality reviewers using approved site records. It does not approve investigations, close deviations, or authorize batch release.
This is a design example, not a client case or a regulatory template.
Translate that boundary into verifiable requirements. Useful examples include:
- The reviewer can inspect the source record and reject or change the proposed category before it enters the approved workflow.
- The system records the model or service version and relevant configuration associated with a recommendation, to the extent needed to investigate the result.
- Missing required inputs or unsupported document types trigger a defined exception path rather than an apparently valid recommendation.
- Performance is evaluated against approved acceptance criteria for each critical category, not only a combined accuracy score.
These are illustrative requirements to adapt through risk assessment. Define numerical thresholds before acceptance testing, using process risk and a defensible evaluation design. There is no single accuracy target that makes every AI/ML quality-system use acceptable.
Assess AI risk in the context of the quality decision
Assess what could go wrong, its consequences, and how the workflow would detect or prevent harm. ICH Q9(R1) supports a systematic approach to quality risk management; EMA likewise relates AI scrutiny to context of use, patient risk, and regulatory impact.
Evaluate AI risks based on each tool’s intended use and the potential consequences of specific failures. For example, a deviation classification tool that fails to identify a critical deviation presents a greater risk than one that unnecessarily escalates a minor issue. Similarly, an AI drafting tool that introduces inaccurate information or omits important qualifications may pose a greater risk than one that simply produces poorly written content. Risk assessments should consider the likelihood, severity, and detectability of these specific failure modes rather than treating all AI applications as presenting the same level of risk. Consider:
- Data suitability: incomplete records, inconsistent labels, unrepresentative sites, and rare but consequential cases.
- Model behavior: false negatives, unsupported outputs, uncertain predictions, and performance differences across relevant groups or process conditions.
- Human reliance: whether reviewers have the expertise, source access, time, and authority to challenge the output.
- System dependencies: interfaces, access permissions, cloud services, retrieval sources, and supplier-controlled changes.
Document the control, its owner, how it will be verified, and the residual risk accepted by the responsible quality function. "Human review" is not a complete control description. Explain what the reviewer checks and how an incorrect result is prevented from becoming an approved quality decision. These are practical applications of risk-based assurance.
Build validation evidence across the lifecycle
Organize computer system validation assurance around the system lifecycle rather than a one-time test event. The following sequence is a practical synthesis of GAMP lifecycle principles, Annex 11, and EMA’s AI considerations. Deliverable names and testing depth should follow your quality system and documented risk assessment.
1. Define and plan
Approve intended use, system boundaries, responsibilities, user requirements, risk assessment, and the validation strategy. Identify the model, data sources, interfaces, infrastructure, and human decisions within scope. Decide which supplier evidence can be leveraged and what local verification remains necessary.
2. Establish data and configuration control
Document relevant data sources, preparation steps, labels, and versions. Identify the deployed model or service and settings that affect behavior. For generative AI, include controlled prompt templates, retrieval sources, and connected tools where these influence the intended use. Define how changes will be detected and assessed.
3. Verify the complete workflow
Test model performance and conventional software controls, including access, interfaces, record handling, exceptions, and recovery. Exercise representative for normal cases, critical edge cases, and failure conditions. Verify that users can identify and manage unsuitable outputs under realistic operating conditions.
4. Authorize release
Review results against approved acceptance criteria. Resolve deviations or document justified dispositions, confirm training and operating procedures, and approve the monitoring and change-control arrangements. Identify the configuration being released and any restrictions on use.
5. Operate, change, and retire
Monitor suitability, investigate incidents, review changes, and periodically reassess the system. At retirement, preserve required records and their meaning, verify migration where needed, and remove access and integrations through controlled procedures.
How should you test data, models, and outputs?
Separate model development from independent performance assessment. In machine learning, a “validation dataset” commonly supports model selection and tuning; that is not the same as GxP system validation. EMA explicitly distinguishes these meanings and warns about leakage between development and test data.
For an internally developed model, document data provenance, preparation, annotation, and the separation of training, tuning, and test datasets. Avoid related records crossing those boundaries in ways that inflate apparent performance. Explain why the evaluation data represent the intended process, including relevant sites, products, languages, or document types.
For a supplier model, assess the evidence available and its relevance to your use. Proprietary development details may be limited, but a generic benchmark does not answer whether your local workflow is suitable. Identify evidence gaps, perform use-specific evaluation, and restrict the use if the remaining uncertainty cannot be adequately controlled.
Select metrics that reflect consequences. For classification, examine false positives and false negatives by critical category; overall accuracy can conceal poor performance on rare events. For generated text, evaluate factual support, omissions, source fidelity, and the reviewer’s ability to detect errors. Where outputs vary, define repeated evaluation sufficient to assess that variability rather than expecting identical wording.
Test the pipeline as well as the model. A suitable model can still produce an unsuitable result if an interface truncates a record, preprocessing changes its meaning, or a retrieval source supplies an obsolete procedure. Include missing inputs, contradictory records, unsupported requests, and service failures in the evaluation. Treat these as risk-based test-design recommendations, not a universal prescribed test set.
What records should support the validation decision?
Keep evidence that connects intended use to risks, requirements, verification, and release. A practical evidence package may include:
- Approved intended use, URS, workflow description, and risk assessment.
- Supplier assessment and the rationale for relying on supplier documentation.
- Relevant data lineage, evaluation-dataset rationale, model identification, and configuration records.
- Test methods, acceptance criteria, results, deviations, and traceability requirements.
- Release authorization, training records, operating procedures, and monitoring responsibilities.
- Change assessments, incident investigations, periodic reviews, and retirement or migration records.
Scale detail to the use and risk; do not generate documents solely to fill a template. Define which operational inputs, outputs, approvals, and metadata are necessary to reconstruct the GxP activity. Protect those records, retain them for the applicable period, and verify that they remain retrievable.
Control suppliers, cloud services, and model updates
Supplier qualification should address more than whether the product is marketed as "GxP-ready. "Evaluate the development and quality practices, relevant testing, security, data handling, service dependencies, and evidence supporting the intended use. Formal agreements should clearly allocate responsibilities for outsourced GMP activities.
For AI services, practical agreement topics include model identification, update notification, availability of regression evidence, incident escalation, data retention and reuse, and access to records needed for investigations. Establish whether you can hold a version, test an update before adoption, and what fallback is available if a change is unacceptable.
Apply change control to retraining, model replacement, thresholds, prompts, retrieval content, preprocessing, and interfaces when they can affect the approved use. Assess the impact, update the risk assessment where necessary, and define proportionate regression testing or revalidation. Do not assume every change requires complete revalidation, or that a supplier's update needs no assessment.
A frozen model does not learn automatically during routine use. Its performance can nevertheless deteriorate if the data or process changes quickly. Distinguish changes to the model from changes in its operating environment so that monitoring and investigation address the right cause.
Maintain oversight after go-live
Define a monitoring plan before release: what is measured, who reviews it, how often, which limits trigger action, and who can restrict or suspend use. Monitoring frequency should reflect risk, throughput, and the speed at which a problem could affect quality. There is no single monitoring interval appropriate for every AI system.
Useful measures may include critical-category error rates, reviewer corrections, unsupported outputs, changes in input characteristics, and service or configuration changes. Review performance across relevant process segments rather than relying only on a global average. Input drift is a warning signal; it does not by itself prove that decision performance has deteriorated. Where outcomes are delayed, document the limitations of proxy measures.
Connect alerts to the quality system. Define when to investigate a deviation, assess affected records, initiate CAPA , return to a manual process, or perform additional verification. Periodic review should consider whether intended use, supplier arrangements, training, controls, and the risk assessment remain current.
Frequently asked questions
Is AI/ML validation different from conventional software validation?
The intended-use and risk-based principles remain. AI/ML adds data-dependent behavior and model-performance questions to conventional software and workflow testing. A successful installation or interface test alone does not establish that the model’s outputs are suitable.
What should be assessed before deploying an AI tool in a quality system?
Assess the consequence of incorrect or missing outputs, data representativeness, model limitations, user reliance, and supplier dependencies. Record the controls and acceptance rationale. For example, test whether a critical deviation can be missed even when overall classification accuracy looks acceptable.
Does retraining require complete revalidation?
Not automatically. Treat retraining as a controlled change and determine the evidence needed based on its impact on intended use and risk. Preserve the prior configuration, document the new data and model, and approve the relevant testing before release.
References
- ISPE. GAMP 5: A Risk-Based Approach to Compliant GxP Computerized Systems, Second Edition. July 2022. Official overview. .
- ISPE. GAMP Guide: Artificial Intelligence. July 2025. Official overview. .
- EMA. Reflection paper on the use of Artificial Intelligence (AI) in the medicinal product lifecycle. Final, 2024. Sections 2.2, 2.3.6, and 2.5. .
- FDA. Data Integrity and Compliance With Drug CGMP: Questions and Answers. Final guidance, December 2018. View original source .
- European Commission. EU GMP Annex 11: Computerised Systems. Revision January 2011; in operation June 30, 2011. .
- ISPE. New GAMP Guide Addresses Challenges Posed by AI-Enabled Computerized Systems. July 24, 2025. .
- 21 CFR Part 11. Electronic Records; Electronic Signatures. Current eCFR text. .
- FDA. Computer Software Assurance for Production and Quality Management System Software. Final guidance, February 3, 2026. Medical-device scope. .
- FDA/ICH. Q9(R1) Quality Risk Management. Final FDA guidance, May 2023.
Author
James Meckstroth
Vice President, Compliance & Quality Assurance
This blog post has been updated since its original published date: February 23, 2026
TAGS: Quality & Compliance Quality Management System (QMS) Artificial Intelligence (AI) Good Machine Learning Practice (GMLP)