Guide: what the draft Annex 22 requires of AI in GMPRead the guide

Tablet and blister inspection

A computer vision model checks every blister on the packaging line: empty pockets or broken tablets. It decides what leaves the line, so it is a critical application: the model is static and deterministic.

How it would work

One blister on the packaging line, from the camera to what is recorded.

  • AI prepares
  • A person decides
  • Recorded in the trail
Illustrative example, not a real case

The process, documents and data in this walkthrough are fictitious. They show how the AI would work; your actual process may be different, and the system is designed around yours.

A blister on the line

The camera captures each blister as it passes, before it goes into the carton.

What comes in

Blister of the sample batch

Product
Tablets in a ten-pocket blister
Image
One per blister, as it passes the camera

Today and with AI

What changes in line control.

TodayWith AI

TodayOn-line control checks the general appearance of the packages and that they are complete

With AIAI makes both checks on every blister, pocket by pocket

TodayWhat looks wrong is removed by hand, and the reason depends on who was watching

With AIEvery reject is kept with the pocket that justifies it

TodayAn uncertain blister is set aside to be checked later

With AIUncertain ones go to authorized personnel, who decide whether they return to the line

TodayRejects are counted at the end of the batch

With AIEvery reject is recorded by type during packaging

Which AI it uses and why

A model built for a critical decision.

Type
An image classification neural network, trained on the defects of your blisters.
Static
It is trained, frozen and validated. It doesn't learn in production: a new version goes through change control.
Deterministic
Identical images give an identical result.
What it doesn't do
It doesn't release the batch, and it doesn't change its own thresholds.

Regulatory fit

Where it sits in the draft Annex 22 and which regulations apply.

  1. CriticalIt decides something GMP: only with a static, deterministic model
  2. Non-criticalAI prepares and a person decides
  3. Outside GMPAnnex 22 doesn't apply directly

The inspection decides which blister leaves the line, so it is a critical application: the draft Annex 22 restricts those to static models with a deterministic output. EU GMP Chapter 5 requires on-line control to check at least the general appearance of the packages and whether they are complete, and products involved in an unusual event to return to the process only after special inspection and approval by authorized personnel.

EU GMP Chapter 5, 5.59
On-line control during packaging checks at least the general appearance of the packages, whether they are complete, whether the correct products and materials are used, any over-printing and the correct functioning of line monitors.
Chapter 5, 5.60
Products involved in an unusual event only return to the process after special inspection, investigation and approval by authorized personnel, with a detailed record.
Draft Annex 22
Critical applications only with static models with a deterministic output.

See the Annex 22 guide

The seven pieces of evidence for this case

What we would deliver for this model.

01Intended use

Classify the pockets of a specific blister format. Another format is another intended use.

02Level of autonomy

Executes with thresholds approved by quality assurance. Uncertain blisters go to authorized personnel.

03Test data

Real images of blisters with and without defects, stratified by type and kept apart from the training images, with the acceptance criterion set before testing.

04Sources for every proposal

The marked pocket in the image and its class.

05Version under change control

The model, the thresholds and the camera configuration.

06Recorded oversight

The review of uncertain blisters and of rejects by quality assurance.

07Monitoring in production

Rejects by type in each batch and the corrections made by authorized personnel.

See what the seven pieces of evidence are

Frequently asked questions

About this use case.

  • Because AI decides which blister leaves the line and which is rejected. The draft Annex 22 restricts those applications to static models, which don't change with use, with a deterministic output: identical images, identical result.

  • To check at least the general appearance of the packages, whether they are complete, whether the correct products and materials are used, any over-printing and that line monitors work. AI covers appearance and completeness.

  • They go to authorized personnel, who decide whether they return to the line. Chapter 5 requires products involved in an unusual event to return to the process only after special inspection and their approval.

Other use cases

The same way of working in other processes.

Automated visual inspection of injectables

A vision model checks every filled container, separates the defective ones and sends the ones it isn't sure about to a person.

GMPManufacturingComputer visionCritical

Deviation investigation and CAPA

AI finds the deviations in the history that describe the same problem and drafts an investigation with every source cited.

GMPQuality assuranceGenerative AINon-critical

Pharmacovigilance case intake

AI extracts the data from the report, checks whether the case is valid, proposes the MedDRA coding and looks for duplicates.

GVPPharmacovigilanceExtraction and codingOutside GMP

Laboratory equipment qualification

AI drafts the OQ protocol from the URS and the manufacturer's manual, with one test per requirement and the source of every criterion.

GMPQuality controlExtraction and draftingNon-critical

Process validation and ongoing verification

AI gathers batch data against the protocol's criteria, flags what drifts from the trend and drafts the report with its sources.

GMPQuality assuranceExtraction and trendsNon-critical

Laboratory audit trail review

AI ranks the events of the chromatography data system's audit trail by priority, hiding none; the reviewer decides.

GMPQuality controlRules and anomaliesNon-critical

Inspection readiness

For a question from the inspector or a self inspection, AI finds the records that answer it and proposes a reply with its sources.

GMPQuality assuranceSearch with sourcesNon-critical

Material receipt

At each receipt, AI compares the delivery note, the purchase order, the supplier's labels and its certificate of analysis, and flags what doesn't match.

GMPSupply chainExtraction and comparisonNon-critical

What we need from you

To plan the system with real data.

  • Images from your line, or access to the camera
  • Your classification of packaging defects
  • The acceptance and rejection criteria of your process
  • Blisters with known defects for testing

Does it look like your process?

Tell us how you do it today and we'll tell you whether AI adds enough to justify validating it.