An intelligent adaptive learning method for dynamic input and output of heterogeneous time series variables
The intelligent adaptive learning method solves the shortcomings of dynamic modeling in heterogeneous time series variable scenarios, realizes the consideration of the impact of external inputs and adaptive update of the model, accurately distinguishes faults and working mode switching, and improves the efficiency of industrial processes. Monitor accuracy and reliability.
Patent Information
- Application Number
- CN202411060826.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-05
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2044-08-05
AI Technical Summary
Existing technology is difficult to effectively separate dynamic and static information in industrial processes, and cannot consider the impact of external inputs on system dynamics. Especially in heterogeneous time series variable scenarios, it is difficult to distinguish real faults from normal working condition switching.
An intelligent adaptive learning method for the input and output dynamics of heterogeneous time series variables is proposed. It uses variational recursive filters to analyze and infer the posterior distribution of slow features, uses the expectation maximization algorithm to estimate model parameters, and designs recursive model updates and automatic Adapt process monitoring methods, monitoring statistics and cross-entropy monitoring statistics to monitor state changes online, and update models to track process changes.
It realizes the consideration of the dynamic characteristics characterization of heterogeneous time series data and the influence of external inputs, can accurately distinguish between real faults and normal working condition switching, improves the adaptability and reliability of the model, reduces the computational complexity, and is suitable for actual industrial production. .
Smart Images

