Method, device and terminal for predicting mass concentration of hydrogen sulfide in coal-fired boiler

By using the BP neural network model optimized based on the wolf pack algorithm in coal-fired boilers to predict the mass concentration of hydrogen sulfide, the problems of low prediction efficiency and accurate error determination in the existing technology are solved, and the safety and economic benefits of the boiler are improved.

CN114038513BActive Publication Date: 2024-09-24STATE GRID HEBEI ENERGY TECH SERVICE CO LTD +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111308399.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-05
Publication Date
2024-09-24
Estimated Expiration
2041-11-05

AI Technical Summary

Technical Problem

The existing technology has low efficiency and accuracy in predicting hydrogen sulfide concentration in coal-fired boilers, making it difficult to accurately predict the mass concentration of hydrogen sulfide in the furnace, leading to problems such as high-temperature corrosion of the water wall.

Method used

The BP neural network model optimized based on the wolf pack algorithm is used to predict the hydrogen sulfide mass concentration by obtaining the combustion parameters of the coal-fired boiler, such as coal supply volume, primary air volume and coal sulfur mass fraction, and the wolf pack algorithm is used to optimize the initial Weights and thresholds to improve the efficiency and accuracy of prediction models.

Benefits of technology

It improves the efficiency and accuracy of predicting the hydrogen sulfide mass concentration in the coal-fired boiler, reduces the risk of water wall corrosion, and enhances the safety and economic benefits of the boiler.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114038513B
    Figure CN114038513B
Patent Text Reader

Abstract

The present invention provides a method, device and terminal for predicting the mass concentration of hydrogen sulfide in a coal-fired boiler. The method comprises: obtaining the combustion parameters of the coal-fired boiler; wherein the combustion parameters include the coal feed rate, the primary air volume, the secondary air damper opening and the mass fraction of sulfur in the coal; inputting the combustion parameters into a trained prediction model to obtain a prediction result of the mass concentration of hydrogen sulfide in the coal-fired boiler; the prediction model is a BP neural network model optimized based on a wolf pack algorithm. The present invention uses the BP neural network model optimized by the wolf pack algorithm to predict the mass concentration of hydrogen sulfide in the coal-fired boiler, which can improve the prediction efficiency and accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of boiler safety, and in particular to a method, a device, a terminal and a storage medium for predicting the mass concentration of hydrogen sulfide in a coal-fired boiler. Background Art

[0002] In recent years, in order to further reduce the emission of pollutants from power plants and suppress the nitrogen oxides produced by the combustion of coal-fired boilers, many power plants have adopted the method of staged combustion to achieve the purpose of reducing nitrogen oxides. However, although this method can improve the boiler nitrogen oxide emissions to a certain extent, the strong reducing atmosphere in the furnace easily allows the sulfur component in the coal to generate hydrogen sulfide gas. Excessive concentration of hydrogen sulfide will cause high-temperature corrosion of the water-cooled wall. Therefore, it is necessary to determine the concentration of hydrogen sulfide in the boiler to control it.

[0003] Due to the complexity of the actual furnace combustion process, it is difficult to predict parameters such as hydrogen sulfide in the furnace, especially near the wall. At present, some studies have used neural networks to predict the concentration of hydrogen sulfide. However, neural networks have the defects of slow convergence speed and easy to fall into local optimality, resulting in low efficiency and inaccurate prediction results of hydrogen sulfide parameters in the boiler. Summary of the invention

[0004] The present invention provides a method, device, terminal and storage medium for predicting the mass concentration of hydrogen sulfide in a coal-fired boiler, so as to solve the problem of improving the prediction efficiency and accuracy of the mass concentration of hydrogen sulfide in the boiler.

[0005] In a first aspect, the present invention provides a method for predicting the mass concentration of hydrogen sulfide in a coal-fired boiler, comprising:

[0006] Obtaining the combustion parameters of the coal-fired boiler; wherein the combustion parameters include coal feed rate, primary air volume, secondary air damper opening and coal sulfur mass fraction;

[0007] The combustion parameters are input into the trained prediction model to obtain the prediction result of the mass concentration of hydrogen sulfide in the coal-fired boiler; the prediction model is a BP neural network model optimized based on the wolf pack algorithm.

[0008] In a possible implementation, before inputting the combustion parameters into the trained prediction model to obtain the prediction result, the method further includes:

[0009] Build an initial forecasting model;

[0010] The initial prediction model is trained based on the wolf pack algorithm, the training sample set and the optimized sample set to obtain a trained prediction model.

[0011] In a possible implementation, the initial prediction model is trained based on the wolf pack algorithm, the training sample set, and the optimized sample set to obtain a trained prediction model including:

[0012] The initial prediction model is trained based on the training sample set to obtain the initial weight and initial threshold of the prediction model;

[0013] The wolf pack algorithm is used to iteratively optimize the initial weights and initial thresholds to obtain the target weights and target thresholds; the items to be optimized in the wolf pack algorithm are the initial weights and initial thresholds, the objective function is the reciprocal of the difference between the mass concentration of hydrogen sulfide predicted by the prediction model for the training samples and the actual mass concentration of hydrogen sulfide of the training samples, and the optimization goal is to maximize the objective function;

