Next Article in Journal
Effect of Pulse Type and Substitution Level on Dough Rheology and Bread Quality of Whole Wheat-Based Composite Flours
Next Article in Special Issue
Intelligent and Data-Driven Fault Detection of Photovoltaic Plants
Previous Article in Journal
Review on the Battery Model and SOC Estimation Method
Previous Article in Special Issue
An Intelligent Process Fault Diagnosis System Based on Neural Networks and Andrews Plot
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Numerical Procedure for Multivariate Calibration Using Heteroscedastic Principal Components Regression

by
Alessandra da Rocha Duailibe Monteiro
1,
Thiago de Sá Feital
2,3 and
José Carlos Pinto
2,*
1
Departamento de Engenharia Química e Petróleo (TEQ), Universidade Federal Fluminense, Niterói, Rio de Janeiro CEP 24210-240, RJ, Brazil
2
OPTIMATECH LTDA, Rio de Janeiro CEP 21941-614, RJ, Brazil
3
Programa de Engenharia Química/COPPE, Universidade Federal do Rio de Janeiro, Cidade Universitária, CP 68502, Rio de Janeiro CEP 21941-972, RJ, Brazil
*
Author to whom correspondence should be addressed.
Submission received: 20 July 2021 / Revised: 9 September 2021 / Accepted: 18 September 2021 / Published: 21 September 2021
(This article belongs to the Special Issue Redesign Processes in the Age of the Fourth Industrial Revolution)

Abstract

:
Many methods have been developed to allow for consideration of measurement errors during multivariate data analyses. The incorporation of the error structure into the analytical framework, usually described in terms of the covariance matrix of measurement errors, can provide better model estimation and prediction. However, little effort has been made to evaluate the effects of heteroscedastic measurement uncertainties on multivariate analyses when the covariance matrix of measurement errors changes with the measurement conditions. For this reason, the present work describes a new numerical procedure for analyses of heteroscedastic systems (heteroscedastic principal component regression or H-PCR) that takes into consideration the variations of the covariance matrix of measurement fluctuations. In order to illustrate the proposed approach, near infrared (NIR) spectra of xylene and toluene mixtures were measured at different temperatures and stirring velocities and the obtained data were used to build calibration models with different multivariate techniques, including H-PCR. Modeling of available xylene–toluene NIR data revealed that H-PCR can be used successfully for calibration purposes and that the principal directions obtained with the proposed approach can be quite different from the ones calculated through standard PCR, when heteroscedasticity is disregarded explicitly.

1. Introduction

Multivariate calibration methods constitute indispensable tools for solving many “real-world” problems [1]. Nevertheless, although it has long been recognized that measurement errors are inherent components of experimental measurements, traditional multivariate calibration methods, such as principal components analysis (PCA), principal components regression (PCR), partial least squares (PLS) and parallel factor analysis (PARAFAC), implicitly assume the occurrence of independent and identically distributed measurement Gaussian errors [2]. Alternative multivariate calibration techniques, including multiple linear regression (MLR), continuum regression (CR), projection pursuit regression (PPR), locally weighted regression (LWR) and artificial neural network modeling (ANNs), among others, implicitly assume similar measurement error conditions [1].
PCA and PCR can possibly be regarded as the most popular and most powerful chemometric tools for process monitoring and quantitative analyses [3,4,5,6]. Initially employed by statisticians to describe the variance and covariance of random variables, PCA is more commonly used in chemometrics to describe determinist relationships among variables, especially in cases where a high degree of collinearity exists or in cases of process datasets with missing values [7]. According to the PCA technique, the number of variables of the problem can be reduced through suitable linear combinations, so that variable combinations concentrate the highest possible variance of the available data [8,9]. Then, the new set of uncorrelated variables, called principal components, spans a space of lower dimension. Reviews of PCA and some important and traditional applications can be seen elsewhere [10]. Therefore, the objective of PCA is generally twofold: to determine the best calibration model with the smallest number of variables [5].
Partial least squares (PLS) is a technique used for construction of predictive models when large numbers of measurements are available and the variables present strong collinearity [11]. The main objective of PLS is to extract latent variables from the available measurements, optimizing the information content for construction of the calibration model. In order to do that, a multidimensional direction is defined in the input X-space for maximization of the correlation with response variables in the Y-space. Therefore, PLS models can be applied when the number of measurement variables is higher than the observed measurements and when the measurements are multicollinear [11,12].
Unfortunately, the use of MLR, PCA or PLS procedures is oftentimes inadequate for calibration purposes and estimation of model parameters, as these methods rely on assumptions that impose limitations on the use of these techniques [13]. For example, these techniques assume that the analyzed variables are correlated linearly and are subject to random Gaussian fluctuations. Moreover, these techniques implicitly assume that measurement errors do not change in the experimental region and that input variables are not subject to measurement errors. Hong et al. (2018) observed that PCA performance for high-dimensional heteroscedastic data was worse than for homoscedastic data [14]. In order to overcome some of these limitations, many distinct numerical procedures have been proposed in the literature, including techniques based on maximum likelihood criteria, such as the MLPCR (maximum likelihood principal component regression) procedure [3].
It is important to emphasize that near infrared spectroscopy (NIRS) is a very robust technique for online monitoring and control of industrial processes, allowing for remote measurement of many useful process variables [1,15]. In particular, NIR-based monitoring procedures have been boosted by the continuous improvement of spectroscopic methods and fiber optics technology, which allow for the in situ and in-line acquisition of process data [15]. As NIR spectra contain significant amounts of information regarding chemical composition and phase morphology of mixtures and reacting systems, NIR spectroscopy finds applications in many different areas. Besides, as NIR-based procedures are fast, non-destructive, non-invasive, allow for direct in-line measurements and require minimum sample preparation, NIR technologies became particularly important for control, monitoring and optimization of industrial processes [16]. However, given the usual complex nature of NIR spectra, the advancement of computational resources, both in terms of hardware and software, was of fundamental importance for implementation of the calibration models that make the use of NIR possible in the industrial field [15].
Fluctuations in the experiments due to sample preparation, operation procedures variations and environment oscillations, among other factors, are quite common. However, these perturbations are not necessarily independent from each other and, when studying NIR measurements, they can strongly affect the performances of NIR spectrometers, requiring explicit consideration of the error structure in the proposed modeling approach [15]. Some real perturbations in NIR measurements can be, for example, light source fluctuations, temperature oscillations and mechanical vibration [17,18]. It is noteworthy that fluctuations of certain variables can affect the behavior of other variables, as one can easily understand when temperature and pressure are measured simultaneously in a pressurized vessel—as temperature increases, pressure is also expected to increase, meaning that temperature and pressure fluctuations cannot be independent in a closed vessel. Although light absorbance fluctuations in NIR experiments can be strongly correlated with neighboring wavelengths (as shown by Monteiro et al., 2017) [18], the importance of measurement error fluctuations (characterized in terms of the covariance matrix of the spectral responses, as functions of the measurement conditions and measured experimentally through replication) on NIR calibration modeling has been largely overlooked in the literature. Similar phenomena can also affect many other processes and measuring conditions.
Shah and Narasimhan (2007) [19] developed an interactive algorithm for simultaneous identification of the model and the errors, using the maximum likelihood principal component analysis technique. In simple words, the method proposed the estimation of the calibration model and of the covariance matrix of measurement errors simultaneously, using the same dataset. The algorithm was developed for the situation when measurement errors in the different variables were not the same and correlated to each other. However, Santos et al. (2005) [3] showed that the simultaneous estimation of model parameters and measurement errors can eventually lead to serious numerical and statistical interpretation problems, as hard constraints must be imposed on the estimated covariances in order to assure the positive definiteness of the covariance matrix of measurement errors.
As a matter of fact, the quality and performance of multivariate calibration models depend on the effective treatment of errors. Specifically, when spectral data are considered, variances of measurement fluctuations may be different at distinct wavelengths and may be correlated to each other. For this reason, a MLPCR method was proposed by Wentzell et al. (1997) [20] in order to compensate for these effects and provide more accurate multivariate calibration models. However, the proposed approach requires either complete knowledge of the covariance matrix of measurement errors or full experimental characterization of the covariance matrix of measurement uncertainties through replication.
Bhatt et al. (2005) [16] proposed a method for development of multivariate calibration models from non-replicated measurements when errors in different absorbances are independent but can be subject to different unknown variances. The method, named iterative principal component analysis, also estimates the lower dimensional spectral subspace and all the corresponding error variances simultaneously. Wentzell et al. (2005) [21] developed a systematic approach for characterizing the covariance matrix of measurement fluctuations for particular experimental or instrumental environments. The approach was applied to different spectral systems (including UV-VIS absorption, NIR reflectance, fluorescence emission and short-wave NIR absorption) and it was noted that more detailed characterization of the error structures can bring numerous benefits to the analysis, including the enhanced performance of calibration models. Hong et al. (2020) [22] developed a probabilistic PCA model that incorporates the heteroscedastic noise data and derives an expectation maximization algorithm to compute the factor estimate. Homoscedastic PCA was applied to initialize the algorithm.
It is important to highlight, though, that previous studies have systematically neglected the fact that the full covariance matrix of measurement fluctuations (and not only the variances, or the elements of the main diagonal of the covariance matrix [14,22]) can change with the measurement condition (depending on other variables besides the spectral wavelength, in the case of NIR calibrations). In other words, the analyzed system may be heteroscedastic and the covariance matrix of measurement responses (or the spectral output, measured in terms of absorbance, transmittance, reflectance or other suitable response variable, in the case of NIR calibrations) can depend on the wavelength, but also on concentrations and temperatures, among other variables. Particularly, it must be highlighted that the heteroscedastic nature of the measurement fluctuations has been used to provide information about the kinetic behavior of chemical reaction systems as a function of the reaction conditions [23,24], affecting the estimation of kinetic parameters.
To the best of our knowledge, procedures that consider the variations of the covariance matrix of measurement fluctuations along the experimental grid have not been used for calibration purposes (and therefore for NIR-based model building); consequently, the effects of changing covariance matrixes of measurement fluctuations on model calibration and model performance have not been analyzed yet (including NIR calibration problems). Despite that, it is important to recognize that previous studies have attempted to reduce the sensitivity of calibration models to unknown measurement perturbations using different pretreatment techniques [14,25,26,27,28,29,30,31,32,33,34], although not based on the detailed statistical characterization of the measurement fluctuations, as described in terms of variance spectra and covariance matrixes of measurement fluctuations calculated with replicates under distinct experimental conditions. In addition, cluster analyses and other grouping procedures have been used to account for the existence of data subsets that may be subject to distinct statistical behavior [35], which is not equivalent to taking into consideration the characteristic covariance matrix of measurement fluctuations for each particular experimental point used for model building and calibration.
Monteiro et al. (2017) [18] presented a statistical study regarding some simple NIR experiments, characterizing the importance of variances and covariances of measurement errors for quantitative NIR analyses. Calibration models were built with help of different multivariate techniques (MLR, PCR and PLS) [20]. The authors showed that the existence of varying measurement fluctuations and measurement error correlations along the experimental grid can significantly affect the model calibration step and the final model performance.
As a matter of fact, the effects of varying measurement fluctuations and measurement error correlations on model building procedures and model prediction errors have been systematically neglected in calibration problems, including NIR applications. Little effort has been made to evaluate the covariances of measurement uncertainties through experiments in the literature and to introduce such covariances in the modeling step, particularly when they are subject to changes in the experimental grid. Numerical procedures have been more frequently proposed to estimate covariance matrixes of measurement errors and to allow for the simultaneous estimation of covariances of measurement fluctuations and calibration model parameters when sufficiently large sets of industrial data are available [22,35,36]. However, these procedures are not based on the independent characterization of the covariance matrix of experimental fluctuations as a function of the experimental conditions and have not been used yet for NIR model calibrations and characterization of measurement error correlations in NIR experiments.
Particularly, non-conventional calibration procedures have usually proposed the estimation of the covariance matrix of measurement fluctuations and of the model parameters simultaneously [37], although these strategies do not seem appropriate when the experimental variances and covariances change at each distinct experimental points. Alternative strategies may consider the systematic experimental investigation of the measurement errors [2] and the use of maximum likelihood estimation procedures for model building [1], which was the strategy pursued here. For this reason, in the present work, a heteroscedastic principal component regression (H-PCR) method was developed to deal with calibration problems and is compared to other traditional calibration techniques (CLS, PCR and PLS) in a simple calibration problem, related to use of NIR spectra for monitoring of concentrations of xylene–toluene mixtures [18]. Modeling of available xylene–toluene NIR data revealed that H-PCR can be used successfully for calibration purposes and that the principal directions obtained with the proposed approach can be quite different from the ones calculated through standard PCR, when heteroscedasticity is disregarded explicitly.

