Method for Predicting Benchmark Value of Unit Equipment Based on XGBoost Algorithm and System thereof

Information

  • Patent Application
  • 20230213895
  • Publication Number
    20230213895
  • Date Filed
    November 03, 2022
    a year ago
  • Date Published
    July 06, 2023
    10 months ago
Abstract
The invention relates to a method for predicting benchmark value of unit equipment based on XGBoost algorithm and a system thereof, wherein the method comprises the following steps: the historical operation data of unit equipment is obtained, the data is preprocessed, and a data set containing a plurality of samples is constructed, and each sample includes the benchmark value of a plurality of parameters of the equipment corresponding to a plurality of features; RF out-of-bag estimation is used for feature importance calculation to eliminate the features with low importance; the data is standardized to eliminate the dimensional effects among features; the data set is input to construct an XGBoost model, and Bayesian super parameter optimization is conducted to obtain the prediction model of benchmark values; and the real-time data of equipment operation is input, and the benchmark values of various equipment parameters are predicted by the prediction model of benchmark values. Compared with the prior art, the invention mines the correlation among data based on the XGBoost algorithm to predict a reasonable equipment benchmark value, and has the advantages of high generalization ability, high prediction accuracy and operation speed and great improvement of the automation ability of the unit.
Description
TECHNICAL FIELD

The invention relates to the technical field of predicting benchmark values of unit equipment, in particular to a method for predicting benchmark value of unit equipment based on XGBoost algorithm and a system thereof.


BACKGROUND ART

With increasingly higher national requirements for the equipment management of electric power enterprises, in recent years, power generation units gradually take efficiency increase, energy saving, environment protection and cost reduction as their development goals. Especially for the units with deep peak load regulation capacity strict assessment standards and complex operating conditions contradict each other, resulting in increasingly severe economic situation of thermal power units relying on traditional control means.


The benchmark value of the equipment refers to the optimal value (or a range) that a certain operating parameter (e.g. main steam pressure, vacuum, etc.) shall reach under normal operating conditions of the equipment under a certain load. Therefore, the benchmark value is also called expected value. When any operating parameter deviates from the benchmark value, the system causes various energy losses. Therefore, the determination of the benchmark values of the main parameters under the operating conditions helps to guide the operators in economical operation, and is the important basis for energy consumption analysis of the power plant and the auxiliary means for monitoring equipment failures. When the unit operates under rated conditions, the parameter values tinder rated conditions can be used as the benchmark parameters. However, due to the expansion of the power grid scale and the increasingly prominent contradiction between peak and valley, the thermal power units with large capacity and high efficiency have to adjust the peak frequently; thus, the units operate under the condition of deviating from the rated conditions, and the parameter values under the rated conditions can no longer be used as the benchmark values of operating parameters. Determining the benchmark values of operating parameters is of great significance for improving the economical unit operation under different loads, which is conducive to reducing power supply costs, improving the economic benefits of power station, saving energy consumption and reducing pollution.


How to make full use of the platforms of the Internet and big data to raise the quality of equipment modeling, so as to improve the operating efficiency of the units, has become the focus of the current energy industry. Based on this, when predicting the equipment operation benchmark values, early warning of intelligent monitoring points and equipment fault detection in power plants are particularly important.


At present, the modeling method for predicting unit equipment benchmark values mainly adopts manual modeling and machine learning algorithms. The traditional manual modeling method requires the knowledge mid experience of the implementers, and often has such problems as complex operation, low prediction accuracy, slow calculation process, and long implementation period. In the machine learning algorithms widely used for equipment operation benchmark prediction, such as data mining technology and support vector machine method applied to the system of early warning of faults, the data mining technology face such problems as insufficient fitting and poor logical regression, and the support vector machine method is also difficult to be implemented for large-scale training samples.


Content of Invention

The invention aims to provide a method for predicting benchmark value of unit equipment based on XGBoost algorithm and a system thereof in order to overcome the defects of the prior art.


The purpose of the invention is realized by the following technical solution:


A method for predicting benchmark value of unit equipment based on XGBoost algorithm comprises the following steps:


