A robust modeling and abnormal monitoring method for chemical processes based on rolling real-time feature analysis

Through rolling real-time feature analysis technology combined with genetic algorithms, abnormal data in the chemical process are identified and eliminated, which solves the problem of being affected by contaminated sample data in abnormal monitoring of chemical process, improves the accuracy and reliability of monitoring, and realizes the monitoring of chemical process. Robust modeling and efficient detection of abnormal conditions.

CN113177308BActive Publication Date: 2024-08-23COLLEGE OF SCI & TECH NINGBO UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110440246.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-04-18
Publication Date
2024-08-23
Estimated Expiration
2041-04-18

AI Technical Summary

Technical Problem

When existing chemical process anomaly monitoring methods use multi-variable analysis algorithms, the accuracy and reliability of contaminated sample data are low, and they cannot effectively detect abnormalities in the interaction between variables.

Method used

The rolling real-time feature analysis technology combined with the genetic algorithm is used to identify abnormal data in the historical sampling data of the chemical process, and is used to determine whether the new sampling data comes from abnormal working conditions online and in real time, thereby achieving robust modeling and abnormal monitoring of the chemical process.

Benefits of technology

Through rolling real-time feature analysis technology, sample data under non-normal operating conditions can be effectively eliminated, the accuracy and reliability of abnormal monitoring can be improved, abnormal features in online sampling data can be distinguished to the maximum extent, and robust modeling and abnormality of chemical processes can be achieved. Status monitoring.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113177308B
    Figure CN113177308B
Patent Text Reader

Abstract

The present invention discloses a method for robust modeling and abnormal monitoring of chemical processes based on rolling instant feature analysis, and realizes robust modeling and abnormal monitoring of chemical processes through rolling instant feature analysis technology. Specifically, the method of the present invention designs a rolling instant feature analysis technology, firstly combining the use of genetic algorithm and instant feature analysis technology to determine the most suitable sample data from the historical sampling data of the chemical process object. The sample data under abnormal operating conditions mixed in the sampling data can be eliminated through the designed fitness value, thereby realizing robust modeling. In addition, when implementing online abnormal monitoring, the method of the present invention can solve different feature vectors for different online collected sample data, making full use of the advantages of instant feature extraction, and can maximize the distinction of abnormal features in online sampling data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a chemical process abnormality monitoring method, and in particular to a chemical process robust modeling and abnormality monitoring method based on rolling instant feature analysis. Background Art

[0002] The chemical industry is an important part of the national economy. The normal operation of chemical production not only affects the quality of products, but also affects the environment and safety. Chemical safety accidents in recent years have sounded the alarm for chemical companies! Monitoring the operating status of chemical processes first requires real-time measurement of parameter data of chemical production processes, including real-time data of variables such as temperature, pressure, and liquid level. On this basis, by real-time monitoring of the changes in each measurement variable, the operating status of the chemical process can be monitored, which is also the basic idea of ​​the data-driven chemical process abnormality monitoring method technology. In addition, due to the mutual influence between the various measurement variables in the chemical process, by monitoring the abnormal changes of a single variable, only some anomalies with greater influence can be monitored, but some anomalies that affect the interaction relationship between variables cannot be detected.

[0003] The use of multivariate analysis algorithms to implement abnormal monitoring of chemical processes was born in this context. This type of method requires the chemical process object to provide a large amount of sample data under normal operating conditions, so as to achieve the purpose of monitoring whether the online sampling data is abnormal based on the analysis of the normal operating condition sample data. However, in actual operation, although the chemical process is in normal operating state most of the time, it is not guaranteed that it will enter an abnormal state in a certain period of time without being discovered by the existing monitoring system. In this case, the sample data provided cannot be 100% guaranteed to be collected from the normal operating state of the chemical process. Using these sample data that may contain abnormal operating condition data to implement abnormal monitoring will seriously affect the accuracy and reliability of the corresponding method technology.

