A Model Has a Lifecycle
Guidelines:
Modalities:

The one idea
Validation establishes evidence for an intended use under defined conditions. Monitoring asks whether that evidence continues to apply.
A frozen model does not change its coefficients by itself, but the world supplying its inputs does. Raw materials, instruments, sampling, software, temperature and process conditions can all challenge performance. The model is the method, and it has a validation and a lifecycle exactly as an high-performance liquid chromatography (HPLC) method does.
International Council for Harmonisation (ICH) Q14 explicitly addresses multivariate model establishment, routine use and maintenance, including monitoring that can trigger rebuilding. A model-maintenance plan connects these activities, rather than treating calibration as a one-time event [1].
The case: an approved supplier, an unfamiliar spectrum
Our near-infrared (NIR) procedure predicts active pharmaceutical ingredient (API) concentration in a powder blend. The formulation, reference procedure and operating range are defined, and independent evaluation supported the procedure’s intended role in the control strategy.
A newly qualified excipient supplier is introduced. The material meets its incoming requirements, but the NIR spectra begin to differ from historical spectra. Model diagnostics rise. The concentration predictions stay plausible.
Several explanations are possible. The new excipient may have a different particle-size distribution, moisture level, physical form or scattering behavior. The probe might be fouled. The reference samples might not match the measured process material. A coincident instrument problem might be responsible.
Supplier qualification and model applicability answer different questions. A material can be acceptable under its purchasing specification while presenting variation the calibration never saw.
Do not assume a plausible prediction proves applicability, or that an unusual spectrum proves the material is defective.
Monitor performance and applicability separately
These kinds of evidence complement each other:
| Evidence | What it can reveal | Important limitation |
|---|---|---|
| Matched reference comparisons | Actual prediction error and systematic bias for the checked samples | Coverage and reference uncertainty limit the conclusion |
| Spectral and model diagnostics | Unusual input patterns or departure from the represented variation | An unusual input does not automatically mean the prediction has failed |
| Instrument and acquisition checks | Changes in hardware response or measurement quality | Passing checks do not establish complete model suitability |
| Process and material records | Context for causes, timing and potentially affected output | A temporal association alone does not prove causation |
The maintenance plan should say what is checked, how often, by whom, and what triggers investigation or action. Reference-check frequency and update triggers should reflect the model’s impact and risk. ICH’s Q8/Q9/Q10 implementation material discusses these elements [2].
Prediction error is not the same as a spectral residual
For a quantitative model, define the prediction error consistently. In this reading:
A positive error means overprediction. The mean error estimates bias in the evaluated set; an error-magnitude summary such as the root mean square error of prediction (RMSEP) describes disagreement for that set. Both depend on the samples and reference results used.
In a principal component analysis (PCA)-based spectral diagnostic, the residual means something different: the part of the measured X spectrum the retained components do not reconstruct. It can be large even when a checked Y prediction stays close to its reference value.
Calling both quantities “residuals” without naming their space confuses an investigation. Say whether you mean a prediction error in concentration units or a spectral reconstruction diagnostic.
T² and Q ask different questions
For a retained PCA representation, two commonly used diagnostics are:
- Hotelling’s T²: a distance within the retained score space, accounting for the variation along each component.
- Q residual, or squared prediction error in X: a measure of variation outside the retained component subspace.
An extreme but familiar spectral pattern can give a high T². A new spectral feature that the retained components describe poorly can give a high Q. Both can rise together. These are the same two distances that SIMCA uses to decide class membership.
Thresholds depend on the model, the data, the statistical assumptions and the intended response. There is no universal T² or Q limit for every instrument, preprocessing method or product. A diagnostic limit is not a product specification.
In partial least squares (PLS) applications, understand exactly which diagnostics the deployed system calculates; do not assume every software package calculates or labels them the same way.
A calculated example: three different situations

In the baseline scenario, new observations follow the development relationship. In the input-pattern change, the second input variable shifts while the first stays the same. Q rises (its mean goes from about 0.003 to about 2.0, in arbitrary units) because the joint input pattern has changed, but the prediction equation uses only the first variable, so the prediction error does not change.
In the outcome-relationship change, X stays like the baseline while the relationship to the reference outcome shifts. Q is unchanged, while the prediction error moves to about −0.8.
The demonstration is deliberately simple. It shows that input diagnostics and reference comparisons are not substitutes for each other. It does not claim that a particular diagnostic will always catch or always miss a real pharmaceutical change.
Download the synthetic scenario data.
Investigate the supplier-change signal
Before changing the calibration, follow a structured investigation:
- Establish validity. Check timestamps, sample matching, acquisition conditions, model version, preprocessing and reference results.
- Check the measurement system. Examine instrument checks, window cleanliness, probe contact, temperature and sample presentation.
- Compare the material. Review supplier information and the relevant physical or chemical characterization against the old supplier’s material.
- Assess current performance. Obtain suitable independent matched references across relevant conditions, including the decision-critical range.
- Assess impact. Determine which results and material could be affected, and apply the established operating and quality-system response.
An elevated diagnostic may need action before the root cause is resolved. Follow the predefined controls for unsupported results, rather than carrying on because the displayed concentration looks reasonable.
Agreement with the reference in a few samples is reassuring but does not establish coverage across the full new variation. Design the follow-up work around the scientific question.
The investigation, worked on synthetic data