S1. The historical operation data of unit equipment is obtained, the data is preprocessed, and a data set containing a plurality of samples is constructed, and each sample includes the benchmark value of a plurality of parameters of the equipment corresponding to a plurality of features;


S2. RF out-of-bag estimation is used for feature importance calculation to eliminate the features with low importance;


S3. The data is standardized to eliminate the dimensional effects among features:


S4. The data set is input to construct an XGBoost model, and Bayesian super parameter optimization is conducted to obtain the prediction model of benchmark values:


S5. The real-time data of equipment operation is input, and the benchmark values of various equipment parameters are predicted by the prediction model of benchmark values.


Furthermore, step S1 comprises the following:


S11. The historical operation data of the equipment is obtained from the plant level supervisory information system SIS of the unit:


S12. The data is checked for blank values and outliers, and the data with blank values and outliers are eliminated;


S13. Straightened line type data is filtered:


S14. Data features are dimensionally reduced by PCA to obtain a data set containing multiple samples, and each sample contains multiple features.


Furthermore, step S2 comprises the following:


For each feature of the sample, the random forest (RF) out-of-bag estimation is used to rank the importance of the features and select the features. The average precision decline rate (MDA) is used as an indicator to calculate the importance of the feature. The formula is as follows:






MDA
=


1
n







=
1

n



(


errOOB
t

-

errOOB
t



)

.







Wherein, n is the number of base classifiers constructed by random forests, errOOBt is the out-of-bag error of the tth base classifier, and errOOBt is the out-of-bag error of the tth base classifier after noise is added. The more MDA decreases, the higher the importance of the feature.


Furthermore, in step S3, the data set contains N samples, each sample has L-type features, and Z-score standardization method is used to standardize each type of features of each sample, as follows:







x
nl
*

=



x
nl

-

μ
l



σ
l






Wherein, xnl is the feature data of the type 1 features of the nth sample, and xnl′ is the feature data of the type 1 features of the n sample after standardization, μ1 is the mean value of the feature data of the type 1 features in the Nth sample, and ø1 is the standard deviation of the feature data of the type 1 features in the Nth sample.


Furthermore, step S4 comprises the following steps:


S41. The data set T containing N samples is input. T={X1, Y1), (X2, Y2), (X3, X4), . . . , (XN, YN}, each sample has L-type features, Xi=(xi1, xi2, . . . , xiL), corresponding to the benchmark value of M parameters of the equipment, Yi=(yi1, yi2, . . . , yiM);


S42. The objective function of XGBoost model iteration is established:







O

(
t
)

=



-

1
2







k
=
1

K



G
k
2



H
k

+
λ




+

γ

K






Wherein, Gki=1kγ(i−1)l(Yi1(t−1)), Hki=1kp(t−1)2l(Yi, Ŷ1(t−1)), λ is L2 regular penalty coefficient; γ is L1 regular penalty coefficient; K is the total number of leaf nodes in the decision tree; Yi is the true value of the ith sample; Ŷi(t−1) is the predicted value after the (t−1)th iteration of the ith sample; and the sample set on the leaf with index k is defied as Ik;


S43. The adjustment range of XGBoost model super parameters is set, and Bayesian optimization algorithm is used to optimize XGBoost super parameters to obtain the optimal combination of super parameters:


S44. The optimal combination of super parameters is input into the XGBoost model, and the data set T is used to train according to the objective function 0 (t);


S45. The optimal combination of the super parameters is recorded if the prediction performance of the XGBoost model obtained through training meets the preset accuracy threshold, so as to obtain the benchmark value prediction model. Otherwise, step S43 is executed to optimize the XGBoost super parameters again.


Furthermore, in step S43, the XGBoost model super parameters include:


Learning rate with the parameter adjustment range of [0.1, 0.15];


Maximum depth of the tree with the parameter adjustment range of (5, 30);


Penalty term of complexity with the parameter adjustment range of (0, 30);


Randomly selected sample proportion with the parameter adjustment range of (0, 1);


Random sampling ratio of features with the parameter adjustment range of (0.2, 0.6):


L2 norm regular term of weight with the parameter adjustment range of (0, 10):


Number of decision trees with the parameter adjustment range of (500, 1000);


Minimum leaf node weight sum with the parameter adjustment range of (0, 10).