2. Methodology

2.1. Theoretical Framework

The standard multivariate calibration process consists of building a model to correlate n spectra (the number of experimental points), comprising m distinct wavelengths (the size of the input vector xm), to n response values (the response variable y) obtained through references or independent methods (usually concentrations) [20]. The calibration procedure begins with the construction of the input data matrix, Xmxn, which contains the collected NIR spectra, and the data vector yn, which contains the output responses. The calibration model must provide a vector ycn, containing values calculated with Xmxn and that is expected to be sufficiently close to vector yn. The most common multivariate calibration techniques that are used to build NIR calibration models are the classical least squares (CLS), multiple linear regression (MLR), partial least squares (PLS) and principal component regression (PCR), as briefly described below.
The standard CLS technique proposes the representation of the original multivariable problem as a set of univariate problems for each of the considered analytes, in the form:
y = a + b x1 + e
where y is the vector of model responses (usually concentrations) and x1 is a vector of inputs (usually the spectral responses at a defined wavelength). a and b are model parameters, respectively, linear coefficient or axis interception and angular coefficient or slope, which must be determined through model fitting, using the available experimental data. e is a vector of residuals, containing the experimental measurement fluctuations and the possible model inadequacy. If the calibration model is efficient, e should have zero mean and variance similar to the variance of y measurements, normally assumed to be constant in the whole experimental grid (homoscedasticity). Therefore, the CLS procedure requires the definition of the concentrations of all the spectroscopically active species and of the respective wavelengths that must be used for purposes of model building, which is not always possible in practical situations [38]. However, it must be acknowledged that calibration of dilute solutions of non-interacting chemical species may rely on spectral responses of the pure materials only. The CLS procedure described here can certainly be used to represent other similar calibration problems.
The MLR technique is the simplest multivariate calibration method, which does not require the decomposition of the original problem into smaller univariate calibration problems. The method assumes that the response variable depends on multiple input variables, in the form:
y = a + b1 x1 + b2 x2 + ...+ bm xm, + e
( y a ) = [ y 1 a y n a ] = [ x 11 x 1 m x n 1 x nm ] · [ b 1 b m ] = X T .   α
where a and bi are model parameters (contained in α) that must be determined through model fitting, using the available experimental data. When the multiple linear regression procedure is applied, the user must define a priori the set of wavelengths that must be used for calibration purposes. For this reason, the MLR technique is usually applied when the most significant fluctuations of the spectra are concentrated in narrow spectral regions [39]. Specifically, the MLR method can be very sensitive to collinearity of spectral responses, which makes parameter estimation more difficult and model performance poorer [39]. As assumed in the previous case, if the calibration model is efficient, e should have zero mean and variance similar to the variance of y measurements, normally assumed to be constant in the whole experimental grid (homoscedasticity).
Assuming that the model is perfect, that experimental measurements are subject to homoscedastic normal fluctuations and that input variables are free of error (which is not supported by independent experimental statistical analyses, as shown by Monteiro et al., 2017) [18], the model parameters must be estimated in the form [20]:
min F = ( y e y c ) T . V y 1 .   ( y e y c ) = ( y e X T . α ) T . V y 1 . ( y e X T . α )
α = ( X . V y 1 . X T ) 1 . ( X . V y 1 . y e )
If the variances are the same throughout the experimental grid and the measurement correlations are null, then:
α = ( X . X T ) 1 . ( X . y e )
which is the usual form of the MLR calibration, which can be easily extended to describe other similar problems. According to Equations (6) and (7), it can be noted that the MLR technique requires the inversion of matrix X.XT, which explains the sensitivity to collinearity and measurement correlations. For this reason, PCR and PLS are more efficient methods to deal with large datasets [40].
The PLS technique assumes that a smaller set of latent variables affect the available experimental responses, allowing for removal of undesirable collinearity effects and for optimization of the information content of the model [11]. Initially, the normalization of the measured variables is usually performed in order to remove the units of the measured data and make the ranges of measurement variations more uniform. Then, it is acknowledged that one direction p1 concentrates the correlation between y and X. Therefore, the estimation problem becomes:
min F = ( y e X T . p 1 . α 1 ) T . V y 1 . ( y e X T . p 1 . α 1 )
α 1 = ( p 1 T . X . V y 1 . X T . p 1 ) 1 . ( p 1 T . X . V y 1 . y e )
Inserting Equation (8) into Equation (7), the fundamental PLS problem can be obtained, which is the manipulation of vector p1 for minimization of the objective function F, which can be performed with the help of numerical procedures [11]. The effects of direction p1 on the calibration problem can then be removed in the form:
X(1) = (Ip1T.I).X
y(1) = ye − α1.XT.p1
resulting in residuals X(1) and y(1), which can be used for determination of α2 and p2 in a similar manner. The procedure can be repeated iteratively in order to maximize the correlation between X and y [11,40,41]. One must observe that Equations (7)–(10) implicitly assume the validity of the same hypotheses described earlier, regarding the fact that X is free of error in the whole experimental range.
The PCR technique can be regarded as a simplification of the PLS technique, obtained by assuming that pi vectors are the directions that concentrate the largest possible variance of the available data [10,42,43], usually computed in the form:
X.XT = D.Λ.DT
where Λ is the diagonal matrix that contains the eigenvalues λ1, λ2,..,λm of X.XT and D is the matrix that contains the eigenvectors v1, v2,....,vm of X.XT [44]. Then, the pi vectors are equal to the eigenvectors vi, associated with the largest eigenvalues λ1 > λ2 >... > λM >... > λm, where M defines the size of the proposed model and the number of latent variables used for calibration purposes. According to the PCR method, the directions used to construct the model concentrate a fraction ( φ ) of the total experimental variability, defined in the form:
φ = i = 1 M λ i j = 1 m λ j
One must observe once more that the PCR technique implicitly assumes the validity of the same hypotheses described earlier, regarding the fact that X is free of error in the whole experimental range. More detailed discussions about PCR and PLS techniques can be found elsewhere [45,46].
Maximum likelihood principal component regression (MLPCR) is a decomposition method that resembles the conventional PCR, but that takes into account measurement uncertainty during the decomposition process, placing less emphasis on measurements with large variances [3,47]. It is important to recognize that MLPCR is not just a variation of PCR, but a more general numerical procedure for multivariate modeling [47].
The first step of the MLPCR technique consists of determining the direction of maximum variability of the independent variables. In this context, Equation (4), which defines the objective function for multivariate calibration procedures, can be presented in the form:
min F = k = 1 M i = 1 n ( X i ( X i T . p k )   p k ) T . V X i 1 . ( X i ( X i T . p k )   p k )
which depends on the covariance matrixes of measurement fluctuations of Xi. Matrix Vxi should contain the real experimental fluctuations of the spectral measurements in order for use of Equation (13) to make sense. The problem, though, is that matrix Vxi is normally singular (and, therefore, not invertible) in real calibration problems, as the wavelength range is normally large (m is a large number, in the range of hundreds) and the number of replicates (NR) used for independent characterization of experimental errors is much smaller than m (NR is almost always smaller than 10). A similar limitation can be observed in the vast majority of large calibration datasets. Therefore, Equation (13) cannot be used in the proposed form. Moreover, Vxi can depend on the measurement conditions and cannot be efficiently estimated from calibration residuals [15].

