Prediction method and system based on molten steel temperature in refining process of LF refining furnace

Through the LSTM prediction model and the improved gray wolf optimization algorithm, the low accuracy and local optimal problems in the prediction of molten steel temperature in the LF refining furnace are solved, and efficient temperature prediction and model optimization are achieved.

CN118734702AInactive Publication Date: 2024-10-01ANHUI UNIV OF TECH SCI & TECH PARK CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202410875316.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-02
Publication Date
2024-10-01
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

It is difficult to accurately predict the molten steel temperature of the LF refining furnace with the existing technology, resulting in low prediction accuracy and the model easily falling into local optimality and slow convergence speed.

Method used

Using the LSTM prediction model combined with the improved gray wolf optimization algorithm, the model is optimized to improve prediction accuracy and convergence through data preprocessing and hyperparameter optimization.

Benefits of technology

It achieves accurate prediction of molten steel temperature, reduces model training time, and improves prediction accuracy and overall performance of the model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118734702A_ABST
    Figure CN118734702A_ABST
Patent Text Reader

Abstract

The invention discloses a molten steel temperature prediction method and system based on the refining process of an LF refining furnace, and particularly relates to the technical field of LF refining control, and the method comprises the following steps: obtaining LF refining furnace station entering parameters, including molten steel station entering temperature, molten steel weight, smelting time and argon blowing quantity, preprocessing the collected data, obtaining a preliminary LSTM prediction model, and calculating the LSTM prediction model according to the LSTM prediction model; the parameters influencing the molten steel temperature serve as input quantities, and the molten steel outbound temperature serves as output quantities; dividing a training set, a verification set and a test set, training the LSTM prediction model by using the prepared data set, adjusting parameters of the model through the verification set in the training process so as to minimize a prediction error, and finally evaluating the performance of the temperature prediction model by using the test set. According to the improved grey wolf algorithm, the problem of falling into local optimum too early is effectively solved, and the prediction precision of the model is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of LF refining control, and in particular to a method and system for predicting the temperature of molten steel in a refining process of an LF refining furnace. Background Art

[0002] In the modern steelmaking process, the LF refining furnace is a key production link. The molten steel after the primary refining furnace is not only difficult to reach the desired temperature, but also has a high impurity content. Inserting a graphite electrode to raise the temperature in the LF refining furnace or adding scrap steel will cause greater fluctuations in the temperature of the molten steel. Therefore, research and development of the molten steel temperature during the refining process of the LF refining furnace to match the LF refining cycle with the continuous casting cycle can not only improve the steel quality of modern steel enterprises, but also have important significance for reducing costs.

[0003] At present, the on-site temperature measurement of LF refining furnace adopts infrared temperature measurement or manual gun temperature measurement. Due to the large fluctuation of the temperature of molten steel entering the LF refining furnace and the large fluctuation of the refining cycle, and the infrared temperature measurement is not only sensitive to the ambient temperature and the conditions in the furnace, but also requires repeated operations such as repeated power supply and temperature measurement. Therefore, it is difficult to optimize the variables affecting the temperature of molten steel according to the specific on-site operating conditions with this temperature measurement method, resulting in a great waste of manpower and material resources. Similarly, manual temperature measurement is not only inefficient but also more prone to errors. Summary of the invention

[0004] In order to solve the problem that existing prediction methods are difficult to accurately predict the temperature of molten steel in an LF refining furnace, the present invention provides a method and system for predicting the temperature of molten steel in a refining process of an LF refining furnace, which effectively solves the problem that the model is prone to fall into local optimality and has a relatively slow convergence speed during the prediction process, resulting in reduced prediction accuracy.

[0005] In order to achieve the above object, the present invention provides the following technical solution: a method for predicting the temperature of molten steel in the refining process of a LF refining furnace, comprising the following steps:

[0006] Step 1: Obtain the LF refining furnace inlet parameters, including molten steel inlet temperature, molten steel weight, smelting time, and argon blowing amount, and preprocess the collected data to obtain a preliminary LSTM prediction model, taking the parameters affecting the molten steel temperature as input and the molten steel outlet temperature as output;

[0007] Step 2: Divide the training set, validation set and test set, and use the prepared data set to train the preliminary LSTM prediction model. During the training process, the validation set is used and the parameters of the model are adjusted to minimize the prediction error.

[0008] Step 3: After the LSTM prediction model training is completed, the improved Gray Wolf Optimization Algorithm is used to optimize and verify the hyperparameters of the LSTM prediction model to obtain the optimal parameter combination and finally obtain the LSTM prediction optimal model;