Furthermore, in step S45, the prediction performance of XGBoost model in step S45 includes average absolute percentage error and determination coefficient, and the calculation formula is as follows:








e
MAPE

=








i
=
1

N





"\[LeftBracketingBar]"





Y
^

i

-

Y
i



Y
i




"\[RightBracketingBar]"



N






R
2

=

1
-








i
=
1

N




(



Y
^

i

-

Y
i


)

2









i
=
1

N




(



Y
^

i

-


Y
_

i


)

2









Wherein, eMAPE is the average absolute percentage error, R2 is the determination coefficient, Yi is the benchmark value of the ith sample in the data set, Ŷi is the benchmark value predicted by the XGBoost model according to the feature Xi of the ith sample, and Ŷi is the average value of the benchmark values of the Na sample in the data set.


A system for predicting benchmark value of unit equipment based on XGBoost algorithm and comprises the following:


A data set construction module, which obtains the historical operation data of unit equipment preprocesses the data, and constructs a data set containing a plurality of samples. Each sample includes a plurality of features corresponding to the benchmark values of a plurality of parameters of the equipment;


A feature selection module, which uses RF out-of-bag estimation to calculate the feature importance of the data and eliminate the features with low importance:


A standardization processing module, which standardizes the features of the samples in the data set to eliminate the dimensional impact among features;


A model construction module, which inputs the data set, constructs the XGBoost model, and conducts Bayesian super parameter optimization to obtain the benchmark value prediction model;


A prediction module, which inputs the real-time data of equipment operation, and obtains the benchmark values of each parameter of the equipment through the benchmark value prediction model.


Furthermore, the feature selection module executes the following steps:


For each feature of the sample, the random forest (RF) out-of-bag estimation is used to rank the importance of the features and select the features. The average precision decline rate (MDA) is used as an indicator to calculate the importance of the feature. The formula is as follows:







MDA
=


1
n






t
=
1

n


(


errOOB
t

-

errOOB
t



)




,




Wherein, n is the number of base classifiers constructed by random forests, errOOBt is the out-of-bag error of the tth base classifier, and errOOB′t is the out-of-bag error of the tth base classifier after noise is added. The more MDA decreases, the higher the importance of the feature.


Furthermore, the model construction module executes the following steps:


Step1, the data set T containing N samples is input, T={X1, Y1), (X2, Y2), (X3, X4), . . . , (XN, YN}, each sample has L-type features, X1=(xi1, xi2, . . . , xiL), corresponding to the benchmark value of M parameters of the equipment; Y1=(yi1, yi2, . . . , yiM);


Step2. The objective function of XGBoost model iteration is established:







O

(
t
)

=



-

1
2







k
=
1

K



G
k
2



H
k

+
λ




+

γ

K






Wherein, Gki=1kγ(i−1)l(Yi1(t−1)), Hki=1kp(t−1)2l(Yi, Ŷ1(t−1)), λ is L2 regular penalty coefficient; γ is L1 regular penalty coefficient; K is the total number of leaf nodes in the decision tree; Yi is the true value of the ith sample; Ŷi(t−1) is the predicted value after the (t−1)th iteration of the ith sample; and the sample set on the leaf with index k is defined as Ik;


Step3. The adjustment range of XGBoost model super parameters is set, and Bayesian optimization algorithm is used to optimize XGBoost super parameters to obtain the optimal combination of super parameters:


Step 4. The optimal combination of super parameters is input into the XGBoost model, and the data set T is used to train according to the objective function 0 (t);


Step 5. The optimal combination of the super parameters is recorded if the prediction accuracy of the XGBoost model obtained through training meets the preset accuracy threshold, so as to obtain the benchmark value prediction model. Otherwise, step 3 is executed to optimize the XGBoost super parameters again.


Compared with the prior art, the invention has the following advantages:


(1) The invention constructs a benchmark value prediction model based on XGBoost algorithm, and uses the machine learning algorithm to mine the correlation among data to predict a reasonable equipment benchmark value, and has the advantages of high generalization ability, high prediction accuracy and operation speed and great improvement of the automation ability of the unit.