2.2. The Proposed Heteroscedastic Technique

The model calibration procedure based on the proposed heteroscedastic PCR technique consists, essentially, of inserting the evaluated covariance matrixes of measurement fluctuations, characterized at each measurement condition, directly into Equation (13). In order to perform the minimization task described in Equation (13), a stochastic algorithm has been devised, associating a set of plausible measurements to each experimental condition, in accordance with specific generated probability values [46]. Random number generation procedures are used to generate the problem solution candidates, as described below.
As presented in Equation (13) and described previously, the covariance matrixes of measurement fluctuations identified experimentally are expected to be singular. Therefore, it is convenient to assume that the matrixes Vxi can be decomposed in the form Vxi = Dii.DiT, where Λi is the diagonal matrix that contains the eigenvalues and Di is the matrix that contains the eigenvectors of Vxi. Matrixes Vxi, i= 1 ... n, are known, as calculated with number of replicates NR < m, assuming that independent statistical characterization of measured data has been performed and that the covariance matrixes of measurement fluctuations are available, as shown by Monteiro et al. (2017) [18]. Equation (13), however, requires calculation of Vxi−1, although matrixes Vxi, i= 1 ... n, are often noninvertible. Therefore, it is initially necessary to propose suitable pseudo-inverses for matrixes Vxi, i= 1 ... n, which are calculated here in the form [48]:
Vxi−1 = Di.Λi−1.DiT
where Λi is a diagonal matrix that contains the positive eigenvalues of Vxi in the main diagonal and Di contains the respective eigenvectors in the columns. Equation (14) then requires calculation of eigenvalues and eigenvectors of the error covariance matrix when it is decomposed. Specifically, in the present study matrix, Vxi has been characterized experimentally using NIR spectra of solutions containing varying amounts of xylene and toluene at distinct measurement conditions, confirming the small number of nonsingular eigenvalues of Vxi and, consequently, the small number of variability sources in the analyzed problem.
When the pseudo-inverse matrixes defined in Equation (14) are inserted into the objective function equation (Equation (13)), it becomes possible to estimate the directions p k that concentrate the maximum variability of the available data, as weighed by the measured covariance matrixes of measurement fluctuations. In order to overcome numerical issues related to the high dimensionality and non-invertible nature of Vxi during analytical computations, an iterative stochastic procedure is proposed for calculation of the main directions that constitute the columns of matrix P. The proposed step-by-step calculation is summarized in Equations (15)–(24). First, it is assumed that the initial candidates for the principal directions can be described in the form:
p k , i ( j , t ) = p k , r e f ( j , t ) + a k , i ( t ) sin { 2 π [ f k , i ( t ) . j m + b k , i ( t ) ] }
where p k i ( j , t ) is the jth component of the ith candidate for the principal direction pk, k = 1 ... M, i = 1 ... NC, at iteration t. M (the number of latent variables) and NC (the number of candidates, assumed to be equal to 2000, unless stated otherwise) are numerical parameters that must be provided by the user. p k ,   r e f i is a reference direction (assumed to be equal to 1 at iteration 1), needed for proper normalization of the calculated values; j is a counter, ranging from one to m, for the dimension of the space of independent measurements X . a m i n ( t ) < a k , i ( t ) < a m a x ( t ) , f m i n ( t ) < f k , i ( t ) < f m a x ( t ) and b m i n ( t ) < b k , i ( t ) < b m a x ( t ) are random numbers that follow the uniform distribution and define, respectively, the amplitude, the frequency and the lag of a characteristic sinusoidal signal. Equation (15) assumes that the principal directions can be represented as smooth functions of the wavelength, as in usual Fourier decompositions [49]. Equation (15) suggests that the principal direction can be represented by a sum of random signals with different amplitudes and frequencies. Next, the maximum likelihood objective function presented in Equation (13) can be calculated for each candidate of principal direction, as presented in Equation (16):
F k , i ( t ) = i = 1 n ( X i l = 1 k [ ( X i T . p l , i ( t ) )   p l , i ( t ) ] ) T . V X i 1 . ( X i l = 1 k [ ( X i T . p l , i ( t ) )   p l , i ( t ) ] )
so that the best set of candidates for principal directions, P o p t ( t ) , can be selected as the set that leads to the lowest values of F k , i ( t ) at iteration t, i = 1 ... NC, k = 1 ... M, F k , o p t ( t ) . The procedure can then be repeated iteratively, by imposing:
p k , r e f ( t + 1 ) = p k , o p t ( t )
a m i n ( t + 1 ) = ( a m i n ( t ) + a m a x ( t ) 2 ) μ ( a m a x ( t ) a m i n ( t ) 2 )
a m a x ( t + 1 ) = ( a m i n ( t ) + a m a x ( t ) 2 ) + μ ( a m a x ( t ) a m i n ( t ) 2 )
f m i n ( t + 1 ) = ( f m i n ( t ) + f m a x ( t ) 2 ) μ ( f m a x ( t ) f m i n ( t ) 2 )
f m a x ( t + 1 ) = ( f m i n ( t ) + f m a x ( t ) 2 ) + μ ( f m a x ( t ) f m i n ( t ) 2 )
b m i n ( t + 1 ) = ( b m i n ( t ) + b m a x ( t ) 2 ) μ ( b m a x ( t ) b m i n ( t ) 2 )
b m a x ( t + 1 ) = ( b m i n ( t ) + b m a x ( t ) 2 ) + μ ( b m a x ( t ) b m i n ( t ) 2 )
where μ is a contracting factor that controls the convergence and must be provided by the user (made equal to 0.9, unless stated otherwise). The procedure must be halted when numerical convergence is detected:
| F k , o p t ( t + 1 ) F k , o p t ( t ) | F k , o p t ( t ) < δ
where δ is a numerical parameter that must be provided by the user in order to guarantee the accuracy of the final response. For practical purposes, δ was made equal to 1.0 × 10−4 in all simulations, unless stated otherwise. As observed experimentally, the use of larger δ values can lead to inaccurate and oscillatory responses, while the use of smaller δ values can cause a significant increase in computational time without any significant improvement in the obtained numerical results.
Finally, after calculation of the principal directions, the calibration model parameters can be computed as illustrated in Equations (7)–(10), keeping the principal directions constant. The calibration modeling can be repeated for an increasing number of latent variables for determination of the best H-PCR model. The optimum number of latent variables can be determined with help of cross-validation strategies, as usually performed in the literature [20].
Alternatively, Equations (15)–(24) can be used to generate the heteroscedastic PLS algorithm. As shown in the next sections, the prediction variances of outputs are heteroscedastic because of the heteroscedasticity of inputs and estimation of model parameters [46]. Consequently, if Equation (16) is replaced by Equations (7)–(10) to define the objective function and the principal components, and if Vy in Equations (7) and (8) is assumed to be the covariance matrix of model outputs, then the PLS technique becomes heteroscedastic and respects the natural variability of the analyzed system.