[0009] Step 4: Bring the set optimal parameter combination into the LSTM prediction model and complete the final training to obtain the predicted value of the molten steel temperature. Finally, use the test set sample data to evaluate the performance of the final temperature prediction model to achieve accurate prediction of the molten steel temperature.

[0010] Preferably, in step 1, the parameters affecting the temperature of the molten steel include the inlet temperature of the LF refining furnace, the quality of the molten steel, the smelting time and the amount of argon blowing.

[0011] Preferably, the data preprocessing in step 1 includes cleaning the data, removing outliers, filling missing values ​​and normalizing the data. The specific steps are as follows:

[0012] Step 3.1. Remove outliers

[0013] First, you need to calculate the mean M and standard deviation S of the data. The formula is as follows:

[0014] Z = (x - μ) / σ;

[0015] Where x is a single raw data value, μ is the population mean, and σ is the population standard deviation;

[0016] Define anomaly detection criteria to determine whether the data is an outlier. If it is an outlier, remove it.

[0017] Step 3.2. Fill in missing values

[0018] Use the filling method to fill in missing values ​​with a specific value;

[0019] Step 3.3. Normalization

[0020] Using the Min-Max normalization method, the original data is linearly transformed so that the result value is mapped to [0,1]. The conversion function is as follows:

[0021]

[0022] Among them, x new is the normalized data, x max is the maximum value of the sample data, x min is the minimum value of the sample data.

[0023] Preferably, the preliminary LSTM prediction model building steps in step 1 are as follows:

[0024] Step 4.1 determines the number of neurons in the input layer, hidden layer, and output layer. The input of the current time step and the hidden state of the previous time step are sent to the gate of the LSTM. The input gate, forget gate, and output gate are processed by the fully connected layer of the sigmoid activation function to calculate the input and output values. The specific process is as follows:

[0025] Step 4.2. First, LSTM accepts the input data X at the current time step t , and the hidden state h of the previous time step t-1 and cell state C t-1 , then the forget gate f t The sigmoid function is used to determine the degree of retention of each cell state value. The calculation formula of the forget gate is:

[0026] f t =σ(W f ·[h t-1 ,x t ]+b f );

[0027] Where σ is the sigmoid function, W f and b f The weight and bias of the forget gate, [h t-1 ,x t ] means concatenating the hidden state of the previous time step with the current input;

[0028] Step 4.3. Next, the LSTM decides what information should be stored in the cell state; this consists of two parts: a sigmoid layer that determines which values ​​will be updated, and a tanh layer that generates a candidate cell state quantity. Update input gate i t and input state The calculation formula is as follows:

[0029] i t =σ(W i ·[h t-1 ,x t ]+b i );

[0030]

[0031] Among them, i t is the output of the input gate, is the candidate cell state, W i , b i , W c and b c are the weights and biases of the input gate and candidate cell states;

[0032] Step 4.4. Based on the output of the forget gate and the input gate, LSTM updates the cell state. The calculation formula is as follows:

[0033]

[0034] Among them, f t ⊙C t-1 Indicates discarding some old cell states, Indicates adding a new candidate cell state;

[0035] Step 4.5. Finally, the output gate O t The sigmoid function determines which parts of the cell state are output; the cell state is then scaled by the tanh function and multiplied by the output of the output gate to obtain the final hidden state h t , the calculation formula is as follows:

[0036] O t =σ(W o ·[h t-1 ,x t ]+b o );

[0037] h t =O t ⊙tanh(C t );

[0038] Among them, W o and b o is the weight and bias term of the output gate, tanh is the activation function, which ensures the nonlinear factors of the model and always maintains h t In the interval [-1,1];

[0039] Step 4.6. Obtain a preliminary LSTM prediction model, whose input is the parameters affecting the temperature of the molten steel and whose output is the outlet temperature of the molten steel.

[0040] Preferably, step 3 specifically includes: using the improved gray wolf algorithm to iteratively solve the parameters of the LSTM prediction model, outputting the optimal solution of the parameters, and saving the generated optimal model, wherein the parameters include the number of hidden layers and the learning rate, and the specific operations are as follows:

[0041] The specific steps of the traditional grey wolf algorithm are as follows:

[0042] When building the mathematical model of gray wolves, the wolf pack is divided into four different social levels according to the fitness value of each individual gray wolf. We take the most suitable solution as α, therefore, the second and third best solutions are named β and δ respectively, and the remaining candidate solutions are assumed to be w. In the GWO algorithm, the hunting process is guided by α, β and δ, and w wolves follow these three wolves.

[0043] During hunting, the behavior of gray wolves encircling prey is defined as follows:

[0044] D=|C·X p (t)-X(t)|(1)

[0045] X(t+1)=X p (t)-A·D(2)

[0046] A=2a·r1-a(3)

[0047] C=2·r2 (4)

[0048] Formula (1) represents the distance between the individual and the prey, and formula (2) is the position update formula of the gray wolf.

[0049] Where t is the current iteration number, A and C are coefficient vectors, and X p and X are the position vectors of the prey and the gray wolf respectively, a is the convergence factor, which decreases linearly from 2 to 0 as the number of iterations decreases, and the modulos of r1 and r2 are random numbers between [0,1].

[0050] Gray wolves are able to identify the location of prey and surround them. After the gray wolves identify the location of the prey, β and δ guide the wolf pack to surround the prey under the leadership of α. The mathematical model of the gray wolf individual tracking the location of the prey is described as follows:

[0051] D α =|C1·X α -X|,

[0052] D β =|C2·X β -X|,

[0053] D δ =|C3·X δ -X| (5)

[0054] X1=X α -A1·(D α ),

[0055] X2=X β -A2·(D β ),

[0056] X3=X δ -A3·(D δ ) (6)

[0057]

[0058] Among them, D α , D β , D δRespectively represent the distances between α, β, δ and other individuals; X α , X β , X δ Represent the current positions of α, β, δ respectively; C1, C2, C3 are random vectors, and X is the current position of the gray wolf. Formula (6) defines the step size and direction of the individual ω in the wolf pack moving towards α, β, δ respectively, and formula (7) defines the final position of ω.

[0059] On the basis of the traditional grey wolf algorithm, the chaotic strategy reverse learning and improved nonlinear convergence factor are introduced. The specific operation steps of the improved grey wolf algorithm are as follows:

[0060] Step 5.1. First initialize the population size N and the maximum number of iterations t max , search dimension D, search range [l b ,u b ];

[0061] Step 5.2. Introduce the chaotic strategy to reversely learn the initialized population and generate N initial solutions X according to the expression of the Logistic chaotic map i , the formula is as follows:

[0062] x i+1 =μx i (1-x i )x i ∈(0,1) (8)

[0063] Among them, μ∈(2,4] is the chaos parameter; the larger μ is, the higher the chaos is;

[0064] Step 5.3. The N initial solutions X obtained in step 5.2 i Generate the corresponding N direction initial solutions X i ', the formula is as follows:

[0065] X i '=r[u b (i)+l b (i)]-X i (9)

[0066] Among them, r is a random number between [0,1]; u b (i) and l b (i) is X i The upper and lower bounds of the value;

[0067] Step 5.4. Sort the 2N initial solutions generated by steps 5.2 and 5.3 from small to large according to their fitness, and select the first N as the initial population of gray wolves;

[0068] Step 5.5. Then a nonlinear method is used to improve the search accuracy. For this purpose, an improved nonlinear function of the convergence factor is introduced, and the formula is as follows:

[0069]

[0070] Where k is the nonlinear adjustment coefficient. The improved iterative method has a low attenuation degree in the early stage of optimization, which can better find the global optimal solution. The high attenuation degree in the latter stage of optimization can improve the convergence speed. According to formula (10), the convergence factor a is updated, the fitness value of each individual in the group is calculated and sorted, and the Cauchy mutation is performed on the best individual to select α, β and δ wolves. The improved mutation strategy formula is as follows:

[0071] x i ' k =x ik [1+a 2 C(0,1)](11)

[0072] Among them, x ik is the element to be mutated; a is the improved nonlinear convergence factor; when a>1 in the pre-convergence stage, the mutation disturbance can be enhanced; when a<1 in the post-convergence stage, the mutation disturbance is reduced, which has an adaptive effect; C(0,1) is a random number with a distribution centered at 0 and a scale parameter of 1;

[0073] The specific implementation method of randomly selecting one of the dimensional mutations is: the position of the optimal gray wolf in the current generation in the D-dimensional space is x i ={x i1 ,x i2 ,…,x iD}, randomly select one of the elements x with probability 1 / D ik Perform Cauchy mutation and calculate the position vector x′ after mutation i The fitness value of x i The fitness values ​​of are compared, and the one with the smaller fitness value is taken as the optimal position and its fitness value is updated;

[0074] Step 5.6. Calculate C and A according to the corresponding formula, update the individual position of the gray wolf, and determine the location of the prey;

[0075] Step 5.7. Jump to step 5.5 until the maximum number of iterations is reached;

[0076] Step 5.8. Use the improved gray wolf algorithm to iteratively solve the number of hidden layers and learning rate of the LSTM prediction model to obtain the optimal solution of the hyperparameters and finally obtain the optimal LSTM prediction model.

