A resampling-based AAKR model uncertainty calculation method and system
Through the AAKR model uncertainty calculation method based on resampling, using wavelet denoising and Bootstrap methods, combined with Jackknife bias estimation, the problem of low uncertainty analysis efficiency in the existing technology is solved, and the sensor status of key equipment in nuclear power plants is realized. Efficient and accurate forecasting.
Patent Information
- Application Number
- CN202010852271.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-08-21
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2040-08-21
AI Technical Summary
In the current online status monitoring of key equipment in nuclear power plants, the uncertainty analysis based on empirical models has low efficiency and high economic costs. It cannot effectively ensure the prediction accuracy of sensor status, resulting in high equipment false alarm and missed alarm rates, which increases the economic cost. loss.
The AAKR model uncertainty calculation method based on resampling is adopted, by dividing the sensor historical status data into training and test data sets, using the wavelet denoising method to denoise and calculate the noise variance, and combining the Bootstrap and Jackknife methods to develop multiple models to Estimate the variance and bias of model predictions, calculate Monte Carlo uncertainty, simplify the resampling process and reduce confidence interval bias.
It improves calculation efficiency and prediction accuracy, reduces economic losses caused by equipment shutdown, provides a reliable and efficient uncertainty estimation method, and ensures accurate prediction of sensor status of key equipment.
Smart Images