2.3. Experimental

The experimental procedure was divided into two parts. In the first part, the statistical behavior of NIR data was characterized as functions of the measurement conditions, through manipulation of stirring velocities, temperatures and concentrations. These variables were manipulated because they are frequently disturbed in real reaction environments. In the second part, model calibrations were performed using CLS, PCR, H-PCR and PLS techniques to predict concentrations as functions of measured NIR spectra, as usually performed at the plant site to monitor the course of chemical reactions. These techniques were applied in a simple problem, which consisted of analyzing mixtures of xylene and toluene with help of NIR spectroscopy at different concentrations, temperatures and stirring velocities, as described in Table 1.
Xylene and toluene were used as models because they are completely miscible and present very similar NIR spectra [18], which makes the calibration process more difficult and interesting for analyses of numerical performances. Detailed descriptions of the experimental setup and experimental methods have been presented by Monteiro et al. (2017) [18]. Despite that, it is important to say that standard factorial designs were used to build the experimental grid and that spectral data were collected at random. This was possible in the present study because the performed experiments were relatively simple. It is also important to emphasize that NR = 10 replicates were obtained at each distinct experimental condition and used to perform the statistical analyses, so that n = 990 independent NIR spectra were used for numerical analyses (11 compositions, 3 temperatures, 3 stirring speeds, 10 replicates).
NIR spectra were measured in regular intervals of 2 min, using an in situ spectrophotometer NIR-6500 (NIRSystems, Inc., Silver Spring, MD, USA), working in the transflectance mode in the spectral region of 400–2500 nm. The spectra were collected using a stainless steel transflectance probe with constant pathlength of 34 mm and diameter of 19 mm, connected to the instrument through a fiber optics cable of 3 m. The fiber optics cable comprised three bundles of fibers. The light bulb contained a filament of tungsten and the light detector was based on the standard PbS technology. Data acquisition was performed with NIR Spectral Analysis Software version 3.30, a software provided by the manufacturer of the NIR spectrometer (Vision(R)). Spectra were recorded as averages of 32 readings with precision of 0.1 nm, according to spectrophotometer specification (NIRSystem Process Analytics Manual version 1.0 NIRSystems Inc., Silver Spring, MD, USA). Spectral bandwidth was set to 10 ± 1 nm and the dynamic range was equal to 2–3 AU.
Calibration models were built to provide the xylene content of the analyzed organic solution as functions of obtained NIR spectra. As usual in this field, first and second derivative spectra were calculated to magnify the differences between toluene and xylene measurements and to facilitate the calibration process, since this procedure can remove base line variations, remove measurement noise and discriminate overlapping bands [18]. Derivatives were computed with second-degree interpolating polynomials and five neighboring datapoints, simultaneously providing a smoothing effect.
It is important to observe that dataset splitting techniques are normally used to provide more robust parameter estimates and model performances. In the case of the present work, all analyzed calibration procedures allowed for reliable global estimations, concentrating at least 90% of the variability of the data, indicating that robust model performances were indeed obtained, as shown in the following sections. This is due to the large number of replicates in the dataset (NR = 10), which was uncommon in most previous experimental works. Consequently, random splitting of the datasets leads to smaller but statistically similar datasets, which is an additional benefit of the proposed analyses. Despite that, we must emphasize that dataset splitting was indeed used for purposes of model building, as 10% of the dataset was saved for cross-validation and used for selection of the proposed calibration models and characterization of model performances.
All calculations performed in the present work were carried out in Fortran in a microcomputer (Intel(R) Core™ i7-7500 CPU 2,7 GHz, 16 Gb of RAM and 1 TB of HD, 64 bits) equipped with a data acquisition board (analog input data acquisition board, model IPC-DAS, PCI-1002H High Gain 16-Ch, screw-terminal DB-1825), used for data acquisition and temperature control.

3. Results and Discussion

3.1. Preliminary Geometrical Interpretation of H-PCR

