multivariate calibration with special focus on uncertainty estimation and analytical figures of...

24
Multivariate calibration with special focus on uncertainty estimation and analytical figures of merit Klaas Faber Chemometry Consultancy www.chemometry.com

Upload: maya-mullenix

Post on 16-Dec-2015

221 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: Multivariate calibration with special focus on uncertainty estimation and analytical figures of merit Klaas Faber Chemometry Consultancy

Multivariate calibrationwith special focus on uncertainty estimation and analytical figures of merit

Klaas FaberChemometry Consultancywww.chemometry.com

Page 2: Multivariate calibration with special focus on uncertainty estimation and analytical figures of merit Klaas Faber Chemometry Consultancy

2

1. Setting the stage

“Chemometrics is the science of relating measurements made on a chemical system or process to the state of the system via application of mathematical or statistical methods”

Definition by the International Chemometrics Society (ICS)

The ICS logo

Foremost, chemometrics is multivariate!

Page 3: Multivariate calibration with special focus on uncertainty estimation and analytical figures of merit Klaas Faber Chemometry Consultancy

3

Chemometricians tend to be primarily focused on the signal in the data (discovery)

data-driven soft modeling (estimate everything from the available data)

Statisticians also pay considerable attention to theoretical assumptions about the noise

theory-driven hard modeling (built-in validation)

Typical for chemometrics-based multivariate analysis: visualization of the input data: extensive graphics validation of the output result: comparison with reference values

Chemometrics vs. ‘traditional statistics’

Page 4: Multivariate calibration with special focus on uncertainty estimation and analytical figures of merit Klaas Faber Chemometry Consultancy

4

Some terminology

Multivariate data consist of observations of (possibly several) sets of multiple variables for objects.

Depending on the application area, the neutral terms “object” (or item, unit) and “variable” (or attribute, descriptor, feature, characteristic, trait) are replaced by:

object: product, chemical sample, patient, batch, pixel/voxel, molecule, etc.

variable: quality, wavelength, etc.

Page 5: Multivariate calibration with special focus on uncertainty estimation and analytical figures of merit Klaas Faber Chemometry Consultancy

5

Types of multivariate data on which chemometrics methods have been successfully applied Sensory analysis

description by panel (e.g. texture) & instrumental; consumer preference

Molecular spectroscopy near-infrared; excitation-emission fluorescence

Chemical process modeling raw material; process variables (e.g. pressure, temperature)

Quantitative structure activity & property relationships molecular descriptors

Page 6: Multivariate calibration with special focus on uncertainty estimation and analytical figures of merit Klaas Faber Chemometry Consultancy

6

There is, however, a sharp contrast between a successful application and estimating the reliability of a result

Personal communication with D.L. Massart (†2005):

The chemometric domain is characterized by a general lack of sound statistical underpinning: intervals, hypothesis tests, etc.

“Univariate calibration is nice and clean, multivariate calibration is wild west.”

Page 7: Multivariate calibration with special focus on uncertainty estimation and analytical figures of merit Klaas Faber Chemometry Consultancy

7

A general note on the reporting of results

P. De Bièvre, Editorial

Measurement results without statements of reliability (uncertainty) should not be taken seriously

Accreditation and Quality Assurance, 2 (1997) 269

“So, a result without reliability (uncertainty) statement cannot be published or communicated because it is not (yet) a result. I am appealing to

my colleagues of all analytical journals not to accept papers anymore which do not respect this

simple logic.”

Page 8: Multivariate calibration with special focus on uncertainty estimation and analytical figures of merit Klaas Faber Chemometry Consultancy

8

Historical explanation

Multivariate (and multiway) calibration methods such as PLS have often been introduced without the associated error analysis.

A notable exception:

M. Linder and R. Sundberg

Precision of prediction in second-order calibration, with focus on bilinear regression methods

Journal of Chemometrics, 16 (2002) 12-27

Page 9: Multivariate calibration with special focus on uncertainty estimation and analytical figures of merit Klaas Faber Chemometry Consultancy

9

Journal of Chemometrics 2003 Kowalski prize for best theoretical paper

