Pharma 4.0 and digital twins: connecting equipment, process data and quality decisions
How process models and digital twins fit GMP: model risk and context of use from a 2024 FDA and EMA authored paper, ISPE's Pharma 4.0 aims, and the security and audit trail provisions of the draft revised Annex 11, as of 27 November 2026.
A digital twin is easy to describe and hard to run in a GMP plant. The picture is a virtual copy of a process that behaves like the real one. The work is deciding what question the copy answers, how good its answers must be, and what happens to those answers when raw material, equipment or software changes. This article draws on a 2024 paper on process models and model risk frameworks by authors from FDA and EMA (International Journal of Pharmaceutics: X, 8:100274), ISPE's Pharma 4.0 material, FDA's FRAME initiative page and the draft revised EU GMP Annex 11 on computerised systems.
Last reviewed: 27 November 2026. The paper is a scientific publication by regulatory scientists, not formal guidance, and the Annex 11 text discussed is a draft revision. Passages marked as interpretation are the author's analysis.
What Pharma 4.0 is, and what a digital twin is not
ISPE describes Pharma 4.0 as the route to introduce Industry 4.0, the smart factory, into the pharmaceutical industry. Its stated aim is practical guidance with regulatory best practice embedded, and it expects the change to look more like an evolution than a revolution because digitalisation meets complex product portfolios. It adds digital enablers and elements to the ICH Q10 pharmaceutical quality system, and says that connecting everything raises the need for higher levels of security because linked systems increase vulnerability.
The 2024 paper places the digital twin inside a wider modelling picture. Industry 4.0 means more plant-wide data, which enables model-based process design and scale-up, process monitoring and fault detection, and advanced process control, and this opens the possibility of using models to create a digital twin: a virtual representation of the manufacturing process that mimics its behaviour. A process model, in the paper's definition, is a mathematical description of an element of the physical process.
Interpretation: that definition gives a practical test for telling a twin from other tools. A dashboard displays measured values. A static simulation answers one design question once. A twin is a model that stays tied to the live process and is updated as the process changes, which is exactly why it carries lifecycle obligations that a dashboard does not.
Use cases with published examples
The paper reports process model applications in lyophilisation design and scale-up, chromatography design and scale-up, continuous direct compression design, monitoring and control, fluid bed drying control, bioreactor control, continuous wet granulation monitoring and continuous improvement, and cell therapy product and process design. It says several examples of improvement through process models have been shown in lyophilisation, chromatography, fluid bed drying, bioreactor control, continuous direct compression and wet granulation. Examples of stated contexts of use include a crystallisation population balance model used to understand conditions affecting crystal size and yield in development, a residence time distribution model used to orchestrate diversion of non-conforming material, and a near-infrared procedure with a chemometric model used to measure tablet assay for release.
The paper does not describe a cross-industry survey of how many sites run twins for utilities or facility operations, and this article makes no claim about it. A plant considering utilities or equipment use cases should treat them as candidates for the same context-of-use test below, not as established practice.
Model risk, validation and lifecycle
This is the part of the brief that regulators have addressed most directly. The paper describes two frameworks. The ICH Quality Implementation Working Group classified models as high, medium or low impact by their influence on product quality: models for process design or development can be low impact; models for process monitoring are typically medium impact because other mechanisms, such as release tests, also assess quality; and models that predict a quality attribute for release, for example in real-time release testing, are generally high impact. The ASME V&V 40 standard, written for medical devices but described as general enough to apply in pharmaceutical manufacturing, defines model risk as the possibility that the model leads to a wrong conclusion about process performance with an adverse outcome. It starts from the context of use, a statement of the model's role relative to other data in answering a specific question, and combines model influence (its contribution to the decision relative to other evidence) with decision consequence (the significance of an adverse outcome if the decision is wrong).
On validation, the paper says verification checks that the model is implemented and solved correctly, and validation assesses whether the model is an appropriate representation of the physical system, usually by comparing predictions with experimental data from a reference method, with the extent of validation based on model risk. For machine-learning and other empirical models it notes that the assumptions sit in the training data, so the representativeness of training and test data for the context of use needs consideration.
On maintenance, the paper defines model maintenance as planned activities over the product lifecycle to monitor and keep the model's performance suitable for its purpose. It gives as examples a risk-based frequency for comparing predictions with the reference method, triggers for model updates, a recalibration approach, and diagnostics such as Hotelling T-squared to compare new input data with the data used to build the model. It notes that some data-centric models are sensitive to variation in inputs such as incoming raw material properties, and that the impact of a change can be judged by its effect on model performance and on product quality. It also states that its discussion does not cover regulatory notification of model updates.
Data, security and vendor access
The draft revised Annex 11 does not prescribe a data architecture, but several of its provisions bear on connecting equipment, process data and quality decisions. It says audit trails should automatically log manual user interactions on systems that control processes or hold data, capturing who (including role), what (old and new values), when (including time zone) and why, recorded at the time of the event. Security section 15 calls for an effective information security management system, recurrent security awareness training, segmented networks with effective firewalls and periodic review of firewall rules, timely patching and control of unsupported platforms, and control of bidirectional devices such as USB on servers and computers. Section 11 calls for multifactor authentication for remote authentication on critical systems from outside controlled perimeters. For vendors, section 7 states that relying on a vendor's or service provider's qualification does not change the regulated user's responsibility, and calls for risk-based audit or assessment, oversight against agreed service levels and KPIs, and contracts that address communication of quality and security matters.
Interpretation: for a twin that pulls from historians, MES, LIMS, ERP and SCADA, these provisions turn into design questions: which of those links are read-only, who can change model inputs, how a change to the model is logged, and how a vendor reaches the system remotely. ISPE's point about linked systems and security is the reason to settle them before the twin goes live.
What a twin can and cannot do for deviations
The paper's risk logic answers the brief's question about deviation investigation and scenario testing. A model used to explore scenarios or understand a deviation sits closer to low-impact use, because the batch decision still rests on other evidence. A model that drives a release or diversion decision sits higher and needs the validation and maintenance that follow from its context of use. In both cases the twin supports understanding. GMP evidence stays in the batch record, the audit trail and the laboratory data.
Illustrative scenario
This is a made-up example, not a named company. A plant builds a model of a fluid bed dryer to see how inlet air humidity affects drying time. It writes the context of use first: to inform operators about the end of drying while the loss-on-drying release test stays in place. It rates the model as medium influence with moderate consequence, validates it against loss-on-drying data from a range of batches, sets a check against the reference method every quarter, and defines a trigger to revalidate when a new supplier's excipient lot changes the input range.
A phased roadmap and KPIs (interpretation)
- Phase 1: pick one question with a clear owner and write its context of use.
- Phase 2: connect read-only data, check data quality, and define who can change inputs and the model.
- Phase 3: validate to the model's risk, then run it in parallel with the existing method before relying on it.
- Phase 4: put maintenance triggers into change control and review the model's accuracy on a schedule.
- Measures that are common in manufacturing, such as overall equipment effectiveness, right-first-time rate and deviation recurrence, can show whether the twin helps. They should be measured before the twin starts, so the change can be shown.
Related reading on Pharmaceutical Weekly: machinery, regulatory updates and AI in pharmaceutical manufacturing.