[0014] A prediction model using a target weight and a target threshold is trained based on the optimized sample set to obtain a trained prediction model.

[0015] In a possible implementation, the wolf pack algorithm is used to iteratively optimize the weights and thresholds in the initial prediction model to obtain target weights and target thresholds including:

[0016] Generate a preset number of individuals with random positions to obtain an initial wolf pack, where the position of each individual represents a set of weights and thresholds;

[0017] Calculate the objective function value of each individual, and select the individual with the largest objective function as the alpha wolf, select S_num individuals with the largest objective function values ​​other than the alpha wolf as scout wolves, and the remaining individuals as fierce wolves; where S_num represents the preset number of scout wolves;

[0018] Each scout wolf is ordered to perform wandering behavior until the objective function value of a scout wolf among all the scout wolves is greater than the objective function value of the leader wolf or the wandering number reaches the preset maximum wandering number;

[0019] Make each wolf rush towards the prey. If the objective function value of a wolf among all the wolves is greater than the objective function value of the alpha wolf during the rush, then make the alpha wolf replace the alpha wolf and initiate the calling behavior;

[0020] Order the wolves that meet the siege conditions to perform siege behavior; the siege condition is: the distance from the leader wolf is less than the preset distance;

[0021] Update the position of the alpha wolf according to the winner-takes-all rule;

[0022] Update the wolf pack position according to the rule of survival of the fittest;

[0023] Determine whether the objective function value of the alpha wolf is greater than a preset threshold or whether the number of wolf pack updates reaches a preset value;

[0024] If yes, the position of the leader wolf is used as the target weight and target threshold;

[0025] Otherwise, jump to the step of "calculate the objective function value of each individual, select the individual with the largest objective function as the alpha wolf, select S_num individuals with the largest objective function values ​​other than the alpha wolf as scout wolves, and select the remaining individuals as fierce wolves".

[0026] In a possible implementation, before training the initial prediction model based on the wolf pack algorithm, the training sample set and the optimized sample set to obtain a trained prediction model, the method further includes:

[0027] Obtain multiple combustion data of coal-fired boilers operating under design conditions; the combustion data include combustion parameters and mass concentration of hydrogen sulfide in the furnace;

[0028] For each combustion data, the combustion parameters of the combustion data are used as samples, and the mass concentration of hydrogen sulfide in the furnace is used as the label of the sample;

[0029] Each sample and its corresponding label form a sample set;

[0030] One half of the samples in the sample set are divided into the training sample set, and the remaining one half of the samples are divided into the optimization sample set.

[0031] In a possible implementation, before training the initial prediction model based on the wolf pack algorithm, the training sample set and the optimized sample set to obtain a trained prediction model, the method further includes:

[0032] Obtain multiple combustion data of the coal-fired boiler under original operating conditions; the combustion data includes combustion parameters and mass concentration of hydrogen sulfide in the furnace;

[0033] For each combustion data, the combustion parameters of the combustion data are used as samples, and the mass concentration of hydrogen sulfide in the furnace is used as the label of the sample;

[0034] Each sample and its corresponding label form a validation sample set;

[0035] The initial prediction model is trained based on the wolf pack algorithm, the training sample set and the optimized sample set to obtain the trained prediction model further comprising:

[0036] The accuracy of the trained prediction model is verified based on the validation sample set.

[0037] In a second aspect, the present invention provides a device for predicting the mass concentration of hydrogen sulfide in a coal-fired boiler, comprising:

[0038] An acquisition module is used to acquire the combustion parameters of the coal-fired boiler; wherein the combustion parameters include coal feed rate, primary air volume, secondary air damper opening and coal sulfur mass fraction;

[0039] The prediction module is used to input the combustion parameters into the trained prediction model to obtain the prediction result of the mass concentration of hydrogen sulfide in the coal-fired boiler furnace; the prediction model is a BP neural network model optimized based on the wolf pack algorithm.

[0040] In a third aspect, the present invention provides a terminal comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps of the method as shown in the first aspect or any possible implementation of the first aspect are implemented.

[0041] In a fourth aspect, the present invention provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the steps of the method shown in the first aspect or any possible implementation of the first aspect.

[0042] The present invention provides a method, device and terminal for predicting the mass concentration of hydrogen sulfide in a coal-fired boiler. The method comprises: obtaining the combustion parameters of the coal-fired boiler; wherein the combustion parameters include the coal feed rate, the primary air volume, the secondary air damper opening and the mass fraction of sulfur in the coal; inputting the combustion parameters into a trained prediction model to obtain a prediction result of the mass concentration of hydrogen sulfide in the coal-fired boiler; the prediction model is a BP neural network model optimized based on a wolf pack algorithm. The present invention uses the BP neural network model optimized by the wolf pack algorithm to predict the mass concentration of hydrogen sulfide in the coal-fired boiler, which can improve the prediction efficiency and accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0044] Figure 1 It is a flow chart of the implementation of the method for predicting the mass concentration of hydrogen sulfide in a coal-fired boiler provided by an embodiment of the present invention;