Marie Linder Rolf Sundberg

Page 10: Multivariate calibration with special focus on uncertainty estimation and analytical figures of merit Klaas Faber Chemometry Consultancy

10

The relevance of error analysis for PLS was recognized at an early stage, but progress turned out to be slow

S. Wold, A. Ruhe, H. Wold and W.J. Dunn III

The collinearity problem in linear regression. The partial least squares (PLS) approach to generalized inverses

SIAM Journal on Scientific Computing, 5 (1984) 735-743

“In a forthcoming report we will also investigate statistical and numerical aspects on the PLS

method, and show how the 8 theorems given by Marquardt (1970) for ridge and principal

component regression translate into this situation.”

Page 11: Multivariate calibration with special focus on uncertainty estimation and analytical figures of merit Klaas Faber Chemometry Consultancy

11

Prominent contribution to PLS: Journal of Chemometrics 2005 Kowalski prize for best theoretical paper

Boaz Nadler and Ronald Coifman

Partial least squares, Beer's law and the net analyte signal: statistical modeling and analysis

Journal of Chemometrics, 19 (2005) 45-54

Page 12: Multivariate calibration with special focus on uncertainty estimation and analytical figures of merit Klaas Faber Chemometry Consultancy

12

A general note on error analysis

Calibration models are approximations at best so that the following quote applies:

B.N. Parlett

The symmetric eigenvalue problem (1980)

Let’s restrict ourselves in the remainder to prediction uncertainty.

“There is little profit in approximations which are good but not known to be good.”

Page 13: Multivariate calibration with special focus on uncertainty estimation and analytical figures of merit Klaas Faber Chemometry Consultancy

13

Univariate model: theoretical expression that explicitly accounts for all relevant sources of uncertainty, i.e. for both x- and y-variables

x

y

Model estimate and 95%-prediction bands

Page 14: Multivariate calibration with special focus on uncertainty estimation and analytical figures of merit Klaas Faber Chemometry Consultancy

14

Multivariate model: empirical validation that implicitly accounts for all error sources, plus a spurious oneRoot mean squared error of prediction (RMSEP) for independent test set of I objects:

To emphasize non-negligible noise in the reference values, we will sometimes refer to the result as an apparent estimate of RMSEP.

2-1,ref

1

,ref

ˆRMSEP

ˆ prediction for object

associated reference value, which can be noisy

I

i ii

i

i

I y y

y i

y

The defining

equation of RMSEP contains

true values.

apparent

Page 15: Multivariate calibration with special focus on uncertainty estimation and analytical figures of merit Klaas Faber Chemometry Consultancy

15

Two obvious problems with test set validation, or cross-validation for that matter1. A crucial assumption is that the reference values are sufficiently

precise; this is certainly not always true (octane rating, classical Kjeldahl) - often the prediction is even better than the reference value. The reference noise is a spurious contribution to RMSEP.

2. The result (RMSEP) is a constant measure for prediction uncertainty that cannot lead to correct interval estimates. Object-specific prediction uncertainties are required.

Page 16: Multivariate calibration with special focus on uncertainty estimation and analytical figures of merit Klaas Faber Chemometry Consultancy

16

Concerning the first problem: the model is blamed for the uncertainty in the reference valuesA calibration model (the ‘secondary’ method) is often better than the

‘primary’ reference method, but how to actually prove this?

For a good discussion of this controversy, see:

R. DiFoggio

Examination of some misconceptions about near-infrared analysis

Applied Spectroscopy, 49 (1995) 67-75

Page 17: Multivariate calibration with special focus on uncertainty estimation and analytical figures of merit Klaas Faber Chemometry Consultancy

17

Illustrative (multiway) example

Source: Bro, Chemolab, 38 (1997) 149-171

The uncertainty in the reference values is level-dependent.

The prediction residual is mainly due to the reference error: the model prediction is closer to the true value of replicate 1 than measured replicate 2 is.

Replicate 1 Replicate 1

Rep

licat

e 2

Rep

licat

e 1

pre

dict

ed

