Presentation is loading. Please wait.

Presentation is loading. Please wait.

The Application of Partial Least Squares to Non-linear Systems in the Process Industries Elaine Martin and Julian Morris Centre for Process Analytics and.

Similar presentations


Presentation on theme: "The Application of Partial Least Squares to Non-linear Systems in the Process Industries Elaine Martin and Julian Morris Centre for Process Analytics and."— Presentation transcript:

1 The Application of Partial Least Squares to Non-linear Systems in the Process Industries Elaine Martin and Julian Morris Centre for Process Analytics and Control Technology CPACT School of Chemical Engineering and Advanced Materials University of Newcastle, England

2 Overview of the Presentation n Motivation for the Application of “Data Mining” in Non-linear Process Systems n Process Modelling and Analysis of Non-linear Systems l Constrained Partial Least Squares l Local Linear Modelling n Prediction Intervals for Non-linear Partial Least Squares n Conclusions

3 Data Rich Information Poor Enhanced Profitability and Improved Customer Satisfaction Modern Process Control Systems Process Optimisation Process Monitoring for Early Warning and Fault Detection

4 Process Modelling n Mechanistic models developed from process mass and energy balances and kinetics provide the ideal form given: u process understanding exists u time is available to construct the model. n Data based models are useful alternatives when there is: u limited process understanding u process data available from a range of operating conditions. n Hybrid models combine the two approaches.

5 Process Modelling n Traditionally two types of variables have been used in the development of a process model/process performance monitoring scheme: u Process variables (X) u Quality variables (Y) n In practice, a third class exists: u Confounding variables (Z). n A confounding variable is any extraneous factor that is related to, and affects, the two sets of variables under study (X) and (Y). n It can result in a distortion of the true relationship between the two sets of variables, that is of primary interest.

6 Global Process Variation Confidence ellipse including confounding variation Trajectory of confounding variable Confidence ellipse excluding confounding variation X X X X X X X Mal-operation

7 Partial Least Squares X-block outer relationship (monitoring) Y-block outer relationship (monitoring) Inner relationship (prediction) X and Y-block scores are calculated recursively

8 Constrained PLS n To exclude the nuisance source of variability, a necessary condition is that the derived latent variables,, and, are not correlated with the confounding variables: and for. n The idea of constrained PLS is to apply the constraints to ordinary PLS.

9 Constrained PLS n Standard constrained optimisation techniques can be used to solve the equations in each iteration. n An algorithm has been developed that enhances the efficiency of the constrained PLS algorithm. n The other steps of constrained PLS are as for ordinary PLS. n The resulting latent variables can then be used for process monitoring with the knowledge that they are not confounded with the nuisance source of variability. n Any unusual variation detected from these latent variables can then be assumed to be related to abnormal process behaviour.

10 Industrial Application n An industrial semi-discrete batch manufacturing operation is used to illustrate the advantages of the constrained PLS algorithm over ordinary PLS. n The process involves the production of a variety of products (recipes), some of which are only manufactured in small quantities to meet the requirements of specialised markets. n The objective of the analysis was to build a monitoring scheme to detect the onset of subtle changes in production and final product quality.

11 An Industrial Application n For simplicity, three recipes are selected to demonstrate the methodology. n A total of thirty-six process variables, including flow rates, pressures and temperatures, are recorded every minute, whilst five quality variables are measured off-line in the quality laboratory every two hours. n A nominal process monitoring scheme was developed using both ordinary PLS and constrained PLS from 41 ‘ideal’ batches. n A further 6 batches, A4, A10, A29, A35, A38 and B32 were used for model validation. These batches were known to lie outside the desirable specification limits.

12 Industrial Application Ordinary Partial Least Squares Latent variable 1 V Latent variable 2Latent variable 3 V Latent variable 4

13 Industrial Application Ordinary Partial Least Squares Bivariate Scores PlotHotelling’s T 2 and SPE

