A soft-sensing method for butane concentration in debutanizer based on SFA-GRNN series model

By using the SFA-GRNN series model in the debutanizer tower to extract slow features and conduct real-time soft measurements, the problems of traditional hardware sensor hysteresis and neural network overfitting are solved, and the measurement accuracy and generalization of butane concentration are improved. ability.

CN113919213BActive Publication Date: 2024-10-15NINGXIA SHENGZE ENERGY TECHNOLOGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111156323.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-22
Publication Date
2024-10-15
Estimated Expiration
2041-09-22

AI Technical Summary

Technical Problem

Traditional hardware sensors have hysteresis in measuring butane concentration in the debutanizer tower. Neural network technology is prone to over-fitting in soft measurements, resulting in poor accuracy. Moreover, the generalization ability of GRNN is not enough to meet the soft measurement of the concentration at the bottom of the debutanizer tower. Measurement needs.

Method used

The slow feature analysis (SFA) algorithm is used to extract the slowly changing characteristics of the debutanizer process, and is used as the input of the generalized regression neural network (GRNN) model. Real-time soft measurement of butane concentration is performed through the SFA-GRNN series model.

Benefits of technology

The generalization performance and soft measurement accuracy of the GRNN model are improved, noise interference is reduced, and accurate real-time measurement of butane concentration at the bottom of the debutanizer tower is achieved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113919213B_ABST
    Figure CN113919213B_ABST
Patent Text Reader

Abstract

The present invention discloses a soft measurement method for butane concentration in a debutanizer based on an SFA-GRNN series model. When the method of the present invention establishes a soft measurement model for butane concentration in the bottom product of the debutanizer, the SFA algorithm is first used to convert the data corresponding to the original input variable into representative input features, and the interference of many noise information is also eliminated while reducing the dimension; secondly, the method of the present invention uses the input features after dimensionality reduction as the input of the GRNN model, so that the SFA and GRNN are connected in series, and the soft measurement value of the butane concentration is calculated on this basis. In a specific implementation case, the effectiveness and accuracy of the method of the present invention in softly measuring the butane concentration of the bottom product of the debutanizer are verified by comparing the experimental results.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a soft measurement method, in particular to a soft measurement method for butane concentration of a debutanizer based on a SFA-GRNN series model. Background Art

[0002] The debutanizer is a part of the equipment used for desulfurization and naphtha separation in the industrial refining process. Its purpose is to remove propane and butane from naphtha gas. In order to effectively improve the control of the process, it is extremely important to minimize the bottom butane concentration as much as possible during the production process. Therefore, real-time measurement of butane concentration is particularly critical for improving product quality and process control. Traditional technical means are to obtain the butane concentration at the bottom of the debutanizer through a chromatograph. However, this method has a very big flaw, namely: the measurement data of butane concentration has a large lag. Therefore, the use of a hardware sensor such as a chromatograph is very unfavorable for real-time control of the debutanizer, thereby accurately regulating the butane concentration at the bottom of the debutanizer.

[0003] In order to overcome this problem, an alternative measurement method is to use soft measurement technology to measure the butane concentration in the bottom product of the debutanizer in real time online. In existing scientific research literature and patent documents, soft measurement methods and technologies are diverse, and the applicable process objects are also different. Due to the complexity and nonlinear characteristics of the debutanizer process itself, the soft measurement accuracy that can be achieved by the linear regression algorithm is very limited. Although there are many improvements to the soft measurement technology based on the linear regression algorithm, the soft measurement effect that can be achieved is not as good as that of the neural network.

[0004] However, the currently used neural network technologies, such as Elman neural network, BP neural network, and echo state network, all have a fatal problem, which is overfitting. In other words, for training data, the fitting accuracy of the neural network is very high, but in actual application, the soft measurement accuracy is unsatisfactory. Therefore, the soft measurement of the bottom concentration of the debutanizer based on neural network technology needs further discussion. In addition, in the field of neural network research, the generalized regression neural network (abbreviated as GRNN) has strong nonlinear mapping capabilities and high robustness and fault tolerance. It has no advantage in network training and has been valued in the field of soft measurement technology. However, GRNN also faces the problem of overfitting. When applied to the soft measurement of the bottom concentration of debutanizer, its generalization ability needs to be improved! Summary of the invention