[0077] The present invention also discloses a prediction system for the temperature of molten steel in the refining process of an LF refining furnace, comprising a computer-readable storage medium and a processor; the computer-readable storage medium is used to store executable instructions; the processor is used to read the executable instructions stored in the computer-readable storage medium and execute the above-mentioned prediction method.

[0078] The present invention has the following advantages:

[0079] The present invention adopts a data preprocessing method to eliminate the noise and irrelevant information in the original data set and integrate them together to improve the data quality of the model data; the improved gray wolf algorithm is used to optimize the number of hidden layers and learning rate of the LSTM neural network, which greatly reduces the training time of the model compared with the prior art. The improved gray wolf algorithm effectively solves the problem of falling into the local optimum too early and improves the prediction accuracy of the model. Combining the above methods, the combined prediction model has good accuracy and convergence. BRIEF DESCRIPTION OF THE DRAWINGS

[0080] Figure 1 This is the basic structure diagram of the LSTM neural network;

[0081] Figure 2 It is the structure diagram of the prediction model;

[0082] Figure 3 The present invention is a flowchart of the method for predicting the temperature of molten steel according to an embodiment of the present invention. DETAILED DESCRIPTION

[0083] The following is a description of the implementation of the present invention by specific embodiments. People familiar with the art can easily understand other advantages and effects of the present invention from the contents disclosed in this specification. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0084] Refer to the instruction manual Figure 1-3 The embodiment of the present invention provides a method for predicting the temperature of molten steel in a LF refining furnace refining process, comprising the following steps:

[0085] Step 1: Obtain the inlet parameters of the LF refining furnace and preprocess the collected data. The parameters affecting the molten steel temperature, including the inlet temperature, molten steel weight, smelting time, argon blowing amount, etc., are taken as input, and the molten steel outlet temperature is taken as output. 60% of the data is divided into a training set, 20% of the data is a validation set, and 20% of the data is divided into a test set.

[0086] Then, through data preprocessing, outliers are removed, missing values ​​are filled, and normalization is performed. In this embodiment, inlet temperature, molten steel weight, smelting time, and argon blowing amount are selected as input variables of the model.

[0087] The data preprocessing process is as follows:

[0088] 1.1 Eliminate outliers

[0089] First, you need to calculate the mean M and standard deviation S of the data. The formula is as follows:

[0090] Z = (x - μ) / σ;

[0091] Where x is a single raw data value, μ is the population mean, and σ is the population standard deviation;

[0092] This embodiment defines anomaly detection criteria: if Z<-3 or Z>3, the data is determined to be an outlier and is removed;

[0093] 1.2 Filling in missing values

[0094] Use the filling method to fill missing values ​​with a specific value, such as 0, median, specified character, or adjacent value;

[0095] 1.3 Normalization

[0096] Using the Min-Max normalization method, the original data is linearly transformed so that the result value is mapped to [0,1]. The conversion function is as follows:

[0097]

[0098] Among them, x new is the normalized data, x max is the maximum value of the sample data, x min is the minimum value of the sample data.

[0099] Step 2: Build an LSTM molten steel temperature prediction model. The basic structure of the LSTM neural network is as follows: Figure 1 This step specifically includes the following steps:

[0100] 2.1. In this embodiment, the number of neurons in the input layer is 5, which is the same as the number of input variables; the number of neurons in the output layer is 1. As in the number of output variables; the number of hidden layers is set to 1, the number of neurons in the hidden layer is 5, the learning rate of the neural network is 0.0001, the time step of the time series is 10, and the number of iterations of the model is 50. The specific process is:

[0101] 2.2. First, LSTM accepts the input data X at the current time step t , and the hidden state h of the previous time stept-1 and cell state C t-1 , then the forget gate f t The sigmoid function is used to determine the degree of retention of each cell state value. The calculation formula of the forget gate is:

[0102] f t =σ(W f ·[h t-1 ,x t ]+b f );

[0103] Where σ is the sigmoid function, W f and b f The weight and bias of the forget gate, [h t-1 ,x t ] means concatenating the hidden state of the previous time step with the current input;

[0104] 2.3. Next, LSTM decides what information should be stored in the cell state. This consists of two parts: a sigmoid layer that determines which values ​​will be updated, and a tanh layer that generates a candidate cell state quantity. Update input gate i t and input state The calculation formula is as follows:

[0105] i t =σ(W i ·[h t-1 ,x t ]+b i );

[0106]

[0107] Among them, i t is the output of the input gate, is the candidate cell state, W i , b i , W c and b c are the weights and biases of the input gate and candidate cell states;