[0004] In other words, the real-time sampling data of chemical process objects may be mixed with a small amount of sample data under abnormal working conditions, and the chemical system cannot provide the corresponding prior knowledge to identify these contaminated sampling data. If these contaminated sample data are directly used to implement the chemical process abnormality monitoring technology based on the multivariate analysis algorithm, some abnormal data will be directly judged as normal, resulting in low precision or reduced accuracy of the corresponding abnormal monitoring model. Therefore, how to robustly model the chemical process and implement abnormality monitoring on this basis is a problem to be solved. Summary of the invention

[0005] The main technical problem to be solved by the present invention is: how to realize robust modeling of chemical processes through rolling real-time feature analysis technology, and implement abnormal monitoring of chemical processes on this basis. Specifically, the method of the present invention uses a rolling real-time feature analysis technology, which is first combined with a genetic algorithm to identify abnormal data that may be contained in the historical sampling data of the chemical process, and then directly used to judge whether the new sampling data comes from abnormal conditions online in real time, thereby realizing abnormal state monitoring of the chemical process.

[0006] The technical solution adopted by the method of the present invention to solve the above-mentioned problem is: a chemical process robust modeling and abnormality monitoring method based on rolling real-time feature analysis, including the steps shown below.

[0007] Step (1): Obtain sample data x1, x2, ..., x of the chemical process object at N sampling times N , and form it into an N×m-dimensional data matrix X=[x1, x2,…, x N ] T ; Among them, the i-th sample data x i ∈R m×1 The m measurement data in R are composed of the measurement data of four types of variables: temperature, pressure, liquid level, and flow rate, i∈{1, 2, …, N}, R m×1 represents an m×1-dimensional real vector, R represents a real number set, and the superscript T represents the transpose of a matrix or vector.

[0008] Step (2): Determine the final reference matrix X0 according to steps (2.1) to (2.6) as shown below.

[0009] Step (2.1): Set g = 1 and randomly generate H N × 1 binary vectors w1, w2, ..., w H Finally, the parameters of the genetic algorithm are set, including: the maximum number of iterations G, the crossover probability c, and the mutation probability d; among them, the elements in the binary vector are randomly taken as 0 or 1.

[0010] Step (2.2): Calculate the binary vectors w1, w2, ..., w respectively H The corresponding fitness values ​​are F1, F2, ..., F H ; Among them, calculate the h-th binary vector w h The corresponding fitness value F h The specific implementation process is shown in steps (2.2-1) to (2.2-5), h∈{1, 2, …, H}.

[0011] Step (2.2-1): According to the binary vector w h The row where the element is equal to 1 in the data matrix X∈R N×mThe row vectors of the same row in form the reference matrix X0.

[0012] Step (2.2-2): According to the formula For the column vectors z1, z2, ..., z in the reference matrix X0, m Perform standardization to obtain a standardized reference matrix where k∈{1, 2, …, m}, z k and Represents X0 and The column vector of the kth column in k and δ k Represents the column vector z k The mean and standard deviation of all elements in .

[0013] Step (2.2-3): Use the average value μ in step (2.2-2) k and standard deviation δ k and through For the column vectors y1, y2, ..., y in the data matrix X m Standardization is performed separately to obtain the standardized data matrix Among them, y k and Represents X and The column vector of the k-th column in .

[0014] Step (2.2-4): Calculate the abnormal factors f1, f2, ..., f according to steps (A) to (D) as shown below N .

[0015] Step (A): Initialize j=1.

[0016] Step (B): Solve the generalized eigenvalue problem The largest eigenvalue λ j The corresponding eigenvector p j Then, according to the formula Update the feature vector p j ;in, express The row vector of the j-th row in .

[0017] Step (C): According to Calculate the outlier factor f j ;in, N0 is equal to the reference matrix The number of row vectors in .

[0018] Step (D): Determine whether the condition j < N is satisfied; if so, set j = j + 1 and return to step (B); if not, obtain N abnormal factors f1, f2, ..., f N .

[0019] Step (2.2-5): According to formula F h =(f1+f2+…+f N ) / a+N0×b calculate the h-th binary vector w h The corresponding fitness value F h ; Among them, the value range of weighting factor a is 6.0≤a≤7.0, and the value range of weighting factor b is 0.5≤b≤0.8.

