Expert clinical and scientific data review for healthcare and life sciences AI evaluation

Life sciences AI evaluation · · 10 min read

AI cleaning validation: how to evaluate it before it touches GMP

Acumen Editorial · Updated November 28, 2026

Cleaning validation is one of the most document-heavy jobs in a multiproduct plant. Every new product forces a fresh look at limits, worst cases and sampling locations. So it is no surprise that vendors now market "AI-driven" and "AI-powered" cleaning validation modules. The harder question is how a QA team proves one of those tools does the job at least as well as the people it supports. This guide gives you a test plan.

What does AI actually do in cleaning validation?

Most tools on the market today are calculation and workflow engines with some predictive features layered on top. It helps to separate the functions, because each one needs a different test.

FunctionWhat the tool doesWho should verify the test cases
Limit calculationDerives MACO from PDE, batch size and daily dose; flags legacy 10 ppm or 1/1,000 dose limitsToxicologist plus validation lead
Worst-case selectionRanks products by solubility, cleanability, toxicity and potency; groups equipmentValidation and process SMEs
Sampling planProposes swab locations and rinse points from equipment geometry and riskValidation engineer with equipment knowledge
Result trendingFlags drift in swab, rinse and TOC results across campaignsQA and analytical SMEs
Document draftingDrafts protocols and reports from templatesQA reviewer, human-in-the-loop

IntuitionLabs' review of cleaning validation practice notes that software vendors automate MACO and PDE calculations, manage protocols and provide audit trails. It also flags that vendor efficiency figures are self-reported and not independent. Treat every claim as a hypothesis your test plan must confirm.

Why is cleaning validation a hard target for AI?

Three reasons. First, the science moved. Health-based exposure limits replaced fixed rules after EMA's HBEL guideline, and a 2025 risk-based cleaning validation review by Upendra Vaghela reports that about 15% of studied compounds were not adequately protected by the traditional 1/1,000 dose criterion. A tool trained on legacy limits will repeat legacy mistakes.

Second, the inputs are messy. PDE monographs, batch records, equipment surface areas and recovery factors live in different systems. A model that reads one wrong field produces a confident, wrong limit.

Third, the regulatory frame is tightening. The European Commission and PIC/S consulted on draft EU GMP Annex 22 on AI from July to October 2025. Bioprocess Online reports the draft limits critical GMP applications to static models with deterministic output and says generative AI and large language models "should not be used in critical GMP applications." Cleaning limits that decide batch release are critical. Our guide to GxP AI validation covers the wider system-validation picture.

How do you build a test set for AI cleaning validation?

You need a golden set: cases where the right answer is known and signed off by qualified people. We recommend building it from your own history plus constructed edge cases.

  • Historical cases. Pull 30 to 50 past limit calculations and worst-case decisions with their approved rationale. Include at least one case where the decision was later changed.
  • Constructed edge cases. Highly potent compounds, products with no PDE monograph, shared equipment with very different batch sizes, and new products entering an existing train.
  • Known-bad inputs. Missing daily dose, unit errors (mg vs. µg), swapped batch sizes. The tool should stop, not guess.
  • Expert answers. A toxicologist confirms each PDE input. A validation SME writes the reference limit and worst-case rationale. Where two experts disagree, record the disagreement and how it was resolved.

The draft Annex 22 asks teams to split the input space by characteristics such as site, equipment, material or defect type, because systematic errors often hide in one subgroup. For cleaning validation, split by product family, equipment train, dosage form and limit type. Our piece on representative AI test data explains how to size each slice.

What acceptance criteria should you set?

Set them before testing, and have a process SME approve them. The draft Annex 22 also says performance must be no lower than the process the model replaces, which means you need to measure your manual baseline first.

Checklist: acceptance criteria for an AI cleaning validation tool

  • Limit calculations match the expert reference on 100% of golden cases, with every input traceable to its source
  • Worst-case product ranking matches the SME ranking for the top choice in every product family, with a written rationale per decision
  • The tool refuses or flags every known-bad input rather than returning a value
  • Swab location proposals cover every hard-to-clean location an equipment SME identifies
  • Trending flags every historical excursion in the test period, with a false-alarm rate you agree in advance
  • Results are reported per slice, not only in total
  • Every output can be reviewed, overridden and recorded by a qualified person
  • Audit trail and electronic records meet 21 CFR Part 11 and EU Annex 11 expectations

A 100% bar on limit math is not excessive. These are calculations with a correct answer. Where a tool uses a learned model, such as predicting cleanability from product properties, you will need a statistical threshold instead, and the SME should set it against how often the manual process gets that call right.

How do you keep humans in the loop?

The draft Annex 22 lets low-confidence outcomes be flagged as "undecided" for human review, and it may require review of every output depending on criticality. In practice that means three controls.

  1. Show the work. Every limit shows its formula, inputs and sources so a reviewer can check it in under a minute.
  2. Force a decision on low confidence. Predictive features, such as a cleanability score, should return "undecided" below an agreed confidence level.
  3. Monitor the reviewers. If reviewers approve 100% of outputs without edits for months, check whether they are still reading. The draft asks that operator training and consistent performance be monitored like any other manual process.

Change control matters too. When the vendor updates a model, re-run the golden set before release. Our guide to AI model change control in pharma sets out a re-testing cadence.

Where do vendor claims usually break?

Probe these four places first:

  • New products with no history. Predictive cleanability models trained on legacy products may not extend to new modalities.
  • Unit and source errors. A PDE pulled from the wrong monograph version passes every downstream check.
  • Aggregate accuracy. A tool that is right 98% of the time overall can be wrong on every high-potency product.
  • Generated text. Drafted protocols read well and can still cite the wrong limit. Keep generative drafting in the noncritical lane with a qualified reviewer, as the draft Annex 22 describes.

How Acumen helps

Acumen builds the expert-verified test sets that make this evaluation possible. We source toxicologists, validation engineers and QA specialists, have them write reference answers for your golden cases, construct edge cases and adjudicate disagreements, and deliver the set with a full record of who verified each item. See our custom expert data collection service for how engagements run.

Request a sample dataset

For related reading, see how we approach AI in pharmaceutical quality control, batch record review and GxP AI validation.

FAQ

What is AI cleaning validation?

AI cleaning validation is the use of software models to support pharmaceutical cleaning validation work. Typical functions include calculating maximum allowable carryover from health-based exposure limits, selecting worst-case products and equipment, proposing sampling locations, trending swab and rinse results, and drafting protocols. Most tools combine rule-based calculation engines with some predictive features, and each function needs its own test.

Can AI calculate MACO limits?

Yes. MACO is a defined calculation from the PDE, the next product's minimum batch size and its maximum daily dose, so software can do it reliably. The evaluation question is whether every input is correct and traceable. Test the tool against expert-verified reference calculations and confirm it refuses missing or inconsistent inputs instead of returning a confident number.

Does EU GMP Annex 22 apply to cleaning validation software?

The draft Annex 22 covers AI models used in critical GMP applications that affect patient safety, product quality or data integrity. Cleaning limits that decide whether equipment is fit for the next product meet that bar. The draft limits these uses to static models with deterministic output. It was a consultation draft as of late 2026, so check the final text.

Can generative AI write cleaning validation protocols?

It can draft them, but the draft Annex 22 says generative AI and large language models should not be used in critical GMP applications. Drafting can sit in a noncritical lane if a qualified person checks that every output suits its intended use. Reviewers should confirm every limit, location and acceptance criterion against the approved calculation.

How big should a test set be for AI cleaning validation?

Start with 30 to 50 historical decisions plus constructed edge cases and known-bad inputs. Size matters less than coverage. Make sure every product family, equipment train, dosage form and limit type appears, and report results per slice. A small set that covers your high-potency products is worth more than a large set that misses them.

Who should verify the answers in a cleaning validation test set?

Toxicologists should confirm PDE and other health-based inputs. Validation and process subject matter experts should write the reference limits, worst-case rationale and sampling locations. QA and analytical experts should verify trending flags. Record who verified each item and how disagreements were resolved, because that record becomes part of the validation evidence.

From the Acumen archive. Explore expert data and Healthcare & Pharma.

← Back to Insights