[0045] Figure 2 It is a schematic diagram of the structure of a BP neural network provided by an embodiment of the present invention;

[0046] Figure 3 is an error statistics diagram of testing a trained BP neural network according to an embodiment of the present invention;

[0047] Figure 4 It is a schematic diagram of the structure of a device for predicting the mass concentration of hydrogen sulfide in a coal-fired boiler provided by an embodiment of the present invention;

[0048] Figure 5 is a schematic diagram of a terminal provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0049] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present invention. However, it should be clear to those skilled in the art that the present invention may be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present invention.

[0050] In order to make the purpose, technical solutions and advantages of the present invention more clear, specific embodiments will be described below in conjunction with the accompanying drawings.

[0051] See also Figure 1 , which shows a flow chart of the implementation of the method for predicting the mass concentration of hydrogen sulfide in a coal-fired boiler provided by an embodiment of the present invention, and is described in detail as follows:

[0052] Step 101, obtaining the combustion parameters of the coal-fired boiler; wherein the combustion parameters include coal feed rate, primary air volume, secondary air damper opening and coal sulfur mass fraction.

[0053] In this embodiment, in order to further reduce the emission of pollutants from power plants and suppress the nitrogen oxides produced by the combustion of coal-fired boilers, many power plants adopt a staged combustion method. When using staged combustion, the local fuel concentration is increased so that the excess air coefficient in a specific area of ​​the furnace is less than 1, thereby forming a strong reducing atmosphere in the area. The hydrocarbon groups produced by the carbon-based fuel in the strong reducing atmosphere reduce the nitrogen oxides, thereby reducing the emission of nitrogen oxides.

[0054] However, although this method can improve the boiler nitrogen oxide emissions to a certain extent, the strong reducing atmosphere in the furnace easily allows the sulfur component in the coal to generate hydrogen sulfide gas, which forms highly corrosive acidic gas with water vapor, destroying the metal oxide film. At the same time, due to the high temperature of the water-cooled wall pipe surface, this greatly aggravates the high-temperature corrosion of the boiler heating surface. When the water-cooled wall pipe is thinned to a certain extent due to corrosion, it will cause major power plant accidents such as the rupture of the water-cooled wall pipe and the forced shutdown of the furnace, which will seriously affect the economic benefits and the safety of personnel and equipment.

[0055] It can be seen that the reducing atmosphere generated during the staged combustion process is the main reason for the generation of hydrogen sulfide gas in the furnace, and the sulfur content in the coal will also affect the total amount of hydrogen sulfide gas generated in the furnace. Therefore, this embodiment uses the coal feed rate, primary air volume, secondary air damper opening and coal sulfur mass fraction as input parameters for predicting the mass concentration of hydrogen sulfide in the coal-fired boiler furnace.

[0056] In order to determine the changing curve of the mass concentration of hydrogen sulfide in the coal-fired boiler and to determine the time point for treating the hydrogen sulfide, in this embodiment, the furnace temperature, gas pressure and corresponding time in the coal-fired boiler can also be added as input parameters to determine the mass concentration of hydrogen sulfide in the coal-fired boiler at that moment, thereby determining the changing curve of the mass concentration of hydrogen sulfide in the coal-fired boiler based on the mass concentration of hydrogen sulfide at each moment.

[0057] Step 102, input the combustion parameters into the trained prediction model to obtain the prediction result of the mass concentration of hydrogen sulfide in the coal-fired boiler; the prediction model is a BP neural network model optimized based on the wolf pack algorithm.

[0058] In this embodiment, the error back propagation neural network (BP, Back Propagation) is a mathematical model that simulates the behavioral characteristics of animal neural networks for information processing. It has strong self-organization, self-learning, association and reasoning functions, and has strong mapping capabilities, which is very suitable for studying the characteristics of nonlinear systems. It is an effective tool for solving nonlinear problems by learning a large amount of data to find the laws contained therein, and is one of the core models commonly used in deep learning. However, there are some defects in neural networks, such as slow convergence speed and easy to fall into local extreme values. In addition, the selection of initial parameters and the design of network structure will also have a great impact on the performance of neural networks.

[0059] The wolf pack algorithm is a random probability search algorithm that can quickly find the global optimal solution with a high probability. The wolf pack algorithm also has parallelism and can search from multiple points at the same time without affecting each other, thereby improving the efficiency of the algorithm. The wolf pack algorithm has good global convergence and computational robustness, and is particularly suitable for solving high-dimensional, multi-peak complex functions. Therefore, the global optimization characteristics and computational robustness of the wolf pack algorithm can be combined with the back propagation method to optimize the neural network structure and determine the parameter selection, thereby improving the learning efficiency and results of the neural network.