[0005] The main technical problem to be solved by the present invention is: how to use the slow feature analysis (SFA) algorithm to improve the generalization performance of the GRNN model applied to the soft measurement of the bottom concentration of the debutanizer, thereby improving its soft measurement accuracy. Specifically, the method of the present invention first extracts the slowly changing features in the input variables of the debutanizer process through SFA, and then uses the extracted slowly changing features as the input of the GRNN model to implement real-time soft measurement of the butane concentration at the bottom of the debutanizer.

[0006] The technical solution adopted by the method of the present invention to solve the above problem is: a soft measurement method for butane concentration in a debutanizer based on the SFA-GRNN series model, comprising the following steps:

[0007] Step (1): Determine the input variables of the butane concentration soft measurement model, including: tower top temperature, tower top pressure, reflux flow, bottom product outlet flow, 6th tower plate temperature, tower kettle temperature, and tower bottom temperature; and determine the butane concentration in the tower bottom product as the output variable of the butane concentration soft measurement model.

[0008] Step (2): After continuously collecting n sample data according to the determined input variables and output variables, the sample data corresponding to the input variables are stored as an n×7-dimensional data matrix X, and the data corresponding to the output variables are stored as an n×1-dimensional data vector y.

[0009] Step (3): Standardize the column vectors z1, z2, ..., z7 in X according to the following formula, and obtain 7 column vectors And the column vector Forming a matrix

[0010]

[0011] Among them, R n×7 represents an n×7-dimensional real matrix, R represents a real number set, μ i With δ i Represents the column vector z i The mean and standard deviation of all elements in , i∈{1, 2, …, 7}.

[0012] Step (4): After setting the time series order to d, construct the input matrix X0∈R according to the following formula: N×m :

[0013]

[0014] Among them, R N×m represents a real number matrix of N×m dimensions, N=n-d+1, m=7×d, xj ∈R 1×7 Representation Matrix The row vector of the j-th row in , j∈{1, 2, …, n}, the time series order d is a positive integer, and its recommended value range is 2≤d≤5.

[0015] Step (5): Use the SFA algorithm to solve the transformation matrix P∈R m×K After that, the input matrix X0 is transformed into the input feature matrix S=X0P. The specific implementation process is shown in steps (5.1) to (5.4).

[0016] Step (5.1): The covariance matrix C = X0 of the input matrix X0 T X0 / (N-1) implements singular value decomposition, that is, C = UΛU T ; Among them, U∈R m×m The unitary matrix representing the singular value decomposition, the diagonal matrix Λ∈R m×m The elements on the diagonal are singular values.

[0017] Step (5.2): According to the formula Z = X0UΛ -1 / 2 After calculating the whitening matrix Z, according to the formula Compute the first-order difference matrix Among them, Z2 represents the matrix composed of row vectors from the 2nd row to the Nth row in the whitening matrix Z, Z1 represents the matrix composed of row vectors from the 1st row to the N-1th row in the whitening matrix Z, and R (N-1)×m Represents a (N-1)×m-dimensional real matrix.

[0018] Step (5.3): Calculate the matrix Then solve the eigenvalue problem In the above equation, all eigenvalues ​​λ1≤λ2≤…≤λ m The corresponding eigenvectors v1, v2, …, v m ; where k∈{1, 2,…, m}.

[0019] Step (5.4): Take the smallest K eigenvalues ​​λ1, λ2, …, λ K The corresponding eigenvectors v1, v2, …, v K The matrix V = [v1, v2, ..., v k ], and then calculate the transformation matrix P = UΛ -1 / 2 V.

[0020] Step (6): According to the following formula, the K column vectors s1, s2, ..., s in the input feature matrix S are K And the data vector y are normalized respectively, and the corresponding column vector is obtained And the output vector

[0021]

[0022] Among them, γ∈{1, 2, …, K}, s γ (min) and s γ (max) respectively represent the γth column vector s γ y(min) and y(max) represent the minimum and maximum values ​​in the data vector y, respectively.

[0023] Step (7): Construct the input feature matrix And the output vector The dth to nth elements in form the output vector y0∈R N×1 After that, a GRNN model consisting of an input layer, a pattern layer, a summation layer, and an output layer is built; the number of neurons in the input layer is equal to K, the number of neurons in the pattern layer is equal to N, the number of neurons in the summation layer is equal to 2, the number of neurons in the output layer is equal to 2, and the reference vector of the neurons in the pattern layer is The N row vectors in the summation layer, the weight vector of the neurons is equal to the output vector y0.