Figure CN118586469B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of dynamic modeling of heterogeneous time series variables, specifically to the technical field of adaptive modeling of directed dynamic latent variables for input and output of mixed variables, and especially to an intelligent adaptive learning method for the dynamics of input and output of heterogeneous time series variables. Background Art
[0002] Modern industrial processes are usually regulated by closed-loop control systems and therefore usually have typical dynamic characteristics, in which the generated process data have strong cross-correlation and autocorrelation. A variety of dynamic process monitoring methods have been proposed for dynamic industrial processes, including multivariate statistical process monitoring methods based on time series expansion, dynamic internal models, and linear dynamic systems.
[0003] Multivariate statistical process monitoring based on time series expansion The basic idea of the multivariate statistical process monitoring method is to use historical samples to augment the data matrix, and then perform traditional multivariate statistical process monitoring methods on the augmented matrix. Such methods are simple to implement and have been widely used. However, they cannot effectively separate process static and dynamic information. In order to separate process dynamic and static fluctuations, the canonical variable analysis method is used to extract the system state variables with the largest correlation between past and future values. The feature dimensions and the number of model parameters extracted by the above method will increase significantly with the increase of the time lag order in the augmented matrix, and effective dimensionality reduction analysis cannot be achieved.
[0004] Then, the concept of internal model was introduced, among which the representative methods include dynamic internal principal component analysis, dynamic internal partial least squares and dynamic internal canonical correlation analysis. These methods assume that the low-dimensional dynamic latent variables have autoregressive properties and are only driven by unknown noise, and achieve data dimensionality reduction and dynamic modeling at the same time. In order to consider the influence of exogenous variables on the measured data, a dynamic internal canonical correlation analysis with exogenous variables was subsequently proposed. In this study, exogenous variables are external interference factors of no interest, so the model eliminates the influence of exogenous variables through regression methods before modeling.
[0005] In addition, linear dynamic systems are naturally a good choice for modeling both the dynamic and static characteristics of industrial process data. Based on linear dynamic systems, researchers have developed a first-order linear Gaussian state space model for dynamic process monitoring. By making full use of the temporal correlation of dynamic latent variables, a more comprehensive monitoring method has been developed based on probabilistic slow feature analysis. In order to capture the dynamics of higher-order systems, researchers have further proposed an autoregressive dynamic latent variable model, in which the dynamic latent variables have both autocorrelation and cross-correlation.
[0006] Although the above methods have been successfully applied to model the dynamics of time series data, few studies have considered the impact of external inputs on system dynamics. Due to the widespread use of closed-loop control systems, most industrial process data contain manipulated variables (MVs) and process variables (PVs). MVs are the inputs of closed-loop control systems, regulate the behavior of the controlled object, and affect the trajectory of PVs.
[0007] In the framework of linear dynamic systems, some studies have considered the modeling of input and output data at the same time, such as dynamic probabilistic latent variable models and input-output probabilistic slow feature analysis. These methods use two similar linear Gaussian observation models to incorporate the information of input and output variables into the latent state at the same time. However, in these studies, input and output are equally regarded as generated by latent variables, so the impact of input on system dynamics cannot be considered. In addition, these methods assume that both input and output are continuous variables and are not suitable for heterogeneous time series data.
[0008] In actual industrial scenarios, systems are usually regulated by operating variables to switch between nominal operating conditions. In addition, system parameters may drift over time due to seasonal changes, equipment aging, and unmeasured disturbances. Therefore, when the controlled process often undergoes switching between operating conditions, it is necessary to design appropriate models to reveal the impact of operating variables on system dynamics, thereby helping to distinguish between real faults and normal operating condition switching. In addition, model parameters should be adjusted in a timely manner to reduce the difference between the current model and the actual system, thereby providing reliable modeling results.
[0009] The content of the present invention deeply considers the differences in the statistical characteristics of heterogeneous time series variables, proposes an input-output mixed probability slow feature analysis model, fully considers the impact of operating variables on system dynamics in the heterogeneous time series variable scenario; and designs a recursive model update and adaptive process monitoring method to make the model adapt to normal process changes or operating condition switching, and effectively distinguish real faults. So far, no research reports related to the present invention have been seen. Summary of the invention
[0010] The purpose of the present invention is to provide an intelligent adaptive learning method for the dynamics of heterogeneous time series variable input and output in view of the deficiencies of the prior art. The present invention can simultaneously characterize the dynamic characteristics of heterogeneous time series data such as speech and industrial sensor data and the impact of external input on the dynamics, and recursively update to track the normal changes of time series data.
[0011] The object of the present invention is achieved through the following technical solution: an intelligent adaptive learning method for the dynamics of heterogeneous time series variable input and output, comprising the following steps:
[0012] (1) Obtain heterogeneous time series input and output data as the data to be analyzed;
[0013] (2) Using the input and output data collected in step (1), establish an input and output dynamic analysis model;
[0014] (3) Using the data to be analyzed collected in step (1), a variational recursive filter is used to analytically infer the posterior distribution of the slow features of the input-output dynamics analysis model;
[0015] (4) Based on the posterior distribution of the slow feature calculated in step (3), the unknown parameters of the input-output dynamic analysis model are estimated using the expectation maximization algorithm;
[0016] (5) By establishing a monitoring scheme based on the input-output dynamic analysis model, calculate Monitoring statistics, squared prediction error monitoring statistics, and cross entropy monitoring statistics to monitor the dynamic changes of the process, continuous output observation variables, and binary output observation variables;
[0017] (6) Based on the parameters estimated in step (4), the monitoring plan established in step (5) and , squared prediction error and cross entropy monitoring statistics, online monitoring of the status of heterogeneous time series data;
[0018] (7) When the status of the online monitoring of the heterogeneous time series data in step (6) is that the dynamic characteristics are normal and the static statistics are out of limit, the input-output dynamic analysis model is updated to adaptively track the normal changes of the process.
[0019] Furthermore, the step (1) specifically includes:
[0020] Get the input and output time series data from time 1 to time T, recorded as and ,in, and denote the dimensions of the input and output variables, respectively. and Respectively represent all continuous output variables and binary output variables at time t, and They represent the continuous output variables and binary output variables, and denote the dimensions of continuous output variables and binary output variables, respectively. and Represent all continuous input variables and binary input variables at time t respectively.
[0021] Furthermore, the step (2) specifically includes:
[0022] make represents the slow feature at time t, where represents the dimension of slow features, represents the real number domain; the transfer distribution of the input-output dynamic analysis model established and the observed distribution Respectively expressed as:
[0023] (1)
[0024] (2)
[0025] in, and are transfer matrices, is the innovation covariance matrix, Represents the transfer matrix The elements on the diagonal of and are all observation matrices, is the observation noise covariance matrix, express The variance of the observation noise, represents the binary output variables, define variables , Both about and The coefficients obtained by logistic regression are Indicates variables, is the sigmoid activation function, the initial state Follows a Gaussian distribution with zero mean and unit covariance , The dimension is The identity matrix of .
[0026] Furthermore, in step (3), the use of a variational recursive filter to analytically infer the posterior distribution of the slow features of the input-output dynamics analysis model is specifically implemented through the following sub-steps:
[0027] (3.1) defines the two symbols of mean and covariance, which are expressed as:
[0028] (3)
[0029] (4)
[0030] Among them, t and Represent the time t and , Respectively represent time 1 to time All input and output variables of and Respectively indicate the given In the case The conditional mean and covariance of Express expectations, represents covariance;
[0031] (3.2) is a binary output variable The observed distribution of Introducing the lower bound condition, it is expressed as:
[0032] (5)
[0033] in, It is introduced at time t variational parameters, defining the function , represents the variational parameter;
[0034] (3.3) Calculate the one-step prediction distribution, assuming that it is the posterior distribution at time t-1 Find a Gaussian approximate distribution, then one-step prediction distribution The calculation formula is:
[0035] (6)
[0036] The mean and covariance The expressions are:
[0037] (7)
[0038] (8)
[0039] in, and They are The posterior distribution of time The mean and covariance matrix of the Gaussian approximation of ;
[0040] (3.4) Based on the lower bound condition introduced in step (3.2) and the one-step prediction distribution calculated in step (3.3), we can infer Slow time feature The posterior distribution of The Gaussian approximation distribution of is:
[0041] (9)
[0042] The mean and covariance The expressions are:
[0043] (10)
[0044] (11)
[0045] in, is the slow feature at time t The posterior distribution of Gaussian approximation distribution of ;
[0046] (3.5) Repeat steps (3.2) to (3.4) and perform iterative calculation starting from the initial conditions; wherein the initial conditions are based on the initial state The distribution of is determined, the initial mean , the initial covariance matrix .
[0047] Furthermore, the step (4) specifically includes the following sub-steps:
[0048] (4.1) Determine the hyperparameters of the input-output dynamics analysis model and initialize the unknown parameters of the input-output dynamics analysis model; the hyperparameters of the input-output dynamics analysis model include the dimensions of the slow features , the unknown parameters of the input-output dynamic analysis model are expressed as , whose initial value is expressed as ;
[0049] (4.2) In the expectation step, based on the variational recursive filter in step (3), the mean and covariance up to time t are calculated: ; then based on , using the fixed interval smoothing algorithm, calculate the mean and covariance up to time T , and its calculation formula is:
[0050] (13)
[0051] (14)
[0052] (15)
[0053] Among them, the initial value The result from the variational recursive filter, the matrix No real meaning;
[0054] Then calculate based on the covariance up to time T The covariance matrix of :
[0055] (16)
[0056] (4.3) Based on the setting of the input-output dynamic analysis model, the likelihood function of the complete data is decomposed to calculate Function; where the likelihood function of the complete data is decomposed into:
[0057] (17)
[0058] but The function is evaluated as follows:
[0059] (18)
[0060] in, is the posterior distribution of the latent variable, and the expectation is the posterior distribution of the latent variable obtained in step (4.2) Calculated;
[0061] (4.4) In the maximization step, based on step (4.3) Function, for unknown parameters Maximize to obtain updated unknown parameter estimates , expressed as:
[0062] (19)
[0063] Based on unknown parameters The specific update equations for each parameter in the , use the expectation maximization algorithm to update the unknown parameters The various parameters in ;
[0064] (4.5) Repeat steps (4.2) to (4.4) until the following convergence conditions are met:
[0065] (31)
[0066] in, Indicates In iteration The value of the function, is the preset error threshold.
[0067] Furthermore, in the step (4.1), determining the hyperparameters of the input-output dynamic analysis model specifically includes: using a slow feature analysis method to analyze the continuous output variable data in the data to be analyzed in step (1) Analyze and extract the corresponding slow feature matrix , and use the criteria given in formula (12) to determine the dimension of the slow feature :
[0068] (12)
[0069] in, Represents the number of elements in a collection. Defines continuous output variables The speed of change, represents the variance, express The first-order difference of Representing a collection on Quantile;
[0070] In the step (4.1), the unknown parameters of the input-output dynamic analysis model are initialized, specifically including: initial values of the unknown parameters of the input-output dynamic analysis model Determine as follows: The transfer matrix The elements on the diagonal of Set to The first-order autocorrelation coefficient of the slow feature; the transfer matrix No. Rows are set to the slow feature matrix No. Column pair input time series data The regression coefficients obtained by linear regression; the observation matrix No. Row, observation matrix No. Variance of row and observation noise Set as continuous output variable data respectively No. Column-to-column slow feature matrix and input time series data The regression coefficient and residual variance obtained by linear regression; and Set as binary output variable data No. Column-to-column slow feature matrix and input time series data The coefficients obtained by performing logistic regression; using and as well as and No. Row Calculation .
[0071] Furthermore, in the step (4.4), the unknown parameter The specific update equations for each parameter in include:
[0072] (4.4.1) Matrix and Share the same parameters , the updated parameter value By in the interval Solve the following root to calculate:
[0073] (20)
[0074] in, coefficient to Given by formula (21)-formula (23)
[0075] (twenty one)
[0076] (twenty two)
[0077] (twenty three)
[0078] in, Representation Matrix No. OK, represents the jth latent variable at time t;
[0079] (4.4.2) Matrix The update equation is:
[0080] (twenty four)
[0081] (4.4.3) Matrix and The update equations are:
[0082] (25)
[0083] (26)
[0084] in, and represents the updated observation matrix and noise variance, and Respectively and No. OK, ;
[0085] (4.4.4) The update equation is:
[0086] (27)
[0087] (28)
[0088] (29)
[0089] (30)
[0090] in, about symmetry, is a positive square root, and A new symbol is defined.
[0091] Furthermore, in step (5), the monitoring scheme based on the input-output dynamic analysis model specifically includes the following sub-steps:
[0092] (5.1) The posterior mean of the latent variables obtained in the process of estimating the unknown parameters of the input-output dynamics analysis model in step (4) is ,calculate Monitoring statistics are used to monitor the dynamic changes of the process, and their expression is:
[0093] (32)
[0094] (33)
[0095] in, represents the prediction error at time t, represents the time t Monitoring statistics;
[0096] (5.2) Based on the reconstruction error, the squared prediction error monitoring statistic is calculated to monitor the continuous output observation variable , whose expression is:
[0097] (34)
[0098] (35)
[0099] in, Representation based on latent variables For continuous output observation variables Reconstruction error, Indicates The reconstruction error of the continuous output observation variable;
[0100] (5.3) Calculation and The cross entropy monitoring statistic between is used to monitor the binary output observation variable , whose expression is:
[0101] (36)
[0102] in, represents the cross entropy monitoring statistic at time t, represents the reconstructed value of the binary output observation variable, represents the reconstructed value of the i-th binary output observation variable;
[0103] (5.4) , the significance level of the squared prediction error and cross entropy monitoring statistics is The control limits of are estimated by using the kernel density estimation method in the training data; wherein, when using the kernel density estimation method, a Gaussian kernel function is adopted.
[0104] Furthermore, the step (6) includes the following sub-steps:
[0105] (6.1) Collect new process measurement data during online monitoring ;
[0106] (6.2) Based on the new measurement data collected in step (6.1), optimize the variational parameters of the new sample. Specifically, follow the same method as in step (4) and use the expectation maximization algorithm to optimize the variational parameters while keeping other model parameters unchanged. , to obtain A good approximation of
[0107] (6.3) Using the data obtained in step (6.2) , based on formula (33), formula (35) and formula (36), calculate the new sample , squared prediction error and cross entropy monitoring statistics;
[0108] (6.4) Real-time comparison of the values calculated in step (6.3) , squared prediction error and cross entropy monitoring statistics and their respective statistical control limits are used to judge the process operation status online: if and only if the three monitoring indicators are all below the control limits, the process is considered to be operating under normal conditions; otherwise, as long as any of the monitoring statistics has a continuous alarm, it is considered that the process has a static deviation or a dynamic abnormality.
[0109] Furthermore, the step (7) specifically includes:
[0110] Assumptions New sample of time If it is normal, update the input-output dynamic characteristics analysis model through the following sub-steps:
[0111] (7.1) Calculated based on the fixed interval smoothing algorithm in step (4.2) ; Calculated based on formula (16) , using a length of Sliding window Including new samples and excluding old samples;
[0112] (7.2) Use Update the input-output dynamic characteristics analysis model parameters based on formula (20) to formula (28);
[0113] (7.3) Use to The sample at the moment is calculated based on formula (18) ;
[0114] (7.4) Based on the variational recursive filter in step (3), calculate ;
[0115] (7.5) Repeat steps (7.1) to (7.4) until the convergence condition given in formula (31) is met;
[0116] (7.6) After updating the input-output dynamic analysis model, based on the sliding window The samples in are re-estimated using the kernel density estimation method , control limits for the squared prediction error, and cross entropy monitoring statistics.
[0117] Compared with the prior art, the present invention has the following beneficial effects:
[0118] (1) This invention provides a new research idea for modeling the dynamics of heterogeneous time series variables input and output. By establishing a state space structure in which both input and output are mixed variables, it not only characterizes the dynamic characteristics of heterogeneous time series variables such as speech and industrial sensor data, but also reflects the impact of external input on the dynamics.
[0119] (2) The IO-HPSFA model proposed in this invention specifically considers the impact of the operating variables on the system dynamics when both the input and output are heterogeneous time series variables;
[0120] (3) The present invention relaxes the assumption that the transfer and observation equations are time-invariant, and realizes the real-time adjustment of the IO-HPSFA model parameters through an adaptive monitoring strategy and a recursive model updating strategy, thereby more accurately tracking the dynamic and static characteristics of the current process and achieving a more reliable modeling description;
[0121] (4) The present invention uses local variational approximation to derive the analytical recursive relationship between the states at previous and subsequent moments, thereby accelerating the offline training process and ensuring that the online model update speed is within an acceptable range, enhancing the practicality of the proposed model and method, and efficiently inferring the posterior distribution of the latent state when both the input and output are mixed variables;
[0122] (5) The present invention adopts a sliding window mechanism, which allows the model to exclude unrepresentative old samples from the modeling data while incorporating new samples, thereby maintaining the relevance of the model to the current operating conditions, which is beneficial to improving the matching degree between the model and the current process characteristics and reducing the computational complexity;
[0123] (6) The invention can monitor both dynamic and static fluctuations of the process, thereby distinguishing between real faults and normal switching of operating conditions and helping to prevent false adaptation to incipient faults;
[0124] (7) The present invention improves the performance in distinguishing between real faults and normal operating conditions and identifying real fault variables through adaptive modeling description of the dynamic characteristics of heterogeneous time series variable inputs and outputs and joint monitoring of the dynamic and static characteristics of the process. Ultimately, it can be applied to actual industrial production sites to ensure the safety and reliability of the production process. BRIEF DESCRIPTION OF THE DRAWINGS
[0125] Figure 1 A flow chart of the intelligent adaptive learning method for dynamic input and output of heterogeneous time series variables of the present invention;
[0126] Figure 2 This is a monitoring result diagram of the method of the present invention without updating the model on test set 1;
[0127] Figure 3 This is a diagram of the fault variable identification results of the method of the present invention on test set 1;
[0128] Figure 4 This is a monitoring result diagram after the model is updated on test set 1 by the method of the present invention;
[0129] Figure 5 This is a graph showing the monitoring results of the method described in the present invention on test set 2. DETAILED DESCRIPTION
[0130] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present invention. Instead, they are merely examples of devices and methods consistent with some aspects of the present invention as detailed in the appended claims.
[0131] The terms used in the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. The singular forms "a", "the" and "the" used in the present invention and the appended claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.
[0132] It should be understood that although the terms first, second, third, etc. may be used in the present invention to describe various information, these information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of the present invention, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
[0133] The present invention is described in detail below in conjunction with the accompanying drawings. In the absence of conflict, the features of the following embodiments and implementations can be combined with each other.
[0134] See also Figure 1 The intelligent adaptive learning method for dynamic input and output of heterogeneous time series variables of the present invention specifically comprises the following steps:
[0135] (1) Obtain heterogeneous time series input and output data as the data to be analyzed.
[0136] Specifically, the input and output time series data from time 1 to time T are obtained and recorded as and ,in, and denote the dimensions of the input and output variables, respectively. and Respectively represent all continuous output variables and binary output variables at time t, and They represent the continuous output variables and binary output variables, and denote the dimensions of continuous output variables and binary output variables, respectively. and Represent all continuous input variables and binary input variables at time t respectively.
[0137] In this embodiment, 500 samples under normal working conditions were collected for modeling, the sampling interval was 3 minutes, and there were 33 variables, including 22 process variables and 11 operation variables. The process variables involved reactor pressure, temperature, liquid level, raw material feed amount, stripper flow, pressure, liquid level, etc., and the operation variables involved feed flow control valve state, purge valve state, separator kettle liquid flow control valve state, reactor cooling water flow, condenser cooling water flow, etc. In addition, 960 samples were collected as test set 1 and another 960 samples were collected as test set 2 to verify the online fault detection performance of the established monitoring system, where the faults were step changes and random fluctuations in the reactor cooling water inlet temperature.
[0138] (2) Using the input and output data collected in step (1), establish an input-output dynamics analysis (IO-HPSFA) model.
[0139] Specifically, represents the slow feature at time t, where represents the dimension of slow features, represents the real number domain; the transfer distribution of the established IO-HPSFA model and the observed distribution Respectively expressed as:
[0140] (1)
[0141] (2)
[0142] in, and are transfer matrices, is the innovation covariance matrix, Represents the transfer matrix The elements on the diagonal of and are all observation matrices, is the observation noise covariance matrix, express The variance of the observation noise, represents the binary output variables, define variables , Both about and The coefficients obtained by logistic regression are Indicates variables, is the sigmoid activation function, the initial state Follows a Gaussian distribution with zero mean and unit covariance , The dimension is The identity matrix of .
[0143] (3) Using the data collected in step (1), the variational recursive filter (VRF) is used to analytically infer the slow features of the IO-HPSFA model. The posterior distribution of .
[0144] Furthermore, a variational recursive filter is used to analytically infer the slow features of the IO-HPSFA model. The posterior distribution of is implemented through the following sub-steps:
[0145] (3.1) defines the two symbols of mean and covariance, which are expressed as:
[0146] (3)
[0147] (4)
[0148] Among them, t and Represent the time t and , Respectively represent time 1 to time All input and output variables of and Respectively indicate the given In the case The conditional mean and covariance of Express expectations, represents the covariance.
[0149] (3.2) is a binary output variable The observed distribution of Introducing the lower bound condition, it is expressed as:
[0150] (5)
[0151] in, It is introduced at time t variational parameters, defining the function , represents the variational parameter.
[0152] (3.3) Calculate the one-step prediction distribution, assuming that it is the posterior distribution at time t-1 Find a Gaussian approximate distribution, then one-step prediction distribution The calculation formula is:
[0153] (6)
[0154] The mean and covariance The expressions are:
[0155] (7)
[0156] (8)
[0157] in, and They are The posterior distribution of time The mean and covariance matrix of the Gaussian approximation of .
[0158] (3.4) Based on the lower bound condition introduced in step (3.2) and the one-step prediction distribution calculated in step (3.3), we can infer Slow time feature The posterior distribution of The Gaussian approximation distribution of is:
[0159] (9)
[0160] The mean and covariance The expressions are:
[0161] (10)
[0162] (11)
[0163] in, for Slow time feature The posterior distribution of Gaussian approximation distribution.
[0164] (3.5) Repeat steps (3.2) to (3.4) and perform iterative calculations starting from the initial conditions. The initial conditions are based on the initial state The distribution of is determined, the initial mean , the initial covariance matrix .
[0165] (4) Based on the posterior distribution of the slow features calculated in step (3), the expectation maximization (EM) algorithm is used to estimate the unknown parameters of the IO-HPSFA model.
[0166] It should be understood that the expectation maximization algorithm includes two steps: the expectation step (E step) and the maximization step (M step), and these two steps are iteratively performed to optimize the parameters of the IO-HPSFA model.
[0167] (4.1) Determine the hyperparameters of the IO-HPSFA model and initialize the unknown parameters of the IO-HPSFA model; the hyperparameters of the IO-HPSFA model include the dimensions of the slow features , the unknown parameters of the IO-HPSFA model are expressed as , whose initial value is expressed as .
[0168] Further, the hyperparameters of the IO-HPSFA model are determined, specifically including: using the slow feature analysis (SFA) method to analyze the continuous output variable data in the data to be analyzed in step (1) Analyze and extract the corresponding slow feature matrix , and use the criteria given in formula (12) to determine the dimension of the slow feature :
[0169] (12)
[0170] in, Represents the number of elements in a collection. Defines continuous output variables The speed of change, represents the variance, express The first-order difference of Can be set to 0.1, Representing a collection on Quantile.
[0171] Further, the unknown parameters of the IO-HPSFA model are initialized, specifically including: the initial values of the unknown parameters of the IO-HPSFA model Determine as follows: The transfer matrix The elements on the diagonal of Set to The first-order autocorrelation coefficient of the slow feature; the transfer matrix No. Rows are set to the slow feature matrix No. Column pair input time series data The regression coefficients obtained by linear regression; the observation matrix No. Row, observation matrix No. Variance of row and observation noise Set as continuous output variable data respectively No. Column-to-column slow feature matrix and input time series data The regression coefficient and residual variance obtained by linear regression; and Set as binary output variable data No. Column-to-column slow feature matrix and input time series data The coefficients obtained by performing logistic regression; using and as well as and No. According to formula (28), .
[0172] (4.2) In the expectation step, based on the VRF in step (3), the mean and covariance up to time t are calculated: ; then based on , using the fixed interval smoothing (FIS) algorithm, calculate the mean and covariance up to time T , and its calculation formula is:
[0173] (13)
[0174] (14)
[0175] (15)
[0176] Among them, the initial value The result obtained from VRF is the matrix No practical significance.
[0177] Then calculate based on the covariance up to time T The covariance matrix of :
[0178] (16)
[0179] (4.3) Based on the setting of the IO-HPSFA model, the likelihood function of the complete data is decomposed to calculate Function; where the likelihood function of the complete data is decomposed into:
[0180] (17)
[0181] but The function is evaluated as follows:
[0182] (18)
[0183] in, is the posterior distribution of the latent variable, and the expectation is the posterior distribution of the latent variable obtained in step (4.2) Calculated.
[0184] (4.4) In the maximization step, based on step (4.3) Function, for unknown parameters Maximize to obtain updated unknown parameter estimates , expressed as:
[0185] (19)
[0186] Since formula (20) and formula (24) are coupled to each other, formula (27) and formula (28) are coupled to each other. Therefore, based on the unknown parameters The specific update equations for each parameter in the , use the expectation maximization algorithm to update the unknown parameters The various parameters in and For example, first optimize ,and Keep it unchanged, then use To calculate .
[0187] Furthermore, the unknown parameters The specific update equations for each parameter in include:
[0188] (4.4.1) Matrix and Share the same parameters , the updated parameter value By in the interval Solve the following root to calculate:
[0189] (20)
[0190] in, coefficient to Given by formula (21)-formula (23)
[0191] (twenty one)
[0192] (twenty two)
[0193] (twenty three)
[0194] in, Representation Matrix No. OK, represents the j-th latent variable at time t.
[0195] (4.4.2) Matrix The update equation is:
[0196] (twenty four)
[0197] (4.4.3) Matrix and The update equations are:
[0198] (25)
[0199] (26)
[0200] in, and represents the updated observation matrix and noise variance, and Respectively and No. OK, .
[0201] (4.4.4) The update equation is:
[0202] (27)
[0203] (28)
[0204] Among them, due to about Symmetrical, so choose is a positive square root, and the following new symbols are defined:
[0205] (29)
[0206] (30)
[0207] in, and A new symbol is defined.
[0208] (4.5) Repeat steps (4.2) to (4.4) until the following convergence conditions are met:
[0209] (31)
[0210] in, Indicates In iteration The value of the function, is the preset error threshold, which is set to .
[0211] (5) By establishing a monitoring scheme based on the IO-HPSFA model, calculate Monitoring statistics, squared prediction error (SPE) monitoring statistics, and cross entropy (CE) monitoring statistics are used to monitor the dynamic changes of the process, continuous output observation variables, and binary output observation variables.
[0212] Furthermore, the monitoring scheme based on the IO-HPSFA model specifically includes the following sub-steps:
[0213] (5.1) According to the posterior mean of the latent variables obtained in the process of estimating the unknown parameters of the IO-HPSFA model in step (4), ,calculate Monitoring statistics are used to monitor the dynamic changes of the process, and their expression is:
[0214] (32)
[0215] (33)
[0216] in, represents the prediction error at time t, represents the time t Monitoring statistics.
[0217] (5.2) Based on the reconstruction error, the squared prediction error (SPE) monitoring statistic is calculated to monitor the continuous output observation variable , whose expression is:
[0218] (34)
[0219] (35)
[0220] in, Representation based on latent variables For continuous output observation variables Reconstruction error, Indicates The reconstruction error of a continuous output observation variable.
[0221] (5.3) Calculation and The cross entropy (CE) monitoring statistic between is used to monitor the binary output observation variable , whose expression is:
[0222] (36)
[0223] in, represents the CE monitoring statistic at time t, represents the reconstructed value of the binary output observation variable, Represents the reconstructed value of the i-th binary output observation variable.
[0224] It should be noted that SPE monitoring statistics and CE monitoring statistics are used to monitor and The correlation between the two at the same time describes the static changes of the process. The two monitoring statistics can be decomposed into the sum of the reconstruction errors of each continuous or binary observation variable. According to the conventional definition of the contribution graph, when a fault occurs, the reconstruction error of each observation variable can be used as the contribution of the variable, indicating which variables cause the abnormality of the SPE monitoring statistic or the CE monitoring statistic, which deserves further attention from the operation and maintenance personnel.
[0225] (5.4) , SPE and CE monitoring statistics have a significance level of The control limits can be estimated in the training data using the kernel density estimation (KDE) method. When using the KDE method, the widely used Gaussian kernel function is adopted. So far, a total of three monitoring statistics have been established at the static and dynamic levels, and there are four monitoring results. Each result and its corresponding physical meaning are shown in Table 1, where "√" means that the relevant statistic is below the control limit, and " ” indicates that at least one statistic is outside the control limits.
[0226] Table 1: Four monitoring results of three monitoring statistics and their corresponding physical meanings
[0227]
[0228] (6) Based on the parameters estimated in step (4), the monitoring plan established in step (5) and , SPE and CE are three monitoring statistics to monitor the status of heterogeneous time series data online.
[0229] (6.1) Collect new process measurement data during online monitoring .in, , the measured variables are the same as those in step (1).
[0230] (6.2) Based on the new measurement data collected in step (6.1), optimize the variational parameters of the new sample. Specifically, follow the same method as in step (4) and use the expectation maximization algorithm to optimize the variational parameters while keeping other model parameters unchanged. , to obtain A good approximation of .
[0231] Furthermore, in the process of optimizing the variational parameters for new samples, the only unknown parameter is ; The online optimization of includes the following sub-steps:
[0232] (6.2.1) Initialize the variational parameters in the same way as in step (4.1) .
[0233] (6.2.2) In step E, according to the VRF proposed in step (3), we can get and .
[0234] (6.2.3) Calculate about of function:
[0235] (37)
[0236] (6.2.4) In step M, re-estimate ,get The update equation is:
[0237] (38)
[0238] (6.2.5) Repeat steps (6.2.2) to (6.2.4) until the convergence condition given in formula (31) is met, and we get .
[0239] (6.3) Using the data obtained in step (6.2) , based on formula (33), formula (35) and formula (36), calculate the new sample , SPE and CE monitoring statistics.
[0240] (6.4) Real-time comparison of the values calculated in step (6.3) , SPE and CE monitoring statistics and their respective statistical control limits are used to judge the process operation status online: if and only if the three monitoring indicators are all below the control limits, the process is considered to be operating under normal conditions; otherwise, as long as any of the monitoring statistics has a continuous alarm, it is considered that the process has a static deviation or dynamic anomaly and requires on-site inspection. The specific physical meaning of each result and its corresponding physical meaning are shown in Table 1, where "√" means that the relevant statistic is below the control limit, " " indicates that at least one statistic exceeds the control limit. When the state of online monitoring of heterogeneous time series data is that the dynamic characteristics are normal and the static statistics are out of limit (i.e., state 2 in Table 1), the IO-HPSFA model is updated to adaptively track the normal changes of the process.
[0241] (7) When the state of the online monitoring of heterogeneous time series data in step (6) is that the dynamic characteristics are normal and the static statistics are out of limit (i.e., state 2 in Table 1), the IO-HPSFA model is updated to adaptively track the normal changes of the process.
[0242] Specifically, the following is based on The normal sample of is taken as an example to illustrate, and the process of updating the IO-HPSFA model based on a batch of samples is similar. New sample of time If it is normal, the IO-HPSFA model can be updated through the following sub-steps:
[0243] (7.1) Smoothing: Calculated based on the FIS algorithm in step (4.2) ; Calculated based on formula (16) .
[0244] It should be noted that a length of Sliding window Including new samples and excluding old samples has the following two advantages: (1) limiting the overall computational complexity so that it does not grow linearly with the number of samples; (2) making the IO-HPSFA model more consistent with process characteristics, and the new samples can better represent the current process characteristics than the old samples.
[0245] (7.2) Use Update the IO-HPSFA model parameters based on equations (20) to (28).
[0246] (7.3) Use to The sample at the moment is calculated based on formula (18) .
[0247] (7.4) Filtering: Based on the VRF in step 3, calculate .
[0248] (7.5) Repeat the above steps until the convergence condition given in formula (31) is met.
[0249] (7.6) After updating the IO-HPSFA model, based on the sliding window The samples in are re-estimated using KDE , SPE and CE monitoring statistics control limits.
[0250] Exemplarily, first, the method described in the present invention is used to monitor test set 1, in which the fault involves a sudden change in the reactor cooling water inlet temperature, which is not directly measured. When the fault occurs, the reactor temperature (the 9th process variable) suddenly increases at the 160th sample. The sudden increase in reactor temperature triggers an immediate response of the control loop, which then compensates for the fault by increasing the reactor cooling water flow rate. Therefore, the significant impact of the fault is to trigger a step change in the reactor cooling water flow rate (the 10th operating variable). After the fault occurs, all other process and operating variables remain stable, and the differences in means and standard deviations are negligible (less than 2%) compared to normal operating conditions. This means that the process and product are not adversely affected. From this perspective, the fault can be regarded as a change in operating conditions rather than a real fault.
[0251] Based on the IO-HPSFA model, 500 samples of normal conditions are used for monitoring training, with the collected 11 operating variables as input and 22 process variables as output. The monitoring results of the IO-HPSFA model for this fault condition are as follows: Figure 2 As shown in Figure 1, it can be seen that the SPE monitoring statistics continue to detect the fault, while The monitoring statistics only occasionally exceeded the control limits after the fault occurred. This result shows that the process dynamics were not substantially affected by the timely intervention of the control loop, but the operating conditions had changed and were consistent with the actual situation.
[0252] The direct consequence of the fault is a sudden increase in the reactor temperature (9th process variable) at sample 160. Subsequently, the control loop starts to work and compensates for the increase in reactor temperature, which causes a step change in the reactor cooling water flow rate (10th manipulated variable). Therefore, the reactor temperature is more closely related to the fault. The fault variable identification results of the proposed IO-HPSFA method for this case are shown in Figure 3 Among them, the reactor cooling water flow rate (the 9th process variable) has the highest contribution value and is accurately identified as the variable most closely related to the fault.
[0253] Then, experiments are conducted to verify that the proposed intelligent adaptive learning method can adapt the model to new operating conditions. Figure 2 As shown in Figure 2, between the 160th sample and the 240th sample, the SPE monitoring statistic exceeds the control limit, while The monitoring statistics basically remain within the control limit. This indicates that the process has transitioned to a new operating condition. Therefore, the model is updated using these 80 newly collected samples. The adaptive monitoring results of the IO-HPSFA model are shown in Figure 2. Figure 4It can be seen that after the IO-HPSFA model is updated at the 240th sample, the SPE monitoring statistics are restored to below the control limit, indicating that the process is in normal operation under the new operating conditions.
[0254] Then, the effectiveness of the method of the present invention in detecting dynamic anomalies of the process was evaluated on test set 2. The fault involved an anomaly in the reactor cooling water inlet temperature, which was not measured. Unlike the fault in test set 1, in test set 2, the anomaly manifested itself as a random fluctuation in the reactor cooling water inlet temperature rather than a step change, resulting in a continuous dynamic anomaly in the process after the 160th sample. The fault caused fluctuations in the reactor temperature (the 9th process variable), which in turn caused significant oscillations in the reactor cooling water flow rate (the 10th operated variable) due to the regulation of the closed-loop control loop. The fault is a real dynamic anomaly.
[0255] The monitoring results of the IO-HPSFA model are as follows: Figure 5 As shown, The monitoring statistics continue to alarm, and the SPE monitoring statistics often exceed the control limit. The monitoring statistic is more sensitive to fault 11 than the SPE monitoring statistic, indicating that there are significant dynamic anomalies in the process, which is consistent with the actual situation.
[0256] In summary, the method of the present invention can accurately locate fault variables by modeling the input-output relationship of heterogeneous time series variables; the proposed intelligent adaptive learning method can identify the difference between real faults and normal operating conditions by simultaneously monitoring the dynamic and static fluctuations of the process, so that the model can adapt to new operating conditions and prevent it from adapting to potential faults. Through the different meanings of statistics, the IO-HPSFA model successfully indicates the difference between two typical fault cases and accurately identifies the variables most relevant to the fault in both cases.
[0257] It should be understood that the present invention is not limited to the actual industrial process specifically implemented above, and any technician familiar with the field may make equivalent modifications or substitutions without violating the spirit of the present invention. These equivalent modifications or substitutions are all included in the scope defined by the claims of this application.
Claims
1. An intelligent adaptive learning method for the dynamics of heterogeneous time series variable input and output, characterized in that: The following steps are involved: (1) Obtaining heterogeneous time series input and output data as data to be analyzed; wherein the heterogeneous time series input data is time series data collected by industrial sensors; (2) Using the input and output data collected in step (1), establish an input and output dynamic analysis model; (3) Using the data to be analyzed collected in step (1), a variational recursive filter is used to analytically infer the posterior distribution of the slow features of the input-output dynamics analysis model; (4) Based on the posterior distribution of the slow feature calculated in step (3), the unknown parameters of the input-output dynamic analysis model are estimated using the expectation maximization algorithm; (5) By establishing a monitoring scheme based on the input-output dynamic analysis model, calculate Monitoring statistics, squared prediction error monitoring statistics, and cross entropy monitoring statistics to monitor the dynamic changes of the process, continuous output observation variables, and binary output observation variables; (6) Based on the parameters estimated in step (4), the monitoring plan established in step (5) and , squared prediction error and cross entropy monitoring statistics, online monitoring of the status of heterogeneous time series data; (7) When the status of the online monitoring of the heterogeneous time series data in step (6) is that the dynamic characteristics are normal and the static statistics are out of limit, the input-output dynamic analysis model is updated to adaptively track the normal changes of the process; Wherein, the step (1) specifically includes: Get the input and output time series data from time 1 to time T, recorded as and ,in, and denote the dimensions of the input and output variables, respectively. and Respectively represent all continuous output variables and binary output variables at time t, and They represent the continuous output variables and binary output variables, and denote the dimensions of continuous output variables and binary output variables, respectively. and Respectively represent all continuous input variables and binary input variables at time t; The step (2) specifically includes: make represents the slow feature at time t, where represents the dimension of slow features, represents the real number domain; the transfer distribution of the input-output dynamic analysis model established and the observed distribution Respectively expressed as: (1) (2) in, and are transfer matrices, is the innovation covariance matrix, Represents the transfer matrix The elements on the diagonal of and are all observation matrices, is the observation noise covariance matrix, express The variance of the observation noise, represents the binary output variables, define variables , Both about and The coefficients obtained by logistic regression are Indicates variables, is the sigmoid activation function, the initial state Follows a Gaussian distribution with zero mean and unit covariance , The dimension is The identity matrix of .
2. The intelligent adaptive learning method for dynamic input and output of heterogeneous time series variables according to claim 1 is characterized in that: In the step (3), the posterior distribution of the slow features of the input-output dynamics analysis model is analyzed and inferred using a variational recursive filter, which is specifically implemented by the following sub-steps: (3.1) defines the two symbols of mean and covariance, which are expressed as: (3) (4) Among them, t and Represent the time t and , Respectively represent time 1 to time All input and output variables of and Respectively indicate the given In the case The conditional mean and covariance of Express expectations, represents covariance; (3.2) is a binary output variable The observed distribution of Introducing the lower bound condition, it is expressed as: (5) in, It is introduced at time t variational parameters, defining the function , represents the variational parameter; (3.3) Calculate the one-step prediction distribution, assuming that it is the posterior distribution at time t-1 Find a Gaussian approximate distribution, then one-step prediction distribution The calculation formula is: (6) The mean and covariance The expressions are: (7) (8) in, and They are The posterior distribution of time The mean and covariance matrix of the Gaussian approximation of ; (3.4) Based on the lower bound condition introduced in step (3.2) and the one-step prediction distribution calculated in step (3.3), we can infer Slow time feature The posterior distribution of The Gaussian approximation distribution of is: (9) The mean and covariance The expressions are: (10) (11) in, is the slow feature at time t The posterior distribution of Gaussian approximation distribution of ; (3.5) Repeat steps (3.2) to (3.4) and perform iterative calculation starting from the initial conditions; wherein the initial conditions are based on the initial state The distribution of is determined, the initial mean , the initial covariance matrix .
3. The intelligent adaptive learning method for dynamic input and output of heterogeneous time series variables according to claim 2 is characterized in that: The step (4) specifically includes the following sub-steps: (4.1) Determine the hyperparameters of the input-output dynamics analysis model and initialize the unknown parameters of the input-output dynamics analysis model; the hyperparameters of the input-output dynamics analysis model include the dimensions of the slow features , the unknown parameters of the input-output dynamic analysis model are expressed as , whose initial value is expressed as ; (4.2) In the expectation step, based on the variational recursive filter in step (3), the mean and covariance up to time t are calculated: ; then based on , using the fixed interval smoothing algorithm, calculate the mean and covariance up to time T , and its calculation formula is: (13) (14) (15) Among them, the initial value The result from the variational recursive filter, the matrix No real meaning; Then calculate based on the covariance up to time T The covariance matrix of : (16) (4.3) Based on the setting of the input-output dynamic analysis model, the likelihood function of the complete data is decomposed to calculate Function; where the likelihood function of the complete data is decomposed into: (17) but The function is evaluated as follows: (18) in, is the posterior distribution of the latent variable, and the expectation is the posterior distribution of the latent variable obtained in step (4.2) Calculated; (4.4) In the maximization step, based on step (4.3) Function, for unknown parameters Maximize to obtain updated unknown parameter estimates , expressed as: (19) Based on unknown parameters The specific update equations for each parameter in the , use the expectation maximization algorithm to update the unknown parameters The various parameters in ; (4.5) Repeat steps (4.2) to (4.4) until the following convergence conditions are met: (31) in, Indicates In iteration The value of the function, is the preset error threshold.
4. The intelligent adaptive learning method for dynamic input and output of heterogeneous time series variables according to claim 3 is characterized in that: In the step (4.1), determining the hyperparameters of the input-output dynamic analysis model specifically includes: using a slow feature analysis method to analyze the continuous output variable data in the data to be analyzed in step (1). Analyze and extract the corresponding slow feature matrix , and use the criteria given in formula (12) to determine the dimension of the slow feature : (12) in, Represents the number of elements in a collection. Defines continuous output variables The speed of change, represents the variance, express The first-order difference of Representing a collection on Quantile; In the step (4.1), the unknown parameters of the input-output dynamic analysis model are initialized, specifically including: initial values of the unknown parameters of the input-output dynamic analysis model Determine as follows: The transfer matrix The elements on the diagonal of Set to The first-order autocorrelation coefficient of the slow feature; the transfer matrix No. Rows are set to the slow feature matrix No. Column pair input time series data The regression coefficients obtained by linear regression; the observation matrix No. Row, observation matrix No. Variance of row and observation noise Set as continuous output variable data No. Column-to-column slow feature matrix and input time series data The regression coefficient and residual variance obtained by linear regression; and Set as binary output variable data No. Column-to-column slow feature matrix and input time series data The coefficients obtained by performing logistic regression; using and as well as and No. Row Calculation .
5. The intelligent adaptive learning method for dynamic input and output of heterogeneous time series variables according to claim 4 is characterized in that: In the step (4.4), the unknown parameter The specific update equations for each parameter in include: (4.4.1) Matrix and Share the same parameters , the updated parameter value By in the interval Solve the following root to calculate: (20) in, coefficient to Given by formula (21)-formula (23) (21) (22) (23) in, Representation Matrix No. OK, represents the jth latent variable at time t; (4.4.2) Matrix The update equation is: (24) (4.4.3) Matrix and The update equations are: (25) (26) in, and represents the updated observation matrix and noise variance, and Respectively and No. OK, ; (4.4.4) The update equation is: (27) (28) (29) (30) in, about symmetry, is a positive square root, and A new symbol is defined.
6. The intelligent adaptive learning method for dynamic input and output of heterogeneous time series variables according to claim 5 is characterized in that: In step (5), the monitoring scheme based on the input-output dynamic analysis model specifically includes the following sub-steps: (5.1) The posterior mean of the latent variables obtained in the process of estimating the unknown parameters of the input-output dynamics analysis model in step (4) is ,calculate Monitoring statistics are used to monitor the dynamic changes of the process, and their expression is: (32) (33) in, represents the prediction error at time t, represents the time t Monitoring statistics; (5.2) Based on the reconstruction error, the squared prediction error monitoring statistic is calculated to monitor the continuous output observation variable , whose expression is: (34) (35) in, Representation based on latent variables For continuous output observation variables Reconstruction error, Indicates The reconstruction error of the continuous output observation variable; (5.3) Calculation and The cross entropy monitoring statistic between is used to monitor the binary output observation variable , whose expression is: (36) in, represents the cross entropy monitoring statistic at time t, represents the reconstructed value of the binary output observation variable, represents the reconstructed value of the i-th binary output observation variable; (5.4) , the significance level of the squared prediction error and cross entropy monitoring statistics is The control limits of are estimated by using the kernel density estimation method in the training data; wherein, when using the kernel density estimation method, a Gaussian kernel function is adopted.
7. The intelligent adaptive learning method for dynamic input and output of heterogeneous time series variables according to claim 6 is characterized in that: The step (6) includes the following sub-steps: (6.1) Collect new process measurement data during online monitoring ; (6.2) Based on the new measurement data collected in step (6.1), optimize the variational parameters of the new sample. Specifically, follow the same method as in step (4) and use the expectation maximization algorithm to optimize the variational parameters while keeping other model parameters unchanged. , to obtain A good approximation of (6.3) Using the data obtained in step (6.2) , based on formula (33), formula (35) and formula (36), calculate the new sample , squared prediction error and cross entropy monitoring statistics; (6.4) Real-time comparison of the values calculated in step (6.3) , squared prediction error and cross entropy monitoring statistics and their respective statistical control limits are used to judge the process operation status online: if and only if the three monitoring indicators are all below the control limits, the process is considered to be operating under normal conditions; otherwise, as long as any of the monitoring statistics has a continuous alarm, it is considered that the process has a static deviation or a dynamic abnormality.
8. The intelligent adaptive learning method for dynamic input and output of heterogeneous time series variables according to claim 7 is characterized in that: The step (7) specifically includes: Assumptions New sample of time If it is normal, update the input-output dynamic characteristics analysis model through the following sub-steps: (7.1) Calculated based on the fixed interval smoothing algorithm in step (4.2) ; Calculated based on formula (16) , using a length of Sliding window Including new samples and excluding old samples; (7.2) Use Update the input-output dynamic characteristics analysis model parameters based on formula (20) to formula (28); (7.3) Use to The sample at the moment is calculated based on formula (18) ; (7.4) Based on the variational recursive filter in step (3), calculate ; (7.5) Repeat steps (7.1) to (7.4) until the convergence condition given in formula (31) is met; (7.6) After updating the input-output dynamic analysis model, based on the sliding window The samples in are re-estimated using the kernel density estimation method , control limits for the squared prediction error, and cross entropy monitoring statistics.