[0108] 2.4. Based on the output of the forget gate and the input gate, LSTM updates the cell state. The calculation formula is as follows:

[0109]

[0110] Among them, f t ⊙C t-1 Indicates discarding some old cell states, Indicates adding a new candidate cell state;

[0111] 2.5. Finally, the output gate O t The sigmoid function determines which parts of the cell state are output. The cell state is then scaled by the tanh function and multiplied by the output of the output gate to obtain the final hidden state h t , the calculation formula is as follows:

[0112] O t =σ(W o ·[h t-1 ,x t ]+b o );

[0113] h t =O t ⊙tanh(C t );

[0114] Among them, W o and b o is the weight and bias term of the output gate, tanh is the activation function, which ensures the nonlinear factors of the model and always maintains h t In the interval [-1,1];

[0115] Step 3: Initialize the LSTM prediction model and use the improved gray wolf optimization algorithm to optimize and verify the hyperparameters of the LSTM neural network model. Get the optimal parameter combination; the specific operations are as follows:

[0116] 3.1. The specific steps of the traditional grey wolf algorithm are as follows:

[0117] 3.2. When establishing the mathematical model of gray wolves, the wolf pack is divided into four different social levels according to the fitness value of each individual gray wolf. We take the most suitable solution as α, therefore, the second and third best solutions are named β and δ respectively, and the remaining candidate solutions are assumed to be w. In the GWO algorithm, the hunting process is guided by α, β and δ, and w wolves follow these three wolves.

[0118] 3.3. During hunting, the behavior of gray wolves encircling prey is defined as follows:

[0119] D=|C·X p (t)-X(t)| (1)

[0120] X(t+1)=X p (t)-A·D (2)

[0121] A=2a·r1-a (3)

[0122] C=2·r2 (4)

[0123] Formula (1) represents the distance between the individual and the prey, and formula (2) is the position update formula of the gray wolf.

[0124] Where t is the current iteration number, A and C are coefficient vectors, and X p and X are the position vectors of the prey and the gray wolf respectively, a is the convergence factor, which decreases linearly from 2 to 0 as the number of iterations decreases, and the modulos of r1 and r2 are random numbers between [0,1].

[0125] 3.4. Gray wolves can identify the location of prey and surround them. After the gray wolves identify the location of the prey, β and δ guide the wolf pack to surround the prey under the leadership of α. The mathematical model of the gray wolf individual tracking the location of the prey is described as follows:

[0126] D α =|C1·X α -X|,

[0127] D β =|C2·X β -X|,

[0128] D δ =|C3·X δ -X| (5)

[0129] X1=X α -A1·(D α ),

[0130] X2=X β -A2·(D β ),

[0131] X3=X δ -A3·(D δ ) (6)

[0132]

[0133] Among them, D α , D β , D δ Respectively represent the distances between α, β, δ and other individuals; X α , X β , X δ Represent the current positions of α, β, δ respectively; C1, C2, C3 are random vectors, and X is the current position of the gray wolf. Formula (6) defines the step size and direction of the individual ω in the wolf pack moving towards α, β, δ respectively, and formula (7) defines the final position of ω.

[0134] 3.5. This embodiment introduces chaos strategy reverse learning and improved nonlinear convergence factor on the basis of the traditional gray wolf algorithm, which solves the problem of falling into local optimality too early and improves the prediction accuracy of the model. The specific operation steps of the improved gray wolf algorithm are as follows:

[0135] 3.6. First, initialize the population size N and the maximum number of iterations t max , search dimension D, search range [l b ,u b ], control coefficient K;

[0136] 3.7. Introduce the chaotic strategy to reversely learn the initialized population and generate N initial solutions X according to the expression of the Logistic chaotic map i , the formula is as follows:

[0137] x i+1 =μx i (1-x i )x i ∈(0,1) (8)

[0138] Among them, μ∈(2,4] is the chaos parameter; the larger μ is, the higher the chaos is;

[0139] 3.8. N initial solutions X i Generate the corresponding N direction initial solutions X i ', the formula is as follows:

[0140] X i '=r[u b (i)+l b (i)]-X i (9)

[0141] Among them, r is a random number between [0,1]; u b (i) and l b (i) is X i The upper and lower bounds of the value;

[0142] 3.9 Sort the 2N initial solutions generated by the above two steps from small to large according to their fitness, and select the first N as the initial population of gray wolves.

[0143] 3.10. Then, a nonlinear method is used to improve the search accuracy to avoid falling into the local optimum and the problem of slow convergence speed. This embodiment proposes an improved nonlinear function of the convergence factor, and the formula is as follows:

[0144]

[0145] Among them, k is the nonlinear adjustment coefficient. The improved iterative method has a low attenuation degree in the early stage of optimization, which can better find the global optimal solution; the high attenuation degree in the latter stage of optimization can improve the convergence speed; according to formula (10), the convergence factor a is updated, the fitness value of each individual in the group is calculated and sorted, and the Cauchy mutation is performed on the best individual to select α, β and δ wolves. The improved mutation strategy formula is as follows:

[0146] x′ ik =x ik [1+a 2 C(0,1)] (11)

[0147] Among them, x ik is the element to be mutated; a is the improved nonlinear convergence factor. When a>1 in the pre-convergence stage, the mutation disturbance can be enhanced, and when a<1 in the post-convergence stage, the mutation disturbance can be reduced, which has an adaptive effect; C(0,1) is a random number with a distribution centered at 0 and a scale parameter of 1. The specific implementation method of randomly selecting one of the one-dimensional mutations is: the position of the optimal gray wolf in the current generation in the D-dimensional space is x i ={x i1 ,x i2 ,…,x iD}, randomly select one of the elements xik with a probability of 1 / D to perform Cauchy mutation, and calculate the position vector x′ after mutation i The fitness value of x i The fitness values ​​of the two positions are compared, and the one with the smaller fitness value is taken as the optimal position and its fitness value is updated.

[0148] 3.11. Calculate C and A according to the corresponding formula, update the individual position of the gray wolf, and determine the location of the prey;

[0149] 3.12. Jump to step 3.10 until the maximum number of iterations is reached;

[0150] 3.13. Use the improved Grey Wolf Algorithm to iteratively solve the number of hidden layers and learning rate of the LSTM neural network model to obtain the optimal solution for the hyperparameters, and finally obtain the optimal LSTM neural network prediction model.

[0151] This embodiment has divided the training set and the test set. The divided training set data is used as input to train the LSTM neural network prediction optimal model. After the training is completed, the predicted temperature result of the molten steel is obtained. The test set is then input into the LSTM neural network prediction optimal model for evaluation. This embodiment can use the mean absolute error (MAE) and the mean percentage absolute error (MAPE) as evaluation indicators to measure the prediction ability of the model.

[0152] In summary, the prediction method and system of the temperature of molten steel in the refining process of the LF refining furnace in this embodiment adopts a data preprocessing method to eliminate the noise and irrelevant information in the original data set and integrate them together, thereby improving the data quality of the model; the improved gray wolf algorithm is used to optimize the number of hidden layers and learning rate of the LSTM neural network, thereby greatly reducing the training time of the model. The improved gray wolf algorithm effectively solves the problem of falling into the local optimum too early and improves the prediction accuracy of the model. Combining the above methods, the combined prediction model has good accuracy and convergence.

[0153] The present invention also discloses a prediction system for the temperature of molten steel in the refining process of an LF refining furnace, comprising a computer-readable storage medium and a processor; the computer-readable storage medium is used to store executable instructions; the processor is used to read the executable instructions stored in the computer-readable storage medium and execute the above-mentioned prediction method.

[0154] Although the present invention has been described in detail above by general description and specific embodiments, it is obvious to those skilled in the art that some modifications or improvements can be made to the present invention. Therefore, these modifications or improvements made without departing from the spirit of the present invention all belong to the scope of protection claimed by the present invention.

Claims

1. A method for predicting the temperature of molten steel in a LF refining furnace refining process, characterized in that: The following steps are involved: Step 1: Obtain the LF refining furnace inlet parameters, including molten steel inlet temperature, molten steel weight, smelting time, and argon blowing amount, and preprocess the collected data to obtain a preliminary LSTM prediction model, taking the parameters affecting the molten steel temperature as input and the molten steel outlet temperature as output; Step 2: Divide the training set, validation set, and test set, and use the prepared data set to train the preliminary LSTM prediction model; Step 3: After the LSTM prediction model training is completed, the improved Gray Wolf Optimization Algorithm is used to optimize and verify the hyperparameters of the LSTM prediction model to obtain the optimal parameter combination and finally obtain the LSTM prediction optimal model; Step 4: Bring the set optimal parameter combination into the LSTM prediction model and complete the final training to obtain the predicted value of the molten steel temperature. Finally, use the test set sample data to evaluate the performance of the final temperature prediction model to achieve accurate prediction of the molten steel temperature.

2. The method for predicting the temperature of molten steel in a LF refining furnace refining process according to claim 1, characterized in that: In step 1, the parameters affecting the temperature of the molten steel include the inlet temperature of the LF refining furnace, the quality of the molten steel, the smelting time and the amount of argon blowing.