(2) Data is preliminarily processed to eliminate the blank value, outliers mid straightened line type data to avoid the interference of abnormal data, and preliminary PCA principal component analysis is carried out to screen out key features, so as to preliminarily remove similar and redundant features, reducing the calculation amount of subsequent feature selection and model training.


(3) For PCA dimensionality reduced data, RF out-of-bag estimation is used to rank and select the importance of features, further screen important features and simplify data samples while retaining key features, which can reduce over fitting, improve the model generalization ability, make the model more interpretable, enhance the understanding of the correlation between features and predicted values, and speed up the model training.


(4) XGBoost super parameter optimization is conducted through Bayesian optimization algorithm, which greatly reduces the workload of parameter adjustment in XGBoost model and speeds up the model construction.





FIGURES


FIG. 1 is a flowchart of the invention.





DESCRIPTION OF PREFERRED EMBODIMENTS

The embodiment and specific operation process of the invention are described in detail below in combination with the drawing and specific embodiment. The embodiment is implemented on the premise of the technical solution of the invention, but the protection scope of the invention is not limited to the following embodiment.


In the drawing, the components with the same structure are represented by the same number, and the components with similar structures or functions are represented by similar numbers. The size and thickness of each component shown in the drawing are arbitrarily given, because the invention does not define the size and thickness of each component. In order to make the diagram clearer, some parts are enlarged appropriately in the drawing.


Embodiment 1

A method for predicting benchmark value of unit equipment based on XGBoost algorithm, as shown in FIG. 1, comprises the following steps:


S1. The historical operation data of unit equipment is obtained, the data is preprocessed, and a data set containing a plurality of samples is constructed, and each sample includes the benchmark value of a plurality of parameters of the equipment corresponding to a plurality of features;


S2. RF out-of-bag estimation is used for feature importance calculation to eliminate the features with low importance;


S3. The data is standardized to eliminate the dimensional effects among features;


S4. The data set is input to construct an XGBoost model, and Bayesian super parameter optimization is conducted to obtain the prediction model of benchmark values:


S5. The real-time data of equipment operation is input, and the benchmark values of various equipment parameters are predicted by the prediction model of benchmark values.


The overall technical solution of the invention mainly includes data acquisition and preprocessing. The steps are as follows: the random forest (RF) out-of-bag estimation is used to rank the importance of the features, data is standardized, and the XGBoost model optimized by Bayesian parameters is used for modeling, and the model is used for benchmark value prediction. The Java language development data interface is used to collect historical data and for data communication between modules. The data comes from the real-time data base platform plant level SIS (supervisory information system). The XGBoost package (current version 1.4.22) installed separately by Python is used to implement the algorithm. The functions of each part are as follows:


Step S1 is as follows:


S11. The historical operation data of the equipment is obtained from the plant level SIS of the unit;


S12. The data is checked for vacant values and outliers, and the data with vacant values and outliers are eliminated:


S13. The straight-line data is filtered;


S14. Data features are dimensionally reduced by PCA to obtain a data set containing multiple samples, and each sample contains multiple features.


Generally, the generator unit has a supervisory information system (SIS), which stores the historical data collected from the distributed control system (DCS) of the unit.


The applications deployed in power plants usually only read data from SIS. Real time database (now called temporal database) is the core technology of SIS. A server needs to be deployed in this solution, and the interface program of SIS real-time database needs to be deployed on the server. The historical data is collected according to the above-mentioned measuring points and stored in the open source temporal database deployed on the server.


It shall obtain the operation history data of the equipment for at least one full year to ensure data completeness. Long term data is not referential. Data is filtered by time. Based on the set time threshold, the original data with a time span of less than one year shall not be extracted. On this basis, the null data is removed. The null data is generally the data that occurs due to on-site sensor failure or abnormal data transmission. Further, the straightened line type data is filtered. The straightened line type abnormal data is defined as follows: if the value of the measured point data in a certain time interval fluctuates within the set threshold range (the threshold range is set according to different types of data), the data in this time interval is the straightened line type abnormal data. It shall be noted that the reasons for the occurrence of the straightened line type abnormal data are as follows: in some abnormal situations, such as the failure of the field sensor, the transmitted data point is not null or error, but the sensor continuously transmits the normal values of the last measurement, which is reflected in the trend chart as a straight line, and is one type of the straightened line type abnormal data.