[0060] In a specific embodiment, before the combustion parameters are input into the trained prediction model, the method further includes preprocessing the combustion parameters. During the BP neural network training process, the training often falls into a local minimum due to the large dimensional differences between the input data, which affects the training effect. Therefore, the training data should be normalized before training. Specifically, the method performs normalization on the input data through the normalization formula y=(x-xmin) / (xmax-xmin), and linearly maps the data to between [0, 1] to improve the accuracy of the prediction results. After obtaining the prediction results output by the prediction model, the output data can also be denormalized to obtain the actual value of the mass concentration of hydrogen sulfide in the coal-fired boiler furnace.

[0061] In some embodiments, before inputting the combustion parameters into the trained prediction model to obtain the prediction result, the method further includes:

[0062] Build an initial forecasting model;

[0063] The initial prediction model is trained based on the wolf pack algorithm, the training sample set and the optimized sample set to obtain a trained prediction model.

[0064] In this embodiment, the initial prediction model is a BP neural network model with a "4-9-1" structure, and the transfer function is a sigmoid function, and the function formula is:

[0065]

[0066] The input layer of the BP neural network model has 4 nodes, which are variables such as coal feed rate, primary air volume, secondary air damper opening and coal sulfur mass fraction; the number of hidden layer nodes is 9. The number of hidden layer nodes in the present invention is obtained by experimental methods. The experimental results show that the accuracy is highest when the number of hidden layer nodes is 9; the output layer has 1 node, which is the mass concentration of hydrogen sulfide in the furnace. The number of hidden layer nodes determines the training efficiency of the BP neural network and the performance of the final model, and has a great influence on the training results. So far, there is no ideal international unified formula to determine this value, so the trial calculation method is generally used to determine the number of hidden layer nodes that minimize the neural network error. In order to maximize the training efficiency and model performance of the neural network, the number of hidden layer neurons determined by the trial calculation method in this paper is 9.

[0067] In some embodiments, training the initial prediction model based on the wolf pack algorithm, the training sample set, and the optimized sample set to obtain a trained prediction model includes:

[0068] The initial prediction model is trained based on the training sample set to obtain the initial weight and initial threshold of the prediction model;

[0069] The wolf pack algorithm is used to iteratively optimize the initial weights and initial thresholds to obtain the target weights and target thresholds; the items to be optimized in the wolf pack algorithm are the initial weights and initial thresholds, the objective function is the reciprocal of the difference between the mass concentration of hydrogen sulfide predicted by the prediction model for the training samples and the actual mass concentration of hydrogen sulfide of the training samples, and the optimization goal is to maximize the objective function;

[0070] A prediction model using a target weight and a target threshold is trained based on the optimized sample set to obtain a trained prediction model.

[0071] In this embodiment, the training samples come from the training sample set. The objective function of the wolf pack algorithm is the inverse of the error of the BP neural network in predicting the training samples. The smaller the error of the BP neural network in predicting the training samples, the greater the objective function value of the wolf pack algorithm. In this embodiment, the wolf pack algorithm is used to optimize the weights and thresholds of the BP neural network, which can combine the advantages of the two algorithms, make up for the inherent defects of the wolf pack algorithm and the BP neural network, and effectively improve the prediction accuracy and generalization ability of the BP neural network, thereby improving the prediction efficiency and accuracy of the mass concentration of hydrogen sulfide in the coal-fired boiler furnace.

[0072] In some embodiments, the wolf pack algorithm is used to iteratively optimize the weights and thresholds in the initial prediction model to obtain target weights and target thresholds, including:

[0073] Generate a preset number of individuals with random positions to obtain an initial wolf pack, where the position of each individual represents a set of weights and thresholds;

[0074] Calculate the objective function value of each individual, and select the individual with the largest objective function as the alpha wolf, select S_num individuals with the largest objective function values ​​other than the alpha wolf as scout wolves, and the remaining individuals as fierce wolves; where S_num represents the preset number of scout wolves;

[0075] Each scout wolf is ordered to perform wandering behavior until the objective function value of a scout wolf among all the scout wolves is greater than the objective function value of the leader wolf or the wandering number reaches the preset maximum wandering number;

[0076] Make each wolf rush towards the prey. If the objective function value of a wolf among all the wolves is greater than the objective function value of the alpha wolf during the rush, then make the alpha wolf replace the alpha wolf and initiate the calling behavior;

[0077] Order the wolves that meet the siege conditions to perform siege behavior; the siege condition is: the distance from the leader wolf is less than the preset distance;

[0078] Update the position of the alpha wolf according to the winner-takes-all rule;

[0079] Update the wolf pack position according to the rule of survival of the fittest;

[0080] Determine whether the objective function value of the alpha wolf is greater than a preset threshold or whether the number of wolf pack updates reaches a preset value;

[0081] If yes, the position of the leader wolf is used as the target weight and target threshold;

[0082] Otherwise, jump to the step of "calculate the objective function value of each individual, select the individual with the largest objective function as the alpha wolf, select S_num individuals with the largest objective function values ​​other than the alpha wolf as scout wolves, and select the remaining individuals as fierce wolves".