3. The method for predicting the temperature of molten steel in a LF refining furnace refining process according to claim 1, characterized in that: The data preprocessing in step 1 includes cleaning the data, removing outliers, filling missing values ​​and normalizing the data. The specific steps are as follows: Step 3.

1. Remove outliers First, you need to calculate the mean M and standard deviation S of the data. The formula is as follows: Z = (x - μ) / σ; Where x is a single raw data value, μ is the population mean, and σ is the population standard deviation; Define anomaly detection criteria to determine whether the data is an outlier. If it is an outlier, remove it. Step 3.

2. Fill in missing values Use the filling method to fill in missing values ​​with a specific value; Step 3.

3. Normalization Using the Min-Max normalization method, the original data is linearly transformed so that the result value is mapped to [0,1]. The conversion function is as follows: Among them, x new is the normalized data, x max is the maximum value of the sample data, x min is the minimum value of the sample data.

4. The method for predicting the temperature of molten steel in a LF refining furnace refining process according to claim 1, characterized in that: The steps for building the preliminary LSTM prediction model in step 1 are as follows: Step 4.

1. Determine the number of neurons in the input layer, hidden layer, and output layer. The input of the current time step and the hidden state of the previous time step are sent to the gate of the LSTM. The input gate, forget gate, and output gate are processed by the fully connected layer of the sigmoid activation function to calculate the input and output values. The specific process is as follows: Step 4.

2. First, LSTM accepts the input data X at the current time step t , and the hidden state h of the previous time step t-1 and cell state C t-1 , then the forget gate f t The retention degree of each cell state value is determined by the si gmo id function, and the calculation formula of the forget gate is: f t =σ(W f ·[h t-1 ,x t ]+b f ); Where σ is the si gmo id function, W f and b f The weight and bias of the forget gate, [h t-1 ,x t ] means concatenating the hidden state of the previous time step with the current input; Step 4.

3. Next, the LSTM decides what information should be stored in the cell state; this consists of two parts: a sigmoid layer that determines which values ​​will be updated, and a tanh layer that generates a candidate cell state quantity. Update input gate i t and input state The calculation formula is as follows: i t =σ(W i ·[h t-1 ,x t ]+b i ); Among them, i t is the output of the input gate, is the candidate cell state, W i , b i , W c and b c are the weights and biases of the input gate and candidate cell states; Step 4.

4. Based on the output of the forget gate and the input gate, LSTM updates the cell state. The calculation formula is as follows: Among them, f t ⊙C t-1 Indicates discarding some old cell states, Indicates adding a new candidate cell state; Step 4.

5. Finally, the output gate O t The sigmoid function determines which parts of the cell state are output; the cell state is then scaled by the tanh function and multiplied by the output of the output gate to obtain the final hidden state h t , the calculation formula is as follows: The t =σ(W o ·[h t-1 ,x t ]+b o ) h t =O t ⊙tanh(C t ) Among them, W o and b o is the weight and bias term of the output gate, tanh is the activation function, which ensures the nonlinear factors of the model and always maintains h t In the interval [-1,1]; Step 4.

6. Obtain a preliminary LSTM prediction model, whose input is the parameters affecting the temperature of the molten steel and whose output is the outlet temperature of the molten steel.

5. The method for predicting the temperature of molten steel in a LF refining furnace refining process according to claim 1, characterized in that: Step 3 specifically includes: using the improved gray wolf algorithm to iteratively solve the parameters of the preliminary LSTM prediction model, outputting the optimal solution of the parameters, and saving the generated LSTM prediction optimal model, where the parameters include the number of hidden layers and the learning rate. The specific operations are as follows: On the basis of the traditional grey wolf algorithm, the chaotic strategy reverse learning and improved nonlinear convergence factor are introduced. The specific operation steps of the improved grey wolf algorithm are as follows: Step 5.