Then, principal component analysis (PCA) is used to reduce the dimensions of the filtered features. This function is implemented through the pea module of the sklearn library in Python. The train_test_split function of the sklearn. model_selection module is called to divide the training set and the test set. During principal component analysis, the number of important features which shall be retained can be adjusted. This can be set according to the type of equipment, experience, etc., which can be understood by relevant practitioners.


In addition, every other period of time, new data is read and supplemented into the database of server on a regular basis, and data preprocessing is repeated, steps S1 to S4 are executed, and the benchmark value prediction model is updated regularly.


Step S2 is as follows:


After historical data preprocessing, RF out-of-bag estimation is used to rank the importance of main measuring points representing equipment operation features, such as unit load, current, etc. RF can be used to select features. In the process of randomly and repeatedly sampling from the original sample set for classifier training, about ⅓ of the sample data is not selected, which are called Out of Bag (OOB) data. The error rate of GOB test is recorded as errOOB. The average error of all learner based tests is calculated, and the average accuracy decline rate (MDA) is used as the index to calculate the importance of features. The formula is as follows:







MDA
=


1

n









t
=
1


n


(


errOOB
t

-

errOOB
i



)




,




Wherein, n is the number of base classifiers constructed by random forests, errOOBt is the out-of-bag error of the tth base classifier, and errOOB′t is the out-of-bag error of the tth base classifier after noise is added. The more MDA decreases, the higher the importance of the feature.


RF out-of-bag estimation is determined based on the random forest algorithm. In a random forest, multiple decision trees, namely, base classifiers, are constructed. Each decision tree can be understood as making decisions on a feature. After adding noise to a feature at random, if the out-of-bag accuracy is greatly reduced, it indicates that this feature has a great impact on the classification results of the samples, that is, the importance of this feature is high. According to the above idea. RF out-of-bag estimation can be used to rank the importance of features of the samples in the data set and select the features with higher importance. The specific number of reserved features is customized according to the equipment type and experience.


In step 3:


The features after preprocessing and feature selection usually have different dimensions and dimensional units, which affect the results of data analysis. Data shall be standardized to eliminate the dimensional effects among features. The data set contains N samples, and each sample has L-type features, Z-score standardization method is used to standardize each type of features of each sample, and centralize the feature data according to the mean value, and then scale the feature data according to the standard deviation. The processed data obey the standard normal distribution, i.e. x˜N(μ,σ2), as follows:







x
nl
*

=



x
nl

-

μ
l



σ
l






Wherein xnl is the feature data of the type 1 features of the nth sample, and xnl′ is the feature data of the type 1 features of the nth sample after standardization, μ1 is the mean value of the feature data of the type 1 features in the Nth sample, and θ1 is the standard deviation of the feature data of the type 1 features in the Nth sample. XGBoost's numpy library can be used in this step to standardize the data.


Step S4 is as follows:


The principle of XGBoost algorithm is as follows:


The data set D={(x1, y1), (x2, y2), . . . , (xi, yi), . . . , (xn, yn)}, (xi∈Rn, γj∈R) is given, xi is the feature which can be understood as the vector of m, and yi indicates the label corresponding to xi. For example, to predict whether the product will be purchased according to age, gender and income, x is (age, gender, income), and y is “Yes” or “No” In this application, for the equipment in the unit, the data of different measuring points of the equipment, such as current, voltage, vibration, sound, load, etc., are acquired as the features, the benchmark value of the main parameters of the equipment are taken as the label, and the input of the trained XGBoost model is the current, voltage, vibration, sound, load and other equipment operation data, as well as the output is the predicted benchmark value of each equipment.


For the objective function of XGBoost:







O

(
t
)

=






i
=
1


n


l

(


y
i

,


y
^

i

(
t
)



)


+

Ω


(

f
k

)







Wherein, yi is the actual value, i.e., the value in the training set; ŷi(t) is the predicted value after the tth iteration of the ith sample, and Ω(fk) is the regularization term. The corresponding formula of ŷi(t) and Ω(fk) is as follows:









y
i

(
t
)


=






k
=
1



?




f
k

(

x
i

)


=


y
i

(

t
-
1

)


+