[0020] Step (2.3): According to the fitness values ​​F1, F2, ..., F N , sequentially execute the selection operation, crossover operation, and mutation operation of the genetic algorithm to update the binary vector, thereby obtaining the updated H binary vectors w1, w2, ..., w H .

[0021] Step (2.4): Replace F1, F2, ..., F H After recording the binary vector corresponding to the maximum value as w0, set the Hth binary vector w H =w0.

[0022] Step (2.5): Determine whether the condition g<G is satisfied; if so, set g=g+1 and return to step (2.2); if not, obtain the final binary vector w0 and then execute step (2.6).

[0023] Step (2.6): According to the row where the element equal to 1 in the binary vector w0 is located, X∈R N×m The row vectors of the same row in form the final reference matrix

[0024] Step (3): Execute step (2.2-2) to obtain the reference matrix after standardization. Reset After N=N0, perform steps (A) to (D) to obtain the abnormal factor

[0025] Step (4): The maximum value in is recorded as Q max After that, the model parameters are retained for use in online anomaly monitoring, including: the average values ​​of each column vector μ1, μ2, …, μ m and standard deviations δ1, δ2, …, δ m , the reference matrix after normalization Maximum Q max .

[0026] Step (5): At the latest sampling time t, collect sample data x of the chemical process object t ∈R m×1 , and calculate x according to the following formula t Each element in is standardized to obtain the standardized online data vector

[0027]

[0028] In the above formula, x t (k) and Respectively represent x t and The kth element in .

[0029] Step (6): Solve the generalized eigenvalue problem The largest eigenvalue λ t The corresponding eigenvector p t Then, according to the formula Update the feature vector p t .

[0030] Step (7): According to the formula Calculate the abnormal factor Q at the latest sampling time t t ; Where T represents the transpose symbol of a matrix or vector, N0 is equal to the reference matrix The number of row vectors in .

[0031] Step (8): Determine whether condition Q is met t ≤Q max ; If so, return to step (5) and continue to use the sample data at the latest sampling time to implement abnormal monitoring of the chemical process object; if not, execute step (9).

[0032] Step (9): Return to step (5) and continue to use the sample data at the latest sampling time to implement abnormal monitoring of the chemical process object until the abnormal factors of the six latest sampling times are obtained, and then determine whether these six abnormal factors are all greater than Q max ; If so, an abnormal alarm is triggered; if not, the chemical process object operates normally and returns to step (5).

[0033] In the above implementation steps, whether it is the offline robust modeling stage (the first 4 steps) or the online anomaly monitoring stage (the last 5 steps), the method of the present invention is a process of solving the generalized eigenvalue problem in step (B) in a rolling execution. In fact, the solution of the generalized eigenvalue problem in step (B) is the specific implementation process of the instant feature analysis technology involved in the method of the present invention. Since the method of the present invention continuously rolls the instant feature analysis involved in step (B), the name of the method of the present invention includes rolling instant feature analysis.

[0034] The so-called instant feature analysis technique aims to find the feature vector p j , the corresponding row vector With reference matrix The maximum degree of distinction. Based on the basic idea of ​​the discriminant analysis algorithm, the objective function can be constructed as follows:

[0035]

[0036] Without loss of generality, the denominator in the above objective function can be set Therefore, the above equation can be equivalently transformed into a maximization problem with constraints as shown below:

[0037]

[0038] The solution of equation ③ above can be obtained by using the classical Langrange multiplier method, that is, constructing the Langrange function L as shown below.

[0039]

[0040] Then, solve L with respect to p j The partial differential of and setting it equal to 0 can get the following equation:

[0041]

[0042] Then it is transformed into the generalized eigenvalue problem in step (B): If we multiply both sides of the equation of the generalized eigenvalue problem by Then we can get Therefore, λ j Equal to the maximization objective in the above formula ③, that is, the generalized eigenvalue problem The largest eigenvalue needs to be calculated.

[0043] Through the above-described implementation steps, the advantages of the method of the present invention are introduced as follows.

[0044] The method of the present invention determines the most suitable sample data from the historical sampling data of the chemical process object by combining the use of genetic algorithm and real-time feature analysis technology. The sample data under abnormal operating conditions mixed in the sample data can be eliminated by the designed fitness value, thereby realizing robust modeling. In addition, when implementing online abnormality monitoring, the method of the present invention can solve different feature vectors for different online collected sample data, making full use of the advantages of real-time feature extraction, and can maximize the distinction of abnormal features in online sample data. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] Figure 1 It is a schematic diagram of the implementation process of the method of the present invention.

[0046] Figure 2 Schematic diagram of abnormal monitoring of the method of the present invention. DETAILED DESCRIPTION

[0047] The present invention is described in detail below with reference to the accompanying drawings and specific embodiments.

[0048] like Figure 1 As shown, the present invention discloses a chemical process robust modeling and abnormal monitoring method based on rolling real-time feature analysis. The specific implementation of the method of the present invention is described below in conjunction with a specific application example.

[0049] Taking the TE chemical process object as an application case, the TE chemical process object is a typical chemical production process, which is equipped with four types of measuring instruments: temperature, pressure, flow, and liquid level. Therefore, there are 5 variables involving temperature, 9 variables involving flow, 3 variables involving pressure, and 3 variables involving liquid level in the TE chemical process.

[0050] Step (1): Obtain sample data x1, x2, ..., x of the chemical process object at N sampling times N , and record it as an N×m-dimensional data matrix X=[x1, x2,…, x N ] T .

[0051] Step (2): Determine the final reference matrix X0 according to the aforementioned steps (2.1) to (2.6); wherein, the specific implementation process of performing the selection operation, crossover operation, and mutation operation of the genetic algorithm to update the binary vector in the aforementioned step (2.3) is shown in steps (2.3-1) to (2.3-6).

[0052] Step (2.3-1): Set h to 1, 2, ..., H respectively, and calculate w1, w2, ..., w according to the following formula: H The corresponding selection probabilities are P1, P2, ..., P H :

[0053]

[0054] Step (2.3-2): Generate a random number between 0 and 1 And from P1, P2, ..., P H Find the conditions that meet The maximum probability of being selected is obtained, and the binary vector corresponding to the maximum probability of being selected is selected; this step is repeated H times until H binary vectors are selected, and then these H binary vectors are recorded as w1, w2, ..., w H .

[0055] Step (2.3-2): Initialize η=1.

[0056] Step (2.3-3): Generate a random number between 0 and 1 Determine whether the conditions are met If so, first randomly generate an integer C in the interval [2, N-1], and then swap w η With w η+1 The first C elements in ; if not, keep w η With w η+1 constant.

[0057] Step (2.3-4): Generate a random number between 0 and 1 Determine whether the conditions are met If so, first randomly generate an integer D in the interval [1, N], and then η Subtract 1 from the Dth element in and take its absolute value; if not, keep w η constant.

[0058] Step (2.3-5): After setting η = η + 1, execute the implementation process described in step (2.3-4) to w η The same treatment was performed.

[0059] Step (2.3-6): Determine whether the condition η<N-1 is satisfied; if so, set η=η+1 and return to step (2.3-3); if not, complete the genetic algorithm for binary vectors w1, w2, ..., w H Updates.

[0060] Step (3): Execute step (2.2-2) to obtain the reference matrix after standardization. Reset After N=N0, perform steps (A) to (D) to obtain the abnormal factor

[0061] Step (4): The maximum value in is recorded as Q max After that, the model parameters are retained for use in online anomaly monitoring, including: the average values ​​of each column vector μ1, μ2, …, μ m and standard deviations δ1, δ2, …, δ m , the reference matrix after normalization Maximum Q max .

[0062] The above implementation process is the robust modeling stage of the method of the present invention. After this stage is completed, online abnormality monitoring for the TE process can be implemented, which specifically includes the following steps.

[0063] Step (5): At the latest sampling time t, collect sample data x of the chemical process object t ∈R m×1 , and according to the above formula ①, x t Each element in is standardized to obtain the standardized online data vector

[0064] Step (6): Solve the generalized eigenvalue problem The largest eigenvalue λ t The corresponding eigenvector p t Then, according to the formula Update the feature vector p t .