[0083] In this embodiment, each individual in the wolf pack is an artificial wolf. The wolf pack algorithm divides the wolf pack into alpha wolves, exploratory wolves and fierce wolves, wherein the spatial coordinates of the wolf pack are randomly initialized in the solution space, and the artificial alpha wolf is selected according to the value of the objective function; the best S_num artificial wolves except the alpha wolf are exploratory wolves; the others are fierce wolves.

[0084] In a specific embodiment, the wolf pack algorithm parameters can be set as follows: the total number of artificial wolves n = 50, the maximum number of iterations Kmax = 300, S_num is randomly selected The integer between , the exploration scale factor α = 4, the maximum number of walks Tmax = 30, the distance judgment factor w = 100, the step size factor S = 1000, and the update scale factor β = 10; the BP neural network parameters are set as follows: the number of training times is 500, the training accuracy is 0.00001, and the learning rate is 0.1.

[0085] In some embodiments, before training the initial prediction model based on the wolf pack algorithm, the training sample set and the optimized sample set to obtain a trained prediction model, the method further includes:

[0086] Obtain multiple combustion data of coal-fired boilers operating under design conditions; the combustion data include combustion parameters and mass concentration of hydrogen sulfide in the furnace;

[0087] For each combustion data, the combustion parameters of the combustion data are used as samples, and the mass concentration of hydrogen sulfide in the furnace is used as a label of the combustion data;

[0088] Each sample and its corresponding label form a sample set;

[0089] One half of the combustion data in the sample set is divided into a training sample set, and the remaining one half of the combustion data is divided into an optimization sample set.

[0090] In this embodiment, the design condition is a condition where both the combustion parameters and the operating state of the coal-fired boiler meet the design requirements, and the combustion parameters under the design condition are more regular. Since the samples for training the BP neural network need to have a strong reference, half of the combustion data under all design conditions are selected to form a training sample set, and the remaining half of the combustion data constitute an optimized sample set.

[0091] In some embodiments, before training the initial prediction model based on the wolf pack algorithm, the training sample set and the optimized sample set to obtain a trained prediction model, the method further includes:

[0092] Obtain multiple combustion data of the coal-fired boiler under original operating conditions; the combustion data includes combustion parameters and mass concentration of hydrogen sulfide in the furnace;

[0093] For each combustion data, the combustion parameters of the combustion data are used as samples, and the mass concentration of hydrogen sulfide in the furnace is used as the label of the sample;

[0094] Each sample and its corresponding label form a validation sample set;

[0095] The initial prediction model is trained based on the wolf pack algorithm, the training sample set and the optimized sample set to obtain the trained prediction model further comprising:

[0096] The accuracy of the trained prediction model is verified based on the validation sample set.

[0097] In this embodiment, the original operating condition is an operating condition other than the design operating condition. The combustion data under the original operating condition is more generalized than the combustion data under the design operating condition, and is therefore suitable for verifying the accuracy and generalization ability of the prediction model. In this embodiment, the verification sample set can also be combined with the optimization sample set to cross-validate the prediction model to improve the utilization rate of the sample and reduce the workload of sample collection. Figure 3 This is an error statistics graph obtained by testing the trained prediction model using the validation sample set in this embodiment.

[0098] A method for predicting the mass concentration of hydrogen sulfide in a coal-fired boiler provided by an embodiment of the present invention comprises: obtaining the combustion parameters of the coal-fired boiler; wherein the combustion parameters include the coal feed rate, the primary air volume, the secondary air damper opening, and the mass fraction of sulfur in the coal; inputting the combustion parameters into a trained prediction model to obtain a prediction result of the mass concentration of hydrogen sulfide in the coal-fired boiler; the prediction model is a BP neural network model optimized based on a wolf pack algorithm. The embodiment of the present invention uses a BP neural network model optimized by a wolf pack algorithm to predict the mass concentration of hydrogen sulfide in a coal-fired boiler, which can improve the prediction efficiency and accuracy.

[0099] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.

[0100] The following is an embodiment of the device of the present invention. For details not described in detail therein, reference may be made to the corresponding method embodiment described above.

[0101] Figure 4 The structural schematic diagram of the mass concentration prediction device of hydrogen sulfide in a coal-fired boiler provided by an embodiment of the present invention is shown. For the convenience of explanation, only the part related to the embodiment of the present invention is shown, which is described in detail as follows:

[0102] like Figure 4 As shown, the mass concentration prediction device 4 of hydrogen sulfide in the coal-fired boiler furnace includes:

[0103] The acquisition module 41 is used to acquire the combustion parameters of the coal-fired boiler; wherein the combustion parameters include the coal feed rate, the primary air volume, the secondary air damper opening and the sulfur content of the coal;

[0104] The prediction module 42 is used to input the combustion parameters into the trained prediction model to obtain the prediction result of the mass concentration of hydrogen sulfide in the coal-fired boiler furnace; the prediction model is a BP neural network model optimized based on the wolf pack algorithm.

[0105] In some embodiments, the mass concentration prediction device 4 for hydrogen sulfide in a coal-fired boiler furnace further includes:

[0106] A model building module is used to build an initial prediction model before inputting the combustion parameters into the trained prediction model to obtain the prediction results;