f

?


(

x

i



)














Ω

(

f

k



)

=


α

K

+


1
2


β






k
=
1



?



ω
k
2












?

indicates text missing or illegible when filed




Wherein K is the total number of leaf nodes in the decision tree; α and β are respectively the coefficients of L1 and L2 regular penalty items; and ωK is the output value of the kth leaf node of the decision tree.


ŷi(t) and Ω(fk) are substituted into the objective function 0 (t), second order Taylor formula is used to expand, and the result is as follows:








O

(
t
)






i
=
1


?



[



?


(


y
i

,


y
^

i

(

t
-
1

)



)


+


?


l

(


y
i

,


y
^

i

(

t
-
1

)



)


f

?


(

x
i

)


+


1
2





?




l

(


y
i

,


y
^

i

(

t
-
2

)



)


f

?


(

x
i

)



]



+

α

K

+


1
2


β





k
=
1

K


ω
k
2










?

indicates text missing or illegible when filed




Definition







G

k



=




i


l
k








y
^


(

t
-
1

)




l

(


y
i

,


y
^

i

(

t
-
1

)



)








H
k

=




i


l
k








y
^


(

t
-
1

)


2


l

(


y
i

,


y
^

i

(

t
-
1

)



)








The objective function obtained is as follows:







O

(
t
)

=


-

1
2








k
=
1


K




G
k
2



H
k

+
β



α

K







To sum up, step S4 comprises the following steps:


Step 41. The data set T containing N samples is input,


T={(X1, Y1), (X2, Y2), (X3, Y3), . . . , (Xk, Yk)}, each sample has L-type features, Xi=(xi1, xi2, . . . , xiL), corresponding to the benchmark value of M parameters of the equipment, Yi=(yi1, yi2, . . . , yiM);


Step 42. The objective function of XGBoost model iteration is established.







O

(
t
)

=


-

1
2








k
=
1


K




G
k
2



H
k

+
λ



γ

K







Wherein. Gki=1kγ(i−1)l(Yi1(t−1)), Hki=1kp(t−1)2l(Yi, Ŷ1(t−1)), λ is L2 regular penalty coefficient; γ is L1 regular penalty coefficient; K is the total number of leaf nodes in the decision tree; Yi is the true value of the ith sample; ŷi(t−1) is the predicted value after the (t−1)th iteration of the ith sample; and the sample set on the leaf with index k is defined as Ik;


S43. The adjustment range of XGBoost model super parameters is set, and Bayesian optimization algorithm is used to optimize XGBoost super parameters to obtain the optimal combination of super parameters;


The XGBoost model super parameters selected for optimization include:


Learning rate with the parameter adjustment range of [0.1, 0.15]:


Maximum depth of the tree with the parameter adjustment range of (5, 30):


Penalty term of complexity with the parameter adjustment range of (0, 30):


Randomly selected sample proportion with the parameter adjustment range of (0, 1);


Random sampling ratio of features with the parameter adjustment range of (0.2, 0.6);


L2 norm regular term of weight with the parameter adjustment range of (0, 10);


Number of decision trees with the parameter adjustment range of (500, 1000);


Minimum leaf node weight sum with the parameter adjustment range of (0, 10).


S44. The optimal combination of super parameters is input into the XGBoost model, and the data set T is used to train according to the objective function 0 (t);


S45. The optimal combination of the super parameters is recorded if the prediction performance of the XGBoost model obtained through training meets the preset accuracy threshold, so as to obtain the prediction model of benchmark values. Otherwise, step S43 is executed to optimize the XGBoost super parameters again.


In step S45, the average absolute percentage error and determination coefficient are used to assess the model performance, and the calculation formula is as follows:







e
MAPE

=








i
=
1

N





"\[LeftBracketingBar]"





Y
^

i

-

Y
i



Y
i




"\[RightBracketingBar]"



N








R
2

=

1
-








i
=
1

N




(



Y
^

i

-

Y
i


)

2









i
=
1

N




(



Y
^

i

-


Y
_

i


)

2








Wherein, eMAPE is the average absolute percentage error, R2 is the determination coefficient, Yi is the benchmark value of the ith sample in the data set. Ŷi is the benchmark value predicted by the XGBoost model according to the feature Xi of the ith sample, and Ÿi is the average value of the benchmark values of the Nth sample in the data set.