Page 18: Multivariate calibration with special focus on uncertainty estimation and analytical figures of merit Klaas Faber Chemometry Consultancy

18

Concerning the second problem: potential benefits of an object-specific prediction uncertainty Construction of realistic prediction intervals, e.g. for monitoring

the performance of an analysis using control samples, see ASTM standard E1655, “Standard practices for infrared, multivariate, quantitative analysis”

RMSEP - a constant value - poorly describes the prediction uncertainty for extreme objects (extrapolation):

detect lower concentrations in analytical chemistry (than actually present in the training set);

analyte determination using standard additions drug with higher activity in quantitative structure activity relationship

(QSAR) modelling; better product in sensory science.

Page 19: Multivariate calibration with special focus on uncertainty estimation and analytical figures of merit Klaas Faber Chemometry Consultancy

19

Example: PLS model of a NIR data set

Faber and Kowalski, J. Chemometrics, 11 (1997) 181-238

Faber, Song and Hopke, TrAC, 22 (2003) 330-334

21 out of 26 predictions are more precise than the reference values; the apparent RMSEP grossly overestimates the actual uncertainty.

Apparent RMSEP contains a large spurious component

extrapolation: high uncertainty

0 5 10 15 20 250

0.1

0.2

0.3

0.4

0.5

0.6

Prediction sample

Pre

dic

tion

un

cert

ain

ty

RMSEP

Reference error

Prediction more precise

Prediction less precise

Page 20: Multivariate calibration with special focus on uncertainty estimation and analytical figures of merit Klaas Faber Chemometry Consultancy

20

Remarks concerning extrapolating an empirical model

R.D. SneeValidation of regression models: methods and examplesTechnometrics, 19 (1977) 415-428

“In some instances it may not be necessary to predict outside the region of the data: however, in other situations, predictions outside the region of

the available data are of great interest.”

Chemometric calibration models are entirely data-driven, not based on first principles. Extrapolation should therefore be regarded with caution. The common advice that one should never extrapolate is, however, often too cautious because it may simply contradict the goal of modeling.

Page 21: Multivariate calibration with special focus on uncertainty estimation and analytical figures of merit Klaas Faber Chemometry Consultancy

21

Extensive review article (166 references) in the official literature

A.C. Olivieri

, N.M. Faber, J. Ferré, R. Boqué, J.H. Kalivas and H. Mark

Guidelines for calibration in analytical chemistry.

Part 3. Uncertainty estimation and figures of merit for multivariate calibration

Pure & Applied Chemistry, 78 (2006) 633-661

Corresponding author:

[email protected] IUPAC

Page 22: Multivariate calibration with special focus on uncertainty estimation and analytical figures of merit Klaas Faber Chemometry Consultancy

22

The two main subjects

Uncertainty estimation: parameters, i.e. regression coefficients, loadings and scores predictions, usually obtained from regression coefficients

This enables a better assessment of uncertainty than found in current practice.

Analytical figures of merit: sensitivity, signal-to-noise ratio, limit-of-detection, etc.

Performance characteristics of an analytical determination, closely related to uncertainty estimation (interpretation).

Page 23: Multivariate calibration with special focus on uncertainty estimation and analytical figures of merit Klaas Faber Chemometry Consultancy

23

Course goal

Course goal: “Upon completing the course, the applicant should be able to assess the relevance or irrelevance of a certain approach for his/her applications.”

This is believed to be of interest for a broad audience: researchers who consider applying newly developed theory, software developers who consider implementing error analysis, end-users who have to select between software packages, etc.

Page 24: Multivariate calibration with special focus on uncertainty estimation and analytical figures of merit Klaas Faber Chemometry Consultancy

24

Final remarks

The purpose is to make the subject accessible hence promising methodology will always be referenced when known to me.

Problematic methodology is discussed in particular when it has been incorporated in commercial (chemometric) software packages.

The current distinction between ‘promising’ and ‘problematic’ methodology is my sole responsibility. The same goes for serious omissions.

Research regarding this subject is far from finished. Avenues for further research will be mentioned.

I hope to have some good discussions...