The figure works the five steps on one constructed case: an NIR blend-assay model (SNV and PLS with 4 latent variables), calibrated on 60 E1 blends at 85–115% of label claim and run for 40 production days. The only thing that differs between the suppliers is one excipient band near 2270 nm: E2’s sits 2 nm higher.
- The trigger. Q flags every E2 spectrum from day 21. T² flags none for two weeks and at most 8% on any later day. This is a new spectral pattern, not an extreme version of a familiar one. Meanwhile the predicted assay stays near 100% of label claim, exactly the “plausible prediction” this reading warns about.
- Steps 1–2, validity and the measurement system. The model version, preprocessing and sample pairing are unchanged, and the daily wavelength check stays within ±0.1 nm of its target on every day. The signal is not the instrument and not the data handling.
- Step 3, the material. The band position is measured on pure excipient from each lot. Twelve E1 lots agree to within 0.15 nm; all three E2 lots sit 2.1 nm higher, far outside E1’s lot-to-lot range. E2 passed its incoming tests, but the spectrometer can tell it apart.
- Step 4, current performance. Routine checks near 100% of label claim can’t answer whether accuracy holds across the range, so the team makes E2 blends at five levels and assays them by HPLC. Every E2 level mean is inside the illustrative ±1.0% requirement, but the margin is thin at 95% (−0.93% from three blends). A careful team would add replicates there before leaning on the result.
- Step 5, impact. Twenty production days ran on E2. Their routine reference checks average −0.28%, so there is no sign of out-of-specification product. But every release decision in that period was made while the applicability flag was on, and each needs assessing under the site’s procedure.
How can a 2 nm shift be measured when the spectrometer reads every 10 nm? The band is about 75 nm wide, so it spans many readings. Fitting the band’s shape through all of them locates its centre to a few hundredths of a nanometre, much finer than the spacing between readings, in the same way a fitted chromatographic peak has a retention time finer than the detector’s sampling interval. The fit used here is a Gaussian band on a gently curved baseline over 2180–2380 nm. Neighbouring bands offset every lot’s absolute centre by the same amount (about 0.9 nm), so the absolute value isn’t meaningful, but the difference between lots is, and it recovers the 2 nm that was built into the simulation.
The finding matches the fourth row of the table below: acceptable new variation that the model does not cover. Accuracy holds for now. But a Q limit that flags every result no longer separates the unusual from the routine, so a real problem would hide inside the alarm that is already on. The response is a controlled calibration extension that adds E2 lots and is re-evaluated on both E1 and E2 material. Silencing Q by moving its limit would be the wrong response.
Same signal, two outcomes
Step 4 is where the investigation forks. To show both branches, the figure below runs a second, hypothetical supplier, E3, through the identical model, limits and steps. E3’s band sits 10 nm higher instead of 2 nm.

