A combined weighted method for predicting byproduct gas generation
Through the combined weighted prediction method and the weighted output of TCN-RNN and GRU models, the problem of coke oven gas generation prediction is solved, and the prediction accuracy and the optimal dispatching effect of the gas system are improved.
Patent Information
- Application Number
- CN202111371558.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-18
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2041-11-18
AI Technical Summary
It is difficult to effectively predict the amount of coke oven gas generated in iron and steel enterprises with existing technology, resulting in improper dynamic balance and scheduling of the gas system, resulting in gas dissipation.
Using a combined weighted by-product gas generation prediction method, by obtaining data on coke oven gas, coal loading and volatile matter, establishing TCN-RNN and GRU neural network models, calculating and weighted output, and ultimately achieving accurate coke oven gas generation predict.
It improves the accuracy and accuracy of coke oven gas prediction, reduces gas dissipation, and provides a more reliable basis for optimal dispatching of the gas system.
Smart Images

Figure CN114066069B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence technology, and in particular to a method for predicting the amount of byproduct gas generated by combining weights. Background Art
[0002] By-product gas is an important secondary energy source for steel enterprises. Optimizing the dynamic balance of the gas system, improving gas utilization efficiency, and achieving "zero emission" of gas are the highest goals of gas optimization and scheduling for every steel enterprise. The basis for achieving this goal is to accurately predict the gas generation and consumption of the enterprise. Coke oven gas is a by-product of the coking process and a high calorific value gas. my country is the country with the largest coke production. In 2020, my country's coke production was 471.161 million tons. Based on this calculation, my country's coke oven gas production is very high. Therefore, accurate prediction of coke oven gas generation can provide technical support for enterprises to achieve dynamic balance and optimized scheduling of coke oven gas systems.
[0003] The operating conditions of the by-product gas system of steel enterprises are complex and changeable, which can easily cause instantaneous fluctuations in the amount of by-product gas generated, resulting in improper scheduling and allocation of by-product gas, and then causing a large amount of release. By collecting massive data accumulated during the coking process, the potential value of the data is mined and utilized to guide steel mills to optimize their operations. Through machine learning, the amount of coke oven gas generated is predicted based on the historical operating data of steel enterprises, so that effective decisions can be made in advance, the scheduling of coke oven gas can be adjusted, the dissipation of gas can be reduced, and higher economic benefits can be obtained.
[0004] In recent years, with the development of artificial intelligence technology, more and more machine learning models are used to predict the future of time series data. Deep learning is the hottest branch of machine learning. Among them, convolutional neural network (CNN) can effectively process spatial information and extract feature data features. As a variant of CNN, the temporal convolution model (TCN) can achieve a larger receptive field, that is, the feature recognition range will become larger, and it can remember sufficiently long historical information. Secondly, due to its residual unit, it can accelerate the convergence speed. As a variant of recurrent neural network (RNN), the gated recurrent unit model (GRU) can better process time series information, effectively learn the rules in historical time series data, and efficiently predict the data distribution at a certain time point or time period in the future. It can also ensure that the prediction results are similar to those of long short-term memory neural network (LSTM) while having a higher convergence speed. However, there is relatively little research on the prediction of coke oven gas in steel enterprises in the field of deep learning. Therefore, it is necessary to propose an efficient method for predicting the amount of coke oven gas generated, which can better solve the problem of coke oven gas prediction. Summary of the invention
[0005] The purpose of the present invention is to overcome the problems existing in the above-mentioned prior art and to provide a method for predicting the amount of by-product gas generated with a combined weight so as to solve the problems raised in the above-mentioned background technology.
[0006] To this end, the present invention provides a method for predicting the amount of by-product gas generated by combining weights, comprising the following steps:
[0007] Step 1: Obtain the coke oven gas generation amount, coal loading amount and volatile matter of the blended coal corresponding to each time node in a period of time, and calculate the coke oven gas yield according to the volatile matter of the blended coal, cluster the coke oven gas generation amount, coal loading amount, volatile matter of the blended coal and coke oven gas yield corresponding to the same time node into one group, and pre-process all the groups;
[0008] Step 2: Divide all the groups into two parts, and establish a training set and a test set, wherein the training set is composed of one part of the groups, and the test set is composed of the other part of the groups;
[0009] Step 3: Establish two different types of neural network models respectively, and send each group of the training set to the two neural network models respectively. When sending the coal loading amount, the volatile matter of the blended coal and the coke oven gas yield as input to the neural network model, and obtain the coke oven gas generation amount output by the neural network, and calculate the square sum of the difference Q with the coke oven gas generation amount in the group. i and Q j ;
[0010] Step 4: Let Q i and Q j The corresponding weights are w i and w j ,
[0011] Make
[0012] Step 5: Set the weight w i and w j Linearly weighting the corresponding coke oven gas generation output by the neural network model to obtain a final prediction value;
[0013] Step 6: Use the coal charge, volatile matter of blended coal and coke oven gas yield in the test set as inputs to the neural network model, and calculate the weights w i and w j Linearly weighted values are respectively added in front of the corresponding coke oven gas generation amount output by the neural network model to obtain the predicted coke oven gas generation amount.
[0014] Furthermore, the present invention uses the mean absolute error e MAEOr the mean absolute percentage error e MAPE Evaluate the accuracy of predicted coke oven gas generation;
[0015] When using the mean absolute error e MAE When making an evaluation,
[0016] Make
[0017] When using the mean absolute percentage error MAPE When making an evaluation,
[0018] Make
[0019] Where N is the total number of samples; is the predicted amount of coke oven gas generated; L i is the amount of coke oven gas generated in the group.
[0020] Furthermore, when all groups are preprocessed, they are smoothed and normalized in sequence and then converted into the type of supervised learning data.
[0021] Furthermore, the smoothing process uses Kalman filtering, and the normalization process uses maximum-minimum normalization.
[0022] Furthermore, the two neural network models are a TCN-RNN model and a GRU model, and the TCN-RNN model is obtained by weighting the TCN model and the RNN model through the weights.
[0023] The invention provides a method for predicting the amount of by-product gas generated by combining weights, which has the following beneficial effects:
[0024] The present invention makes efficient use of the massive monitoring data in the MES database of steel enterprises, providing a reliable basis for the prediction of coke oven gas and the gas optimization scheduling of enterprises. By establishing a prediction model for the amount of byproduct gas generated with an adaptive weight combination, in addition to improving the accuracy of the model, the original data is smoothed by Kalman filtering, and the mean absolute error and mean absolute percentage error are used as evaluation criteria for the quality of the model, and finally the prediction of the amount of coke oven gas generated in the future period is achieved. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] Figure 1 It is a schematic diagram of the overall process of the present invention.
[0026] Figure 2 A schematic diagram of the structure of a neural network model established in the present invention.
[0027] Figure 3 This is a comparison chart of the predicted value and the actual value of the GRU model of the present invention.
[0028] Figure 4 This is a comparison chart of the predicted value and actual value of the TCN-RNN model of the present invention.
[0029] Figure 5 This is a comparison chart between the predicted value and the actual value of TCN-RNN-GRU without using weight matching in the present invention.
[0030] Figure 6 This is a comparison chart between the predicted value and the actual value of TCN-RNN-GRU using the combined weight ratio in the present invention. DETAILED DESCRIPTION
[0031] Several specific embodiments of the present invention are described in detail below in conjunction with the accompanying drawings, but it should be understood that the protection scope of the present invention is not limited by the specific embodiments.
[0032] Specifically, Figure 1 As shown, the embodiment of the present invention provides a method for predicting the amount of by-product gas generated by a combined weight, which predicts the amount of coke oven gas generated at a future time based on the historical data of actual production of the coking process, thereby reducing the gas dissipation of the steel plant and providing technical support for the scheduling of gas. Specifically, a method for predicting the amount of by-product gas generated by a combined weight includes the following steps:
[0033] Step 1: Obtain the coke oven gas generation, coal loading and volatile matter of the blended coal corresponding to each time node over a period of time, and calculate the coke oven gas yield based on the volatile matter of the blended coal. Cluster the coke oven gas generation, coal loading, volatile matter of the blended coal and coke oven gas yield corresponding to the same time node into one group, and preprocess all the groups.
[0034] Specifically, coke oven gas yield = coke oven gas generation / theoretical coke oven gas generation. The theoretical coke oven gas generation is calculated by the calculation formula y = 60.0 + 10.0Vd, where Vd is the volatile matter of the blended coal.
[0035] Step 2: Divide all the groups into two parts, and establish a training set and a test set, wherein the training set is composed of one part of the groups, and the test set is composed of the other part of the groups.
[0036] In the present invention, when all groups are preprocessed, smoothing and normalization are performed in sequence to convert them into supervised learning data. The smoothing process uses Kalman filtering, and the normalization process uses maximum and minimum normalization. The data is converted into supervised learning data using a sliding window method.
[0037] Step 3: Establish two different types of neural network models respectively, and send each group of the training set to the two neural network models respectively. When sending the coal loading amount, the volatile matter of the blended coal and the coke oven gas yield as input to the neural network model, and obtain the coke oven gas generation amount output by the neural network, and calculate the square sum of the difference Q with the coke oven gas generation amount in the group. i and Q j .
[0038] In the present invention, Figure 2 As shown, the two neural network models are a TCN-RNN model and a GRU model, and the TCN-RNN model is obtained by weighting the TCN model and the RNN model through the weights. The details are as follows:
[0039] Specifically, the model selects TCN model, RNN model and GRU model; one of them constitutes TCN-RNN model and the other one is GRU model.
[0040] The coke oven gas generation and pressure data of the first n time steps are selected as the input of the combined model. in is the occurrence data at time t, is the pressure data at time t, and n is the time step. is the output of the TCN-RNN module; is the output of the GRU module, where m is the time step.
[0041] Prediction process of TCN-RNN model:
[0042] Smooth and normalize the original data, that is, transform the original data into the interval [0,1] through linear transformation, and construct the data to convert it into the required matrix form;
[0043] Determine the model network structure: the convolution kernel size is 2, the filter is 32, the expansion list is [1,2,4,8], the Dropout is 0.1, the hidden node is set to 45, and the Relu activation function is used;
[0044] Substitute the training set and test set data into the model for training, set the number of model iterations, send the data batch for a single training, and monitor the changes in the loss function value in real time;
[0045] The prediction results are obtained after denormalization.
[0046] Generate a true value-predicted value curve to intuitively evaluate the prediction effect of the model, such as Figure 3 shown.
[0047] The prediction process of the GRU model:
[0048] Smooth and normalize the original data, that is, transform the original data into the interval [0,1] through linear transformation, and construct the data to convert it into the required matrix form;
[0049] Determine the model network structure: the number of neurons is 32, and the Relu activation function is used;
[0050] Substitute the training set and test set data into the model for training, set the number of model iterations, send the data batch for a single training, and monitor the changes in the loss function value in real time;
[0051] The prediction results are obtained after denormalization.
[0052] Generate a true value-predicted value curve to intuitively evaluate the prediction effect of the model, such as Figure 4 shown.
[0053] Step 4: Let Q i and Q j The corresponding weights are w i and w j ,
[0054] Make
[0055] Among them, when the TCN-RNN model predicts, is the output of the TCN-RNN module; when the GRU model predicts is the output of the GRU module. Where m is the time step. The actual historical data is y={y1,y2...y m}.
[0056] The weights of the two prediction models are determined by calculating the sum of squared errors, that is, the model with a small sum of squared errors is given a high weight. i Q j They are the sum of squares of the differences between the true value and the predicted value of the TCN-RNN model and the GRU model, that is:
[0057]
[0058] w i w j They are the weights of the TCN-RNN model and the GRU model, namely:
[0059]
[0060] Then, the TCN-RNN module and the GRU module are linearly weighted, and finally the predicted value of the amount of coke oven gas generation y = {y1, y2...y m},pass The implementation is as follows:
[0061]
[0062] where w i is the weight ratio of the TCN-RNN module, m is the time step, is the output value of the TCN-RNN model after weight matching
[0063]
[0064] where w j is the weight ratio of the GRU module, m is the time step, It is the output value of the GRU model after weight matching.
[0065] Step 5: Set the weight w i and w j Linearly weighting the corresponding coke oven gas generation output by the neural network model to obtain a final prediction value;
[0066] Step 6: Use the coal charge, volatile matter of blended coal and coke oven gas yield in the test set as inputs to the neural network model, and calculate the weights w i and w j Linearly weighted values are respectively added in front of the corresponding coke oven gas generation amount output by the neural network model to obtain the predicted coke oven gas generation amount.
[0067] At the same time, in order to evaluate the predicted value, the present invention uses the mean absolute error e MAE Or the mean absolute percentage error e MAPE Evaluate the accuracy of predicted coke oven gas generation;
[0068] When using the mean absolute error e MAE When making an evaluation,
[0069] Make
[0070] When using the mean absolute percentage error MAPE When making an evaluation,
[0071] Make
[0072] Where N is the total number of samples; is the predicted amount of coke oven gas generated; L i is the amount of coke oven gas generated in the group.
[0073] A combined weighted by-product gas generation prediction model is described below using a specific example.
[0074] The data measured during a period of production in a steel plant's coke oven in early March 2021 were selected for experimental simulation and testing. Figure 5-6 As shown, Figure 5 and Figure 6 It is a data representation diagram of the simulation and test diagram of the data at time t+1.
[0075] In order to more intuitively test the prediction effect, the mean absolute error and mean absolute percentage error of the four models are compared, and the calculation results are shown in the following table.
[0076] Table 1 Comparison of coke oven gas prediction error
[0077]
[0078]
[0079] It can be seen from Table 1 that the combined weighted TCN-RNN-GRU prediction model of the present invention can obtain better prediction results than a single prediction model, a combined model, and an unweighted model, and has a relatively large advantage in long time scale prediction.
[0080] The above disclosures are only several specific embodiments of the present invention. However, the embodiments of the present invention are not limited thereto. Any changes that can be conceived by those skilled in the art should fall within the protection scope of the present invention.
Claims
1. A method for predicting the amount of by-product gas generated by combining weights, characterized in that: The steps include: Step 1: Obtain the coke oven gas generation amount, coal loading amount and volatile matter of the blended coal corresponding to each time node in a period of time, and calculate the coke oven gas yield according to the volatile matter of the blended coal, cluster the coke oven gas generation amount, coal loading amount, volatile matter of the blended coal and coke oven gas yield corresponding to the same time node into one group, and pre-process all the groups; Step 2: Divide all the groups into two parts, and establish a training set and a test set, wherein the training set is composed of one part of the groups, and the test set is composed of the other part of the groups; Step 3: Establish two different types of neural network models respectively, and send each group of the training set into the two neural network models respectively. When sending them into the neural network model, the coal loading amount, the volatile matter of the blended coal and the coke oven gas yield are sent into the neural network model as input to obtain the coke oven gas generation output by the neural network, and calculate the square sum of the difference Q with the coke oven gas generation in the group. i and Q j ; The two neural network models are a TCN-RNN model and a GRU model, respectively, and the TCN-RNN model is obtained by weighting the TCN model and the RNN model; The model selected is TCN model, RNN model and GRU model, one of which constitutes TCN-RNN model and the other one is GRU model; The coke oven gas generation and pressure data of the first n time steps are selected as the input of the combined model; that is, in is the occurrence data at time t, is the pressure data at time t, and n is the time step; is the output of the TCN-RNN module; is the output of the GRU module; where m is the time step; Prediction process of TCN-RNN model: Smooth and normalize the original data, that is, transform the original data into the interval [0,1] through linear transformation, and construct data to convert it into the required matrix form; determine the model network structure: the convolution kernel size is 2, the filter is 32, the expansion list is [1,2,4,8], the Dropout is 0.1, the hidden node is set to 45, and the Relu activation function is used; substitute the training set and test set data into the model for training, set the number of model iterations, the data batch sent in a single training, and monitor the change of the loss function value in real time; obtain the prediction result after denormalization; use the mean absolute error and mean absolute percentage error in model training to evaluate the model; generate a true value-prediction value curve to intuitively evaluate the prediction effect of the model; The prediction process of the GRU model: Smooth and normalize the original data, that is, transform the original data into the interval [0,1] through linear transformation, and construct data to convert it into the required matrix form; determine the model network structure: the number of neurons is 32, and the Relu activation function is used; substitute the training set and test set data into the model for training, set the number of model iterations, the data batch sent in a single training, and monitor the change of the loss function value in real time; obtain the prediction result after denormalization; use the model mean absolute error and mean absolute percentage error to evaluate the model; generate a true value-prediction value curve to intuitively evaluate the prediction effect of the model; Step 4: Assign weights to the two models, build a combined prediction model, and predict the sample data; Among them, when the TCN-RNN model predicts, is the output of the TCN-RNN module; when the GRU model predicts, is the output of the GRU module; where m is the time step; the actual historical data is y′={y1′,y′2...y′ m }; The weights of the two prediction models are determined by calculating the sum of squared errors, that is, the model with a small sum of squared errors is given a high weight; Q i , Q j They are the sum of squares of the differences between the true value and the predicted value of the TCN-RNN model and the GRU model, that is: w i 、w j They are the weights of the TCN-RNN model and the GRU model, namely: Step 5: Set the weight w i and w j Linearly weighted in front of the corresponding coke oven gas generation output by the neural network model to obtain the final predicted value; specifically: The TCN-RNN module and the GRU module are linearly weighted, and finally the predicted value of the amount of coke oven gas is obtained: y = {y1, y2...y m },pass The implementation is as follows: Among them, w i is the weight ratio of the TCN-RNN module, m is the time step, It is the output value of the TCN-RNN model after weight matching; Among them, w j is the weight ratio of the GRU module, m is the time step, It is the output value of the GRU model after weight matching; Step 6: Use the coal charge, volatile matter of blended coal and coke oven gas yield in the test set as inputs to the neural network model, and calculate the weights w i and w j Linearly weighted values are respectively added in front of the corresponding coke oven gas generation amount output by the neural network model to obtain the predicted coke oven gas generation amount.
2. A method for predicting the amount of by-product gas generated by combining weights according to claim 1, characterized in that: Using the mean absolute error e MAE Or the mean absolute percentage error e MAPE Evaluate the accuracy of predicted coke oven gas generation; When using the mean absolute error e MAE When making an evaluation, Make When using the mean absolute percentage error MAPE When making an evaluation, Make Where N is the total number of samples; is the predicted amount of coke oven gas generated; L i is the amount of coke oven gas generated in the group.
3. A method for predicting the amount of by-product gas generated by combining weights according to claim 1, characterized in that: When all groups are preprocessed, they are smoothed and normalized in turn to convert them into supervised learning data types.
4. A method for predicting the amount of by-product gas generated by combining weights according to claim 3, characterized in that: The smoothing process uses a Kalman filter process, and the normalization process uses a maximum-minimum normalization process.
Citation Information
Patent Citations
Method for predicating single yield of crops in irrigated area
CN101480143A
Method and device for predicting blast furnace gas occurrence amount
CN103559543A
Energy consumption prediction method for improving energy utilization rate of iron and steel enterprise
CN105204333A
Coal worker disease incidence rate prediction method based on radial primary function neural network combination model
CN107358363A
Combined prediction method based on adaptive neural network
CN112001740A