1. The specific steps of the traditional grey wolf algorithm are as follows: When establishing the mathematical model of gray wolves, the wolf pack is divided into four different social levels according to the fitness value of each individual gray wolf; the most suitable solution is taken as α, therefore, the second and third best solutions are named β and δ respectively, and the remaining candidate solutions are assumed to be w. In the GWO algorithm, the hunting process is guided by α, β and δ, and w wolves follow these three wolves; During hunting, the behavior of gray wolves encircling prey is defined as follows: D=|C·X p (t)-X(t)|(1) X(t+1)=X p (t)-A·D(2) A=2a·r1-a (3) C=2·r2 (4) Formula (1) represents the distance between the individual and the prey, and formula (2) is the position update formula of the gray wolf; Where t is the current iteration number, A and C are coefficient vectors, and X p and X are the position vectors of the prey and the wolf, respectively. a is the convergence factor, which decreases linearly from 2 to 0 as the number of iterations decreases. The modulus of r1 and r2 is a random number between [0,1]. Gray wolves can identify the location of prey and surround them; when the gray wolves identify the location of the prey, β and δ guide the wolf pack to surround the prey under the leadership of α; the mathematical model of the gray wolf individual tracking the location of the prey is described as follows: D α =|C1·X α -X|, D β =|C2·X β -X|, D δ =|C3·X δ -X| (5) X1=X α -A1·(D α ), X2=X β -A2·(D β ), X3=X δ -A3·(D δ )(6) Among them, D α , D β , D δ Respectively represent the distances between α, β, δ and other individuals; X α , X β , X δ Represent the current positions of α, β, δ respectively; C1, C2, C3 are random vectors, X is the current position of the gray wolf; Formula (6) defines the step size and direction of the individual ω in the wolf pack moving towards α, β, δ respectively, and Formula (7) defines the final position of ω; Step 5.

2. First initialize the population size N and the maximum number of iterations t max , search dimension D, search range [l b ,u b ]; Step 5.

3. Introduce the chaotic strategy to reversely learn the initialized population and generate N initial solutions X according to the expression of the Logistic chaotic map i , the formula is as follows: x i+1 =μx i (1-x i )x i ∈(0,1)(8) Among them, μ∈(2,4] is the chaos parameter; the larger μ is, the higher the chaos is; Step 5.

4. The N initial solutions X obtained in step 5.2 i Generate the corresponding N direction initial solutions X i ', the formula is as follows: X i '=r[u b (i)+l b (i)]-X i (9) Among them, r is a random number between [0,1]; u b (i) and l b (i) is X i The upper and lower bounds of the value; Step 5.

5. Sort the 2N initial solutions generated by steps 5.2 and 5.3 in ascending order of fitness, and select the first N as the initial population of gray wolves; Step 5.

6. Then a nonlinear method is used to improve the search accuracy. For this purpose, an improved nonlinear function of the convergence factor is introduced, and the formula is as follows: Where k is the nonlinear adjustment coefficient. The improved iterative method has a low attenuation degree in the early stage of optimization, which can better find the global optimal solution. The high attenuation degree in the latter stage of optimization can improve the convergence speed. According to formula (10), the convergence factor a is updated, the fitness value of each individual in the group is calculated and sorted, and the Cauchy mutation is performed on the best individual to select α, β and δ wolves. The improved mutation strategy formula is as follows: x i ′ k =x ik [1+a 2 C(0,1)](11) Among them, x ik is the element to be mutated; a is the improved nonlinear convergence factor; when a>1 in the pre-convergence stage, the mutation disturbance can be enhanced; when a<1 in the post-convergence stage, the mutation disturbance is reduced, which has an adaptive effect; C(0,1) is a random number with a distribution centered at 0 and a scale parameter of 1; The specific implementation method of randomly selecting one of the dimensional mutations is: the position of the optimal gray wolf in the current generation in the D-dimensional space is x i ={x i1 ,x i2 ,…,x iD }, randomly select one of the elements xik with a probability of 1 / D to perform Cauchy mutation, and calculate the position vector x after mutation i 'Fitness value, and x i The fitness values ​​of are compared, and the one with the smaller fitness value is taken as the optimal position and its fitness value is updated; Step 5.

6. Calculate C and A according to formula (3) and formula (4), update the position of the individual gray wolf, and determine the position of the prey; Step 5.

7. Jump to step 5.5 until the maximum number of iterations is reached; Step 5.

8. Use the improved gray wolf algorithm to iteratively solve the number of hidden layers and learning rate of the LSTM prediction model to obtain the optimal solution of the hyperparameters and finally obtain the optimal LSTM prediction model.

6. A prediction system for molten steel temperature during the refining process of a LF refining furnace, characterized in that: It comprises a computer-readable storage medium and a processor; the computer-readable storage medium is used to store executable instructions; the processor is used to read the executable instructions stored in the computer-readable storage medium to execute the prediction method according to any one of claims 1 to 5.

Citation Information

Patent Citations

  • Method and system for predicting temperature of molten steel in refining process of LF refining furnace

    CN115659709A

  • Granary temperature prediction method for optimizing LSTM based on improved grey wolf algorithm

    CN117521511A

  • Photovoltaic cell parameter identification method based on improved equilibrium optimizer algorithm

    US20230035108A1