For illustrative purposes and better understanding of the proposed H-PCR scheme, it is convenient to analyze the behavior of simple calibration problems defined in low-dimensional input spaces. For this reason, it is assumed first that Equation (16) can be rewritten for one-dimensional problems in the form:
F 1 , l ( t ) = i = 1 n ( x i α 1 , l ( t ) 2   x i ) 2 σ i 2
that leads to the obvious optimal solution
α 1 , o p t ( t ) = ± 1
which constitutes the trivial solution for the eigenvectors embedded in one-dimensional spaces, showing the apparent consistency of the proposed approach. Similarly, Equation (16) can be rewritten for two-dimensional problems in the form:
F 1 , l ( t ) = i = 1 n ( [ x 1 x 2 ] i ( x 1 , i   p 1 , l ( 1 , t ) + x 2 , i   p 1 , l ( 2 , t ) ) [ p 1 , l ( 1 , t ) p 1 , l ( 2 , t ) ] ) T . [ σ 1 , i 2 ρ i   σ 1 , i σ 2 , i ρ i   σ 1 , i σ 2 , i   σ 2 , i 2 ] 1 . ( [ x 1 x 2 ] i      ( x 1 , i   p 1 , l ( 1 , t ) + x 2 , i   p 1 , l ( 2 , t ) ) [ p 1 , l ( 1 , t ) p 1 , l ( 2 , t ) ] )
Assuming, for illustrative purposes, that two populations of datapoints are available, with sizes n1 and n2, possibly obtained at two distinct operation conditions 1 and 2, then Equation (27) can be rewritten in the form:
F 1 , l ( t ) = i = 1 n 1 ( [ x 1 x 2 ] i ( x 1 , i   p 1 , l ( 1 , t ) + x 2 , i   p 1 , l ( 2 , t ) ) [ p 1 , l ( 1 , t ) p 1 , l ( 2 , t ) ] ) T . [ σ 1 , 1 2 ρ 1   σ 1 , 1 σ 1 , 2 ρ 1   σ 1 , 1 σ 1 , 2   σ 1 , 2 2 ] 1 . ( [ x 1 x 2 ] i      ( x 1 , i   p 1 , l ( 1 , t ) + x 2 , i   p 1 , l ( 2 , t ) ) [ p 1 , l ( 1 , t ) p 1 , l ( 2 , t ) ] )      + i = 1 n 2 ( [ x 1 x 2 ] i ( x 1 , i   p 1 , l ( 1 , t ) + x 2 , i   p 1 , l ( 2 , t ) ) [ p 1 , l ( 1 , t ) p 1 , l ( 2 , t ) ] ) T . [ σ 2 , 1 2 ρ 2   σ 2 , 1 σ 2 , 2 ρ 2   σ 2 , 1 σ 2 , 2   σ 2 , 2 2 ] 1 . ( [ x 1 x 2 ] i      ( x 1 , i   p 1 , l ( 1 , t ) + x 2 , i   p 1 , l ( 2 , t ) ) [ p 1 , l ( 1 , t ) p 1 , l ( 2 , t ) ] )
In order to highlight the main characteristics of the H-PCR procedure, it was assumed that sets 1 and 2 contained n1 = n2 = 100 and that the experimental fluctuations could be described by the following covariance matrices of measurement fluctuations:
V x ( 1 ) = [ σ 1 , 1 2 ρ 1   σ 1 , 1 σ 1 , 2 ρ 1   σ 1 , 1 σ 1 , 2   σ 1 , 2 2 ] = [ 1 0.09 0.09 0.01 ] V x ( 2 ) = [ σ 2 , 1 2 ρ 2   σ 2 , 1 σ 2 , 2 ρ 2   σ 2 , 1 σ 2 , 2   σ 2 , 2 2 ] = [ 1 0.0 0.0 0.81 ]
Pseudo-random numbers were then generated, assuming the normal distribution with null mean value, as shown in Figure 1a. One can clearly see the existence of two distinct populations of datapoints (presented in different colors) in Figure 1a, with different error contents and different degrees of collinearity.
Figure 1b shows the most influential principal directions of the full set of available datapoints, when the standard PCA procedure and the proposed H-PCR scheme were used. One can clearly see that the H-PCR procedure weighed the information contents of the distinct data populations and calculated a principal direction that was strongly influenced by the information provided by the most precise measurements. On the other hand, the standard PCA analysis disregarded the information contents of the available data and provided a principal direction that described the overall variability of the available measurements, assuming implicitly that V x ( 1 ) = V x ( 2 ) = I . Nevertheless, as discussed previously, many experimental studies have shown that this assumption is usually incorrect and can lead to serious misinterpretation of the available experimental data [18,23,24].

3.2. Analysis of NIR Spectra

As reported previously [18], error and correlation analyses of actual NIR spectral data provided the following results:
  • The covariance matrixes of measurement fluctuations depend on the measurement condition and on the considered spectral region;
  • The increase of stirring velocity increases the variability of spectral measurements because of the unavoidable shaking of mechanical parts and possible formation of air bubbles (as in real monitoring environments);
  • The increase of temperature increases the variability of spectral measurements, possibly because of the lower system viscosity and increased rates of air bubbles formation;
  • Spectral measurements in the NIR region are subject to strongly correlated fluctuations, so that measurement error fluctuations are not independent, which must be considered during quantitative analyses.
Therefore, based on the previous paragraphs, the use of H-PCR techniques for model building and calibration can be necessary, as obtained spectral measurements in the NIR region were subject to non-uniform and collinear measurement uncertainties that depended on measurement conditions. Similar characteristics can also be observed in other experimental systems, as already discussed. It is important to emphasize that the qualitative behaviors of first-derivative and second-derivative spectra of the analyzed spectral data were very similar to the behavior of the crude spectra, being sensitive to changes of temperature and stirring speeds and presenting variances and covariances that responded to changes of wavelengths, temperature and stirring speeds. Monteiro et al. (2017) [18] showed that the use of standard pretreatment techniques did not change the overall behavior of the spectral variability and it could be noted that differences of at least one order of magnitude could be observed for computed variances in all cases.

3.2.1. Classical Linear Squares (CLS)

A simple linear calibration was performed with the selected data with the help of the software Statistica 6.0 [50]. The used model was defined as
Cx = a + b A
where Cx is the xylene concentration (vol%), A is the intensity of the absorbance of the first derivative of measured NIR spectra and a and b are parameters of the calibration model, respectively linear and angular coefficients. Calibration models were initially built with different datasets, using all available data for specific wavelength values. Then, data were grouped in terms of temperature, stirring speed or both for specific wavelength values. Stirring speed and temperature variations significantly affected the performances of the calibration models, because of the modification of the statistical behavior of the collected spectral data. For this reason, most models were also built for constant temperature and stirring speed conditions. The obtained results showed that the model performances were usually bad and significantly influenced by the wavelength, temperature and stirring variations. In order to illustrate this behavior, Figure 2 shows the model performance for stirring speed of 350 rpm at the wavelength of 2052 nm and Figure 3 shows the model performance for temperature of 60 °C at the wavelength of 2052 nm. Calculations have been made for different wavelengths and all of them presented similar behaviors at the distinct operation conditions, showing that improved modeling procedures should be pursued.

3.2.2. Analysis of the Vx Matrix

In order to analyze the structure of the covariance matrix of measurement error, Vx, 80 spectral measurements were performed for a solution containing 20 vol% xylene and 80 vol% toluene at 30 °C and stirring velocity of 250 rpm. Then, the 79 eigenvectors and eigenvalues of the Vx matrix were calculated. From this analysis it could be concluded that not more than four eigenvalues were sufficient to explain 99% of the total variability of the problem, clearly indicating the small number of sources of variability in the system (when compared to the number of spectral responses, m) and the numerical problems related to the inversion of Vx, as described previously and completely neglected in the available NIR literature. This can be regarded as a particularly important result, because it clearly indicates that suitable pseudo-inverses should be obtained to represent the inverse of Vx in maximum likelihood calibration procedures.
The four eigenvectors that concentrated 99% of the problem variability are presented in Figure 4. This result can be regarded as very important because it clearly indicates that the usual principal directions, as calculated with standard PCR techniques, may not constitute the most suitable set of directions for modeling purposes in heteroscedastic problems, given the effect of varying measurement errors on the final performances of calibration models. The accumulated variability for each eigenvector included in the analysis is presented in Figure 5.

3.3. PLS, PCR and H-PCR Calibrations

