AI Model Validation: Measuring Model Performance Against Intended Use

Direct answer

AI model validation is the technical evaluation of whether a model performs well enough for its intended use, measured on independent, representative test data against acceptance criteria defined in advance. It includes choosing appropriate metrics, checking performance across relevant subgroups and conditions, and testing robustness. It is one component of AI validation, not a substitute for it.

AI governance frameworkAI governance as an umbrella over distinct components that are not synonyms. Highlighted: Model validation.AI governancePolicy, inventory, risk classification, roles, lifecycle controlsDatagovernanceModelvalidationSystemvalidationModelmonitoringChangecontrolRiskmanagementHumanoversightExplainabilityBias and dataqualitySecurityPrivacyAuditability
Illustration. All information shown is also available as text on this page.

Executive summary

A model that looks accurate in development can fail in use if test data was unrepresentative or metrics were poorly chosen. Rigorous model validation reduces this risk.

This page is part of Track A, AI for pharmaceutical manufacturers, within the AI in Pharma section. Statements describe potential applications (claim levels 1 and 2) unless a source is cited.

Definition and scope

This page is part of AI validation in Pharma.

The problem and today's process

Models are sometimes evaluated on data that overlaps with training data, or with a single metric that hides important failures.

Performance measures

Common model performance measures
MeasureWhat it shows
AccuracyShare of correct outputs overall; can mislead with imbalanced data
PrecisionShare of flagged items that are correct
Recall (sensitivity)Share of relevant items that are found
SpecificityShare of negatives correctly identified
CalibrationWhether predicted probabilities match observed frequencies
Subgroup performanceWhether performance holds across relevant subgroups

Potential AI applications

Potential AI applications in model validation (claim level: potential)
Potential applicationWhat AI may doTechnologyTypical dataDecision that remains human
Metric computationCalculating performance measuresmachine learningTest predictionsAcceptance decisions
Subgroup analysisComparing performance across groups and conditionsmachine learningTest data with attributesFairness and scope decisions
Robustness testingTesting performance under variationsmachine learningPerturbed or edge-case dataOperating limits

How a use case fits together

  1. Link acceptance criteria to intended use
  2. Prepare independent test data
  3. Choose metrics that reflect costly errors
  4. Evaluate overall and by subgroup
  5. Test robustness and edge cases
  6. Document limitations and operating conditions
  7. Decide against criteria
  8. Record results with model and data versions
An illustrative application of Hello Pharma's use case relationship model.

Data requirements

Test data must be independent of training data, representative of intended use, and labelled reliably. Data leakage invalidates results.

See pharmaceutical data for AI.

The human role

AI specialists perform evaluation; domain experts define what errors matter; quality reviews evidence.

Regulatory considerations

Regulatory expectations for AI in medicinal product development and manufacturing are evolving, and differ by jurisdiction and use. This page describes common principles, not regulatory requirements. Organisations should identify the guidance, legislation and standards applicable to their products, markets and uses, and verify their current status.

Applicable regulatory guidance differs by product, market and use; consult current guidance from the relevant authorities and standards bodies.

Limitations

  • Test data can never cover every future condition.
  • Label errors limit measurable performance.
  • Metrics can conflict, requiring trade-offs.

Risks and governance

Risks and typical controls
RiskTypical control
Data leakageStrict separation of datasets
Wrong metric choiceMetrics tied to consequence of errors
Hidden subgroup failuresSubgroup analysis

See AI governance in Pharma.

Measuring whether it helps

Measure a baseline first, then compare. Possible measures:

  • Performance against acceptance criteria
  • Consistency between validation and in-use performance

No specific improvement should be assumed. See AI implementation in Pharma.

Questions to ask before implementation

  1. Which errors are most costly?
  2. Is test data independent and representative?
  3. Which subgroups and conditions matter?
  4. What are the operating limits?

Related use cases are listed in the AI use cases in Pharma directory.

Frequently asked questions

What is AI model validation?

It is the technical evaluation of a model's performance on independent, representative test data against acceptance criteria linked to intended use.

What is the difference between model validation and AI validation?

Model validation evaluates the model's technical performance. AI validation in a GxP sense covers the whole system, workflow, human review, monitoring and change control.

Why is accuracy not enough?

Accuracy can hide failures, especially with imbalanced data. Precision, recall, calibration and subgroup performance often matter more.

What is data leakage?

Data leakage occurs when information from test data, or information unavailable at prediction time, influences training, producing misleadingly good results.