[0107] The model training module is used to train the initial prediction model based on the wolf pack algorithm, the training sample set and the optimized sample set to obtain a trained prediction model.

[0108] In some embodiments, the model training module includes:

[0109] A first training unit is used to train the initial prediction model based on the training sample set to obtain the initial weight and initial threshold of the prediction model;

[0110] The second training unit is used to iteratively optimize the initial weights and initial thresholds using a wolf pack algorithm to obtain target weights and target thresholds; wherein the items to be optimized of the wolf pack algorithm are the initial weights and initial thresholds, the objective function is the reciprocal of the difference between the mass concentration of hydrogen sulfide predicted by the prediction model for the training samples and the actual mass concentration of hydrogen sulfide of the training samples, and the optimization goal is to maximize the objective function;

[0111] The third training unit is used to train the prediction model using the target weight and the target threshold based on the optimized sample set to obtain a trained prediction model.

[0112] In some embodiments, the second training unit is specifically configured to:

[0113] Generate a preset number of individuals with random positions to obtain an initial wolf pack, where the position of each individual represents a set of weights and thresholds;

[0114] Calculate the objective function value of each individual, and select the individual with the largest objective function as the alpha wolf, select S_num individuals with the largest objective function values ​​other than the alpha wolf as scout wolves, and the remaining individuals as fierce wolves; where S_num represents the preset number of scout wolves;

[0115] Each scout wolf is ordered to perform wandering behavior until the objective function value of a scout wolf among all the scout wolves is greater than the objective function value of the leader wolf or the wandering number reaches the preset maximum wandering number;

[0116] Make each wolf rush towards the prey. If the objective function value of a wolf among all the wolves is greater than the objective function value of the alpha wolf during the rush, then make the alpha wolf replace the alpha wolf and initiate the calling behavior;

[0117] Order the wolves that meet the siege conditions to perform siege behavior; the siege condition is: the distance from the leader wolf is less than the preset distance;

[0118] Update the position of the alpha wolf according to the winner-takes-all rule;

[0119] Update the wolf pack position according to the rule of survival of the fittest;

[0120] Determine whether the objective function value of the alpha wolf is greater than a preset threshold or whether the number of wolf pack updates reaches a preset value;

[0121] If yes, the position of the leader wolf is used as the target weight and target threshold;

[0122] Otherwise, jump to the step of "calculate the objective function value of each individual, select the individual with the largest objective function as the alpha wolf, select S_num individuals with the largest objective function values ​​other than the alpha wolf as scout wolves, and select the remaining individuals as fierce wolves".

[0123] In some embodiments, the mass concentration prediction device 2 for hydrogen sulfide in a coal-fired boiler furnace further includes:

[0124] A combustion data acquisition module is used to acquire a plurality of combustion data of a coal-fired boiler operating under a design condition before training an initial prediction model based on a wolf pack algorithm, a training sample set, and an optimization sample set to obtain a trained prediction model; the combustion data includes combustion parameters and a mass concentration of hydrogen sulfide in the furnace;

[0125] The sample set establishment module is used to take the combustion parameters of each combustion data as samples and the mass concentration of hydrogen sulfide in the furnace as the label of the combustion data; and form each sample and the corresponding label into a sample set;

[0126] The sample set partitioning module is used to partition one-half of the combustion data in the sample set into a training sample set, and to partition the remaining one-half of the combustion data into an optimization sample set.

[0127] In some embodiments, the combustion data acquisition module is further used to, before training the initial prediction model based on the wolf pack algorithm, the training sample set and the optimized sample set to obtain a trained prediction model, obtain a plurality of combustion data of the coal-fired boiler operating under the original working conditions; the combustion data includes combustion parameters and the mass concentration of hydrogen sulfide in the furnace;

[0128] The sample set establishment module is also used to, for each combustion data, use the combustion parameters of the combustion data as a sample and the mass concentration of hydrogen sulfide in the furnace as a label of the sample;

[0129] The sample set building module is also used to form a verification sample set by combining each sample and corresponding label;

[0130] The model training module also includes:

[0131] The validation unit is used to verify the accuracy of the trained prediction model based on the validation sample set.

[0132] The mass concentration prediction device of hydrogen sulfide in the furnace of a coal-fired boiler provided by the embodiment of the present invention comprises: an acquisition module, which is used to obtain the combustion parameters of the coal-fired boiler; wherein the combustion parameters include the coal feed rate, the primary air volume, the secondary air damper opening and the mass fraction of sulfur in the coal; a prediction module, which is used to input the combustion parameters into a trained prediction model to obtain the prediction result of the mass concentration of hydrogen sulfide in the furnace of the coal-fired boiler; the prediction model is a BP neural network model optimized based on the wolf pack algorithm. The embodiment of the present invention uses the BP neural network model optimized by the wolf pack algorithm to predict the mass concentration of hydrogen sulfide in the furnace of a coal-fired boiler, which can improve the prediction efficiency and accuracy.

