Rotary cement kiln temperature soft measurement modeling method based on offset compensation and optimized Elman neural network
By using the Elman neural network method based on offset compensation and optimization in the cement rotary kiln, the problems of inaccurate temperature detection and poor prediction accuracy in the existing technology are solved, and high-precision prediction of the temperature of the cement rotary kiln is achieved, improving improve production efficiency.
Patent Information
- Application Number
- CN202410872162.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-01
- Publication Date
- 2024-09-17
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing technology is difficult to accurately detect the temperature of cement rotary kilns, resulting in low production efficiency, high energy consumption and poor prediction accuracy. It is difficult for static models to capture the dynamic characteristics of data.
The Elman neural network method based on offset compensation and optimization is used to screen variables through kernel principal component analysis, construct an Elman neural network, and use the Harris Eagle algorithm to optimize weights and thresholds, combined with the offset compensation method for prediction.
It improves the accuracy and model performance of rotary kiln temperature prediction, can effectively capture nonlinear and time-varying characteristics, reduces prediction errors, and improves production efficiency.
Smart Images

Figure CN118656593A
Abstract
Description
Technical Field
[0001] The invention relates to the field of soft measurement modeling, and in particular to a cement rotary kiln temperature soft measurement modeling method based on offset compensation and optimized Elman neural network. Background Art
[0002] The cement rotary kiln is an important thermal equipment in the cement production process, and the burning zone temperature is one of the key indicators affecting the quality of cement clinker. Accurate detection of the burning zone temperature is the key to improving the quality of clinker, reducing production energy consumption, and ensuring safe and stable operation of cement production. Due to the difficulty in physical detection of the burning zone temperature, the sintering temperature is still judged by the fire watcher based on the flame image in the kiln and the kiln front control is performed. There are problems such as large fluctuations in working conditions, low production efficiency, and high energy consumption. Therefore, effective detection of the rotary kiln temperature is of great significance.
[0003] With the continuous expansion of the field of deep learning, soft measurement technology provides a new idea for the online detection of rotary kiln temperature. Soft measurement technology mines the characteristic information between key variables and process variables to establish the corresponding soft measurement model, thereby realizing the online detection and real-time measurement of key variables. However, there are often massive process data in the cement production process. These data contain a lot of potential and useful information that is beneficial to cement production, but this has not contributed to the development of cement companies. Therefore, it is necessary to construct a soft measurement model to predict the rotary kiln temperature when there is less parameter information.
[0004] The cement production process is a typical process industry, and the corresponding process measurement data gradually shows characteristics such as large lag, nonlinearity, strong coupling, and dynamic correlation. Static models such as LSTM, BP, and ELM are difficult to capture the dynamic characteristics between data, resulting in poor prediction accuracy; therefore, the use of dynamic neural networks for related modeling has more research value and practical prospects. Summary of the invention
[0005] Purpose of the invention: In view of the problems pointed out in the background technology, the present invention proposes a cement rotary kiln temperature soft measurement modeling method based on offset compensation and optimized Elman neural network, so as to achieve effective prediction of the rotary kiln temperature.
[0006] Technical solution: The present invention discloses a cement rotary kiln temperature soft-sensing modeling method based on offset compensation and optimized Elman neural network, comprising the following steps:
[0007] Step 1: Establish a temperature history data set of the rotary kiln firing zone, screen the variables of the data set through the kernel principal component analysis method KCPA, and divide it into a training set and a test set after preprocessing;
[0008] Step 2: Construct the Elman neural network and determine the parameters of the network, initialize the weights and thresholds of the Elman neural network;
[0009] Step 3: Use the Harris Eagle algorithm to optimize the weights and thresholds of the Elman neural network, and use the training set to train the optimized Elman neural network;
[0010] Step 4: Input the test set into the trained optimized Elman neural network for prediction, and compensate the prediction result by the offset compensation method, and output the compensated prediction result;
[0011] The offset compensation method is specifically as follows:
[0012] e(n)=ηe 0 (n)+(1-η)e(n-1)
[0013] e 0 (n) = y(n-1) - y p (n-1)
[0014] y after (n) = y predict (n)+e(n)
[0015] Among them, e(n) and e 0 (n) are the total deviation and current deviation at the nth moment, η is the control parameter, y after (n) is the predicted value after offset compensation at the nth moment.
[0016] Furthermore, in step 1, the variables of the data set are screened by using the kernel principal component analysis method KCPA, which specifically includes the following steps:
[0017] Step 1.1: Take M continuous sample data in the data set for normalization and calculate the kernel matrix S;
[0018] Step 1.2: Center the kernel matrix S, calculate the eigenvalues of the kernel matrix S, sort the eigenvalues from large to small, and obtain the eigenvector matrix;
[0019] Step 1.3: Select the eigenvectors corresponding to the first m eigenvalues as the principal components, construct a new dimensionality reduction space, and map the original data set to the constructed dimensionality reduction space to obtain the principal component matrix;
[0020] Step 1.4: Calculate the cumulative variance contribution rate Q in the principal component matrix. The specific expression is:
[0021]
[0022] Among them, λ iis the eigenvalue of the i-th principal component, is the sum of the eigenvalues corresponding to the first m principal components, is the cumulative sum of all eigenvalues.
[0023] Furthermore, in step 1, the data set after the variables are screened is preprocessed by using a box plot method to detect outliers, and replacing the abnormal data by a mean method.
[0024] Furthermore, in step 2, the constructed Elman neural network specifically includes the following steps:
[0025] Assuming that the input layer variables, hidden layer variables and output layer variables of the Elman network at time n are u(n), x(n) and y(n) respectively, the mathematical model of the Elman network can be expressed as:
[0026] x(n)=f e (w 1 x c (n)+w 2 u(n-1)) (2)
[0027] x c (n) = ηx c (n-1)+x(n-1) (3)
[0028] y(n)=g e (w 3 x(n)) (4)
[0029] Among them, x c (n) is the feedback variable of the receiving layer, w 1 、w 2 and w 3 are the connection weight matrices from the receiving layer to the hidden layer, from the input layer to the hidden layer, and from the hidden layer to the output layer, respectively. η is the control parameter of the receiving layer, and f e is the transfer function of the hidden layer, g e is the activation function of the output layer.
[0030] Further, in step 3, the weights and thresholds of the Elman neural network are optimized using the Harris Eagle algorithm, which specifically includes the following steps:
[0031] Step 3.1: Randomly initialize the Harris Hawk population in the solution space according to the set parameters, and the fitness function is the Elman neural network error function;
[0032] Step 3.2: Calculate the fitness function to determine the prey location, and decide whether the algorithm enters the exploration phase based on the improved escape energy;
[0033]
[0034] E=2E 0 ω(k) (7)
[0035] Where k is the current iteration number, K is the maximum iteration number, and ω(k) is the improved nonlinear inertia weight;
[0036] Step 3.3: If yes, the Harris Hawk performs a position update in the exploration phase, if no, the Harris Hawk performs a position update in the exploitation phase using any of the four hunting methods;
[0037] Step 3.4: Determine whether the number of iterations reaches the upper limit. If not, return to step 3.3. If reached, output the position and fitness value of the Harris Hawk, that is, the optimal weight and threshold of the Elman neural network.
[0038] Furthermore, in step 3.1, the Elman neural network error function is specifically expressed as:
[0039]
[0040] Among them, NP is the total number of input samples, y(t) and are the predicted value and actual value obtained when the time step is t, respectively.
[0041] Beneficial Effects
[0042] 1. Aiming at the nonlinear and time-varying characteristics of cement rotary kiln calcination process, it is proposed to use the dynamic neural network Elman with deep characterization ability of nonlinear characteristics as the main model of soft measurement modeling, which solves the problem that static models are mostly used in rotary kiln temperature prediction and the prediction results are poor.
[0043] 2. In order to improve the prediction accuracy of the Elman neural network, the improved Harris Eagle algorithm is used to optimize the weights and thresholds of the model. The performance of the optimized model is much higher than that of the model with hyperparameters determined by prior knowledge.
[0044] 3. Aiming at the problem of low prediction accuracy caused by state drift in the operation process of cement rotary kiln, the offset compensation method is used to deal with the slow time-varying drift of process characteristics, so as to improve the model performance. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 It is a flow chart of the present invention;
[0046] Figure 2 It is a schematic diagram of the principle of the present invention;
[0047] Figure 3 It is the structural diagram of the Elman neural network model of the present invention;
[0048] Figure 4 It is the inertia weight change curve diagram of the present invention;
[0049] Figure 5 This is a schematic diagram of the change of escape energy before and after the improvement of the present invention;
[0050] Figure 6 This is a result diagram of the cement rotary kiln temperature soft-sensing model of the optimized Elman neural network without adding offset compensation in the embodiment of the present invention;
[0051] Figure 7 This is a result diagram of the cement rotary kiln temperature soft-sensing model of the optimized Elman neural network with offset compensation added in the embodiment of the present invention. DETAILED DESCRIPTION
[0052] In order to make the technical problems solved by the present invention and the beneficial results more clear, the present invention is further described in detail with examples given below. The simulation described herein is only used to explain the present invention and is not used to limit the present invention.
[0053] like Figure 1 As shown, the present invention discloses a cement rotary kiln temperature soft sensor modeling method based on offset compensation and optimized Elman neural network, which specifically includes the following steps:
[0054] Step 1: Establish a historical data set of temperature in the firing zone of a rotary kiln, screen the variables of the data set through kernel principal component analysis (KCPA), and divide it into a training set and a test set after preprocessing.
[0055] The variables of the data set are screened by using the kernel principal component analysis method KCPA, which includes the following steps:
[0056] Step 1.1: Take M groups of continuous sample data in the data set for normalization and calculate the kernel matrix S;
[0057] Step 1.2: Center the kernel matrix S, calculate the eigenvalues of the kernel matrix S, sort the eigenvalues from large to small, and obtain the eigenvector matrix;
[0058] Step 1.3: Select the eigenvectors corresponding to the first m eigenvalues as the principal components, construct a new dimensionality reduction space, and map the original data set to the constructed dimensionality reduction space to obtain the principal component matrix;
[0059] Step 1.4: Calculate the cumulative variance contribution rate Q in the principal component matrix. The specific expression is:
[0060]
[0061] Among them, λ i is the eigenvalue of the i-th principal component, is the sum of the eigenvalues corresponding to the first m principal components, is the cumulative sum of all eigenvalues.
[0062] The data set after screening variables is preprocessed, the box plot method is used to detect outliers, and the mean method is used to replace abnormal data.
[0063] Step 2: Construct the Elman neural network and determine the parameters of the network, and initialize the weights and thresholds of the Elman neural network.
[0064] like Figure 3 As shown, assuming that the input layer variables, hidden layer variables and output layer variables of the Elman neural network at time n are u(n), x(n) and y(n) respectively. Then the mathematical model of the Elman network can be expressed as:
[0065] x(n)=f e (w 1 x c (n)+w 2 u(n-1)) (2)
[0066] x c (n) = ηx c (n-1)+x(n-1) (3)
[0067] y(n)=g e (w 3 x(n)) (4)
[0068] Among them, x c (n) is the feedback variable of the receiving layer, w 1 、w 2 and w 3 are the connection weight matrices from the receiving layer to the hidden layer, from the input layer to the hidden layer, and from the hidden layer to the output layer, respectively. η is the control parameter of the receiving layer, and f e is the transfer function of the hidden layer, g e is the activation function of the output layer.
[0069] Step 3: Use the improved Harris Eagle algorithm to optimize the network weights and thresholds, and use the training set to train the optimized Elman neural network.
[0070] Step 3.1: Randomly initialize the Harris Hawk population in the solution space according to the set parameters, and the fitness function is the Elman neural network error function;
[0071] The error function of the Elman neural network is expressed as follows:
[0072]
[0073] Among them, NP is the total number of input samples, y(t) and are the predicted value and actual value obtained when the time step is t, respectively.
[0074] Step 3.2: Calculate the fitness function to determine the prey location and decide whether the algorithm enters the exploration phase based on the improved escape energy.
[0075] The improved escape energy is expressed as:
[0076]
[0077] E=2E 0 ω(k) (7)
[0078] Where k is the current iteration number, K is the maximum iteration number, and ω(k) is the improved nonlinear inertia weight. Figure 4 It can be seen that compared with the linear inertia weight, the improved nonlinear inertia weight of the present invention maintains a slower convergence speed before the middle of the iteration, which is conducive to the algorithm's full exploration of the search space; the convergence speed drops rapidly in the late iteration, which is conducive to improving the performance and efficiency of local search. Figure 5 It can be seen that the improved escape energy E also changes slowly in the early stage, but changes rapidly in the later stage, which increases the global search ratio by 115.8%. Therefore, the improved escape energy of the present invention can ensure the reasonable allocation of the algorithm in global search ability and local development ability, thereby reducing the possibility of the algorithm falling into the local optimal solution.
[0079] Step 3.3: If yes, the Harris Hawk performs a position update in the exploration phase. If no, the Harris Hawk performs a position update in the exploitation phase using any of the four hunting methods.
[0080] The position update formula of Harris Hawk during the exploration phase and the exploitation phase is:
[0081] When |E|>1, the position update formula of Harris Hawk in the exploration phase is:
[0082]
[0083] Among them, p is the policy probability control parameter, X(k+1) and X rand (k) are the next moving position of the Harris Hawk and the position of a random individual in the current population. r1, r2, r3, and r4 are all random numbers in the range of (0,1). rabbit (k) is the position of the prey to be captured, X m (k) is the average value of the current population position, and the specific expression is:
[0084]
[0085] When |E|≤1, the Harris Hawk will enter the development phase, which is manifested in the following four ways:
[0086] Soft siege: When |E|≥0.5 and r≥0.5, the prey is in the encirclement but has enough energy to escape, so the hawks will continue to circle around the prey to further consume the prey's energy. The Harris Hawk position update formula is:
[0087] X(k+1)=ΔX(k)-E·|J·X rabbit (k)-X(k)| (10)
[0088] ΔX(k)=X rabbit (k)-X(k) (11)
[0089] Among them, ΔX(k) is the distance between the current prey and Harris’s hawk, and J∈(0,2) is the jumping strength of the prey.
[0090] Hard siege: When |E|<0.5 and r≥0.5, the prey is in the encirclement but does not have enough energy to escape. The hawks will raid the prey. The position update formula of the Harris hawk is:
[0091] X(k+1)=X rabbit (k)-E·|ΔX(k)| (12)
[0092] Fast dive soft encirclement: When |E|≥0.5 and r<0.5, the escape energy can still allow the prey to escape from the Harris Hawk's hawk. Before the Harris Hawk attacks its prey, it will still adopt a soft encirclement strategy. In HHO, Levy flight is used to simulate the escape and jumping behavior of prey. Levy flight is used in conjunction with a specific position update strategy to enhance the algorithm's global search capability and convergence speed. At this time, the Harris Hawk's position update formula is:
[0093] Y=X rabbit (k)-E·|J·X rabbit (k)-X(k)| (13)
[0094] Z=Y+W·LF(D) (14)
[0095]
[0096] Where W is the random vector of D, LF is the Levy flight function, and the specific expression is:
[0097]
[0098] Diving hard encirclement: When |E|<0.5 and r<0.5, if the prey cannot escape, the Harris Hawk will adopt a hard encirclement strategy to capture the prey. In this encirclement, the Harris Hawk will try to reduce the average distance with the prey. At this time, the Harris Hawk's position update formula is:
[0099] Y=X rabbit (k)-|E·X rabbit (k)-X m (k)| (17)
[0100] Step 3.4: Determine whether the number of iterations reaches the upper limit. If not, return to step 3.3. If reached, output the position and fitness value of the Harris Hawk, that is, the optimal weight and threshold of the Elman neural network.
[0101] Step 4: Input the test set into the trained optimized Elman neural network for prediction, compensate the prediction results through the offset compensation method, and output the compensated prediction results.
[0102] Offset compensation method, the specific expression is:
[0103] e(n)=ηe 0 (n)+(1-η)e(n-1) (18)
[0104] e 0 (n) = y(n-1) - y p (n-1) (19)
[0105] y after (n) = y predict (n)+e(n) (20)
[0106] Among them, e(n) and e 0 (n) are the total deviation and current deviation at the nth moment, η is the control parameter, y after (n) is the predicted value after offset compensation at the nth moment.
[0107] In a specific embodiment of the present invention, the collected data comes from a new dry cement production line of a domestic cement plant, with a total of 600 groups collected. 10 process variables are pre-selected based on expert knowledge, and the dimensions are reduced by the KCPA algorithm. The first 7 principal components are taken as auxiliary variables of the model, and the cumulative variance contribution rate is 85%. The individual contribution rate and cumulative contribution rate of the first 7 principal components by the KPCA algorithm are shown in Table 1.
[0108] Table 1 Cumulative contribution rate of the first 7 principal components
[0109]
[0110]
[0111] As a typical process industry, the cement production process has corresponding process measurement data that gradually show characteristics such as large lag, nonlinearity, strong coupling, and dynamic correlation. The present invention uses KPCA to perform nonlinear changes, and can map the original data to a high-dimensional space by introducing an implicit nonlinear mapping function, and then perform linear dimensionality reduction on this space, which has a better effect on data selection. According to the principal component analysis results of Table 1, the input variables of the model are determined to be 7, and the corresponding auxiliary variables are respectively coal feeding amount, kiln speed, kiln head temperature, kiln tail temperature, kiln main machine current, secondary air temperature and tertiary air temperature, and the output is the burning zone temperature.
[0112] In order to verify the effectiveness and superiority of the model proposed in the present invention, this embodiment uses BP neural network, Elman neural network, and HHO-Elman neural network as control groups, wherein BP uses a single hidden layer network structure with 60 nodes and 14 neurons in the Elman neural network. At the same time, for the convenience of description, the optimized Elman neural network without the offset compensation method and the optimized Elman neural network with the offset compensation are respectively recorded as Model A and Model B, wherein the control parameter η=0.4. The HHO parameters are set as follows: Harris Hawk population size=50, maximum number of iterations=100, number of dimensions=2, and mean absolute error (MAE) and root mean square error (RMSE) are used as performance indicators for evaluating the model. The performance indicators of various models are shown in Table 2.
[0113] Table 2 Performance indicators of various models
[0114]
[0115] Depend on Figure 6 and Figure 7 The prediction results and performance index comparison table 2 verify that the model proposed in the present invention has excellent prediction accuracy and generalization ability for the temperature process variables of the firing zone with nonlinear and non-stationary characteristics; in particular, compared with Model A, the fitting effect of Model B with offset compensation is very good, which is basically consistent with the trend of the actual temperature value, and at the same time can ensure a high prediction accuracy, which further proves the effectiveness of the model proposed in the present invention.
Claims
1. A cement rotary kiln temperature soft-sensor modeling method based on offset compensation and optimized Elman neural network, It is characterized in that The following steps are involved: Step 1: Establish a temperature history data set of the rotary kiln firing zone, screen the variables of the data set through the kernel principal component analysis method KCPA, and divide it into a training set and a test set after preprocessing; Step 2: Construct the Elman neural network and determine the parameters of the network, initialize the weights and thresholds of the Elman neural network; Step 3: Use the Harris Eagle algorithm to optimize the weights and thresholds of the Elman neural network, and use the training set to train the optimized Elman neural network; Step 4: Input the test set into the trained optimized Elman neural network for prediction, and compensate the prediction result by the offset compensation method, and output the compensated prediction result; The offset compensation method is specifically as follows: e(n)=ηe 0 (n)+(1-n)e(n-1) and 0 (n)=y(n-1)-y p (n-1) and after (n)=y predict (n)+e(n) Among them, e(n) and e 0 (n) are the total deviation and current deviation at the nth moment, η is the control parameter, y after (n) is the predicted value after offset compensation at the nth moment.
2. According to claim 1, a cement rotary kiln temperature soft sensor modeling method based on offset compensation and optimized Elman neural network, It is characterized in that In step 1, the variables of the data set are screened by using the kernel principal component analysis method KCPA, which specifically includes the following steps: Step 1.1: Take M continuous sample data in the data set for normalization and calculate the kernel matrix S; Step 1.2: Center the kernel matrix S, calculate the eigenvalues of the kernel matrix S, sort the eigenvalues from large to small, and obtain the eigenvector matrix; Step 1.3: Select the eigenvectors corresponding to the first m eigenvalues as the principal components, construct a new dimensionality reduction space, and map the original data set to the constructed dimensionality reduction space to obtain the principal component matrix; Step 1.4: Calculate the cumulative variance contribution rate Q in the principal component matrix. The specific expression is: Among them, λ i is the eigenvalue of the i-th principal component, is the sum of the eigenvalues corresponding to the first m principal components, is the cumulative sum of all eigenvalues.
3. According to claim 1, a cement rotary kiln temperature soft sensor modeling method based on offset compensation and optimized Elman neural network, It is characterized in that In step 1, the data set after the variables are filtered is preprocessed by using the box plot method to detect outliers and replacing the abnormal data by the mean method.
4. According to claim 1, a cement rotary kiln temperature soft sensor modeling method based on offset compensation and optimized Elman neural network, It is characterized in that In step 2, the constructed Elman neural network specifically includes the following steps: Assuming that the input layer variables, hidden layer variables and output layer variables of the Elman network at time n are u(n), x(n) and y(n) respectively, the mathematical model of the Elman network can be expressed as: x(n)=f e (w 1 x c (n)+w 2 u(n-1)) (2) x c (n)=ηx c (n-1)+x(n-1) (3) y(n)=g e (w 3 x(n)) (4) Among them, x c (n) is the feedback variable of the receiving layer, w 1 、w 2 and w 3 are the connection weight matrices from the receiving layer to the hidden layer, from the input layer to the hidden layer, and from the hidden layer to the output layer, respectively. η is the control parameter of the receiving layer, and f e is the transfer function of the hidden layer, g e is the activation function of the output layer.
5. According to claim 1, a cement rotary kiln temperature soft sensor modeling method based on offset compensation and optimized Elman neural network, It is characterized in that In step 3, the weights and thresholds of the Elman neural network are optimized using the Harris Eagle algorithm, which specifically includes the following steps: Step 3.1: Randomly initialize the Harris Hawk population in the solution space according to the set parameters, and the fitness function is the Elman neural network error function; Step 3.2: Calculate the fitness function to determine the prey location, and decide whether the algorithm enters the exploration phase based on the improved escape energy; E=2E 0 ω(k) (7) Where k is the current iteration number, K is the maximum iteration number, and ω(k) is the improved nonlinear inertia weight; Step 3.3: If yes, the Harris Hawk performs a position update in the exploration phase, if no, the Harris Hawk performs a position update in the exploitation phase using any of the four hunting methods; Step 3.4: Determine whether the number of iterations has reached the upper limit. If not, return to step 3.
3. If it has, output the position and fitness value of the Harris Hawk, that is, the optimal weight and threshold of the Elman neural network.
6. A cement rotary kiln temperature soft sensor modeling method based on offset compensation and optimized Elman neural network according to claim 5, It is characterized in that In step 3.1, the Elman neural network error function is specifically expressed as: Among them, NP is the total number of input samples, y(t) and are the predicted value and actual value obtained when the time step is t, respectively.
Citation Information
Patent Citations
Sea wave active compensation control method based on predictive control
CN111665722A
RBF (Radial Basis Function) neural network optimization method based on improved Harlisia eagle algorithm
CN113240069A
Short-term load prediction method for optimizing Elman neural network based on sparrow search algorithm
CN113689029A
Cited By
Road adhesion coefficient prediction method based on enhanced northern eagle-Elman neural network
CN119314131A
Soil nutrient detection method and system fusing prior guidance and global optimization
CN122200384A
A soil nutrient detection method and system fusing priori guidance and global optimization
CN122200384B
