Intelligent prediction method of flue gas oxygen content in power plants based on attention mechanism and multi-layer LSTM
By combining the attention mechanism and the multi-layer LSTM network in the prediction of flue gas oxygen content in power plants, the problem that existing methods fail to fully utilize the physical properties of data and expert knowledge is solved, and more efficient prediction of flue gas oxygen content is achieved. Combustion system optimization.
Patent Information
- Application Number
- CN202210694964.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-20
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2042-06-20
AI Technical Summary
The existing soft measurement method of flue gas oxygen content fails to fully consider the physical properties and expert knowledge of the data, and the model training efficiency is low and the prediction accuracy is not high, which affects the combustion efficiency and power generation cost of power plant boilers.
An intelligent prediction method for power plant flue gas oxygen content based on attention mechanism and multi-layer LSTM is adopted. Through data cleaning, dimensionality reduction, expert knowledge fusion, PCA principal component analysis and attention network, a multi-layer LSTM prediction network is built to improve prediction accuracy. and stability.
It improves the accuracy and stability of flue gas oxygen content prediction, reduces data redundancy and secondary feature interference, enhances the model's representation ability and training efficiency, and optimizes the control effect of the combustion system.
Smart Images

Figure CN115017818B
Abstract
Description
Background Art
[0002] With the rapid development of the national economy, the scale of the domestic power grid layout continues to expand, and coal-fired power plants are the main way to generate electricity, which has caused the carbon emissions of power plants to continue to rise. On the one hand, the increasing depletion of non-renewable energy and the bidding strategy for access to the grid have made the power generation cost of coal-fired power plants increasingly high; on the other hand, the country's strict requirements on the carbon emissions of power plants have also forced coal-fired power plants to rely on technological upgrades to reduce carbon emissions. Especially in recent years, the price of coal has continued to rise, and the pressure on the daily operation of coal-fired power plants has increased, which has forced power plants to strengthen management and planning in all aspects to improve power generation efficiency while reducing power generation costs and carbon emissions.
[0003] The oxygen content of flue gas in power plants is an important indicator for measuring power generation efficiency. Generally, controlling the oxygen content at 3%-5% can achieve the highest power generation efficiency. Accurate measurement of flue gas oxygen content is the basis for achieving high-quality coal combustion control. At present, most coal-fired power plants use hardware sensors to measure flue gas oxygen content. Among them, thermal magnetic oxygen sensors and oxygen oxygen sensors are two very common types. However, because traditional hardware sensors have high investment and installation risks, and the working environment is also very harsh, the daily maintenance workload is quite heavy and the service life will be greatly reduced. In addition, in daily life, problems such as oxygen meter failure and untimely feedback on certain operation control information may occur, which is not conducive to online monitoring and will also affect the thermal efficiency of power plant boilers.
[0004] With the increasing application of neural network technology in the field of thermal process control, the measurement method of flue gas oxygen content based on soft measurement has been widely studied [1]. Using deep neural networks to analyze a large amount of historical data and then perform data characterization learning can improve the prediction accuracy and prediction stability of flue gas oxygen content [2]. In addition, a large amount of manual work to process input data is saved throughout the process, making the prediction process simpler and more intelligent. On this basis, the high cost and inaccurate measurement of hardware measurement are avoided. The data obtained through soft measurement can be used to optimize the combustion system online, and can also greatly improve the combustion efficiency of power plant boilers and reduce the power generation cost of power plants. However, the existing soft measurement methods only analyze and process the collected data, and rarely pay attention to the physical properties of the data and rely on expert experience. As a result, in-depth research on soft measurement methods is still one of the hot spots and difficulties in intelligent optimization control of power plants. Summary of the invention
[0005] In order to solve the above problems in the prior art, that is, the existing soft measurement method of flue gas oxygen content only considers the characteristics of the original collected data itself, and does not consider the physical meaning of the data and expert knowledge; in addition, most soft measurement methods rely on big data for model training, and the general model training efficiency is low and the prediction accuracy of the model is not high. The present invention provides an intelligent prediction method for flue gas oxygen content in a power plant based on an attention mechanism and a multi-layer LSTM, and the method comprises:
[0006] (1) Collection and storage of raw sensor data: Under different operating conditions of the coal-fired power plant boiler, the sensor data is collected at a set frequency and saved in the database.
[0007] (2) Raw sensor data preprocessing. Preprocessing mainly includes two stages: data cleaning and data dimension reduction. The saved raw sensor data is denoted as A = [a1, a2, …, a l ] T ∈R l×s , l and s represent the number of data and data feature dimensions respectively.
[0008] (3) Data fusion based on expert knowledge. Through the analysis of the impact of expert knowledge and the collected historical A1-A6 coal mill coal quantity on the boiler combustion system, the coal quantity of A1-A6 coal mill is weighted and fused as shown in formula (3) to obtain the total coal quantity.
[0009]
[0010] Where, T represents the total amount of coal, T i Indicates the coal distribution amount of each coal mill, γ i Represents the weight coefficient, which can be determined by analyzing historical data through expert knowledge.
[0011] (4) PCA principal component analysis. Assume that after data fusion based on expert knowledge, the data is recorded as Φ = [φ1, φ2, ..., φ n ] T ∈R n×m , m represent the feature dimensions of the data after data fusion. The covariance matrix C of data Φ is calculated as follows
[0012]
[0013] The covariance matrix C can be decomposed into the following eigenvalues:
[0014] Q T CQ=Λ=diag(λ1,λ2,....,λ m ) (3)
[0015] Among them, λ1>λ2,>...,>λ mis the eigenvalue of the covariance matrix C, and the corresponding eigenvector is denoted as U = [u1,u2,…,u m ].
[0016] By setting the cumulative variance contribution rate threshold, we can get d main features that have a greater impact on the output. i For example, it is expressed as follows
[0017]
[0018] Among them, u ij and Φ ij It can be directly obtained from the feature vector U and the fused data Φ.
[0019] (5) Attention mechanism. Since different main features have different effects on the output, a three-layer attention network is designed here to calculate the attention weight of each feature vector and obtain the weighted feature vector. The three-layer structure includes a feature input layer, an attention weight calculation layer, and a weighted feature output layer.
[0020] The attention weight of the attention network is calculated as follows
[0021]
[0022] Where F is the input vector, F = [F p ,F o ] T , F p =[z1,z2,…,z d ]∈R 1×d is the main eigenvector, F o =[F1, F2] are the measured values of the two smoke oxygen content measurement points, ω and β are the hyperparameters of the attention network, κ i represents the i-th attention weight.
[0023] The output of the attention network, i.e., the weight feature vector Expressed as
[0024]
[0025] in, represents the dot product, that is, the multiplication of the elements at corresponding positions of two matrices, κ=[κ1,κ2,...,κ d ]∈R 1×d .
[0026] (6) Multi-layer LSTM prediction network. Considering that LSTM is suitable for processing time series data, the present invention builds a multi-layer LSTM network structure to predict the oxygen content of flue gas. For each LSTM structural unit, it contains 3 gate units: input gate, forget gate and output gate. The network hyperparameters are updated as follows:
[0027]
[0028] Among them, i t represents the time series of the input at time t, that is, the weight feature vector at time t, h t represents the hidden state of the LSTM structural unit at time t, f t represents the state of the forget gate at time t, o t represents the state of the output gate at time t, W = [W xi ,W hi ,W xf ,W hf ,W xo ,W ho ,W xu ,W hu ] and b=[b i ,b f ,b o ] is the hyperparameter of the prediction network, which can be obtained through network training, and σ(·) represents the sigmoid activation function.
[0029] (7) Prediction network training. When predicting network training, the following mean square error is used as the network training loss function L. The network training is to minimize the loss function.
[0030]
[0031] in, To predict the output value of the network, N represents the number of data in the batch data training process during the network training process, and min(·) represents the minimization function.
[0032] (8) Hyperparameter update. Based on the loss function definition of the prediction network (10), the hyperparameter update of the prediction network is as follows:
[0033]
[0034] Among them, α is the parameter update rate and ← represents the assignment.
[0035] Furthermore, data cleaning is performed by using power generation load as a reference for data cleaning and filtering the original sensor data, specifically including: filtering of adjacent data and filtering of non-adjacent data.
[0036] Adjacent data is filtered based on the following:
[0037] |a t,1 -a (t+1),1 |≤ε1 (10)
[0038] Among them, t and t+1 represent the sampling time, a t,1 and a (t+1),1 They represent the power generation load at the corresponding sampling time, ε1 represents the adjacent data screening threshold, and the threshold can be set by analyzing historical data and expert experience. If the power generation load difference of adjacent sampling data satisfies (1), the sampling data a at time t+1 can be t+1 Eliminate,
[0039] The non-adjacent data is filtered based on the following:
[0040] |a t,1 -a p,1 |≤ε2 (11)
[0041] Among them, t and p represent two non-adjacent sampling moments, a t,1 and a p,1 represents the power generation load at the corresponding sampling time, ε2 represents the non-adjacent data screening threshold. The threshold can be set by analyzing historical data and expert knowledge. If the power generation load difference of non-adjacent sampling data satisfies (2), the sampling data a at time p can be p Eliminate,
[0042] Data dimensionality reduction, assuming that after data cleaning, the data is represented as Φ = [φ1, φ2, ..., φ n ] T ∈R n×s , n and s represent the number of data and the data feature dimension respectively. The data is processed by data fusion and PCA principal component analysis based on expert knowledge to achieve data dimensionality reduction.
[0043] Furthermore, the stored data includes 32 quantities, including collection time, power generation load, main steam pressure, main steam temperature, main steam flow, furnace negative pressure, A1-A6 pulverizer coal volume, total furnace air volume, fan air volume on sides A and B, total primary and secondary air volume, secondary air volume on side A, primary hot air on side A, primary cold air on side A, secondary air volume on side B, primary hot air on side B, primary cold air on side B, flue gas flow on side A, flue gas flow on side B, temperatures of three detection points on side A of the reactor, temperatures of three detection points on side B of the reactor, oxygen content of flue gas on side A and oxygen content of flue gas on side B, wherein symbols A1-A6 are only used to identify six different monitoring points, and A and B are used to identify the two main collection points of the combustion boiler.
[0044] Beneficial effects of the present invention:
[0045] (1) The present invention is based on the attention mechanism and multi-layer LSTM of the power plant flue gas oxygen content intelligent prediction method. The present invention first pre-processes the original sensor data. The pre-processing process includes: data cleaning and data dimensionality reduction. Data cleaning mainly removes the original sensor data with strong correlation, thereby reducing the redundancy between the data and improving the representativeness of the data; data dimensionality reduction mainly reduces the degree of correlation between different features within the data, thereby reducing the interference of secondary features on network training and improving the representation ability of the main features. Then, based on the designed attention mechanism network, the main features of the pre-processed data are assigned different attention weights according to their different degrees of influence on the output, and the weight features are obtained. Then, the weight features are input into the prediction network based on the multi-layer LSTM to predict the flue gas oxygen content; with the continuous updating and upgrading of the control system of coal-fired power plants, the application prospects and social and economic benefits of the present invention are considerable.
[0046] (2) The present invention is based on the attention mechanism and multi-layer LSTM intelligent prediction method of power plant flue gas oxygen content. For the data cleaning process, the power plant's power generation load is used as a reference benchmark. Different cleaning thresholds are designed according to whether the sampled data are adjacent. Then, different data cleaning strategies are implemented for adjacent or non-adjacent data to eliminate duplicate or similar data in the original data.
[0047] (3) The present invention is an intelligent prediction method for the oxygen content of flue gas in power plants based on the attention mechanism and multi-layer LSTM. For the data dimensionality reduction process, firstly, based on expert knowledge and the physical meaning of different features of the collected data, the coal quantity characteristics of multiple coal distribution ports are integrated to establish the total coal quantity characteristics that affect the oxygen content of flue gas; further, the PCA technology is used to perform principal component analysis on the characteristics of the data, and finally the main features that affect the output of the prediction system are obtained. Through the designed data dimensionality reduction strategy, the dimensions of the main features of the data are effectively reduced, and the representation ability of the main features of the data is improved.
[0048] (4) The present invention is based on the attention mechanism and multi-layer LSTM intelligent prediction method of power plant flue gas oxygen content. For the attention mechanism, a three-layer attention network structure is designed, the first layer is the feature input layer, the second layer is the attention weight calculation layer, and the third layer is the weight feature output layer. According to the degree of correlation between each main feature and the flue gas oxygen content, different attention weights are assigned to each main feature, so that the prediction network is more inclined to select the main features with a higher degree of correlation, thereby improving the training speed and prediction accuracy of the model.
[0049] (5) The present invention is based on the intelligent prediction method of power plant flue gas oxygen content based on the attention mechanism and multi-layer LSTM, and builds a prediction network based on the LSTM structure. Due to the unique network structure characteristics of LSTM, it is more suitable for analyzing and processing time series related data, and the built multi-layer LSTM prediction network can greatly improve the accuracy of the prediction model while ensuring the training efficiency of the prediction model. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] Other features, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:
[0051] Figure 1 It is a data processing flow chart of an embodiment of a method for intelligently predicting oxygen content in flue gas of a power plant based on an attention mechanism and multi-layer LSTM of the present invention;
[0052] Figure 2 It is a schematic diagram of an attention network of an embodiment of a method for intelligently predicting oxygen content in flue gas of a power plant based on an attention mechanism and multi-layer LSTM of the present invention;
[0053] Figure 3 It is a schematic diagram of an LSTM unit of an embodiment of a method for intelligently predicting oxygen content in flue gas of a power plant based on an attention mechanism and multi-layer LSTM of the present invention;
[0054] Figure 4 It is a cumulative variance ratio diagram after data dimension reduction of an embodiment of the intelligent prediction method for oxygen content in flue gas of a power plant based on the attention mechanism and multi-layer LSTM of the present invention;
[0055] Figure 5 It is a variance percentage diagram of each characteristic quantity in the main features of an embodiment of the intelligent prediction method for power plant flue gas oxygen content based on attention mechanism and multi-layer LSTM of the present invention.
[0056] Figure 6 It is a prediction network training loss change curve diagram of an embodiment of the intelligent prediction method for power plant flue gas oxygen content based on attention mechanism and multi-layer LSTM of the present invention.
[0057] Figure 7 It is an oxygen content prediction error diagram of oxygen content monitoring points A and B of an embodiment of the intelligent prediction method for oxygen content in flue gas of a power plant based on attention mechanism and multi-layer LSTM of the present invention. DETAILED DESCRIPTION
[0058] The present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the relevant invention, rather than to limit the invention. It is also necessary to explain that, for ease of description, only the parts related to the relevant invention are shown in the accompanying drawings.
[0059] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0060] The present invention provides an intelligent prediction method for oxygen content in flue gas of power plants based on attention mechanism and multi-layer LSTM. The method includes two stages: data preprocessing and model prediction. The data preprocessing includes data cleaning and data dimension reduction, which is mainly to reduce the redundancy between the original collected data and between different features within the data, and improve the validity and representation ability of the data. Model prediction includes attention network construction and prediction network construction. The attention network is mainly constructed according to the degree of correlation between the main features and the output of the prediction model. The prediction accuracy of the prediction network is further improved by assigning different attention weights to different main features. Based on the strong prediction effect of LSTM on time series data, a prediction network based on multi-layer LSTM is built to ensure the accuracy and reliability of the prediction.
[0061] The present invention discloses an intelligent prediction method for oxygen content in flue gas of a power plant based on an attention mechanism and multi-layer LSTM. The original collected data of the present invention comes from a 300-MW coal-fired power plant, and the computer processor parameters are 12th Gen Intel(R) Core(TM) i9-12900K 3.20 GHz, NVIDIA GeForce RTX 3090 GPU. The method comprises:
[0062] Collection and storage of raw sensor data. Under different working conditions of coal-fired boilers, the sensor data is collected at a set frequency and saved in the database. There are 32 specific data saved, including collection time, power generation load, main steam pressure, main steam temperature, main steam flow, furnace negative pressure, A1-A6 coal mill coal volume, furnace total air volume, fan air volume on sides A and B, primary and secondary total air volume, secondary air volume on side A, primary hot air on side A, primary cold air on side A, secondary air volume on side B, primary hot air on side B, primary cold air on side B, flue gas flow on side A, flue gas flow on side B, 3 detection point temperatures on side A of the reactor, 3 detection point temperatures on side B of the reactor, oxygen content of flue gas on side A, and oxygen content of flue gas on side B. Among them, the symbols A1-A6 are only used to identify the 6 monitoring points, and A and B are used to identify the two main collection points of the power plant combustion boiler.
[0063] Raw sensor data preprocessing. Preprocessing mainly includes two stages: data cleaning and data dimension reduction. The saved raw sensor data is denoted as A = [a1, a2, …, a l ] T ∈R l×s , l and s represent the number of data and data feature dimensions respectively.
[0064] Data cleaning: Using power generation load as a reference for data cleaning, the original sensor data is screened, including: filtering of adjacent data and filtering of non-adjacent data.
[0065] Adjacent data is filtered based on the following:
[0066] |a t,1 -a (t+1),1 |≤ε1 (12)
[0067] Among them, t and t+1 represent the sampling time, a t,1 and a (t+1),1 They represent the power generation load at the corresponding sampling time, and ε1 = 0.1 represents the adjacent data screening threshold. The threshold can be set by analyzing historical data and expert knowledge. If the power generation load difference of adjacent sampling data satisfies (1), the sampling data a at time t+1 can be t+1 Eliminate.
[0068] The non-adjacent data is filtered based on the following:
[0069] |a t,1 -a p,1 |≤ε2 (13)
[0070] Among them, t and p represent two non-adjacent sampling moments, a t,1 and a p,1 They represent the power generation load at the corresponding sampling time, and ε2 = 0.05 represents the non-adjacent data screening threshold. The threshold can be set by analyzing historical data and expert knowledge. If the power generation load difference of non-adjacent sampling data satisfies (2), then the sampling data a at time p can be p Eliminate.
[0071] Data dimensionality reduction. Assume that after data cleaning, the data is represented as Φ = [φ1, φ2, ..., φ n ] T ∈R n×s , n and s represent the number of data and the characteristic dimension of the data respectively. The data is processed by data fusion based on expert knowledge and PCA principal component analysis to achieve data dimensionality reduction.
[0072] Data fusion based on expert knowledge. Through the analysis of the impact of expert knowledge and the collected historical A1-A6 coal mill coal quantity on the boiler combustion system, the coal quantity of A1-A6 coal mill is weighted and fused as shown in formula (3) to obtain the total coal quantity.
[0073]
[0074] Where, T represents the total amount of coal, T iIt represents the coal distribution amount of each coal mill, and the weights are γ1=0.16, γ2=0.14, γ3=0.14, γ4=0.13, γ5=0.16, and γ6=0.17 respectively.
[0075] PCA principal component analysis. Assume that after data fusion based on expert knowledge, the data is recorded as Φ = [φ1, φ2, ..., φ n ] T ∈R n×m , m represent the feature dimensions of the data after data fusion. The covariance matrix C of data Φ is calculated as follows
[0076]
[0077] The covariance matrix C can be decomposed into the following eigenvalues:
[0078] Q T CQ=Λ=diag(λ1,λ2,....,λ m ) (16)
[0079] Among them, λ1>λ2,>...,>λ m is the eigenvalue of the covariance matrix C, and the corresponding eigenvector is denoted as U = [u1,u2,…,u m ].
[0080] By setting the cumulative variance contribution rate threshold, we can get d main features that have a greater impact on the output. i For example, it is expressed as follows
[0081]
[0082] Among them, u ij and Φ ij It can be directly obtained from the feature vector U and the fused data Φ.
[0083] Attention mechanism. Since different main features have different effects on the output, a 3-layer attention network is designed here to calculate the attention weight of each feature vector and obtain the weighted feature vector. The 3-layer structure includes a feature input layer, an attention weight calculation layer, and a weighted feature output layer.
[0084] The attention weight of the attention network is calculated as follows
[0085]
[0086] Where F is the input vector, F = [F p ,F o ] T , F p =[z1,z2,…,zd ]∈R 1×d is the main eigenvector, F o =[F1, F2] are the measured values of the two smoke oxygen content measurement points, ω and β are the hyperparameters of the attention network, κ i represents the i-th attention weight.
[0087] The output of the attention network, i.e., the weight feature vector Expressed as
[0088]
[0089] in, represents the dot product, that is, the multiplication of the elements at corresponding positions of two matrices, κ=[κ1,κ2,...,κ d ]∈R 1×d is the attention weight vector.
[0090] Multi-layer LSTM prediction network. Considering that LSTM is suitable for processing time series data, the present invention builds a multi-layer LSTM network structure to predict the oxygen content of flue gas. For each LSTM structural unit, it contains 3 gate units: input gate, forget gate and output gate. The network hyperparameters are updated as follows:
[0091]
[0092] Among them, i t represents the time series of the input at time t, that is, the feature vector with attention weights at time t, h t represents the hidden state of the LSTM structural unit at time t, f t represents the state of the forget gate at time t, o t represents the state of the output gate at time t, b = [b i ,b f ,b o ] and W = [W xi ,W hi ,W xf ,W hf ,W xo ,W ho ,W xu ,W hu ] is the hyperparameter of the prediction network, which can be obtained through network training, and σ(·) represents the sigmoid activation function.
[0093] Prediction network training. When predicting network training, the following mean square error is used as the network training loss function L. The network training is to minimize the loss function.
[0094]
[0095] in, To predict the output value of the network, N represents the number of data in the batch data training process during the network training process, and min(·) represents the minimization function.
[0096] Hyperparameter update. Based on the loss function definition of the prediction network (10), the hyperparameter update of the prediction network is as follows
[0097]
[0098] Among them, α is the parameter update rate and ← represents the assignment.
[0099] In one embodiment of the present invention, the intelligent prediction system for oxygen content in flue gas of power plants based on attention mechanism and multi-layer LSTM mainly includes the prediction algorithm and the functional implementation of each module.
[0100] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process and related instructions of the system described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0101] It should be noted that the intelligent prediction system for oxygen content in flue gas of power plants based on attention mechanism and multi-layer LSTM provided in the above embodiment is only illustrated by the division of the above functional modules. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the modules or steps in the embodiments of the present invention can be decomposed or combined. For example, the modules in the above embodiment can be combined into one module, or further divided into multiple sub-modules to complete all or part of the functions described above. The names of the modules and steps involved in the embodiments of the present invention are only for distinguishing the modules or steps, and are not regarded as improper limitations of the present invention.
[0102] Those skilled in the art should be able to appreciate that the modules and method steps of each example described in conjunction with the embodiments disclosed herein can be implemented with electronic hardware, computer software or a combination of the two, and the programs corresponding to the software modules and method steps can be placed in random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disks, removable disks, CD-ROMs, or any other form of storage medium known in the technical field. In order to clearly illustrate the interchangeability of electronic hardware and software, the composition and steps of each example have been generally described in the above description according to the function. Whether these functions are performed in electronic hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present invention.
[0103] The symbols such as "side A", "side B" and "A1-A6" involved in the present invention are only used to identify different collection points. According to different embodiments, those skilled in the art may make modifications to this, which will not be repeated here.
[0104] The term "comprise" or any other similar term is intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus / device that includes a list of elements includes not only those elements but also other elements not expressly listed, or also includes elements inherent to such process, method, article, or apparatus / device.
[0105] So far, the technical solutions of the present invention have been described in conjunction with the preferred embodiments shown in the accompanying drawings. However, it is easy for those skilled in the art to understand that the protection scope of the present invention is obviously not limited to these specific embodiments. Without departing from the principle of the present invention, those skilled in the art can make equivalent changes or substitutions to the relevant technical features, and the technical solutions after these changes or substitutions will fall within the protection scope of the present invention.
Claims
1. An intelligent prediction method for oxygen content in flue gas of power plants based on attention mechanism and multi-layer LSTM, characterized in that: The method includes: (1) Collection and storage of raw sensor data: Under different operating conditions of coal-fired power plant boilers, sensor data is collected at a set frequency and saved in a database. (2) Raw sensor data preprocessing. Preprocessing mainly includes two stages: data cleaning and data dimensionality reduction. The saved raw sensor data is denoted as A = [a1, a2, ..., a l ] T ∈R l×s , l and s represent the number of data and data feature dimensions respectively, (3) Data fusion based on expert knowledge: Through the analysis of the impact of expert knowledge and the collected historical coal quantity of the pulverizer on the boiler combustion system, the coal quantity of the pulverizer is weighted and fused as shown in formula (3) to obtain the total coal quantity. Where, T represents the total amount of coal, T i Indicates the coal distribution amount of each coal mill, γ i Represents the weight coefficient, which is determined by analyzing historical data through expert knowledge. (4) PCA principal component analysis: Assuming that after data fusion based on expert knowledge, the data is recorded as Φ = [φ1, φ2, ..., φ n ] T ∈R n×m , m represent the feature dimensions of the data after data fusion, and the covariance matrix C of the data Φ is calculated as follows The covariance matrix C can be decomposed into the following eigenvalues: Q T CQ=Λ=diag(λ1,λ2,....,λ m ) (5) Among them, λ1>λ2,>...,>λ m is the eigenvalue of the covariance matrix C, and the corresponding eigenvector is denoted as U = [u1,u2,…,u m ], By setting the cumulative variance contribution rate threshold, we can get d main features that have a greater impact on the output, with the i-th main feature z i For example, it is expressed as follows Among them, u ij and Φ ij Directly obtained from the feature vector U and the fused data Φ, (5) Attention mechanism. Since different main features have different effects on the output, a three-layer attention network is designed here to calculate the attention weight of each feature vector and obtain the weighted feature vector. The three-layer structure includes a feature input layer, an attention weight calculation layer, and a weighted feature output layer. The attention weight of the attention network is calculated as follows Where F is the input vector, F = [F p ,F o ] T , F p =[z1,z2,...,z d ]∈R 1×d is the main eigenvector, F o =[F1, F2] are the measured values of the two smoke oxygen content measurement points, ω and β are the hyperparameters of the attention network, κ i represents the i-th attention weight, The output of the attention network, i.e., the weight feature vector Expressed as Among them, ⊙ represents the dot product, that is, the multiplication of the elements at corresponding positions of the two matrices, κ=[κ1,κ2,...,κ d ]∈R 1×d is the weight vector, (6) Multi-layer LSTM prediction network. Considering that LSTM is suitable for processing time series data, a multi-layer LSTM network structure is built to predict the oxygen content of flue gas. For each LSTM structural unit, it contains three gate units: input gate, forget gate and output gate. The network hyperparameters are updated as follows: Among them, i t represents the time series of the input at time t, that is, the feature vector with attention weights at time t, h t represents the hidden state of the LSTM structural unit at time t, f t represents the state of the forget gate at time t, o t represents the state of the output gate at time t, b = [b i ,b f ,b o ] and W = [W xi ,W hi ,W xf ,W hf ,W xo ,W ho ,W xu ,W hu ] is the hyperparameter of the prediction network, obtained through network training, σ(·) represents the sigmoid activation function, (7) Prediction network training. When predicting network training, the following mean square error is used as the network training loss function L. The network training is to minimize the loss function. in, To predict the output value of the network, N represents the number of data in the batch data training during the network training process, min(·) represents the minimization function, (8) Hyperparameter update. Based on the loss function definition (10) of the prediction network, the hyperparameter update of the prediction network is as follows: Among them, α is the parameter update rate and ← represents the assignment.
2. According to claim 1, a method for intelligent prediction of oxygen content in flue gas of a power plant based on attention mechanism and multi-layer LSTM, characterized in that: Data cleaning, using power generation load as a reference for data cleaning, performs data screening on the original sensor data, specifically including: screening of adjacent data and screening of non-adjacent data, Adjacent data is filtered based on the following: |a t,1 -a (t+1),1 |≤ε1 (1) Among them, t and t+1 represent the sampling time, a t,1 and a (t+1),1 They represent the power generation load at the corresponding sampling time, and ε1 represents the adjacent data screening threshold. The threshold is set by analyzing historical data and expert experience. If the power generation load difference of adjacent sampling data satisfies (1), the sampling data a at time t+1 is t+1 Eliminate, The non-adjacent data is filtered based on the following: |a t,1 -a p,1 |≤ε2 (2) Among them, t and p represent two non-adjacent sampling moments, a t,1 and a p,1 represents the power generation load at the corresponding sampling time, ε2 represents the non-adjacent data screening threshold. The threshold is set by analyzing historical data and expert knowledge. If the power generation load difference of non-adjacent sampling data satisfies (2), the sampling data a at time p is selected. p Eliminate, Data dimensionality reduction, assuming that after data cleaning, the data is represented as Φ = [φ1, φ2, ..., φ n ] T ∈R n×s , n and s represent the number of data and the data feature dimension respectively. The data is processed by data fusion and PCA principal component analysis based on expert knowledge to achieve data dimensionality reduction.
3. According to claim 1, a method for intelligent prediction of oxygen content in flue gas of a power plant based on attention mechanism and multi-layer LSTM, characterized in that: The saved data includes 32 quantities, including collection time, power generation load, main steam pressure, main steam temperature, main steam flow, furnace negative pressure, pulverizer coal volume, total furnace air volume, fan air supply volume on sides A and B, total primary and secondary air volume, secondary air volume on side A, primary hot air on side A, primary cold air on side A, secondary air volume on side B, primary hot air on side B, primary cold air on side B, flue gas flow on side A, flue gas flow on side B, temperatures of three detection points on side A of the reactor, temperatures of three detection points on side B of the reactor, oxygen content of flue gas on side A and oxygen content of flue gas on side B, where symbols are only used to identify six different monitoring points, and A and B are used to identify the two main collection points of the combustion boiler.
