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

Laboratory audit trail review

AI reads the audit trail of an analytical run, applies the data integrity rules, compares it with what is usual in the laboratory and brings forward what needs a look. It hides nothing: the reviewer sees the full audit trail and decides.

How it would work

The audit trail of an analytical run, from its export to the signed review.

  • 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.

The audit trail of an analytical run

An assay run of a sample batch finishes. AI receives the audit trail, the approved sequence and the method.

What comes in

Approved sequence

Vials
Standard, samples 1 to 6 and standard
Method
Assay, approved version

Audit trail of the run

10:02 Result of sample 4 calculated. 10:15 Manual reintegration of the main peak of sample 4. 10:20 Injection not included in the sequence. 10:31 Integration parameters changed, no reason given. Rest: injections of the sequence.

Today and with AI

What changes in every review.

TodayWith AI

TodayThe audit trail is reviewed event by event, although almost all are routine

With AIThe events that need attention come first, with their audit trail line

TodayA reintegration made after the result was calculated is only spotted by reading every event carefully

With AIThe rules always flag it, with the time of the result and of the reintegration

TodayWhat is unusual for this laboratory depends on the reviewer's experience

With AIAI compares with earlier runs of the same method

TodayThe reviewer sees the whole audit trail

With AIThe same: the full audit trail stays in view; AI only ranks it

Which AI it uses and why

It ranks and flags; the reviewer still sees everything.

Rules
Fixed data integrity rules: reintegrations after the result, injections outside the sequence, changes without a reason and deletions.
Anomalies
A statistical model compares the run with earlier runs of the same method and flags what drifts.
Hiding nothing
It ranks and flags, but the whole audit trail stays in the reviewer's view.
What it doesn't do
It doesn't decide whether an event is a finding or close the review.

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

Reviewing the audit trail is a GMP obligation, and here the reviewer fulfils it: the model only ranks, and the whole audit trail stays in view. That is why it is a non-critical use. If the model hid the events it considers normal, the review would come to depend on it and would call for a higher level of control. Annex 11 requires the audit trail to record every change or deletion of GMP data with its reason, to be available in an intelligible form and to be regularly reviewed.

EU GMP Annex 11, 9
Based on a risk assessment, the system generates an audit trail of changes and deletions of GMP data, with the reason documented; the audit trail is available in an intelligible form and regularly reviewed.
Draft Annex 22
AI in non-critical uses, with qualified personnel responsible for the result.

See the Annex 22 guide

The seven pieces of evidence for this case

What we would deliver for this model.

01Intended use

Rank by priority the audit trail events of a chromatography data system. It doesn't hide events or decide findings.

02Level of autonomy

Suggests an order. The review and its signature belong to the quality control reviewer.

03Test data

Runs already reviewed, with their findings as the reference, kept apart from the ones used to tune the model.

04Sources for every proposal

Each ranked event links to its audit trail line.

05Version under change control

The rules, the model, its version and its configuration.

06Recorded oversight

The proposal and what the reviewer assessed in each event.

07Monitoring in production

Findings the reviewer finds outside the top positions; if they appear, the system flags it.

See what the seven pieces of evidence are

Frequently asked questions

About this use case.

  • It can rank it and flag what needs attention, with the data integrity rules and a comparison with earlier runs. The quality control reviewer performs and signs the review, still seeing the full audit trail.

  • No. It puts them at the end, but they stay in view. If AI hid events, the review would come to depend on it and the system would have to meet a higher level of control.

  • That, based on a risk assessment, the system records changes and deletions of GMP data with their reason, that the audit trail is available in an intelligible form and that it is regularly reviewed.

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

Tablet and blister inspection

A vision model checks every blister on the packaging line and separates incomplete ones or those with damaged tablets.

GMPManufacturingComputer visionCritical

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.

  • Read access to the audit trail of your chromatography data system
  • Your audit trail review and data integrity procedures
  • Runs already reviewed, with their findings, for testing
  • Who in quality control will review during validation

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.