14 Industrial Application LV 1 versus LV 2LV 3 versus LV 4 Constrained Partial Least Squares

15 Industrial Application Hotelling’s T 2 Squared Prediction Error Constrained Partial Least Squares

16 Constrained PLS - Conclusions n Constrained PLS possesses the following important characteristics: l It removes that information correlated with the confounding variables. l The information excluded by constrained PLS contains only variation associated with the confounding variables. l The derived constrained PLS latent variables achieve optimality in terms of extracting as much of the available information as possible contained in the process and quality data.

17 Local Linear and Non-linear Multi-way Partial Least Squares Batch Monitoring

18 Batch Process Modelling and Monitoring n Batch processes exhibit non-linear, time variant and dynamic behaviour. n These characteristics challenge the linear multivariate statistical technique of multi-way Partial Least Squares (PLS) that has traditionally been applied in batch process performance monitoring. n A local model based approach has been developed to overcome these limitations.

19 Local Model Approach n Batch processes often exhibit distinct phases of process operation thus instead of modelling a non-linear time variant batch process as a global model, batch trajectories are sub- divided into individual operating regions. n A local linear PLS model is then developed for each operating region l Each model can comprise a different number of latent variables. n A validity function then creates a smooth transition between the local models to build a global non-linear model.

20 Validity Function n The validity function determines which operating region the process lies within at each time point: l Identification of the most appropriate local model l Weighting of local models if two or more are applicable n The validity function is based on a fuzzy logic rule based function: l Rules based on process variable behaviour IF x 1 is LOW AND x 2 is HIGH THEN model 1 is valid

21 Dynamic Feature Addition n Batch process variables also exhibit serial and cross correlation. n Auto Regressive with eXogenous inputs (ARX) structure is a time series structure used to model such data n Including past input and output process variables into the X data matrix of a PLS model encapsulates some of the dynamic features within the model.

22 n A fed-batch fermentation process is used to demonstrate local model performance monitoring. n 17 batches with good operating conditions and high yield were selected for the nominal model. n 30 batches with standard operating conditions but mid to low yield were used to assess the monitoring charts. n A model was developed using local dynamic PLS and global dynamic PLS. Application to an Industrial Process

23 Operating Region Specification n Operating regions specified using process knowledge l 4 operating regions identified n Regions based on conditions within the fermenter l Operating region 1: initial start up of the fermenter before optimum conditions are reached l Operating region 2: initialisation of product growth l Operating region 3: maximum growth rate of product l Operating region 4: reactions are complete

24 Operating Region Specification Addition rate of chemical A pH Potency

25 Validity Function n Fuzzy logic rules used to determine movement between operating regions l Rules applied to u Power, Substrate Addition Rate, Respiration Rate

26 Global Dynamic PLS Predicted and Actual Values of Potency Residuals of Global Dynamic PLS Model

27 Prediction using Local Dynamic PLS Model 050100150200250300350400 0 10 20 30 40 50 60 70 80 observation number potency Predicted and Actual Potency for Each Model Residuals of Local Dynamic PLS models

28 Performance Monitoring and Fault Detection Local SPE chart - varying control limit Global SPE chart - constant control limit

29 Fault Detection False alarm Process fault detected Local SPE chart Global SPE chart

30 Conclusions n Inclusion of dynamic behaviour improves model performance through the removal of process structure within the model n Fuzzy model rule based validity function approach allows batch specific movement between model n Local model approach to performance monitoring leads to control charts with improved model limits n Local model monitoring charts detect faults and process deviations earlier than the global model equivalent

31 Non-linear Partial Least Squares Prediction Intervals and Leverage

32 Non-linear Partial Least Squares n A simple approach to non-linear PLS has been to extend the input matrix (X) by including non-linear combinations of the original variables (such as logarithms, square values, cross- products, etc.) and then performing linear PLS. n If there is no a priori knowledge, then there is no limitation as to the number (and kind) of transformation that might be applied. n Thus by pre-treating data sets in this way, the number of non- linear terms can increase excessively, resulting in large input and output matrices and the results become difficult to interpret.