[0133] Figure 5 is a schematic diagram of a terminal provided by an embodiment of the present invention. Figure 5 As shown, the terminal 5 of this embodiment includes: a processor 50, a memory 51, and a computer program 52 stored in the memory 51 and executable on the processor 50. When the processor 50 executes the computer program 52, the steps in the above-mentioned method for predicting the mass concentration of hydrogen sulfide in the coal-fired boiler are implemented, for example Figure 1Alternatively, when the processor 50 executes the computer program 52, the functions of each module in the above-mentioned device embodiments are realized, for example, Figure 4 The functions of the modules 41 to 42 are shown.

[0134] Exemplarily, the computer program 52 may be divided into one or more modules, which are stored in the memory 51 and executed by the processor 50 to implement the present invention. The one or more modules may be a series of computer program instruction segments capable of implementing specific functions, which are used to describe the execution process of the computer program 52 in the terminal 3. For example, the computer program 52 may be divided into modules 41 to 42 shown in FIG.

[0135] The terminal 5 may be a computing device such as a desktop computer, a notebook, a PDA, or a cloud server. The terminal 5 may include, but is not limited to, a processor 50 and a memory 51. Those skilled in the art will appreciate that Figure 5 It is only an example of terminal 5 and does not constitute a limitation on terminal 5. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the terminal may also include input and output devices, network access devices, buses, etc.

[0136] The processor 50 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0137] The memory 51 may be an internal storage unit of the terminal 5, such as a hard disk or memory of the terminal 5. The memory 51 may also be an external storage device of the terminal 5, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the terminal 5. Further, the memory 51 may also include both an internal storage unit of the terminal 5 and an external storage device. The memory 51 is used to store the computer program and other programs and data required by the terminal. The memory 51 may also be used to temporarily store data that has been output or is to be output.

[0138] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0139] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0140] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0141] In the embodiments provided by the present invention, it should be understood that the disclosed devices / terminals and methods can be implemented in other ways. For example, the device / terminal embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0142] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0143] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0144] If the integrated module is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the process in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of the mass concentration prediction method of hydrogen sulfide in the furnace of the above-mentioned coal-fired boiler can be implemented. Wherein, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device that can carry the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practices in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practices, computer-readable media does not include electrical carrier signals and telecommunication signals.

[0145] The embodiments described above are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included in the protection scope of the present invention.

Claims

1. A method for predicting the mass concentration of hydrogen sulfide in a coal-fired boiler, characterized in that: include: Obtaining combustion parameters of a coal-fired boiler; wherein the combustion parameters include coal feed rate, primary air volume, secondary air damper opening, and coal sulfur mass fraction; The combustion parameters are input into a trained prediction model to obtain a prediction result of the mass concentration of hydrogen sulfide in the coal-fired boiler; the prediction model is a BP neural network model optimized based on a wolf pack algorithm; Before inputting the combustion parameters into the trained prediction model to obtain the prediction results, the method further includes: Build an initial forecasting model; Training the initial prediction model based on the wolf pack algorithm, the training sample set and the optimized sample set to obtain a trained prediction model; The initial prediction model is trained based on the wolf pack algorithm, the training sample set and the optimized sample set to obtain a trained prediction model, including: Training the initial prediction model based on the training sample set to obtain initial weights and initial thresholds of the prediction model; The initial weight and the initial threshold are iteratively optimized using a wolf pack algorithm to obtain a target weight and a target threshold; wherein the items to be optimized of the wolf pack algorithm are the initial weight and the initial threshold, the objective function is the reciprocal of the difference between the mass concentration of hydrogen sulfide predicted by the prediction model for the training sample and the actual mass concentration of hydrogen sulfide of the training sample, and the optimization goal is to maximize the objective function; Training a prediction model using the target weight and target threshold based on the optimized sample set to obtain a trained prediction model; The wolf pack algorithm is used to iteratively optimize the weights and thresholds in the initial prediction model to obtain target weights and target thresholds, including: Generate a preset number of individuals with random positions to obtain an initial wolf pack, where the position of each individual represents a set of weights and thresholds; Calculate the objective function value of each individual, and select the individual with the largest objective function as the alpha wolf, select S_num individuals with the largest objective function values ​​other than the alpha wolf as scout wolves, and the remaining individuals as fierce wolves; where S_num represents the preset number of scout wolves; Each scout wolf is ordered to perform wandering behavior until the objective function value of a scout wolf among all the scout wolves is greater than the objective function value of the leader wolf or the wandering number reaches the preset maximum wandering number; Make each wolf rush towards the prey. If the objective function value of a wolf among all the wolves is greater than the objective function value of the alpha wolf during the rush, then make the alpha wolf replace the alpha wolf and initiate the calling behavior; Order the wolves that meet the siege conditions to perform siege behavior; the siege conditions are: the distance from the leader wolf is less than a preset distance; Update the position of the alpha wolf according to the winner-takes-all rule; Update the wolf pack position according to the rule of survival of the fittest; Determine whether the objective function value of the alpha wolf is greater than a preset threshold or whether the number of wolf pack updates reaches a preset value; If yes, the position of the leader wolf is used as the target weight and target threshold; Otherwise, jump to the step of "calculate the objective function value of each individual, select the individual with the largest objective function as the alpha wolf, select S_num individuals with the largest objective function values ​​other than the alpha wolf as scout wolves, and select the remaining individuals as fierce wolves".