[0024] Step (8): At the latest sampling time t, collect the data u1(t), u2(t), ..., u7(t) corresponding to the seven input variables respectively, and standardize them according to the following formula to obtain the standardized data

[0025]

[0026] In the above formula, i∈{1, 2,…, 7}.

[0027] Step (9): Composed input data vector Then calculate the input feature vector s t =x t P.

[0028] Step (10): Calculate s according to the following formula: t Normalize each element in to get the normalized input feature vector

[0029]

[0030] Among them, s t (i) with Respectively represent s t and The i-th element in .

[0031] Step (11): Call the GRNN model built in step (7) to calculate the soft measurement value y(t) of the butane concentration in the bottom product of the debutanizer. The specific implementation process is shown in steps (11.1) to (11.4).

[0032] Step (11.1): Calculate the mode layer output vector z∈R of the GRNN model according to the following formula: N×1 :

[0033]

[0034] Among them, exp() represents the exponential function with natural number e as the base, and z(a) represents z∈R N×1 The ath element in express The row vector of the ath row in R, a∈{1, 2, …, N}, N×1 Represents a real vector of N×1 dimensions. The smoothing factor β is determined as follows: Calculate the input feature matrix The distance between each row vector in the , the maximum distance is recorded as D, then the smoothing factor β = D 2 / N.

[0035] Step (11.2): Calculate the summation layer output vector w∈R of the GRNN model according to the following formula: 2×1 :

[0036]

[0037] In the above formula, the superscript T represents the transpose of the matrix or vector, and y0(a) represents the a-th element in the output vector y0.

[0038] Step (11.3): According to the formula Calculate the output value of the output layer Among them, w(1) and w(2) represent the first and second elements in the summation layer output vector w respectively.

[0039] Step (11.4): According to the formula Calculate the soft measurement value y(t) of butane concentration in the bottom product of the debutanizer.

[0040] Step (12): Return to step (8) and continue to implement soft measurement of butane concentration in the bottom product of the debutanizer at the latest sampling time.

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

[0042] When the method of the present invention establishes a soft measurement model of butane concentration in the bottom product of the debutanizer, the SFA algorithm is first used to convert the data corresponding to the original input variable into representative input features, and the interference of many noise information is also proposed while reducing the dimension; secondly, the method of the present invention uses the input features after dimensionality reduction as the input of the GRNN model, so that the SFA and GRNN are connected in series, and the soft measurement value of butane concentration is calculated on this basis. In the following specific implementation case, the effectiveness and accuracy of the method of the present invention in softly measuring the concentration of the bottom product of the debutanizer are verified by comparing the experimental results. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0044] Figure 2 Schematic diagram of the composition structure of the debutanizer

[0045] Figure 3 This is a comparison diagram of the errors of the method of the present invention and other methods in real-time soft measurement of butane concentration. DETAILED DESCRIPTION

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

[0047] like Figure 1 As shown, the present invention discloses a soft measurement method for butane concentration in a debutanizer based on a SFA-GRNN series model. The specific implementation of the method of the present invention is described below in conjunction with a specific application example.

[0048] like Figure 2 As shown, the debutanizer process includes the following modules: a heat exchanger, a condenser, a heating regenerator, a reflux pump, a separator, and a reflux reservoir. Hardware sensors are installed in the device for real-time measurement of process variables in the reaction, including temperature, pressure, and flow. During the operation of the process, the butane concentration at the bottom needs to be analyzed by a gas chromatograph, which results in a large time lag in the measured data. Therefore, the butane concentration at the bottom of the debutanizer is soft-measured in real time using the method of the present invention.

[0049] Step (1): Determine the input variables of the butane concentration soft sensor model, including: tower top temperature, tower top pressure, reflux flow, bottom product outlet flow, 6th layer tower plate temperature, tower kettle temperature, and tower bottom temperature; and determine the butane concentration in the tower bottom product as the output variable of the soft sensor model.

[0050] Step (2): After continuously collecting n=1900 sample data according to the determined input variables and output variables, the sample data corresponding to the input variables are stored as an n×7-dimensional data matrix X, and the data corresponding to the output variables are stored as an n×1-dimensional data vector y.

[0051] Step (3): According to the above formula ①, the column vectors z1, z2, ..., z7 in X are respectively standardized to obtain 7 column vectors And the column vector Forming a matrix