Figure CN112100574B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to a method for quantifying the uncertainty of an AAKR model, and in particular to a method and system for calculating the uncertainty of an AAKR model based on resampling. Background Art
[0002] The online condition monitoring system of key equipment in nuclear power plants helps reduce the risk of catastrophic failures and the excess costs caused by unnecessary regular maintenance. Among them, the condition monitoring method based on the empirical model does not rely on an in-depth understanding of the fault mechanism model. It determines whether the equipment is abnormal based on the historical operating data and operating experience of the equipment. With the rapid development of the Internet of Things and big data technology, it has been widely used. However, when the empirical model is used to monitor key nuclear power equipment, it involves ill-posed problems that affect the stability of the model. It must be accompanied by an estimate of its uncertainty. At the same time, accurate estimation of the uncertainty interval can effectively reduce the false alarm and missed alarm rate of the equipment, thereby reducing the economic losses caused by equipment downtime. However, there is little research on the uncertainty analysis of model regression values. The traditional Monte Carlo uncertainty determination method uses probability distribution to simulate noise to obtain sampling data, which requires prior knowledge of the overall distribution and sufficiently large sample data. It is inefficient and has high economic costs, and cannot effectively ensure the prediction accuracy of the sensor status of key equipment. Summary of the invention
[0003] The purpose of the present invention is to provide a resampling-based AAKR model uncertainty calculation method and system to overcome the deficiencies of the prior art.
[0004] In order to achieve the above object, the present invention adopts the following technical scheme:
[0005] A resampling-based AAKR model uncertainty calculation method comprises the following steps:
[0006] Step 1), divide the sensor historical state data set into a training data set and a test data set;
[0007] Step 2), denoising the training data set by wavelet denoising method and calculating the noise variance;
[0008] Step 3), the training data set is resampled multiple times by the Bootstrap method, and a new training data set is obtained after each resampling. Multiple new models are established according to each group of new training data sets after sampling, and multiple model prediction values are obtained according to the prediction of the multiple new models. The changes between the multiple model prediction values can be calculated to obtain the model prediction variance of the multiple model prediction values;
[0009] Step 4), calculate the mean square error between the model prediction value and the test observation value;
[0010] Step 5), the model deviation is calculated based on the noise variance, model prediction variance and mean square error;
[0011] Step 6) Estimation is performed based on the model deviation and model variance, and the Monte Carlo uncertainty estimate can be obtained as twice the square root of the sum of the square of the model deviation and the model variance.
[0012] Furthermore, the sensor historical data is loaded, and the sensor historical data is detected and corrected for abnormal values, and the sensor historical state data set is divided into a training data set and a test data set.
[0013] Furthermore, the wavelet denoising method is used to denoise the training data set.
[0014]
[0015] Among them, ε i is the i-th training observation X in the training data set i Noise estimation of ; is the i-th training observation X in the training data set i The estimated value of the true value; the variance of the noise of the i variables in the training data set is:
[0016]
[0017] n trn is the number of training observations; is the expected value of the noise estimate; is the noise variance of the training dataset.
[0018] Furthermore, the following formula is used to calculate the change between multiple model prediction values, namely the model prediction variance:
[0019]
[0020] in, is the variance of the ith observation of the jth variable; get n tst ×p-dimensional variance estimation, the variance of each p variable is arranged in ascending order, and the 95th percentile maximum value is selected to conservatively estimate the single-point variance.
[0021] Furthermore, each new model established by resampling the training data set can give a model prediction value, namely Calculate the mean squared error (MSE) between the new model's predictions and the test observations:
[0022]
[0023] Where X tst,i and are the test observations and model predictions of the i-th new model. The dimension of MSE is 1×p, and N predictions will produce N 1×p-dimensional MSEs.
[0024] Furthermore, the model deviation is:
[0025] Furthermore, the confidence interval and prediction interval corresponding to the 95% confidence level were calculated based on the Monte Carlo uncertainty estimate, and the Jackknife deviation estimation method was used to correct the confidence interval (CI) predicted by the AAKR model and calculate the prediction interval.
[0026] Furthermore, the confidence interval and prediction interval corresponding to the 95% confidence level were calculated based on the Monte Carlo uncertainty estimate, and the Jackknife deviation estimation method was used to correct the confidence interval (CI) predicted by the AAKR model and calculate the prediction interval.
[0027] Furthermore, the general equation for the confidence interval is:
[0028]
[0029] in, is an estimate of the expected value θ of the model prediction, then its deviation is:
[0030]
[0031] Model prediction value Yes tst ×p-dimensional time state sequence; It represents the estimated value after removing the i-th (i=1,2,...,N) predicted value, and the average value is obtained Then the Jackknife deviation is estimated as:
[0032]
[0033] From this we get The correction estimate of :
[0034] So the confidence interval after correction is:
[0035] The prediction interval at the 95% confidence level is:
[0036]
[0037] A resampling-based AAKR model uncertainty calculation system includes a data acquisition module, a data denoising module and a data processing module;
[0038] The data acquisition module is used to acquire the sensor historical state data set and divide the acquired data set into a training data set and a test data set, and transmit the training data set to the data denoising module;
[0039] The data denoising module denoises the received training data set and calculates the noise variance and transmits the noise variance to the data denoising module, and transmits the denoised training data to the data processing module;
[0040] The data processing module resamples the training data set multiple times through the data acquisition module, and obtains a new training data set after each resampling. Multiple new models are established based on each group of new training data sets after sampling. Multiple model prediction values are obtained based on the multiple new model predictions. The model prediction variance of the multiple model prediction values can be obtained by calculating the changes between the multiple model prediction values; at the same time, the mean square error between the model prediction value and the test observation value is calculated; finally, the model deviation is calculated based on the noise variance, model prediction variance and mean square error; the model deviation and model variance are used for estimation, and the square root of the sum of the square of the model deviation and the model variance is twice the value as the Monte Carlo uncertainty estimate and output.
[0041] Compared with the prior art, the present invention has the following beneficial technical effects:
[0042] The invention discloses an AAKR model uncertainty calculation method based on resampling. The method divides a sensor historical state data set into a training data set and a test data set, performs denoising on the training data set and calculates the noise variance by using a wavelet denoising method, improves data accuracy, and then randomly selects and replaces the sensor historical state data to obtain new training data set samples, so as to optimize the AAKR model architecture and the changes between multiple model prediction values to obtain the model prediction variance of multiple model prediction values, resamples training data by using Bootstrap, develops and tests multiple prototype models, obtains prediction values by using the prototype models and test data, and calculates the mean square error between the prediction values and the test values; calculates the model deviation in combination with the prototype model variance to form an uncertainty value of 95%, does not need to perform modeling and calculation of noise estimation values by using an empirical distribution model, simplifies the resampling process, improves the calculation efficiency, and reduces the confidence interval deviation in combination with a Jackknife method to ensure its reliability, improves the estimation efficiency on the basis of maintaining the convergence performance, provides a set of reliable, efficient and complete method flows for uncertainty estimation of empirical models of key equipment in nuclear power plants, and has important engineering application value for improving the accuracy of sensor state prediction of key equipment.
[0043] Furthermore, by calculating the confidence interval and prediction interval at the 95% confidence level and correcting the confidence interval distribution deviation using the Jackknife deviation estimation method, the analysis process is simplified, the confidence interval deviation is reduced, and the estimation efficiency is improved while maintaining the convergence performance.
[0044] The present invention discloses an AAKR model uncertainty calculation system based on resampling, which has a simple structure. The system is trained by acquiring a normal data set of the historical state of the sensor. The uncertainty calculation method of the empirical model based on Bootstrap resampling simplifies the analysis process. The confidence interval deviation is reduced by combining the Jackknife method to ensure its reliability. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] Figure 1 Schematic diagram of the uncertainty calculation process of the AAKR model in an embodiment of the present invention.
[0046] Figure 2 It is a convergence analysis curve diagram of uncertainty in an embodiment of the present invention.
[0047] Figure 3 3 is a confidence interval diagram of the AAKR model before correction in an embodiment of the present invention.
[0048] Figure 4 This is a confidence interval diagram of the AAKR model after correction in an embodiment of the present invention.
[0049] Figure 5 is the prediction interval of the AAKR model in the embodiment of the present invention. DETAILED DESCRIPTION
[0050] The present invention is further described in detail below in conjunction with the accompanying drawings:
[0051] like Figure 1 As shown, a resampling-based AAKR model uncertainty calculation method includes the following steps:
[0052] Step 1), divide the sensor historical state data set into a training data set and a test data set;
[0053] Specifically, the sensor historical data is loaded, and the sensor historical data is detected and corrected for outliers, and the data set is divided into a training data set and a test data set.
[0054] Step 2), denoising the training data set by wavelet denoising method and calculating the noise variance;
[0055] Specifically, the wavelet denoising method is used to denoise the training data set.
[0056]
[0057] Among them, ε i is the i-th training observation X in the training data set i Noise estimation of ; is the i-th training observation X in the training data set i The estimated value of the true value is the result of wavelet denoising of the training observations; the variance of the noise of the i variables in the training data set is:
[0058]
[0059] n trn is the number of training observations; is the expected value of the noise estimate, which is zero or close to zero for drift-free data; is the noise variance of the training dataset.
[0060] The variance of the variable noise measures the random error in the model predictions;
[0061] Step 3), resample the training data set N times by the Bootstrap method (i.e., take a training test observation value to replace the value of the current position training data set), obtain N groups of resampled training data sets, establish N new models based on the N groups of resampled training data sets, obtain N model prediction values based on the N new model predictions, and calculate the changes between the N model prediction values to obtain the model prediction variance of the N model prediction values;
[0062] The specific steps include:
[0063] Perform N Bootstrap resampling on a set of training data sets, and build a new model with each newly sampled data set, that is, there are N new models, and estimate the changes between the model prediction values from these N new models;
[0064] Where X i represents a state of the system, X j Represents a time state sequence of a monitored variable.
[0065]
[0066] Bootstrap resampling: For monitoring variable X j The time state sequence of n is randomly sampled with replacement trn times, we get the Bootstrap resampling sample X of X * .
[0067]
[0068] The LHS resampling technique is used: the wavelet denoising method is applied to the training data to obtain its "true" value, and the "true" value is subtracted from the original training data to obtain the estimated value of the noise; the noise probability distribution is modeled as a normal distribution, and the distribution is divided into n trn non-overlapping intervals (also called "bins"), each with ; random values are selected from each bin with equal frequency, and the final noise distribution is uniformly sampled to construct the prototype training set.
[0069] Each AAKR model built from the resampled training data set can give a test observation value X tst The model predicted value of Model prediction value is the test observation X tst Estimates of the test observations X tst Contains tst observations;
[0070]
[0071] in, is the test observation X tst The prediction of the kth prototype model, here express The i-th observation of the j-th variable; the predicted value of the i-th observation of the j-th variable is expected to be the average of the N new model predictions, that is:
[0072]
[0073] That is X tst The predicted value of is expressed as:
[0074]
[0075]
[0076] Similarly, the variance of the ith observation of the jth variable is:
[0077]
[0078] That is, the model prediction variance can be written as:
[0079]
[0080] Simplified: The change between N model prediction values, i.e., model prediction variance, is calculated using the following formula:
[0081]
[0082] Get n tst×p-dimensional variance estimation, the variance of each p variable is arranged in ascending order, and the 95th percentile maximum value is selected to conservatively estimate the single-point variance;
[0083] The model prediction variance is defined as the expected square difference between the parameter and its expected value, so the model prediction variance can also be expressed as:
[0084]
[0085] Step 4), calculate the mean square error (MSE) between the N model prediction values and the test observation values;
[0086] Each new model established by resampling the training data set can give a model prediction value, that is, Calculate the mean squared error (MSE) between the new model's predictions and the test observations:
[0087]
[0088] Where X tst,i and are the test observations and model predictions of the ith new model, respectively. The dimension of MSE is 1×p, and N predictions will generate N 1×p-dimensional MSEs. For p variables, the maximum value of the 95th percentile is taken as the single point estimate of MSE.
[0089] Step 5), the model deviation is calculated based on the noise variance, model prediction variance and mean square error;
[0090] Bias measures any systematic error.
[0091] The predictive performance of the model is quantified by the mean squared error (MSE), which is calculated based on the model's predicted values:
[0092]
[0093] in, is the reducible error, ε irr is the irreducible error.
[0094] E[ε irr ]=0,
[0095] The reducible error is the model prediction value With the test observation X tst The real model M(X tst ) The irreducible error is the expectation of the square of the distance between the true parameter value and the measured parameter value, which is caused by random processes and measurement noise and is called irreducible error because it cannot be deterministically modeled.
[0096]
[0097] The reducible error explains how well the model represents the true model M(X tst ), which depends only on the chosen model architecture, training procedure, and dataset. The reducible error can be further decomposed into a bias component and a variance component.
[0098]
[0099] Model bias is defined as the systematic error of the model as the difference between the expected predicted value of the model and the true target value, which can be expressed as:
[0100]
[0101] Total uncertainty is a combination of model bias, model prediction variance, and irreducible error:
[0102]
[0103] Total uncertainty Quantified by MSE, with the value of MSE, i.e.
[0104]
[0105] Assume that the model bias is constant for each variable and can be approximated by its expected value. Then, if the expected square of the bias is negative (i.e., the sum of the model prediction variance and the estimated noise variance is greater than the MSE), set it to zero;
[0106] The final model deviation is as follows:
[0107]
[0108] Step 6) According to the model bias and model variance, the Monte Carlo uncertainty estimate can be obtained as And its convergence with the number of prototype models, the results are as follows Figure 2 shown.
[0109] Example:
[0110] According to the Monte Carlo uncertainty estimate, the confidence interval and prediction interval corresponding to the 95% confidence level are calculated. The confidence interval (CI) predicted by the AAKR model is corrected and the prediction interval is calculated using the Jackknife deviation estimation method. The confidence interval diagram of the AAKR model before correction is shown in the figure below: Figure 3 shown.
[0111] The general equation for the confidence interval is given by:
[0112]
[0113] in, is an estimate of the expected value θ of the model prediction, then its deviation is:
[0114]
[0115] Model prediction value Yes tst ×p-dimensional time state sequence, It represents the estimated value after removing the i-th (i=1,2,...,N) predicted value, and the average value is obtained Then the Jackknife deviation is estimated as:
[0116]
[0117] From this we get The correction estimate
[0118] So the CI after correction is:
[0119] CI does not include noise terms It only estimates the uncertainty in the model's expected predictions, without considering the natural variation of the modeled values. The corrected confidence interval of the AAKR model is as follows: Figure 4 As shown;
[0120] The PI at a 95% confidence level is expressed as:
[0121]
[0122] Since PI includes the noise variance term, it by definition includes CI and is therefore a more conservative estimate of model uncertainty; the prediction interval of the AAKR model is Figure 5 Shown
[0123] The invention discloses an uncertainty calculation method for an auto-associative kernel regression (AAKR) model based on Bootstrap resampling. The method randomly selects and replaces historical state data of a sensor to obtain Bootstrap samples, so as to optimize the AAKR model framework and determine the uncertainty of a current prediction value. The method comprises the following steps: loading historical data, detecting and correcting abnormal values, and dividing the data into training and test data sets; utilizing Bootstrap resampling training data, developing and testing multiple prototype models, obtaining prediction values through the prototype models and test data, and calculating the mean square error (MSE) between the prediction values and the test observation values; utilizing a wavelet denoising method to denoise the training data to estimate the noise variance; calculating a model deviation in combination with the prototype model variance to form a 95% uncertainty value estimate, calculating a confidence interval and a prediction interval at a 95% confidence level, and utilizing a Jackknife deviation estimation method to correct the confidence interval distribution deviation. The invention simplifies the analysis process, reduces the confidence interval deviation, and improves the estimation efficiency while maintaining the convergence performance.
Claims
1. A resampling-based AAKR model uncertainty calculation method, characterized in that: The following steps are involved: Step 1), divide the sensor historical state data set into a training data set and a test data set; Load the sensor historical data, detect and correct the abnormal values of the sensor historical data, and divide the corrected data set into a training data set and a test data set; Step 2), denoising the training data set by wavelet denoising method and calculating the noise variance; The training data set is denoised using the wavelet denoising method. Among them, ε i is the i-th training observation X in the training data set i Noise estimation of ; is the i-th training observation X in the training data set i The estimated value of the true value of; the variance of the noise of the i-th variable in the training data set is: n trn is the number of training observations; is the expected value of the noise estimate; is the noise variance of the training dataset; Step 3), the training data set is resampled multiple times by the Bootstrap method, and a new training data set is obtained after each resampling. Multiple new models are established according to each group of new training data sets after sampling, and multiple model prediction values are obtained according to the prediction of the multiple new models. The changes between the multiple model prediction values can be calculated to obtain the model prediction variance of the multiple model prediction values; The variation between multiple model prediction values, i.e., model prediction variance, is calculated using the following formula: in, is the variance of the ith observation of the jth variable; n is obtained based on the model prediction variance tst ×p-dimensional variance estimation, the variance of each p variable is arranged in ascending order, and the 95th percentile maximum value is selected to conservatively estimate the single-point variance; express The i-th observation of the j-th variable, is the test observation X tst The predicted value of the k-th prototype model, the test observation value X tst Contains tst observations; represents the expected predicted value of the i-th observation of the j-th variable; ; Step 4), calculate the mean square error between the model prediction value and the test observation value; Step 5), the model deviation is calculated based on the noise variance, model prediction variance and mean square error; Each new model established by resampling the training data set can give a model prediction value, that is, Calculate the mean squared error (MSE) between the new model's predictions and the test observations: Where X tst,i and are the test observations and model predictions of the i-th new model respectively; the dimension of MSE is 1×p, and N predictions will produce N 1×p-dimensional MSEs; The model bias is: Step 6), based on the model deviation and the model prediction variance, the Monte Carlo uncertainty estimate can be obtained as twice the square root of the sum of the square of the model deviation and the model prediction variance; According to the Monte Carlo uncertainty estimate, the confidence interval and prediction interval corresponding to the 95% confidence level are calculated, and the Jackknife deviation estimation method is used to correct the confidence interval predicted by the AAKR model and calculate the prediction interval; The general equation for a confidence interval is: in, is an estimate of the expected value θ of the model prediction, then its deviation is: Model prediction value Yes tst ×p-dimensional time state sequence; It represents the estimated value after removing the i-th predicted value, i = 1, 2, ..., N, and the average is obtained Then the Jackknife deviation is estimated as: From this we get The correction estimate of : So the confidence interval after correction is: The prediction interval at the 95% confidence level is:
2. A resampled AAKR model uncertainty calculation system based on the method of claim 1, characterized in that: It includes a data acquisition module, a data denoising module and a data processing module; The data acquisition module is used to acquire the sensor historical state data set and divide the acquired data set into a training data set and a test data set, and transmit the training data set to the data denoising module; The data denoising module denoises the received training data set and calculates the noise variance and transmits the noise variance to the data processing module, and at the same time transmits the denoised training data to the data processing module; The data processing module resamples the training data set multiple times through the data acquisition module, and obtains a new training data set after each resampling. Multiple new models are established according to each group of new training data sets after sampling. Multiple model prediction values are obtained according to the predictions of the multiple new models. The model prediction variance of the multiple model prediction values can be obtained by calculating the changes between the multiple model prediction values; at the same time, the mean square error between the model prediction value and the test observation value is calculated; Finally, the model deviation is calculated based on the noise variance, model prediction variance and mean square error. The model deviation and model prediction variance are used for estimation, and twice the square root of the sum of the square of the model deviation and the model prediction variance is obtained as the Monte Carlo uncertainty estimate and output.
Citation Information
Patent Citations
Aero-engine remaining life prediction method based on multi-stage information fusion
CN104166787A
Metallurgy enterprise gas flow interval predicting method based on Bootstrap echo state network integration
CN104408317A
Establishing method and application of two-dimensional prediction model of silicon content in hot metal in blast furnace
CN104915518A
Method for quantitatively analyzing underground water numerical simulation uncertainty based on information entropy
CN105975444A
Prediction method and system for power transformer top layer oil temperature interval
CN106126944A