33 Non-linear Partial Least Squares n A more structured approach to the development of a non-linear PLS model is to modify the NIPALS algorithm by introducing a non-linear function that relates the output scores u to the input scores t, without modifying the input and output variables: n Wold et al (1989) proposed a non-linear PLS algorithm which retained the framework of linear PLS but that used second order polynomial (quadratic) regression: u j = c 0j + c 1j t j + c 2j t j 2 + e j

34 Prediction Intervals for Non-linear PLS n As for every regression technique, a measure for assessing the reliability of the predicted values is required. n A common approach is through the use of prediction intervals. These are the upper and lower confidence limits of the predicted values. n The larger the magnitude of these intervals, the less precise is the prediction. n A methodology used to evaluate prediction intervals for neural network models has been extended to linear and non-linear partial least squares algorithms.

35 Calculation of Prediction Intervals n The prediction intervals are computed using a first order Taylor series expansion and the Jacobian matrix of the functional mapping provided by the PLS algorithms. n Given a set of input and output training data, X and Y, respectively, a PLS regression model is built and the Jacobian matrix F is computed for the same set of training data n When the PLS regression model is used to predict a new output value, corresponding to a new sample of input variables, the vector of partial derivatives is computed and the prediction interval is evaluated

36 Case Study n The data were generated from the simulation of a pH neutralisation system. n Samples were collected under steady state operating conditions, thus no time correlation existed between any two consecutive samples. n The data included four input variables (flowrates of the inlet and outlet streams of the neutralisation tank) and one output variable (pH value measured in the outlet stream) and were noise free.

37 pH Neutralisation Process

38 Radial Basis Function PLS n An error based up-dating partial least squares radial basis function PLS model was built using 350 data samples. n It was constructed from one latent variable with twenty one nodes included in the inner radial basis function model. n In excess of 99% of the total variance of the output variable was captured by this representation.

39 Radial Basis Function PLS Time Series Plot for the Test Data with Predictions

40 Leverage n The quantity is similar in form to leverage. n It can be used to provide an additional metric for assessing the quality of the regression model. n This is achieved by computing the critical value of the chi-square distribution with degrees of freedom, for predefined confidence levels, e.g. 95% and 99%, and plotting the value of for each sample and the critical value of the distribution divided by (n-p).

41 Leverage n When the ‘leverage’ is smaller than the critical value, the corresponding predicted value is considered to be reliable with the predefined confidence level and vice versa, when the ‘leverage’ is larger than the limit, the predicted value is considered to be unreliable.

42 Radial Basis Function PLS Leverage for the Test Data Prediction Intervals

43 Conclusions - PLS Prediction Intervals n A methodology proposed for prediction intervals in neural network modelling was extended to non-linear PLS algorithms. n This approach was known to give approximate, but generally reliable, results whilst being less computationally expensive than other more mathematically precise approaches such as the likelihood, lack-of-fit, jackknife and bootstrap. n The development of the algorithm led to the definition of a metric, the leverage, which can be used in conjunction with, or as an alternative to, prediction intervals.

44 Conclusions DATA RICH INFORMATION POOR DATA INFORMATION KNOWLEDGE

45 Acknowledgements n EBM acknowledges Dr Pino Baffi, Dr Baibing Li, Miss Nicola Fletcher and colleagues in CPACT for the many stimulating discussions. n EBM acknowledges colleagues at BASF Ag. for stimulating the research, in particular Gerhard Krennrich and Pekka Teppola. n EBM acknowledges Pfizer for providing the data.


Download ppt "The Application of Partial Least Squares to Non-linear Systems in the Process Industries Elaine Martin and Julian Morris Centre for Process Analytics and."

Similar presentations


Ads by Google