The principal directions were calculated using PLS, PCR and H-PCR methods. In the cases of PLS and H-PCR calibrations, the principal directions were calculated with help of the stochastic numerical procedure developed in Section 2.2, considering the intrinsic heteroscedastic nature of experimental variances. It could be noted that the directions calculated when Vx variations were taken into consideration were very different from the directions calculated when these variations were neglected. Therefore, information regarding the variations of Vx can definitely affect the final calibration model performances, as shown by Monteiro et al. (2017) [18] for the first time and illustrated in Section 3.1. As observed experimentally, differences increased when increasing amounts of information were extracted (in other words, differences are more significant for the fifth principal direction than for the first principal direction). Figure 6a–e presents the five first principal directions, as calculated for calibrations performed for illustrative purposes with PLS, PCR and H-PCR at 90 °C and 450 rpm, showing that variations of Vx change the principal directions and can affect the model calibration, clearly indicating that variations of Vx should not be disregarded a priori, as usually done and as illustrated in Section 3.1. The less significant modification of the first principal directions is probably related to the fact that the first directions tend to reflect more clearly the absolute variations of the variable coordinates (or variations of average responses), while the other directions tend to reflect more clearly the measurement variability around the main averages, which are more sensitive to the Vx values.
The evolutions of the model performances as functions of the number of latent variables, as calculated for calibrations performed for illustrative purposes with PLS, PCR and H-PCR at 90 °C and 450 rpm, are presented in Figure 7, Figure 8 and Figure 9. As one can see in Figure 7 and Figure 8, the calibration objective function values decreased and the model correlation coefficients increased when the number of latent values increased, as one might already expect. However, the speeds of variation of both objective function values and model correlations with the number of latent values depended on the particularly analyzed numerical technique. When 10% of the original dataset was selected at random and used for cross-validation, 10 latent variables were selected for all the models.
As one might already expect, obtained correlation coefficients were higher for the PLS approach (Figure 8). This is not surprising because the PLS approach attempts to select the latent variables that maximize the correlation among measured and calculated responses, while the PCR and H-PCR procedures define the latent variables based on some specific features of the input variable space, as already described. Consequently, the PLS technique establishes a sort of threshold of maximum correlation performance for the calibration system based on latent variables. In spite of that, one must observe that calibration performances obtained with the proposed H-PCR approach were always better than the ones obtained with the usual PCR approach and close to the performances of the PLS model when the number of latent variables was higher than three. This clearly shows that the explicit consideration of heteroscedasticity in the numerical formulation can benefit the quantitative calibration step. Table 2 and Figure 10 present the prediction variances of model outputs at the different concentrations used for model calibration at 90 °C and 450 rpm, clearly indicating the heteroscedastic behavior of the prediction variances of model outputs and justifying the use of the heteroscedastic PLS procedure for modeling purposes.
It is important to observe that the use of a high number of latent variables should not be regarded as a disadvantage of the proposed analyses. Firstly, one must observe that the use of 10 latent variables is not bad for practical purposes, as the model is still sufficiently compact for fast and reliable use in real problems in this case. Besides, model performances could be regarded as good in all cases where the number of latent variables was higher than six. Secondly, one must also observe that the selected PLS model provided a correlation of 0.995 for 10 latent variables, while the selected PCR model provided a correlation of 0.975 and the selected H-PCR model provided a correlation of 0.978, which could be regarded as excellent in all cases.
It is also important to observe that a stochastic procedure was used for computation of latent variables and directions in the proposed H-PCR approach. For this reason, it must be noted that convergence of the proposed method was assured, as shown in Figure 11, which shows the first principal directions obtained with the H-PCR model for different numerical runs. It can be noted that the calculated directions (and model responses) were essentially the same in all cases, characterizing the appropriate convergence of the proposed approach.

4. Conclusions

In the present work, a new heteroscedastic principal component regression (H-PCR) procedure was presented. By incorporating the variations of the covariance matrix of measurement fluctuations (Vx) into the analysis, the proposed procedure can provide more reliable principal directions and model calibrations. Particularly, a stochastic algorithm was proposed and implemented to allow for H-PCR calculations.
Calibration models were built in a simple experimental problem (mixtures of xylene and toluene) in order to compare the performances of CLS (classical least squares), PCR, H-PCR and PLS (partial least squares) techniques. It was initially observed that CLS calibration models were usually inefficient and unable to deal with the variations of the analyzed experimental problem. Then, it was shown that the principal directions calculated when variations of Vx are taken into consideration can be quite different from the ones calculated when variations of Vx are disregarded, indicating the influence of the measurement fluctuations on the model calibration step. Finally, it was shown that H-PCR models can allow for appropriate calibration of NIR data and that identification of the most compact and reliable calibration model can be performed better with the H-PCR technique than with the PCR technique. It is also important to observe that the analysis of the Vx, as obtained experimentally, indicated that few eigenvalues can concentrate most of the system variability, confirming that Vx can be nearly singular, demanding the use of pseudo-inverse procedures for proper implementation of H-PCR techniques.

Author Contributions

Conceptualization, J.C.P., T.d.S.F. and A.d.R.D.M.; methodology, J.C.P., T.d.S.F. and A.d.R.D.M.; software, J.C.P., A.d.R.D.M. and T.d.S.F.; validation, J.C.P., T.d.S.F. and A.d.R.D.M.; formal analysis, J.C.P.; investigation, A.d.R.D.M. and T.d.S.F.; resources, J.C.P., A.d.R.D.M. and T.d.S.F.; data curation, J.C.P., A.d.R.D.M. and T.d.S.F.; writing—original draft preparation, A.d.R.D.M.; writing—review and editing, J.C.P., A.d.R.D.M. and T.d.S.F.; visualization, J.C.P. and A.d.R.D.M.; supervision, J.C.P.; project administration, J.C.P. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

The full set of collected spectral data can be provided for further analyses if required.

Acknowledgments

The authors thank CNPq (Conselho Nacional de Desenvolvimento Científico e Tecnológico). CAPES (Coordenação de Aperfeiçoamento de Pessoal de Nível Superior) and FAPERJ (Fundação Carlos Chagas Filho de Apoio à Pesquisa do Estado do Rio de Janeiro) for financial support and scholarships.

Conflicts of Interest

The authors declare no conflict of interest.

Nomenclature

SymbolDescription
yVector model responses
xiAvailable data (or inputs)
nTotal number of data
σijStandard deviation at experimental condition i
σ2Variance
μContracting factor to convergence control
ρCorrelation factor
FobjObjective function
λEigenvalues
ΛDiagonal matrix with eigenvalues
DMatrix with eigenvectors
φiVariability fraction along the ith direction
VxiMatrix of variance
pPrincipal direction
amin, amaxAmplitude interval
bmin, bmaxLag interval
fmin, fmaxFrequency interval
δTolerance
σrReduction factor