2. The method for predicting the mass concentration of hydrogen sulfide in a coal-fired boiler according to claim 1, characterized in that: Before training the initial prediction model based on the wolf pack algorithm, the training sample set and the optimized sample set to obtain a trained prediction model, the method further includes: Acquire a plurality of combustion data of the coal-fired boiler operating under the design working conditions; the combustion data include combustion parameters and mass concentration of hydrogen sulfide in the furnace; For each combustion data, the combustion parameters of the combustion data are used as samples, and the mass concentration of hydrogen sulfide in the furnace is used as the label of the sample; Each sample and its corresponding label form a sample set; One half of the samples in the sample set are divided into a training sample set, and the remaining one half of the samples are divided into an optimization sample set.

3. The method for predicting the mass concentration of hydrogen sulfide in a coal-fired boiler according to claim 1, characterized in that: Before training the initial prediction model based on the wolf pack algorithm, the training sample set and the optimized sample set to obtain a trained prediction model, the method further includes: Acquire a plurality of combustion data of the coal-fired boiler under the original operating conditions; the combustion data include combustion parameters and mass concentration of hydrogen sulfide in the furnace; For each combustion data, the combustion parameters of the combustion data are used as samples, and the mass concentration of hydrogen sulfide in the furnace is used as the label of the sample; Each sample and its corresponding label form a validation sample set; The step of training the initial prediction model based on the wolf pack algorithm, the training sample set and the optimized sample set to obtain a trained prediction model further includes: The trained prediction model is verified for accuracy based on the verification sample set.

4. A device for predicting the mass concentration of hydrogen sulfide in a coal-fired boiler, characterized in that: include: An acquisition module is used to acquire the combustion parameters of the coal-fired boiler; wherein the combustion parameters include coal feed rate, primary air volume, secondary air damper opening and coal sulfur mass fraction; A prediction module, used for inputting the combustion parameters into a trained prediction model to obtain a prediction result of the mass concentration of hydrogen sulfide in the coal-fired boiler; the prediction model is a BP neural network model optimized based on a wolf pack algorithm; The device also includes: A model building module, used to build an initial prediction model before inputting the combustion parameters into the trained prediction model to obtain the prediction results; A model training module, used for training the initial prediction model based on the wolf pack algorithm, the training sample set and the optimized sample set to obtain a trained prediction model; The model training module includes: A first training unit, used to train the initial prediction model based on a training sample set to obtain an initial weight and an initial threshold of the prediction model; The second training unit is used to iteratively optimize the initial weights and the initial thresholds using a wolf pack algorithm to obtain target weights and target thresholds; wherein the items to be optimized of the wolf pack algorithm are the initial weights and the initial thresholds, the objective function is the reciprocal of the difference between the mass concentration of hydrogen sulfide predicted by the prediction model for the training samples and the actual mass concentration of hydrogen sulfide of the training samples, and the optimization goal is to maximize the objective function; A third training unit, configured to train a prediction model using the target weight and the target threshold based on the optimized sample set to obtain a trained prediction model; The second training unit is specifically used for: Generate a preset number of individuals with random positions to obtain an initial wolf pack, where the position of each individual represents a set of weights and thresholds; Calculate the objective function value of each individual, and select the individual with the largest objective function as the alpha wolf, select S_num individuals with the largest objective function values ​​other than the alpha wolf as scout wolves, and the remaining individuals as fierce wolves; where S_num represents the preset number of scout wolves; Each scout wolf is ordered to perform wandering behavior until the objective function value of a scout wolf among all the scout wolves is greater than the objective function value of the leader wolf or the wandering number reaches the preset maximum wandering number; Make each wolf rush towards the prey. If the objective function value of a wolf among all the wolves is greater than the objective function value of the alpha wolf during the rush, then make the alpha wolf replace the alpha wolf and initiate the calling behavior; Order the wolves that meet the siege conditions to perform siege behavior; the siege conditions are: the distance from the leader wolf is less than a preset distance; Update the position of the alpha wolf according to the winner-takes-all rule; Update the wolf pack position according to the rule of survival of the fittest; Determine whether the objective function value of the alpha wolf is greater than a preset threshold or whether the number of wolf pack updates reaches a preset value; If yes, the position of the leader wolf is used as the target weight and target threshold; Otherwise, jump to the step of "calculate the objective function value of each individual, select the individual with the largest objective function as the alpha wolf, select S_num individuals with the largest objective function values ​​other than the alpha wolf as scout wolves, and select the remaining individuals as fierce wolves".

5. A terminal comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method for predicting the mass concentration of hydrogen sulfide in a coal-fired boiler furnace as described in any one of claims 1 to 3 are implemented.

6. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method for predicting the mass concentration of hydrogen sulfide in a coal-fired boiler furnace as described in any one of claims 1 to 3 are implemented.