[0065] Step (7): According to the formula Calculate the abnormal factor Q at the latest sampling time t t ; Where T represents the transpose symbol of a matrix or vector, N0 is equal to the reference matrix The number of row vectors in .

[0066] Step (8): Determine whether condition Q is met t ≤Q max ; If so, return to step (5) and continue to use the sample data at the latest sampling time to implement abnormal monitoring of the chemical process object; if not, execute step (9).

[0067] Step (9): Return to step (5) and continue to use the sample data at the latest sampling time to implement abnormal monitoring of the chemical process object until the abnormal factors of the six latest sampling times are obtained, and then determine whether these six abnormal factors are all greater than Q max ; If so, an abnormal alarm is triggered; if not, the chemical process object still operates normally and returns to step (5).

[0068] Plot the abnormal factors at each sampling time on Figure 2 and at the same time the maximum value Q max Draw as Figure 2 From this, it can be clearly seen that Figure 2 See whether the abnormal factor at each sampling moment is greater than Q max .

[0069] The above implementation cases are only used to explain the specific implementation of the present invention, rather than to limit the present invention. Any modification made to the present invention within the spirit of the present invention and the protection scope of the claims shall fall within the protection scope of the present invention.

Claims

1. A method for robust modeling and abnormal monitoring of chemical processes based on rolling real-time feature analysis, characterized in that: The specific steps include the following: Step (1): Obtain sample data x1, x2, ..., x of the chemical process object at N sampling times N , and form an N×m-dimensional data matrix X=[x1, x2,…, x N ] T ; Among them, the i-th sample data x i ∈R m×1 The m measurement data in R are composed of the measurement data of four types of variables: temperature, pressure, liquid level, and flow rate, i∈{1, 2, …, N}, R m×1 represents a real vector of dimension m×1, R represents a real number set, and the superscript T represents the transpose of a matrix or vector; Step (2): Determine the final reference matrix X0 according to steps (2.1) to (2.6) as shown below; Step (2.1): Set g = 1 and randomly generate H N × 1 binary vectors w1, w2, ..., w H After that, set the parameters of the genetic algorithm, including: maximum number of iterations G, crossover probability c, mutation probability d; where the elements in the binary vector are randomly assigned values ​​0 or 1; Step (2.2): Calculate the binary vectors w1, w2, ..., w respectively H The corresponding fitness values ​​are F1, F2, ..., F H ; Among them, calculate the h-th binary vector w h The corresponding fitness value F h The specific implementation process is shown in steps (2.2-1) to (2.2-5), h∈{1, 2, …, H}; Step (2.2-1): According to the binary vector w h The row where the element is equal to 1 in the data matrix X∈R N×m The row vectors of the same row in form the reference matrix X0; Step (2.2-2): According to the formula For the column vectors z1, z2, ..., z in the reference matrix X0, m Perform standardization to obtain a standardized reference matrix where k∈{1, 2, …, m}, z k and Represents X0 and The column vector of the kth column in k and δ k Represents the column vector z k The mean and standard deviation of all elements in ; Step (2.2-3): Use the average value μ in step (2.2-2) k and standard deviation δ k and through For the column vectors y1, y2, ..., y in the data matrix X m Standardization is performed separately to obtain the standardized data matrix Among them, y k and Represents X and The column vector of the kth column in ; Step (2.2-4): Calculate the abnormal factors f1, f2, ..., f according to steps (A) to (D) as shown below N ; Step (A): Initialize j=1; Step (B): Solve the generalized eigenvalue problem The largest eigenvalue λ j The corresponding eigenvector p j Then, according to the formula Update the feature vector p j ;in, express The row vector of the jth row in ; Step (C): According to Calculate the outlier factor f j ;in, N0 is equal to the reference matrix The number of row vectors in Step (D): Determine whether the condition j < N is satisfied; if so, set j = j + 1 and return to step (B); if not, obtain N abnormal factors f1, f2, ..., f N ; Step (2.2-5): According to formula F h =(f1+f2+…+f N ) / a+N0×b calculate the h-th binary vector w h The corresponding fitness value F h ; Among them, the value range of weighting factor a is 6.0≤a≤7.0, and the value range of weighting factor b is 0.5≤b≤0.8; Step (2.3): According to the fitness values ​​F1, F2, ..., F N , sequentially execute the selection operation, crossover operation, and mutation operation of the genetic algorithm to update the binary vector, thereby obtaining the updated H binary vectors w1, w2, ..., w H ; Step (2.4): Replace F1, F2, ..., F H After recording the binary vector corresponding to the maximum value as w0, set the Hth binary vector w H =w0; Step (2.5): Determine whether the condition g<G is satisfied; if so, set g=g+1 and return to step (2.2); if not, obtain the final binary vector w0 and then execute step (2.6); Step (2.6): According to the row where the element equal to 1 in the binary vector w0 is located, X∈R N×m The row vectors of the same row in form the final reference matrix Step (3): Execute step (2.2-2) to obtain the reference matrix after standardization. Reset After N=N0, perform steps (A) to (D) to obtain the abnormal factor Step (4): The maximum value in is recorded as Q max After that, the model parameters are retained for use in online anomaly monitoring, including: the average values ​​of each column vector μ1, μ2, …, μ m and standard deviations δ1, δ2, …, δ m , the reference matrix after normalization Maximum Q max ; Step (5): At the latest sampling time t, collect sample data x of the chemical process object t ∈R m×1 , and calculate x according to the following formula t Each element in is standardized to obtain the standardized online data vector In the above formula, x t (k) and Respectively represent x t and The kth element in , k∈{1, 2, …, m}; Step (6): Solve the generalized eigenvalue problem The largest eigenvalue λ t The corresponding eigenvector p t Then, according to the formula Update the feature vector p t ; Step (7): According to the formula Calculate the abnormal factor Q at the latest sampling time t t ; Where T represents the transpose symbol of a matrix or vector, N0 is equal to the reference matrix The number of row vectors in Step (8): Determine whether condition Q is met t ≤Q max ; If yes, return to step (5) and continue to use the sample data at the latest sampling time to implement abnormal monitoring of the chemical process object; if no, execute step (9); Step (9): Return to step (5) and continue to use the sample data at the latest sampling time to implement abnormal monitoring of the chemical process object until the abnormal factors of the six latest sampling times are obtained, and then determine whether these six abnormal factors are all greater than Q max ; If so, an abnormal alarm is triggered; if not, the chemical process object operates normally and returns to step (5).

