Skip to content
RANC ANALYTICS
← Insights
Václav Ranc 3 min read

From R&D to release testing: chemometric models that survive an audit

A chemometric model that works in the lab is not yet a QC method. What it takes to move Raman and SERS models into regulated quality control, from validation to data integrity to lifecycle.

chemometricsquality controlPATvalidationregulated

A model that separates good from bad in a development notebook is a promising result. It is not yet a quality-control method. The distance between the two is not model accuracy; it is validation, data integrity, and lifecycle management. Teams that treat compliance as something to bolt on at the end usually pay for it twice. Building for the regulated environment from the start is cheaper and faster.

The method is a procedure, not a model

In a regulated setting the deliverable is an analytical procedure with a defined purpose, defined performance, and a plan to keep it in control over time. Current thinking on analytical procedure development and validation, reflected in ICH Q14 and Q2, frames this as a lifecycle: define what the procedure must achieve, demonstrate that it does, and verify that it continues to. For a spectroscopic method with a chemometric model, the model and its preprocessing are part of that procedure and inherit all of its obligations.

Validate the things QC actually cares about

Development metrics such as cross-validated accuracy are necessary but not sufficient. A QC method has to demonstrate specificity against the interferents it will really encounter, robustness to the variation it will really see across instrument, operator, day, and reagent lot, and a defined range over which it is valid, along with accuracy and precision.

The most under-appreciated requirement is knowing when a sample falls outside the model’s competence. Spectral models should carry outlier statistics, Hotelling’s T squared for distance within the model space and Q residual, or squared prediction error, for distance from it, so that a sample unlike anything in the calibration is flagged rather than silently predicted. A model that always answers, even for a sample it has never seen the likes of, is a liability in release testing.

Data integrity is not optional

Computerised-system expectations, expressed through EU Annex 11 and 21 CFR Part 11 and summarised by the ALCOA plus principles, apply directly to chemometric methods. In practice this means audit trails, retained raw spectra, and, critically, versioned and reproducible pipelines. The exact preprocessing and the exact model that produced a result must be recoverable later. A preprocessing chain that lives only in a script on one analyst’s machine will not withstand scrutiny. Treat models and pipelines as controlled artifacts under version control, with a documented history.

Prefer defensible models

There is a place for deep learning in spectroscopy, but parsimony aids validation. Well-characterised linear methods such as PLS and PLS-DA, with transparent preprocessing, are easier to validate, to explain to an auditor, and to keep in control. When a more complex model is genuinely warranted, it should come with interpretability, calibrated uncertainty, and out-of-distribution detection, so that its behaviour on unusual samples is understood rather than assumed.

Plan for the whole life of the method

A QC method lives for years, across changing instruments and reagent lots. That reality has to be designed in. Calibration transfer techniques let a model move between instruments without a full revalidation. Drift monitoring catches slow degradation before it produces out-of-specification results. Change control governs what happens when a substrate lot, a reagent, or an instrument changes, and when the model is updated. None of this is exotic, but it has to be planned, because retrofitting it onto a model built for a single instrument on a single good week is where projects stall.

Checklist

  • Define the procedure’s purpose and required performance before building the model.
  • Validate specificity, robustness, range, accuracy, and precision against real-world variation.
  • Add outlier detection, Hotelling’s T squared and Q residuals, so the model flags unfamiliar samples.
  • Keep raw data, and version the preprocessing and model as reproducible artifacts.
  • Favour interpretable models; add uncertainty and out-of-distribution checks if you go complex.
  • Plan calibration transfer, drift monitoring, and change control from the outset.

Written by

Václav Ranc — analytical chemist, 20+ years in SERS, Raman, and chemometrics. He provides SERS and Raman method development, chemometric validation, and EU project preparation independently. More about the practice.

Have a method or model that has to hold up?

Tell me the analyte, the matrix, and the decision it feeds. I will tell you whether — and how — SERS or Raman gets you there.