Python's Bayesian Optimization library can be used for Bayesian super parameter optimization, designing penalty functions, and finding the global optimal value of the penalty function combining the super parameters as the optimal combination. Relevant practitioners can understand the specific content which is not repeated here. In the iterative process of optimization and model training, for the output problem of multiple solutions by XGBoost, the multioutput tregressor of the sklearn.multioutput module is used for solving. Java programming is used to realize sample input and result output between Python and temporal database. Model training, storage, prediction and scoring are completed by writing Python programs and calling the XGBoost algorithm model in sklearn of the Python machine learning library. After receiving random samples and prediction information, the XGBoost module calls Python program for training and transmits prediction results to Java program to complete prediction.


Parameter adjustment in machine learning is a tedious but crucial task, which greatly affects the performance of the algorithm. Manual parameter adjustment is time-consuming and mainly based on experience and luck. Grid search and random search do not require manpower, but need a long run time. Through Bayesian super parameter optimization, the invention quickly determines the optimal super parameters of XGBoost model, speeding up model construction.


Embodiment 2

The invention also protects a system for predicting benchmark value of unit equipment based on XGBoost algorithm, which is based on the method for predicting benchmark value of unit equipment based on XGBoost algorithm described in embodiment 1 and comprises the following:


A data set construction module, which obtains the historical operation data of unit equipment, preprocesses the data, and constructs a data set containing a plurality of samples. Each sample includes a plurality of features corresponding to the benchmark values of a plurality of parameters of the equipment;


A feature selection module, which uses RF out-of-bag estimation to calculate the feature importance of the data and eliminate the features with low importance;


A standardization processing module, which standardizes the features of the samples in the data set to eliminate the dimensional impact among features;


A model construction module, which inputs the data set, constructs the XGBoost model, and conducts Bayesian super parameter optimization to obtain the benchmark value prediction model;


A prediction module, which inputs the real-time data of equipment operation, and obtains the benchmark values of each parameter of the equipment through the benchmark value prediction model.


The specific execution of each module is described in embodiment 1, which is not repeated here.


For the prediction of the benchmark value of unit equipment, in order to solve the defects of low efficiency and low prediction accuracy of the traditional manual modeling method of power plants, the invention adopts an efficient machine learning algorithm XGBoost (extreme gradient boosting), which has the following steps: the historical operation data of unit equipment is processed to get the data meeting the healthy work conditions. RF out-of-bag estimation is used for ranking the importance of relevant features, such as unit load, current, etc., which are the main test points of equipment operation; the data is standardized; the XGBoost model after Bayesian super parameter optimization is obtained to obtain the prediction model of benchmark values; and the real-time data is input in the prediction model of benchmark values to get the required prediction value of benchmark value.


The preferred specific embodiments of the invention are described in detail above. It shall be understood that any ordinary technician in the art can make many modifications and changes according to the concept of the invention without any creative work. Therefore, any technical solution that can be obtained by any person skilled in the art according to the concept of the invention on the basis of the prior art through logical analysis, reasoning or limited experiments s hall be within the scope of protection determined by the claims.