2. A chemical process robust modeling and abnormality monitoring method based on rolling real-time feature analysis according to claim 1, characterized in that: The specific implementation process of executing the selection operation, crossover operation, and mutation operation of the genetic algorithm in step (2.3) to update the binary vector is as follows: Step (2.3-1): Set h to 1, 2, ..., H respectively, and calculate w1, w2, ..., w according to the following formula: H The corresponding selection probabilities are P1, P2, ..., P H : Step (2.3-2): Generate a random number between 0 and 1 And from P1, P2, ..., P H Find the conditions that meet The maximum probability of being selected is obtained, and the binary vector corresponding to the maximum probability of being selected is selected; this step is repeated H times until H binary vectors are selected, and then these H binary vectors are recorded as w1, w2, ..., w H ; Step (2.3-2): Initialize η=1; Step (2.3-3): Generate a random number between 0 and 1 Determine whether the conditions are met If so, first randomly generate an integer C in the interval [2, N-1], and then swap w η With w η+1 The first C elements in ; if not, keep w η With w η+1 constant; Step (2.3-4): Generate a random number between 0 and 1 Determine whether the conditions are met If so, first randomly generate an integer D in the interval [1, N], and then η Subtract 1 from the Dth element in and take its absolute value; if not, keep w η constant; Step (2.3-5): After setting η = η + 1, execute the implementation process described in step (2.3-4) to w η Implement the same treatment; Step (2.3-6): Determine whether the condition η<N-1 is satisfied; if so, set η=η+1 and return to step (2.3-3); if not, complete the genetic algorithm for binary vectors w1, w2, ..., w H Updates.