| E2 (arrived) | E3 (hypothetical) | |
|---|---|---|
| Band shift, built in → measured | 2 nm → 2.1 nm | 10 nm → 10.0 nm |
| Q flags (share of spectra over 20 days) | 100% | 100% |
| T² flags | 1% | 100% |
| Challenge level means | −0.93 to +0.11% | −1.94 to −0.87% |
| Against the illustrative ±1.0% requirement | Passes at every level | Fails at four of five levels |
| Response | Extend the calibration under change control | Contain the output made while flagged; rebuild before release use |
Three lessons sit in that table. Q alone cannot tell the two cases apart: both flag every spectrum. T² is no help either, since it flags E3 but barely E2, and nothing about “T² is quiet” means the predictions are right. The designed challenge across the decision range is what separates “the model still works but its diagnostic doesn’t” from “the model no longer works”, and that difference decides between a planned calibration update and containing product. The predicted assay looked plausible for both.
Choose the response that addresses the cause
| Finding | Possible response, subject to the established strategy |
|---|---|
| Fouled probe window | Restore the measurement condition and verify performance |
| Incorrect sample pairing or reference result | Correct the data issue and assess the affected conclusions |
| New acceptable variation already handled adequately | Document the evidence; consider justified monitoring or applicability updates |
| Acceptable new material variation not adequately modeled | Develop a controlled calibration extension or rebuild, and evaluate it |
| Material or process is unsuitable | Address the material or process issue; do not train the problem into acceptability |
Adding every flagged sample to the calibration can normalize a failure rather than improve the procedure. First establish what the sample represents and whether it belongs within the intended use.
Likewise, moving a diagnostic threshold until the alarm stops is a model change that needs justification. The goal is continued suitability, not a quiet dashboard.
Instrument transfer is an analytical change
The team now wants to run the procedure on another NIR instrument. Copying the coefficient file is easy. Demonstrating equivalent performance is the real task.
Instruments can differ in wavelength response, resolution, detector characteristics, optics and sample presentation. Transfer may involve instrument matching, a suitable standardization technique (piecewise direct standardization is a common one) or redevelopment, followed by appropriate evaluation on the receiving system.
Use samples relevant to the intended range and sources of variation. Check bias and error against suitable references, not only the average spectra. Keep the full pipeline, including preprocessing and diagnostic calculations, under control.
An instructive pharmaceutical paper by Cogdill, Anderson and Drennen examined NIR calibration monitoring and transfer across instruments and maintenance events. It compared several transfer techniques and combined instrument measures with T² and Q diagnostics. Its findings show why transfer has to be evaluated experimentally, rather than assuming one technique or sample count works everywhere [3].
Updating the model returns us to development
If recalibration is justified, define what is changing: the intended population, calibration samples, variables, preprocessing, algorithm, number of components, decision thresholds or instrument domain.
Keep development and independent assessment separate. New lots used to update the calibration cannot also serve as untouched evidence of its performance. Re-evaluate the relevant historical conditions as well as the new variation; improving the new-supplier fit can worsen old-supplier performance.
Document why samples are added or removed. Keep earlier models, their supported scope, and the evidence behind each version. Verification or revalidation should match the nature and impact of the change. Regulatory reporting depends on the applicable authorization, the Q12 established conditions and regional requirements; it is not settled by the analyst’s label “minor update” [1, 4].
The deployable object is the full procedure
A versioned model package should identify the calibration data and references, preprocessing parameters, variable selection, coefficients, diagnostic definitions and limits, software dependencies, intended scope, validation evidence and operating instructions.
Deployment includes verifying that the correct version reaches the correct instrument or process system. Keep a controlled recovery or rollback route where appropriate. Reverting the software does not automatically settle the disposition of material made during a questionable period.
Routine monitoring then resumes under the updated plan. A controlled update is another evidence-supported state of the procedure, not the end of its lifecycle.
Where the analyst sits
The analyst interprets change. Is it real material variation, a measurement artefact, an unsupported domain, or a changed relationship to quality? Which evidence is still valid, and which conclusions need reassessing?
A lifecycle approach keeps useful models useful by keeping their purpose, assumptions, performance and changes visible. It also sets up the language-model reading, where version changes and task-specific evaluation raise related questions.
For discussion
- Why can Q rise while concentration predictions still agree with reference results?
- Why can prediction error rise without a corresponding shift in the measured X distribution?
- A new supplier’s excipient passes incoming tests but produces unusual spectra. What would you investigate before extending the calibration?
- What evidence would support transfer to a second instrument, beyond copying the model file?
- Why should an updated model be challenged on both historical and newly introduced variation?
Bridge back to the week
Next: From Spectra to Language, which asks the same questions of a language model drafting an investigation summary. Return to Week 11.
Data and sources
Synthetic monitoring data: three scenarios of 30 observations, with inputs, reference and predicted Y, Q and prediction error; scenario means. Supplier investigation: daily diagnostics, routine reference checks, instrument checks, band centres by lot, challenge results and summary; hypothetical E3: band centres, challenge and pass/fail comparison; reproduction script and requirements. Figures: 3840 × 2160 pixels, computed with fixed seeds.
[1] ICH Q14, Analytical Procedure Development, Section 8, particularly recalibration and model maintenance and Figure 3 on the multivariate lifecycle. Final guidance (PDF).
[2] ICH Q8/Q9/Q10 questions and answers and points to consider: model verification, reference comparisons, update triggers and recalibration planning. Guidance page.
[3] R. P. Cogdill, C. A. Anderson and J. K. Drennen, “Process analytical technology case study, part III: Calibration monitoring and transfer,” AAPS PharmSciTech 6 (2005) E284–E297. A pharmaceutical NIR example from well before the current artificial intelligence (AI) boom. Open-access article.
[4] ICH Q2(R2), Validation of Analytical Procedures: intended-use validation context. Guidance page.
The supplier-change case is a constructed teaching example; the monitoring scenarios are synthetic.