References

  1. Pasquini, C. Near Infrared Spectroscopy: Fundamentals. Practical Aspects and Analytical Applications. J. Braz. Chem. Soc. 2003, 14, 198–219. [Google Scholar] [CrossRef] [Green Version]
  2. Bellon, V.; Vigneau, J.L.; Leclercq, M. Feasibility and Performances of a New. Multiplexed. Fast and Low-Cost Fiber-Optic NIR Spectrometer for the On-Line Measurement of Sugar in Fruit. Appl. Spectroscop. 1993, 47, 1079–1983. [Google Scholar] [CrossRef]
  3. Büttner, G. Use of NIR Analysis for refineries. Process Control Qual. 1997, 9, 197–203. [Google Scholar]
  4. Roche, M.; Helle, M.; Saxén, H. Principal Component Analysis of Blast Furnace Drainage Patterns. Processes 2019, 7, 519. [Google Scholar] [CrossRef] [Green Version]
  5. Reis, M.S.; Gins, G. Industrial Process Monitoring in the Big Data/Industry 4.0 Era: From Detection. to Diagnosis. to Prognosis. Processes 2017, 5, 35. [Google Scholar] [CrossRef] [Green Version]
  6. Palací-López, D.; Borràs-Ferrís, J.; da Silva de Oliveria, L.T.; Ferrer, A. Multivariate Six Sigma: A Case Study in Industry 4.0. Processes 2020, 8, 1119. [Google Scholar] [CrossRef]
  7. Severson, K.A.; Molaro, M.C.; Braatz, R.D. Principal Comp Analysis of Process Datasets with Missing Values. Processes 2017, 5, 38. [Google Scholar] [CrossRef] [Green Version]
  8. Pearson, K. On lines and planes of closest fit to systems of points in space. Lond. Edinb. Dublin Philos. Mag. J. Sci. 1901, 2, 559–572. [Google Scholar] [CrossRef] [Green Version]
  9. Hotelling, H. Analysis of a complex of statistical variables into principal components. J. Educ. Psychol. 1933, 24, 417–441. [Google Scholar] [CrossRef]
  10. Jolliffe, I.T. Principal Component Analysis, 2nd ed.; Springer: New York, NY, USA, 2002. [Google Scholar]
  11. McDonald, B.F.; Prebble, K.A.J. Some applications of near-infrared reflectance analysis in the pharmaceutical industry. J. Pharm. Biomed. Anal. 1993, 11, 1077–1085. [Google Scholar] [CrossRef]
  12. Gupta, M.R. Understanding Stochastic Optimization of PCA, PLS and CCA Problem with a Focus on their Performance in Noisy Settings; Visvesvaraya Technological University: Karnataka, India, 2019. [Google Scholar] [CrossRef]
  13. Padilha, L.; Carretoni, C.F.; Machado, F.; Nele, M.; Pinto, J.C. Analysis of polyolefin compositions through near infrared spectroscopy. J. Appl. Polym. Sci. 2014, 131, 40127. [Google Scholar] [CrossRef]
  14. Hong, D.; Balzano, L.; Fessler, J.A. Assymptotic performance of PCA for high-dimensional heteroscedastic data. J. Multivar. Anal. 2018, 167, 435–452. [Google Scholar] [CrossRef] [PubMed]
  15. Santos, A.F.; Pinto, J.C.; Silva, M.F.; Lenzi, M.K. Monitoring and control of polymerization reactors using NIR Spectroscopy. Polym.-Plast. Technol. Eng. 2005, 44, 1–61. [Google Scholar] [CrossRef]
  16. Bhatt, N.P.; Mitna, A.; Narasimhan, S. Multivariate calibration of Non replicated measurements for heteroscedastic errors. Chemom. Intell. Lab. Syst. 2005, 85, 70–81. [Google Scholar] [CrossRef] [Green Version]
  17. Rinnan, A.; van der Berg, F.; Engelsen, S.B. Review of the most common pre-processing techniques for near-infrared spectra. Trends Anal. Chem. 2009, 8, 1201–1222. [Google Scholar] [CrossRef]
  18. Monteiro, A.R.D.; Feital, T.S.; Pinto, J.C. Statistical Aspects of Near-Infrared Spectroscopy for Characterization of Errors and Model Building. Appl. Spectrosc. 2017, 71, 1665–1676. [Google Scholar] [CrossRef]
  19. Shah, S.L.; Narasimhan, S. Model identification and error covariance matrix estimation from noisy data using PCA. Control Eng. Pract. 2008, 16, 146–155. [Google Scholar]
  20. Wentzell, P.D.; Andrews, D.T.; Hamilton, D.C.; Faber, K.; Kowalsky, B.R. Maximum Likelihood Component Analysis”. J. Chemom. 1997, 11, 339–366. [Google Scholar] [CrossRef]
  21. Wentzell, P.D.; Legar, L.; Vega-Montoto, M.N. Methods for systematic investigation of measurement error covariance matrices. Chemom. Intell. Lab. Syst. 2005, 77, 181–205. [Google Scholar]
  22. Hong, D.; Gilman, K.; Balzano, L.; Fessler, J.A. HePPCAT: Probabilistic PCA for data with Heteroscedastic noise. IEEE Transactions on Signal Processing 2021, 69, 4819–4834. [Google Scholar] [CrossRef]
  23. Larentis, A.L.; Bentes, A.M.P., Jr.; Resende, N.S.; Salim, V.M.M.; Pinto, J.C. Analysis of Experimental Errors in Catalytic Tests for Production of Synthesis Gas. Appl. Catal. A Gen. 2003, 2, 365–379. [Google Scholar] [CrossRef]
  24. Ros, S.D.; Jones, M.D.; Mattia, D.; Schwaab, M.; Coutinho, E.B.; Neto, R.C.R.; Noronha, F.B.; Pinto, J.C. Microkinetic Analysis of Ethanol to 1.3-Butadiene Reactions over MgO-SiO2 Catalysts Based on Characterization of Experimental Fluctuations. Chem. Eng. J. 2017, 308, 988–1000. [Google Scholar] [CrossRef] [Green Version]
  25. Haaland, D.M.; Chambers, W.B.; Keenan, M.R.; Melgaard, D.K. Multi-window classical least-squares multivariate calibration methods for quantitative ICP-AES analyses. Appl. Spectrosc. 2000, 54, 1291–1302. [Google Scholar] [CrossRef] [Green Version]
  26. Haaland, D.M.; Melgaard, D.K. New prediction-augmented classical least-squares (PACLS) methods: Application to unmodeled interferents. Appl. Spectrosc. 2000, 54, 1303–1312. [Google Scholar] [CrossRef] [Green Version]
  27. Haaland, D.M.; Melgaard, D.K. New Classical Least-Squares/Partial Least-Squares Hybrid Algorithm for Spectral Analyses. Appl. Spectrosc. 2001, 55, 1–8. [Google Scholar] [CrossRef]
  28. Melgaard, D.K.; Haaland, D.M.; Wehlburg, C.M. Concentration Residual Augmented Classical Least Squares (CRACLS): A Multivariate Calibration Method with Advantages over Partial Least Squares. Appl. Spectrosc. 2002, 56, 615–624. [Google Scholar] [CrossRef]
  29. Bouckaert, R.R.; Frank, E.; Holmes, G.; Fletcher, D. A comparison of methods for estimating prediction intervals in NIR spectroscopy: Size matters. Chemom. Intell. Lab. Syst. 2011, 109, 139–145. [Google Scholar] [CrossRef] [Green Version]
  30. Enke, D.; Zhong, X. Forecasting daily stock market return using dimensionality reduction. Expert Syst. Appl. 2017, 67, 126–139. [Google Scholar]
  31. Dervilis, N.; Shi, H.; Worden, K.; Cross, E.J. Exploring Environmental and Operational Variations in SHM Data Using Heteroscedastic Gaussian Processes. In Dynamics of Civil Structures; Pakzad, S., Juan, C., Eds.; Conference Proceedings of the Society for Experimental Mechanics Series; Springer: Cham, Switzerland, 2016; Volume 2, pp. 145–153. [Google Scholar]
  32. Marbach, R. On Wiener filtering and the physics behind statistical modeling. J. Biomed. Opt. 2002, 7, 130–147. [Google Scholar] [CrossRef]
  33. Marbach, R. A new method for multivariate calibration. J. Near Infrared Spectrosc. 2005, 13, 241–254. [Google Scholar] [CrossRef]
  34. Feital, T.; Kruger, U.; Dutra, J.; Pinto, J.C.; Lima, E.L. Modeling and Performance Monitoring of Multivariate Multimodal Processes. AIChE J. 2013, 59, 1557–1569. [Google Scholar] [CrossRef]
  35. Wentzell, P.D.; Andrews, D.T.; Kowalsky, B.R. Maximum likelihood multivariate calibration. Anal. Chem. 1997, 69, 2299–2311. [Google Scholar] [CrossRef]
  36. Riley, M.R.; Crider, H.M. The Effect of Analyte Concentration Range on Measurement Errors Obtained by NIR Spectroscopy. Talanta 2000, 52, 473–484. [Google Scholar] [CrossRef]
  37. Bro, R. Multivariate calibration—What is in chemometrics for the analytical chemist? Anal. Chim. Acta 2003, 500, 185–194. [Google Scholar] [CrossRef]
  38. Ferreira, M.M.C.; Antunes, A.M.; Melgo, M.S.; Volpe, P.L.O. Quimiometria I: Calibração multivariada. um tutorial. Quim. Nova 1999, 22, 724–731. [Google Scholar] [CrossRef]
  39. Overall, J.E.; Klett, C.J. Applied Multivariate Analysis; McGraw-Hill Book Company: New York, NY, USA, 1972. [Google Scholar]
  40. Tobias, R.D. An Introduction to Partial Least Squares Regression; SAS Institute Inc.: Cary, NC, USA, 1995. [Google Scholar]
  41. Abdi, H. Partial Least Squares (PLS) Regression. In Encyclopedia for Research Methods for the Social Sciences; Sage: Thousand Oaks, CA, USA, 2003; pp. 792–795. [Google Scholar]
  42. Shlens, J. A Tutorial on Principal Component Analysis; Center of Neural Science: New York, NY, USA, 2009. [Google Scholar]
  43. Ge, Z.; Song, Z. Process Monitoring Based on Independent Component Analysis—Principal Component Analysis (ICA-PCA) and Similarity Factors. Ind. Eng. Chem. Res. 2007, 46, 2054–2063. [Google Scholar] [CrossRef]
  44. Hatcher, L. A Step-by-Step Approach to Using the SAS System for Factor Analysis and Structural Equation Modeling; SAS Institute Inc.: Cary, NC, USA, 1994. [Google Scholar]
  45. Feital, T. Monitoramento da Condição de Processos Industriais. Ph.D. Thesis, Rio de Janeiro Federal University, Rio de Janeiro, Brazil, 2014. [Google Scholar]
  46. Schwab, M.; Pinto, J.C. Análise de Dados Experimentais I. Fundamentos de Estatística e Estimação de Parâmetros, 1st ed.; E-Papers: Rio de Janeiro, Brazil, 2007. [Google Scholar]
  47. Wentzell, P.D.; Lohnes, M.T. Maximum Likelihood principal component analysis with correlated measurement errors: Theoretical and practical considerations. Chemom. Intell. Lab. Syst. 1999, 45, 65–85. [Google Scholar] [CrossRef]
  48. Lima, E.L. Álgebra Linear. In Coleção Matemática Universitária, 10th ed.; IMPA Publication: Rio de Janeiro, Brazil, 2020. [Google Scholar]
  49. Figueredo, D.G. Análise de Fourier e Equações Diferenciais Parciais. In Coleção Projeto Euclides; IMPA: Rio de Janeiro, Brazil, 1977. [Google Scholar]
  50. SAS Institute INC. SAS/STATTM SAS User’s Guide; SAS Institute Inc.: Cary, NC, USA, 2021. [Google Scholar]
