1What the rules allow.
EU, PIC/S and FDA texts set the same bar for a trained model as for any other automated inspection. Where automated methods are used, Annex 1 says the process “should be validated to detect known defects (which may impact product quality or safety) and be equal to, or better than, manual inspection methods”, and the equipment should be challenged “using representative defects prior to start up and at regular intervals throughout the batch”.¹ FDA’s draft guidance says automated inspection machines “should be validated to meet or surpass human inspection capabilities and can be qualified using training standards or artificial intelligence technology”.²
| Text | Status on 8 November 2026 | What it adds |
|---|---|---|
| EU Annex 1, 8.30 to 8.33 | In operation since 25 August 2023;¹ same text in PIC/S PE 009-18, in force 24 September 2026;³ MHRA, a PIC/S member, points UK sites to EudraLex Volume 4⁴⁵ | Validated, equal to or better than manual, challenged during the batch; results trended |
| Annex 11 | In operation since 30 June 2011⁶ | Replacing a manual operation should cause “no resultant decrease in product quality, process control or quality assurance”⁶ |
| 21 CFR 211.68 | Regulation⁷ | A written program of checks; record changes by authorised people only⁷ |
| USP <790> and <1790> | Official; FDA says products with a USP monograph must meet <790>² | “Essentially free” of visible particulates; “Visual inspection is a probabilistic process”⁸⁹ |
| FDA particulates draft | Draft since December 2021¹⁰ | Validated against human capability; QA-approved test sets |
| FDA AI draft | Draft since January 2025¹¹ | Model risk; life-cycle maintenance plans; early engagement¹² |
| Draft Annex 22 | Consulted on 7 July to 7 October 2025; not yet in EudraLex¹³¹⁴ | Frozen model, independent test data, criteria fixed in advance, confidence thresholds, retraining under change control¹⁵ |
FDA’s AI draft rates AI checking every vial’s fill level as medium risk, because release testing still samples fill volume; its steps are on FDA’s AI guidance.¹² Draft Annex 22 covers only static, deterministic models, though EMA’s June 2026 workshop report says the drafting group has discussed allowing dynamic and probabilistic models backed by “a fully documented, robust, risk-based control strategy”.¹⁵¹⁶ And FDA told Baxter that automated particle inspection “does not supplant the need for 100% manual visual inspection for various other attributes (e.g., cracks)”, so write down what the model judges and what stays with other stations or people.¹⁷
1.1Where a trained model fits.
FDA’s particulates draft leaves out defects inspected alongside particles, such as “container integrity flaws, fill volume, appearance of lyophilized cake/suspension solids”, though Annex 1 still wants every container inspected for “extraneous contamination or other defects”.²¹ It names opaque products, “lyophilized powders, suspension products, tinted vials”, as obvious challenges. Supplemental destructive testing after 100% inspection “may not be warranted” if the technology “is validated to meet or surpass human inspection capabilities”, shown by a feasibility study for the specific product.² Where a rule-based recipe already passes the comparison below, a trained model adds draft Annex 22’s controls without lowering the bar, so test a candidate model the same way before you buy.
2Qualification protocol template.
One protocol can meet Annex 1, which compares the machine with manual inspection, and draft Annex 22, which compares it with the process replaced and wants the plan approved before testing.¹¹⁵
| Section | What it contains | Requirement |
|---|---|---|
| Intended use | Products, containers and defect classes the model judges, including rare variations such as amber glass; what it does not judge | Annex 22 3.1, 3.2 and 5.1¹⁵ |
| Defect library | Every known defect class, down to the lower limit of visual detection | Annex 1 8.30;¹ FDA draft V.C² |
| Test set | Good and defective units, at most 10 to 20% defective, approved by QA, identities masked; generated images “not recommended” | FDA draft V.C;² Annex 22 5.6¹⁵ |
| Size per class | Enough distinct defective units in each class for stated statistical confidence | Annex 22 5.2;¹⁵ FDA draft V.C² |
| Baselines | Repeated inspection by qualified inspectors, and by the process replaced if not manual | Annex 1 8.32;¹ Annex 22 4.3¹⁵ |
| Criteria | Detection and false rejection against each baseline, by class; approved before testing | Annex 22 4.1 to 4.3¹⁵ |
| Labels | Each defective unit’s class confirmed by several experts or a laboratory test | Annex 22 5.3¹⁵ |
| Independence | No test unit or image used to train, validate or tune the model, unless its features are independent; access logged | Annex 22 6.1 to 6.4¹⁵ |
| Confidence | Confidence logged per decision; an “undecided” threshold; the features behind each rejection reviewed | Annex 22 8.1 to 9.2¹⁵ |
| Access | Who can change recipes, thresholds, the cut-off and model versions; audit trail | 211.68(b);⁷ FDA Q&A 4;¹⁸ Annex 22 10.2¹⁵ |
| Routine challenge | Before start-up and at set intervals in each batch; response to a failure | Annex 1 8.32¹ |
| Operation | Configuration control, retest triggers, reject trends, input drift | Annex 22 10.1 to 10.4;¹⁵ Annex 1 8.33¹ |
2.1Knapp test procedure and acceptance criteria.
Neither Annex 1 nor FDA’s draft prescribes how to compare a machine with people. The usual method is Knapp’s, described in a 2011 paper FDA’s draft cites.¹⁹
- Build a challenge set of good units and units with one particle each, rejects never more than 20% of it.
- Qualified inspectors inspect every unit many times, giving each its own probability of rejection.
- Sort units into zones: rejected under 30% of the time is acceptable, 30 to 70% grey, above 70% a reject.
- Reject zone efficiency (RZE) is the probability of detecting reject-zone units; false rejection (RAG) is the rejection of acceptable and grey-zone units.
- Run the machine on the same set many times and calculate the same figures.
The paper says a replacement must show “a detection probability that is greater than or equal to manual baseline”, and that RAG “is used to set the maximum acceptable level of False Rejection”.¹⁹ So the usual acceptance rule is machine RZE at least the baseline’s, overall and per class, and machine RAG under a ceiling the protocol sets, such as the baseline’s own. FDA has also set a floor for one firm, people and machines alike: “At a minimum, your visual inspection systems should reliably be capable of detecting particulates of 150 microns or greater at a 70% probability of detection.”²⁰
2.2Who does what.
- Process expert: owns the intended use and acceptance criteria, approved before testing, and helps write the test plan (Annex 22 3.1, 4.2, 7.2).¹⁵
- Quality assurance: prepares, approves and controls the test set, reviews the defect library and approves the protocol (FDA draft V.C).²
- Inspectors: confirm each defective unit is detectable under normal conditions before it joins the set (FDA draft V.C),² then form the manual baseline.¹⁹
- Model developers: use only training and validation data; anyone who has seen test data stays out, or pairs with a colleague who has not (Annex 22 6.1, 6.5).¹⁵
For the rest of the draft, see EU GMP Annex 22.
3Example: qualifying a deep-learning inspection model.
This example is invented for illustration. Exemplomab 50 mg/mL injection in 2 mL clear glass vials is filled at the Larchford site, which replaces its semi-automated particle inspection with a machine running a deep-learning model.
| Field | Entry |
|---|---|
| Protocol | VAL-AVI-031, approved by QA on 9 March 2026, before any test unit was run |
| Model | DL-07 version 1.4, frozen on 3 March 2026, checksum in the protocol; trained on 21,600 images from 2024 and 2025; “undecided” cut-off of 0.80, set on the validation set |
| Scope | Visible particles in solution. Cracks, closure and fill defects stay with rule-based stations and acceptance quality limit (AQL) sampling |
| Test set | 800 vials made 10 to 13 March: 680 good and 120 seeded, 30 per particle class (15%); locked by QA, images access-controlled with an audit trail |
| Minimum per class | 20 distinct reject-zone vials: if all are detected, the one-sided 95% lower confidence bound on detection is 86.1% |
| Labels | Particle size and material confirmed by microscopy and two senior inspectors |
| Baselines | Manual: 5 qualified inspectors, 4 inspections each of every vial, 16 to 27 March (20 per vial). Semi-automated: the same 5, 2 each (10 per vial) |
| Zones | Of the 120 seeded vials, 90 in the reject zone, 20 grey, 10 accept |
| Machine runs | 10 runs of each vial at 300 a minute on 7 April: 8,000 decisions; “undecided” counts as a reject |
| Criteria | Machine RZE at least the higher baseline, overall and per class; every reject-zone vial rejected in at least 8 of 10 runs; machine RAG no higher than either baseline |
| Elapsed time | Seven weeks, from model freeze on 3 March to the report on 21 April, not counting the training-set build |
| Particle class | Vials | Manual RZE | Semi-automated RZE | Machine RZE |
|---|---|---|---|---|
| Glass | 24 | 394 of 480, 0.821 | 209 of 240, 0.871 | 233 of 240, 0.971 |
| Fibre | 21 | 361 of 420, 0.860 | 187 of 210, 0.890 | 200 of 210, 0.952 |
| Elastomer | 22 | 396 of 440, 0.900 | 200 of 220, 0.909 | 220 of 220, 1.000 |
| Metal | 23 | 396 of 460, 0.861 | 205 of 230, 0.891 | 221 of 230, 0.961 |
| All | 90 | 1,547 of 1,800, 0.859 | 801 of 900, 0.890 | 874 of 900, 0.971 |
Every reject-zone vial was rejected in at least 8 of 10 machine runs. With all 21 fibre vials detected, the one-sided 95% lower bound for that class is 86.7%; for all 90, 96.7%.
| Population | Manual | Semi-automated | Machine |
|---|---|---|---|
| Grey zone, 20 vials | 196 of 400, 49.0% | 118 of 200, 59.0% | 151 of 200, 75.5% |
| Accept zone, 10 seeded | 31 of 200, 15.5% | 19 of 100, 19.0% | 28 of 100, 28.0% |
| Good, 680 vials | 381 of 13,600, 2.8% | 245 of 6,800, 3.6% | 109 of 6,800, 1.6% |
| RAG, all three | 608 of 14,200, 4.3% | 382 of 7,100, 5.4% | 288 of 7,100, 4.1% |
On the Annex 22 metrics, sensitivity on reject-zone vials was 97.1% (874 of 900) and specificity on good vials 98.4% (6,691 of 6,800). Every criterion was met, and heat maps for every rejection were centred on the particle, not on the vial shoulder or a reflection. QA approved the report on 21 April 2026 and the model was released under change control.
Worth copying: scope written down, so nobody assumes the model finds cracks; grey-zone results reported, so heavy grey-zone rejection, the buffer the paper describes, shows beside lower overall false rejection; and distinct vials counted per class, because ten runs of one vial are not ten vials.
4What an inspector asks to see.
Expect these records at a pre-approval or routine inspection.
- Protocol and report, with Knapp data per vial and baseline: Annex 1 8.32, FDA draft V.C, draft Annex 22 7.2 to 7.4.¹²¹⁵
- Test-set and challenge-kit records: vial inventory, particle size and material, label checks, QA approval, access log: FDA draft V.C; draft Annex 22 5.3 and 6.2.²¹⁵
- Routine challenge records for each batch: Annex 1 8.32 and the written records 211.68(a) requires.¹⁷
- Investigations of failed challenges and AQL failures, extended to every unit and batch in doubt: FDA draft V.E, citing 211.192.²
- Model version, checksum and change history, with each retest decision: draft Annex 22 10.1 and 10.2; FDA’s life-cycle maintenance plan.¹⁵¹²
- Reject trends by defect type and monitoring metrics, adverse trends assessed for marketed product: Annex 1 8.33; draft Annex 22 10.3 and 10.4.¹¹⁵
- The role list for changing recipes, thresholds, the cut-off and model versions, with the audit trail. FDA’s data integrity Q&A names “automated visual inspection records” among records only authorised people should change under 211.68(b), and recommends restricting “the ability to alter specifications, process parameters, data, or manufacturing or testing methods by technical means where possible”.¹⁸⁷
5Retraining and model updates.
New training data, labels, pre-processing and the confidence cut-off are all changes. Draft Annex 22 asks for every change, “including any change to physical objects the model is using as input”, to be evaluated for retesting, and a decision not to retest should be “fully justified”.¹⁵ The model in use does not learn: production rejects are labelled, trained on offline and released as a new version.
| Change | Usual response | Rule |
|---|---|---|
| Retrained on more images | New version: full retest on test data the retraining never touched | Annex 22 6.1 and 10.1¹⁵ |
| Confidence cut-off moved | Choose it on validation data, never by tuning on the test set; confirm the metrics on test data | Annex 22 6.1, 9.2 and 10.1¹⁵ |
| New container or supplier | Assess as a new subgroup; usually retest | Annex 22 3.2 and 10.1¹⁵ |
| Camera or lighting change | Retest and check drift against the baseline | Annex 22 10.3¹⁵ |
| Platform patch only | Regression test and a written justification for not retesting the model | Annex 22 10.1¹⁵ |
6What inspectors cite.
“We encourage the use of automated visual inspection for particulates to augment the 100% manual visual inspection program. Automated methods should be rigorously studied for their capability and robustness under various conditions, machine settings, container-closure sizes, defect types, and other variables.” Baxter Healthcare Corporation, warning letter 320-23-18, 25 July 2023¹⁷
The Form 483 behind that letter recorded that “The existing machine recipes were found to be inadequate for further qualification work”, yet they stayed in use until 13 October 2022.²¹ In 2026 FDA found Fresenius Kabi’s systems “often exhibited low detectability and high variability regardless of particle type”.²⁰
“Particulates in challenge kits were excessively large (e.g., greater than (b)(4) microns), approximately (b)(4) times larger than what operators should be capable of reliably detecting.” Baxter International Inc., warning letter 320-26-132, 29 September 2026²²
A model qualified on that kit inherits its blind spot.
“Specifically, we found that your SCADA system had user accounts with extensive administrative privileges, including the ability to modify/edit critical process parameters and recipes without adequate oversight.” Immacule Lifesciences, Form FDA 483, 18 September 2025²³
That was a filling line; inspection recipes and model versions need the same lock. For inspector qualification and AQL sampling, see visual inspection of injectables.
7How it runs in Seal.
In Seal, the visual inspection blueprint gives automated inspection a recipe and evidence state: cameras, lighting, algorithms, thresholds, software and recipe versions, setup checks and challenges. Each production population references the released recipe actually used, and a failed challenge identifies the time window and population inspected under an unacceptable state before reinspection or investigation is routed. The defect library keeps provenance, approval and effective dates, first-pass findings are kept through reinspection, and the inspection machine can stay the source for its images and classifications. It is part of Seal’s records for sterile injectables.
Seal’s computer system assurance records link a regulated system’s intended use, function risk, supplier evidence, configuration baseline, testing, anomalies and release, and confirm that production matches the released baseline before regulated use. An inspection system’s software and model versions can be released the same way, each change assessed from what moved.
References
- 1EudraLex Volume 4, Annex 1: Manufacture of Sterile Medicinal Products, European Commission, 22 August 2022, deadline for coming into operation 25 August 2023, sections 8.30 to 8.33. https:/
/ health. ec. europa. eu/ system/ files/ 2022- 08/ 20220825_ gmp- an1_ en_ 0. pdf (read 8 November 2026) - 2Inspection of Injectable Products for Visible Particulates, draft guidance for industry, FDA, December 2021, sections I, II and V, and footnote 18. https:/
/ www. fda. gov/ media/ 154868/ download (read 8 November 2026) - 3PE 009-18 (Annexes), Guide to Good Manufacturing Practice for Medicinal Products, Annex 1, sections 8.30 to 8.33, PIC/S, 24 September 2026; entry into force in PE 009-18 (Intro). https:/
/ picscheme. org/ docview/ 11333 (read 8 November 2026) - 4Members, PIC/S, United Kingdom: Medicines and Healthcare products Regulatory Agency. https:/
/ picscheme. org/ en/ members (read 8 November 2026) - 5Good manufacturing practice and good distribution practice, MHRA, GOV.UK. https:/
/ www. gov. uk/ guidance/ good- manufacturing- practice- and- good- distribution- practice (read 8 November 2026) - 6EudraLex Volume 4, Annex 11: Computerised Systems, European Commission, in operation since 30 June 2011, principle. https:/
/ health. ec. europa. eu/ system/ files/ 2016- 11/ annex11_ 01- 2011_ en_ 0. pdf (read 8 November 2026) - 721 CFR 211.68, Automatic, mechanical, and electronic equipment, paragraphs (a) and (b), eCFR. https:/
/ www. ecfr. gov/ current/ title- 21/ section- 211. 68 (read 8 November 2026) - 8General Chapter <790> Visible Particulates in Injections, USP–NF, United States Pharmacopeia, 2017, introduction (public preview), DOI 10.
31003/ USPNF_ M7197_ 01_ 01. https:/ / doi. usp. org/ USPNF/ USPNF_ M7197_ 01_ 01. html (read 8 November 2026) - 9General Chapter <1790> Visual Inspection of Injections, USP–NF, United States Pharmacopeia, 2023, introduction (public preview), DOI 10.
31003/ USPNF_ M7198_ 07_ 01. https:/ / doi. usp. org/ USPNF/ USPNF_ M7198_ 07_ 01. html (read 8 November 2026) - 10Inspection of Injectable Products for Visible Particulates, guidance page, FDA, docket FDA-2021-D-0241, content current as of 17 December 2021. https:/
/ www. fda. gov/ regulatory- information/ search- fda- guidance- documents/ inspection- injectable- products- visible- particulates (read 8 November 2026) - 11Considerations for the Use of Artificial Intelligence To Support Regulatory Decision-Making for Drug and Biological Products, guidance page, FDA, docket FDA-2024-D-4689, content current as of 6 January 2025. https:/
/ www. fda. gov/ regulatory- information/ search- fda- guidance- documents/ considerations- use- artificial- intelligence- support- regulatory- decision- making- drug- and- biological (read 8 November 2026) - 12Considerations for the Use of Artificial Intelligence to Support Regulatory Decision-Making for Drug and Biological Products, draft guidance, FDA, January 2025, sections IV.A.1 to IV.A.3, IV.B and IV.C. https:/
/ www. fda. gov/ media/ 184830/ download (read 8 November 2026) - 13Stakeholders’ Consultation on EudraLex Volume 4, Good Manufacturing Practice Guidelines: Chapter 4, Annex 11 and New Annex 22, European Commission, open 7 July to 7 October 2025. https:/
/ health. ec. europa. eu/ consultations/ stakeholders- consultation- eudralex- volume- 4- good- manufacturing- practice- guidelines- chapter- 4- annex_ en (read 8 November 2026) - 14EudraLex Volume 4, Good Manufacturing Practice guidelines, European Commission. https:/
/ health. ec. europa. eu/ medicinal- products/ eudralex/ eudralex- volume- 4_ en (read 8 November 2026) - 15EudraLex Volume 4, Annex 22: Artificial Intelligence, draft for consultation, European Commission, drafted by the EMA GMDP Inspectors Working Group with PIC/S, July 2025, sections 1 to 10. https:/
/ health. ec. europa. eu/ document/ download/ 5f38a92d- bb8e- 4264- 8898- ea076e926db6_ en?filename=mp_ vol4_ chap4_ annex22_ consultation_ guideline_ en. pdf (read 8 November 2026) - 16Multistakeholder workshop on expert contributions to artificial intelligence guidance development (Annex 22), report, EMA/156789/2026, European Medicines Agency, workshop of 30 June 2026, first published 2 October 2026 on EMA’s event page. https:/
/ www. ema. europa. eu/ en/ documents/ report/ report- multistakeholder- workshop- expert- contributions- artificial- intelligence- guidance- development- annex- 22_ en. pdf (read 8 November 2026) - 17Baxter Healthcare Corporation (Baxter Pharmaceuticals India, Ahmedabad), warning letter 320-23-18, MARCS-CMS 654136, FDA, 25 July 2023. https:/
/ www. fda. gov/ inspections- compliance- enforcement- and- criminal- investigations/ warning- letters/ baxter- healthcare- corporation- 654136- 07252023 (read 8 November 2026) - 18Data Integrity and Compliance With Drug CGMP: Questions and Answers, Guidance for Industry, FDA, December 2018, question 4. https:/
/ www. fda. gov/ media/ 119267/ download (read 8 November 2026) - 19Melchore JA, Sound Practices for Consistent Human Visual Inspection, AAPS PharmSciTech 12(1):215–221, published 4 January 2011, the paper cited in FDA’s draft guidance as Melchore 2011. https:/
/ pmc. ncbi. nlm. nih. gov/ articles/ PMC3066354/ (read 8 November 2026) - 20Fresenius Kabi USA LLC, warning letter 320-26-129, MARCS-CMS 733107, FDA, 22 September 2026. https:/
/ www. fda. gov/ inspections- compliance- enforcement- and- criminal- investigations/ warning- letters/ fresenius- kabi- usa- llc- 733107- 09222026 (read 8 November 2026) - 21Form FDA 483, Baxter Pharmaceuticals India Pvt Ltd, Ahmedabad, inspection of 19 to 27 January 2023, observation 1, FDA. https:/
/ www. fda. gov/ media/ 175813/ download (read 8 November 2026) - 22Baxter International Inc. (Baxter Healthcare Corporation, Round Lake), warning letter 320-26-132, MARCS-CMS 733231, FDA, 29 September 2026. https:/
/ www. fda. gov/ inspections- compliance- enforcement- and- criminal- investigations/ warning- letters/ baxter- international- inc- 733231- 09292026 (read 8 November 2026) - 23Form FDA 483, Immacule Lifesciences Private Limited, Nalagarh, sterile drug product contract manufacturer, inspection of 8 to 18 September 2025, observation 6, FDA. https:/
/ www. fda. gov/ media/ 189747/ download (read 8 November 2026)
AQuestions and answers
Who should label the images used to train and test an inspection model?
Experienced inspectors and process experts label; QA approves the test set. Draft Annex 22 wants test labels verified to a very high degree of correctness, for example by several experts or by laboratory tests such as microscopy. Labels for training images matter too, because a model learns whatever the labels teach it, so record who labelled each set and how disagreements were settled.
Does an AI inspection machine remove the need for AQL sampling?
No. The machine replaces or supports the 100% inspection step. FDA’s draft guidance still expects the quality unit to sample each batch for AQL testing after 100% inspection, and Annex 1 treats a critical defect found in later sampling as a sign the original inspection may have failed, which needs investigating.
How often should an automated inspection machine be challenged during a batch?
Annex 1 asks for a challenge with representative defects before start-up and at regular intervals throughout the batch, but sets no interval. Choose it by how many units you are prepared to reinspect if a challenge fails, because every unit inspected since the last good challenge is in doubt. Long batches and frequent recipe changes argue for shorter intervals.
Does draft Annex 22 apply to inspection machines that use classical vision algorithms?
No. The draft applies to machine learning models that gained their function by training on data rather than being explicitly programmed. A recipe of engineer-set thresholds is not an AI model under it, but Annex 1 and Annex 11 still apply. Many machines mix the two, so record which stations run trained models.
What should happen to vials the model can’t classify confidently?
Draft Annex 22 expects the confidence score of each decision to be logged during testing, and a threshold below which the model flags the result as undecided rather than guessing. Treat undecided vials as rejects or send them to qualified manual inspection, as your procedure says, and count them in the qualification so false rejection is not understated. A rising share of undecided vials in production is a drift signal worth trending.
Do we need to tell FDA before switching to AI visual inspection?
Usually, in some form. For an approved product, a new inspection method is a post-approval manufacturing change, and FDA’s particulates draft says such changes must follow its existing rules, such as 21 CFR 314.70 for drug applications and 601.12 for biologics, which set the reporting category. FDA’s AI draft adds that a summary of the life-cycle maintenance plan for a product- or process-specific model belongs in the marketing application, and that later changes affecting model performance should be reported. It encourages early talks with CDER’s Emerging Technology Program or CBER’s Advanced Technologies Team.