[0052] Step (4): According to the above formula ②, construct the input matrix X0∈R N×m ; Among them, the time series order d=3.

[0053] Step (5): Use the SFA algorithm to solve the transformation matrix P∈R m×K After that, the input matrix X0 is transformed into the input feature matrix S=X0P. The specific implementation process is shown in the above steps (5.1) to (5.4).

[0054] Step (6): According to the above formula ③, the K column vectors s1, s2, ..., s in the input feature matrix S are K And the data vector y are normalized respectively, and the corresponding column vector is obtained And the output vector

[0055] Step (7) Build the input feature matrix And the output vector The dth to nth elements in form the output vector y0∈R N×1 Finally, a GRNN model consisting of an input layer, a pattern layer, a summation layer, and an output layer is built, and the input feature matrix The smoothing factor β is determined by each row vector in, and the specific implementation process is shown in steps (A) to (B).

[0056] Step (A): According to the formula Calculate the input feature matrix separately The a-th row vector and the b-th row vector The distance D(a, b) between them; where a∈{1, 2,…, N}, b∈{1, 2,…, N}.

[0057] Step (B): Distance matrix D∈R N×N The maximum value of the elements in is recorded as Then calculate the smoothing factor Among them, the element in the ath row and bth column of the distance matrix D is equal to D(a, b).

[0058] Step (8): At the latest sampling time t, collect the data u1(t), u2(t), ..., u7(t) corresponding to the 7 input variables listed in step (1) respectively, and perform standardization on them to obtain the standardized data

[0059] Step (9): Composed input data vector Then calculate the input feature vector s t =x t P.

[0060] Step (10): According to the above formula ⑤, t Normalize each element in to get the normalized input feature vector

[0061] Step (11): Call the GRNN model built in step (7) to calculate the soft measurement value y(t) of the butane concentration in the bottom product of the debutanizer. The specific implementation process is shown in the above steps (11.1) to (11.4).

[0062] Step (12): Return to step (8) and continue to implement soft measurement of butane concentration in the bottom product of the debutanizer at the latest sampling moment.

[0063] exist Figure 3 The figure shows the fitting relationship between the soft-measured value and the actual measured value of the butane concentration at the bottom of the tower at about 500 sampling moments. Figure 3 It can be found that the method of the present invention can basically obtain a relatively accurate butane concentration. Compared with the traditional soft measurement technology that directly uses GRNN, the soft measurement accuracy of the method of the present invention is improved.

[0064] 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 soft measurement method for butane concentration in debutanizer based on SFA-GRNN tandem model, characterized in that: The following steps are involved: Step (1): Determine the input variables of the butane concentration soft-sensing model, specifically including: tower top temperature, tower top pressure, reflux flow rate, bottom product outlet flow rate, sixth-layer tower plate temperature, tower kettle temperature, and tower bottom temperature; and determine the butane concentration in the tower bottom product as the output variable of the butane concentration soft-sensing model; Step (2): after continuously collecting n sample data according to the determined input variables and output variables, the sample data corresponding to the input variables are stored as an n×7-dimensional data matrix X, and the data corresponding to the output variables are stored as an n×1-dimensional data vector y; Step (3): Standardize the column vectors z1, z2, ..., z7 in X according to the following formula, and obtain 7 column vectors And the column vector Forming a matrix Among them, R n×7 represents an n×7-dimensional real matrix, R represents a real number set, μ i With δ i Represents the column vector z i The mean and standard deviation of all elements in , i∈{1, 2, …, 7}; Step (4): After setting the time series order to d, construct the input matrix X0∈R according to the following formula: N×m : Among them, R N×m represents a real number matrix of N×m dimensions, N=n-d+1, m=7×d, x j ∈R 1×7 Representation Matrix The row vector of the jth row in , j∈{1, 2, …, n}, the time series order d is a positive integer; Step (5): Use the SFA algorithm to solve the transformation matrix P∈R m×K After that, the input matrix X0 is transformed into the input feature matrix S = X0P. The specific implementation process is shown in steps (5.1) to (5.4); Step (5.1): The covariance matrix C = X0 of the input matrix X0 T X0 / (N-1) implements singular value decomposition, that is, C = UΛU T ; Among them, U∈R m×m The unitary matrix representing the singular value decomposition, the diagonal matrix Λ∈R m×m The elements on the diagonal are singular values; Step (5.2): According to the formula Z = X0UΛ -1 / 2 After calculating the whitening matrix Z, according to the formula Compute the first-order difference matrix Among them, Z2 represents the matrix composed of row vectors from the 2nd row to the Nth row in the whitening matrix Z, Z1 represents the matrix composed of row vectors from the 1st row to the N-1th row in the whitening matrix Z, and R (N-1)×m represents a real matrix of (N-1)×m dimensions; Step (5.3): Calculate the matrix Then solve the eigenvalue problem In the above equation, all eigenvalues ​​λ1≤λ2≤…≤λ m The corresponding eigenvectors v1, v2, …, v m ; where k∈{1, 2, …, m}; Step (5.4): Take the smallest K eigenvalues ​​λ1, λ2, …, λ K The corresponding eigenvectors v1, v2, …, v K The matrix V = [v1, v2, ..., v K ], and then calculate the transformation matrix P = UΛ -1 / 2 V; Step (6): According to the following formula, the K column vectors s1, s2, ..., s in the input feature matrix S are K And the data vector y are normalized respectively, and the corresponding column vector is obtained And the output vector Among them, γ∈{1, 2, …, K}, s γ (min) and s γ (max) respectively represent the γth column vector s γ y(min) and y(max) represent the minimum and maximum values ​​in the data vector y, respectively; Step (7): Construct the input feature matrix And the output vector The dth to nth elements in form the output vector y0∈R N×1 After that, a GRNN model consisting of an input layer, a pattern layer, a summation layer, and an output layer is built; the number of neurons in the input layer is equal to K, the number of neurons in the pattern layer is equal to N, the number of neurons in the summation layer is equal to 2, the number of neurons in the output layer is equal to 2, and the reference vector of the neurons in the pattern layer is The N row vectors in the summation layer, the weight vector of the neurons is equal to the output vector y0; Step (8): At the latest sampling time t, collect the data u1(t), u2(t), ..., u7(t) corresponding to the seven input variables respectively, and standardize them according to the following formula to obtain the standardized data Step (9): Composed input data vector Then calculate the input feature vector s t =x t P; Step (10): Calculate s according to the following formula: t Normalize each element in to get the normalized input feature vector Among them, s t (i) with Respectively represent s t and The i-th element in ; Step (11): Call the GRNN model built in step (7) to calculate the soft measurement value y(t) of the butane concentration in the bottom product of the debutanizer. The specific implementation process is shown in steps (11.1) to (11.4); Step (11.1): Calculate the mode layer output vector z∈R of the GRNN model according to the following formula: N×1 : Where exp( ) represents an exponential function with a natural number e as the base, and z(a) represents z∈R N×1 The ath element in express The row vector of the a-th row in , Represents the calculation of the input feature vector With row vector The distance between them, a∈{1, 2, …, N}, R N×1 represents an N×1-dimensional real vector, and β represents a smoothing factor; Step (11.2): Calculate the summation layer output vector w∈R of the GRNN model according to the following formula: 2×1 : Wherein, the superscript T represents the transpose of a matrix or vector, and y0(a) represents the ath element in the output vector y0; Step (11.3): According to the formula Calculate the output value of the output layer Where w(1) and w(2) represent the first and second elements of the summation layer output vector w respectively; Step (11.4): According to the formula Calculate the soft measurement value y(t) of butane concentration in the bottom product of the debutanizer; Step (12): Return to step (8) and continue to implement soft measurement of butane concentration in the bottom product of the debutanizer at the latest sampling time.

2. The soft sensing method for butane concentration in debutanizer based on SFA-GRNN tandem model according to claim 1, characterized in that: The method for determining the smoothing factor β in step (11.1) is as follows: Step (A): According to the formula Calculate the input feature matrix separately The a-th row vector and the b-th row vector The distance between them is D(a, b); where a∈{1, 2, ..., N}, b∈{1, 2, ..., N}; Step (B): Distance matrix D∈R N×N The maximum value of the elements in is recorded as Then calculate the smoothing factor Among them, the element in the ath row and bth column of the distance matrix D is equal to D(a, b).

Citation Information

Patent Citations

  • SAE-based real-time monitoring method for butane concentration of debutanizer bottom product

    CN111914477A

  • Polypropylene melt index soft measurement method based on nonlinear slow feature regression model

    CN113030156A