Claims
  • 1. A method for predicting bench nark value of unit equipment based on XGBoost algorithm is characterized by comprising the following steps: S1. The historical operation data of unit equipment is obtained, the data is preprocessed, and a data set containing a plurality of samples is constructed, and each sample includes the benchmark value of a plurality of parameters of the equipment corresponding to a plurality of features;S2. RF out-of-bag estimation is used for feature importance calculation to eliminate the features with low importance;S3. The data is standardized to eliminate the dimensional effects among features;S4. The data set is input to construct an XGBoost model, and Bayesian super parameter optimization is conducted to obtain the prediction model of benchmark values;S5. The real-time data of equipment operation is input, and the benchmark values of various equipment parameters are predicted by the prediction model of benchmark values.
  • 2. The method for predicting benchmark value of unit equipment based on XGBoost algorithm according to claim 1 is characterized in that step S1 is as follows: S11. The historical operation data of the equipment is obtained from the plant level supervisory information system SIS of the unit;S12. The data is checked for blank values and outliers, and the data with blank values and outliers are eliminated;S13. Straightened line type data is filtered;S14. Data features are dimensionally reduced by PCA to obtain a data set containing multiple samples, and each sample contains multiple features.
  • 3. The method for predicting benchmark value of unit equipment based on XGBoost algorithm according to claim 1 is characterized in that step S2 is as follows: For each feature of the sample, the random forest (RF) out-of-bag estimation is used to rank the importance of the features and select the features. The average precision decline rate (MDA) is used as an indicator to calculate the importance of the feature. The formula is as follows:
  • 4. The method for predicting benchmark value of unit equipment based on XGBoost algorithm according to claim 1 is characterized in that in step S3, the data set contains N samples, each sample has L-type features, and Z-score standardization method is used to standardize each type of features of each sample, as follows:
  • 5. The method for predicting benchmark value of unit equipment based on XGBoost algorithm according to claim 1 is characterized in that step S4 comprises the following steps: S41. The data set T containing N samples is input, T={(x1, y1), (x2, y2), (xK, yK), . . . , (XN, YN)}, each sample has L-type features Xi=(xi1, xi2, . . . , xiL), corresponding to the benchmark value of M parameters of the equipment, Yi=(yi1, yi2, . . . , yiM);S42. The objective function of XGBoost model iteration is established:
  • 6. The method for predicting benchmark value of unit equipment based on XGBoost algorithm according to claim 5 is characterized in that in step S43, the XGBoost model super parameters include: Learning rate with the parameter adjustment range of [0.1, 0.15];Maximum depth of the tree with the parameter adjustment range of (5, 30);Penalty term of complexity with the parameter adjustment range of (0, 30);Randomly selected sample proportion with the parameter adjustment range of (0, 1);Random sampling ratio of features with the parameter adjustment range of (0.2, 0.6);L2 norm regular term of weight with the parameter adjustment range of (0, 10);Number of decision trees with the parameter adjustment range of (500, 1000);Minimum leaf node weight sum with the parameter adjustment range of (0, 10).
  • 7. The method for predicting benchmark value of unit equipment based on XGBoost algorithm according to claim 5 is characterized in that the prediction performance of XGBoost model in step S45 includes average absolute percentage error and determination coefficient and the calculation formula is as follows:
  • 8. A system for predicting benchmark value of unit equipment based on XGBoost algorithm is characterized by being based on the method for predicting benchmark value of unit equipment based on XGBoost algorithm described in of claim 1, and comprises the following: A data set construction module, which obtains the historical operation data of unit equipment, preprocesses the data, and constructs a data set containing a plurality of samples. Each sample includes a plurality of features corresponding to the benchmark values of a plurality of parameters of the equipment;A feature selection module, which uses RF out-of-bag estimation to calculate the feature importance of the data and eliminate the features with low importance;A standardization processing module, which standardizes the features of the samples in the data set to eliminate the dimensional impact among features;A model construction module, which inputs the data set, constructs the XGBoost model, and conducts Bayesian super parameter optimization to obtain the prediction model of benchmark values;A prediction module, which inputs the real-time data of equipment operation, and obtains the benchmark values of each parameter of the equipment through the prediction model of benchmark values.
  • 9. The system for predicting benchmark value of unit equipment based on XGBoost algorithm according to claim 8 is characterized in that the feature selection module executes the following steps: For each feature of the sample, the random forest (RF) out-of-bag estimation is used to rank the importance of the features and select the features. The average precision decline rate (MDA) is used as an indicator to calculate the importance of the feature. The formula is as follows:
  • 10. The system for predicting benchmark value of unit equipment based on XGBoost algorithm according to claim 8 is characterized in that the model construction module executes the following steps: Step 1. The data set T containing N samples is input,T={(X1, Y1), (X2, Y2), (X3, Y3), . . . , (XN, YN)}, each sample has L-type features, Xi=(xi1, xi2, . . . , xiL), corresponding to the benchmark value of M parameters of the equipment, Yi=(yi1, yi2, . . . , yiM);Step2. The objective function of XGBoost model iteration is established:
Priority Claims (1)
Number Date Country Kind
202111681654.1 Dec 2021 CN national