Figure 1. Effect of measurement fluctuations on the principal directions. (a) Datasets with different input populations. (b) Most influential principal directions calculated with standard PCA analysis (red) and the proposed H-PCR procedure (blue).
Figure 1. Effect of measurement fluctuations on the principal directions. (a) Datasets with different input populations. (b) Most influential principal directions calculated with standard PCA analysis (red) and the proposed H-PCR procedure (blue).
Processes 09 01686 g001aProcesses 09 01686 g001b
Figure 2. Simple linear calibration model performance at 2052 nm for stirring speed of 350 rpm.
Figure 2. Simple linear calibration model performance at 2052 nm for stirring speed of 350 rpm.
Processes 09 01686 g002
Figure 3. Simple linear calibration model performance at 2052 nm for temperature of 60 °C.
Figure 3. Simple linear calibration model performance at 2052 nm for temperature of 60 °C.
Processes 09 01686 g003
Figure 4. The four eigenvectors of the covariance matrix of NIR spectral measurement fluctuations evaluated for solutions containing 20 vol% xylene and 80 vol% toluene at 30 °C and stirring velocity of 250 rpm.
Figure 4. The four eigenvectors of the covariance matrix of NIR spectral measurement fluctuations evaluated for solutions containing 20 vol% xylene and 80 vol% toluene at 30 °C and stirring velocity of 250 rpm.
Processes 09 01686 g004
Figure 5. Total accumulated variability for xylene–toluene mixture analysis.
Figure 5. Total accumulated variability for xylene–toluene mixture analysis.
Processes 09 01686 g005
Figure 6. Principal directions of model calibrations using PLS, PCR and H-PCR at 90 °C and 450 rpm (a) first principal direction; (b) second principal direction; (c) third principal direction; (d) fourth principal direction; (e) fifth principal direction.
Figure 6. Principal directions of model calibrations using PLS, PCR and H-PCR at 90 °C and 450 rpm (a) first principal direction; (b) second principal direction; (c) third principal direction; (d) fourth principal direction; (e) fifth principal direction.
Processes 09 01686 g006
Figure 7. Calibration objective functions for PLS, PCR and HPCR models at 90 °C and 450 rpm.
Figure 7. Calibration objective functions for PLS, PCR and HPCR models at 90 °C and 450 rpm.
Processes 09 01686 g007
Figure 8. Correlation coefficients for PLS, PCR and HPCR models at 90 °C and 450 rpm.
Figure 8. Correlation coefficients for PLS, PCR and HPCR models at 90 °C and 450 rpm.
Processes 09 01686 g008
Figure 9. Standard variances of prediction for PLS, PCR and HPCR models at 90 °C and 450 rpm.
Figure 9. Standard variances of prediction for PLS, PCR and HPCR models at 90 °C and 450 rpm.
Processes 09 01686 g009
Figure 10. Error performance for H-PCR at 90 °C and 450 rpm for different concentrations.
Figure 10. Error performance for H-PCR at 90 °C and 450 rpm for different concentrations.
Processes 09 01686 g010
Figure 11. The first principal directions for various numbers of latent variables using the H-PCR model for method convergence test.
Figure 11. The first principal directions for various numbers of latent variables using the H-PCR model for method convergence test.
Processes 09 01686 g011
Table 1. Experiments performed for model calibration.
Table 1. Experiments performed for model calibration.
Xylene Concentration [v/v%]Toluene Concentration [v/v%]Temperature [°C]Stirring Speed [rpm]
010030250350450
60250350450
90250350450
109030250350450
60250350450
90250350450
208030250350450
60250350450
90250350450
307030250350450
60250350450
90250350450
406030250350450
60250350450
90250350450
505030250350450
60250350450
90250350450
604030250350450
60250350450
90250350450
703030250350450
60250350450
90250350450
802030250350450
60250350450
90250350450
901030250350450
60250350450
90250350450
100030250350450
60250350450
90250350450
Table 2. Data for error prediction for different xylene concentrations at 90 °C and 450 rpm using H-PCR method.
Table 2. Data for error prediction for different xylene concentrations at 90 °C and 450 rpm using H-PCR method.
Concentration
[wt Fraction]
Prediction Variance
[wt Fraction]2
F Value *
00.0014244.387
0.100.0017235.331
0.200.0023787.329
0.300.0022937.068
0.400.00701621.625
0.500.0015214.688
0.600.028238.700
0.700.0020336.267
0.800.0010143.127
0.900.00004181.289
1.000.0003241.000
* Limiting F-value for confidence level of 95% is equal to 4.02. Numbers in bold are statistically different from prediction variance measured for c = 1 with 95% of confidence.
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Monteiro, A.d.R.D.; Feital, T.d.S.; Pinto, J.C. A Numerical Procedure for Multivariate Calibration Using Heteroscedastic Principal Components Regression. Processes 2021, 9, 1686. https://0-doi-org.brum.beds.ac.uk/10.3390/pr9091686

AMA Style

Monteiro AdRD, Feital TdS, Pinto JC. A Numerical Procedure for Multivariate Calibration Using Heteroscedastic Principal Components Regression. Processes. 2021; 9(9):1686. https://0-doi-org.brum.beds.ac.uk/10.3390/pr9091686

Chicago/Turabian Style

Monteiro, Alessandra da Rocha Duailibe, Thiago de Sá Feital, and José Carlos Pinto. 2021. "A Numerical Procedure for Multivariate Calibration Using Heteroscedastic Principal Components Regression" Processes 9, no. 9: 1686. https://0-doi-org.brum.beds.ac.uk/10.3390/pr9091686

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop