Nuclear power plant digital twin multi-parameter long-term online prediction and uncertainty analysis method

Through digital twin multi-parameter long-term online prediction and uncertainty analysis methods, the problems of low data utilization and time series prediction model lag in nuclear power plants are solved, and high-precision multi-step long-term prediction and model generalization capabilities are improved. Bayesian optimization and transfer learning technology solve the prediction challenge in the multi-input and multi-output scenario of nuclear power plants.

CN118779601AActive Publication Date: 2024-10-15SHANGHAI JIAOTONG UNIV

Patent Information

Application Number
CN202410765751.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-14
Publication Date
2024-10-15
Estimated Expiration
2044-06-14

AI Technical Summary

Technical Problem

Nuclear power plants have problems such as low data utilization, long-term prediction lag, forgetfulness and poor accuracy of time series prediction models. Especially in multi-input and multi-output scenarios, it is difficult for existing technologies to achieve efficient long-term predictions.

Method used

Using the digital twin multi-parameter long-term online prediction and uncertainty analysis method, the network hyperparameters are optimized through the Bayesian optimization algorithm, and a prediction network including a position encoding layer, a data feature dimensionality enhancement layer, an encoder and a decoder is constructed, and combined with migration Learning and online updating enable multi-parameter long-term prediction and uncertainty analysis.

Benefits of technology

It improves the prediction accuracy and model generalization ability of nuclear power plant data, realizes multi-step long-term time series prediction, and evaluates model performance through dynamically updated confidence interval calculation methods, improving the model's robustness and prediction accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118779601A_ABST
    Figure CN118779601A_ABST
Patent Text Reader

Abstract

A digital twin multi-parameter long-term online prediction and uncertainty analysis method for a nuclear power plant comprises the following steps: determining multi-input multi-output system parameters in an offline stage, generating a training set after data acquisition and preprocessing, performing network hyper-parameter optimization through a Bayesian optimization algorithm, and training an optimized prediction network; in the on-line stage, the trained prediction network is adopted to carry out real-time long-term on-line prediction, meanwhile, transfer learning is carried out on the prediction network, criterion of model on-line updating is set from the two perspectives of time duration and error threshold, calculation of confidence intervals is added in the updating process, prediction performance of the model is judged from the perspective of interval prediction, and the prediction efficiency of the model is improved. And online updating of the model is realized. According to the invention, multi-parameter and multi-step long-term prediction is realized; systematic prediction is carried out by considering an operation system of the nuclear power plant; in combination with transfer learning and online updating, the generalization ability of the model is proved; the uncertainty problem is considered; and a set of complete time sequence prediction system is formed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a technology in the field of nuclear power plant control, specifically a method for long-term online prediction and uncertainty analysis of multi-parameters of a digital twin of a nuclear power plant. Background Art

[0002] Nuclear power plants have the problem of low actual data utilization, and the present invention conducts in-depth data mining to address this problem. At the same time, the long-term prediction of the time series prediction model has the challenges of lag, forgetfulness and poor accuracy, and handles the problems of multiple inputs and multiple data and poor performance of the test model. Summary of the invention

[0003] In view of the shortcomings of the existing prediction technology that uses RNN and LSTM neural networks to perform short-term prediction on a single component under a single operating condition, which has high computational complexity, low accuracy and relies on expert system prediction, and is not suitable for long-term prediction of multiple inputs and multiple outputs, the present invention proposes a long-term online prediction and uncertainty analysis method for multi-parameters of digital twins of nuclear power plants, which fully mines the potential relationship between data; based on the characteristics of time series data, improves the existing model from the algorithm level; realizes the coupled prediction of multiple parameters; realizes multi-step long-term prediction; conducts systematic prediction from the perspective of the nuclear power plant operation system; combines transfer learning and online updating to prove the generalization ability of the model; takes uncertainty issues into consideration; and forms a complete time series prediction system.

[0004] The present invention is achieved through the following technical solutions:

[0005] The present invention relates to a multi-parameter long-term online prediction and uncertainty analysis method for a digital twin of a nuclear power plant. In an offline stage, multi-input and multi-output system parameters are determined. After a training set is generated after data acquisition and preprocessing, network hyperparameters are optimized by a Bayesian optimization algorithm, and then the optimized prediction network is trained. In an online stage, while the trained prediction network is used for real-time long-term online prediction, transfer learning is performed on the prediction network. Criteria for online updating of the model are set from two perspectives: time length and error threshold. Confidence interval calculation is added during the updating process. The prediction performance of the model is judged from the perspective of interval prediction, thereby realizing online updating of the model.

[0006] The digital twin for nuclear power plants refers to: interactively mapping the digital model constructed in the virtual space with the physical entity, and using historical data, real-time data and algorithm models to simulate, verify, predict and control the operation of the physical entity throughout its life cycle.

[0007] The prediction network includes: a position encoding layer, a data feature dimensionality increase layer, an encoder, a decoder and a Linear layer, wherein: the position encoding layer performs encoding processing of a tanh function according to the position information of an input sequence to obtain a sequence representation result containing the position information; the data feature dimensionality increase layer performs linear layer processing according to the feature information of the input sequence to obtain a feature representation result after dimensionality increase; the encoder performs self-attention mechanism and feedforward neural network processing according to the feature representation information after dimensionality increase to obtain an encoded sequence representation result; the decoder performs self-attention mechanism, encoder-decoder attention mechanism and feedforward neural network processing according to the encoded sequence representation information and the position information of the target sequence to obtain a decoded sequence representation result; the fully connected layer performs linear transformation processing according to the decoded sequence representation information to obtain the final output result.

[0008] The network hyperparameter optimization specifically includes:

[0009] 1) Determine the optimization goal, select the loss value to represent the performance indicator of the model, and set the optimization goal to guide the direction of hyperparameter adjustment;

[0010] 2) Take the learning rate, batch size, network depth and width as the hyperparameters to be optimized. According to the Bayesian optimization method, gradually adjust the hyperparameters and train the model. Evaluate the effect of each adjustment based on the performance of the validation set until the best hyperparameter combination that meets the optimization goal is found.

[0011] The online update specifically includes:

[0012] i) Real-time data collection, continuously collect new data to ensure the real-time and accuracy of data flow;

[0013] ii) Incremental training: Based on the new data collected, the model parameters are gradually updated using the incremental training method to avoid training from scratch and improve the efficiency and effect of model updating;

[0014] iii) Model monitoring and evaluation: real-time monitoring of the performance of the updated model in actual applications, regular evaluation of model performance to ensure that the model always maintains the best state, and further adjustments and optimizations are made based on the error threshold and set time intervals. Technical Effects

[0015] Aiming at the non-periodic and nonlinear characteristics of nuclear power plant data, the present invention improves on the basis of the original Transformer and proposes a time series prediction model applied to nuclear power plant data. By performing dimensionality-upgrading processing on the time series data, the characteristics of the data are obtained in a high-dimensional space. Considering that the closer the time series data is to the prediction point, the greater the impact, a monotonic ascending function is used to assign weights to the input data; multi-parameter multi-step long-term time series prediction is achieved; the present invention verifies the generalization performance and robustness of the trained model on other samples through transfer learning; at the same time, time series is a typical stream data that changes over time. As time goes by, the input data is unevenly distributed, which will result in the problem of weak generalization ability of the model. The present invention introduces an incremental learning algorithm to update the model weights after a certain period of time, which effectively improves the generalization ability of the model.

[0016] Compared with the prior art, the present invention improves the original Transformer based on the non-periodic and nonlinear characteristics of nuclear power plant data, and proposes a time series prediction model applied to nuclear power plant data. By performing dimensionality-upgrading processing on the time series data, the characteristics of the data are obtained in the high-dimensional space. At the same time, considering that the closer the time series data is to the prediction point, the greater the impact, the monotonic rising function is used to give weights to the input data; multi-parameter multi-step long-term time series prediction is realized; at the same time, the data used in the present invention are all actual data generated by the daily operation of a nuclear power plant, and the data are reliable and authentic; the final model has good prediction performance and high prediction accuracy; the present invention verifies the generalization performance and robustness of the trained model on other samples through transfer learning; at the same time, time series is a typical stream data that changes over time. As time increases, the input data is unevenly distributed, which will cause the problem of weak model generalization ability. The present invention introduces an incremental learning algorithm to update the model weight after a certain period of time, which effectively improves the generalization ability of the model. The present invention also takes into account the measurement error and model uncertainty in the actual operation process, and proposes a dynamically updated confidence interval calculation method based on the Bayesian method to evaluate the model performance. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 It is a flow chart of the present invention;

[0018] Figure 2 This is a schematic diagram of the prediction network;

[0019] Figure 3 Pre-trained Loss graph of the model after hyperparameter optimization;

[0020] Figure 4 This is the time series prediction result of the improved Transformer;

[0021] In the figure: ag are respectively the comparison curves of the predicted value and the actual value of the hot pipe section temperature, the cold pipe section temperature, the primary circuit coolant temperature, the pressurizer pressure, the pressurizer water level, the steam generator secondary side feed water flow, and the nuclear power in the first group of data;

[0022] Figure 5 This is the transfer learning result diagram;

[0023] In the figure: ag are respectively the comparison curves of the predicted value and the actual value of the hot pipe section temperature, the cold pipe section temperature, the primary circuit coolant temperature, the pressurizer pressure, the pressurizer water level, the steam generator secondary side feed water flow, and the nuclear power in the second group of data;

[0024] Figure 6 To update the result graph online;

[0025] Figure 7 It is a Bootstrap flowchart;

[0026] Figure 8 is the confidence interval band for uncertainty analysis;

[0027] In the figure: ag are: the confidence interval bands of the hot pipe section temperature, cold pipe section temperature, primary circuit coolant temperature, stabilizer pressure, stabilizer water level, steam generator secondary side feed water flow, and nuclear power in the first set of data. DETAILED DESCRIPTION

[0028] like Figure 1 As shown, this embodiment relates to a method for long-term online prediction and uncertainty analysis of multiple parameters of a nuclear power plant digital twin, which specifically includes:

[0029] Step 1: Input data preprocessing, including:

[0030] 1.1 Information mining of input data: The data collected at different time intervals and the measured data of water flow are smoothed by low-pass filters, and the maximum and minimum values ​​of the selected system parameters are normalized.

[0031] The collected data are data from 123 measuring points of the nuclear power plant operation system, including the primary loop core, cold and hot pipe sections, pressure vessels, steam generators, secondary loop key parameters, chemical and volume system parameters, and control system parameters.

[0032] The selected system parameters include seven key system operating parameters: hot pipe section temperature, cold pipe section temperature, primary circuit coolant temperature, regulator pressure, regulator water level, steam generator secondary side feed water flow, and nuclear power.

[0033] 1.2 Select 30 time steps as a group of inputs, and predict the time series data of the next 30 time steps by inputting the first 30 time steps. At the same time, group the data of the same time step of the selected 7 parameters into a group, and divide the grouped data into training set, validation set and test set in a ratio of 2:1:7.

[0034] Step 2: Improve and optimize the Transformer model, including:

[0035] 2.1 Based on the Transformer model, a linear layer is added to perform digital conversion of information: In time series prediction, a fully connected layer is used to increase the feature quantity of the data from one dimension to a high dimension, making the feature structure sparse.

[0036] 2.2 Define the position encoding function x'=x+k*PE, where: x is the preprocessed data, x' is the data after adding position encoding, k is the proportional coefficient, PE is the position encoding function, PE∈[-1,1].

[0037] In this embodiment, a monotonically increasing hyperbolic tangent function tanh is selected as the position encoding function PE, and the proportional coefficient k is set to 1.

[0038] 2.3 After further adding the training of the encoder, decoder and self-attention mechanism as the prediction network of the present invention, all the parameters of the training set obtained in step 1 are simultaneously input into Figure 2 The prediction network shown.

[0039] Step 3: Use Bayesian hyperparameter optimization to optimize the network's hyperparameters, including:

[0040] 3.1 Determine the optimization goal. According to the performance indicators of the model, set the loss value as the optimization goal to guide the direction of hyperparameter adjustment and set the optimization objective function L(θ), where θ represents the set of hyperparameters to be optimized.

[0041] 3.2 Define the hyperparameter space. According to the model requirements and prior knowledge, define the search space of learning rate, batch size, number of network layers and depth. Let the hyperparameter vector be θ = (θ1, θ2, …, θ n ), the value range of each hyperparameter is θ i ∈[a i ,b i ]

[0042] 3.3 Iterative optimization, through continuous sampling and evaluation, gradually approaching the optimal hyperparameter combination until the preset optimization goal is met or the maximum number of iterations is reached. The initial sampling randomly samples a set of hyperparameters θ in the defined hyperparameter space. (0) , based on the sampled hyperparameter training model, calculate the loss value L(θ (0)), based on the initial sampling results, use the Bayesian optimization method to update the posterior distribution of the hyperparameters, and select a new hyperparameter combination θ based on the updated posterior distribution (t+1) Evaluate and repeat the above steps until the loss value L(θ (t) ) converges to a preset threshold or reaches the maximum number of iterations.

[0043] 3.4 Verification and Application: Use the optimal hyperparameter combination found to train the final model, and evaluate its performance on an independent validation set to ensure the reliability and generalization ability of the optimization effect. The error between the predicted value and the actual value on the training set is calculated by the mean absolute error (MAE) to judge the performance of the trained time series prediction model. Specifically: Where: x i is the true value, y i is the actual value, and n is the number of samples.

[0044] like Figure 3 As shown in the figure, it is a graph of pre-training after hyperparameter optimization of the time series prediction model. It can be seen from the figure that the Loss basically converges after 3000 times of training.

[0045] like Figure 4 As shown in the figure, it is the result of multi-step multi-parameter prediction. It can be seen that the prediction curve can fit the actual value well. This result well proves the good performance of the improved Transformer long-term prediction model.

[0046] Step 4, transfer learning and online update: save the network hyperparameters and model weight information of the pre-trained model after hyperparameter optimization using the first set of data, and migrate it to the second set of actual data from the nuclear power plant, and use the previously learned feature knowledge to perform multi-step time series prediction on the second set of data.

[0047] This embodiment adopts the fine-tuning method to fine-tune the last fully connected layer with a smaller learning rate, and uses 60 time steps and error threshold as update indicators to perform online updates on the trained migration model. The effect is as follows: Figure 6 As shown in the figure, the yellow dotted line is the prediction performance of the pre-trained model. It can be seen that the model can learn the distribution of new data and fit the true value better by fine-tuning the weights.

[0048] Technical effect evaluation

[0049] a) If Figure 7 As shown, the Bootstrap method is used to estimate the standard error, confidence interval and deviation through resampling technology, and the normal distribution of small sample data is calculated;

[0050] b) Perform Bayesian prior and posterior analysis on the normalized data in step a, specifically: Assume that the sample in: is the mean of the prior distribution, is the standard deviation of the prior distribution.

[0051] c) The maximum likelihood probability parameter value is obtained by maximum likelihood estimation based on the premise of the Bayesian prior distribution of known observation data, specifically: in: is the sample mean, and n is the sample size.

[0052] d) Update the posterior probability after observing the data, specifically: Where: y m For observation data.

[0053] After specific practical experiments, the above device was run in Python's pytorch environment, and the experimental data that can be obtained are: the multi-step and multi-input time series prediction results of the first and second groups of nuclear power plant operation data.

[0054] Compared with the prior art, the present invention performs dimensionality upgrade of data through linear layers and performs in-depth data mining, thereby solving the problem that there is a large amount of sedimentation data in nuclear power plants, effective information in real data has not been fully mined, and there is a low utilization rate of actual data; in view of the non-periodic and nonlinear characteristics of time series data, the function at the Transformer position encoding is improved, so that the method is more suitable for the long-term prediction model of time series prediction than the conventional Transformer model, and has higher prediction accuracy; the present invention also realizes transfer learning and online updating, which not only proves that the model of the present method has better generalization, but also uses the online updating technology to identify the distribution law of new data streams and improve the prediction accuracy of the model; finally, based on Bayesian theory, the present invention proposes a dynamically updated uncertainty analysis method, which quantifies the errors existing in the model and has a better evaluation of the model uncertainty.

[0055] The above-mentioned specific implementation can be partially adjusted in different ways by those skilled in the art without departing from the principle and purpose of the present invention. The protection scope of the present invention shall be based on the claims and shall not be limited by the above-mentioned specific implementation. Each implementation scheme within its scope shall be subject to the constraints of the present invention.

Claims

1. A method for long-term online prediction and uncertainty analysis of multi-parameters of digital twins of nuclear power plants, characterized in that: In the offline stage, the system parameters of multiple inputs and multiple outputs are determined. After the training set is generated after data collection and preprocessing, the network hyperparameters are optimized by the Bayesian optimization algorithm, and then the optimized prediction network is trained. In the online stage, the trained prediction network is used for real-time and long-term online prediction, and transfer learning is performed on the prediction network. The criteria for online updating of the model are set from the two perspectives of time length and error threshold. The calculation of confidence intervals is added during the updating process. The prediction performance of the model is judged from the perspective of interval prediction, thereby realizing online updating of the model.

2. The method for long-term online prediction and uncertainty analysis of multi-parameters of a digital twin of a nuclear power plant according to claim 1 is characterized in that: The digital twin for nuclear power plants refers to: interactively mapping the digital model constructed in the virtual space with the physical entity, and using historical data, real-time data and algorithm models to simulate, verify, predict and control the operation of the physical entity throughout its life cycle.

3. The method for long-term online prediction and uncertainty analysis of multi-parameters of a digital twin of a nuclear power plant according to claim 1 is characterized in that: The prediction network includes: a position encoding layer, a data feature dimensionality increase layer, an encoder, a decoder and a Linear layer, wherein: the position encoding layer performs encoding processing of a tanh function according to the position information of an input sequence to obtain a sequence representation result containing the position information; the data feature dimensionality increase layer performs linear layer processing according to the feature information of the input sequence to obtain a feature representation result after dimensionality increase; the encoder performs self-attention mechanism and feedforward neural network processing according to the feature representation information after dimensionality increase to obtain an encoded sequence representation result; the decoder performs self-attention mechanism, encoder-decoder attention mechanism and feedforward neural network processing according to the encoded sequence representation information and the position information of the target sequence to obtain a decoded sequence representation result; the fully connected layer performs linear transformation processing according to the decoded sequence representation information to obtain the final output result.

4. The method for long-term online prediction and uncertainty analysis of multi-parameters of a digital twin of a nuclear power plant according to claim 1 is characterized in that: The network hyperparameter optimization specifically includes: 1) Determine the optimization goal, select the loss value to represent the performance indicator of the model, and set the optimization goal to guide the direction of hyperparameter adjustment; 2) Take the learning rate, batch size, network depth and width as the hyperparameters to be optimized. According to the Bayesian optimization method, gradually adjust the hyperparameters and train the model. Evaluate the effect of each adjustment based on the performance of the validation set until the best hyperparameter combination that meets the optimization goal is found.

5. The method for long-term online prediction and uncertainty analysis of multi-parameters of a digital twin of a nuclear power plant according to claim 1 is characterized in that: The online update specifically includes: i) Real-time data collection, continuously collect new data to ensure the real-time and accuracy of data flow; ii) Incremental training: Based on the new data collected, the model parameters are gradually updated using the incremental training method to avoid training from scratch and improve the efficiency and effect of model updating; iii) Model monitoring and evaluation: real-time monitoring of the performance of the updated model in actual applications, regular evaluation of model performance to ensure that the model always maintains the best state, and further adjustments and optimizations are made based on the error threshold and set time intervals.

6. The method for long-term online prediction and uncertainty analysis of multi-parameters of a digital twin of a nuclear power plant according to any one of claims 1 to 5, characterized in that: include: Step 1: Input data preprocessing, including: 1.1 Information mining of input data: Use low-pass filter to smooth the data collected at different time intervals and the measured data of water flow, and perform maximum and minimum value normalization on the selected system parameters; The collected data are data from 123 measuring points of the nuclear power plant operation system, including the primary loop core, cold and hot pipe sections, pressure vessels, steam generators, secondary loop key parameters, chemical and volume system parameters, and control system parameters; The selected system parameters include: seven key system operating parameters: hot pipe section temperature, cold pipe section temperature, primary circuit coolant temperature, pressurizer pressure, pressurizer water level, steam generator secondary side feed water flow, and nuclear power; 1.2 Select 30 time steps as a group of inputs, and predict the time series data of the next 30 time steps by inputting the first 30 time steps. At the same time, group the data of the same time step of the selected 7 parameters into a group, and divide the grouped data into training set, validation set and test set in a ratio of 2:1:7; Step 2: Improve and optimize the Transformer model, including: 2.1 Based on the Transformer model, a linear layer is added to convert information into digital form: In time series prediction, a fully connected layer is used to increase the feature quantity of data from 1 dimension to a high dimension, making the feature structure sparse; 2.2 Define the position encoding function x'=x+k*PE, where: x is the preprocessed data, x' is the data after adding the position encoding, k is the proportional coefficient, PE is the position encoding function, PE∈[-1,1], select the monotonically increasing hyperbolic tangent function tanh as the position encoding function PE, and the proportional coefficient k is set to 1; 2.3 After further adding the training of the encoder, decoder and self-attention mechanism as the prediction network of the present invention, all the parameters of the training set obtained in step 1 are simultaneously input into the prediction network. Step 3: Use Bayesian hyperparameter optimization to optimize the network's hyperparameters, including: 3.1 Determine the optimization goal. According to the performance indicators of the model, set the loss value as the optimization goal to guide the direction of hyperparameter adjustment and set the optimization objective function L(θ), where θ represents the set of hyperparameters to be optimized; 3.2 Define the hyperparameter space. According to the model requirements and prior knowledge, define the search space of learning rate, batch size, number of network layers and depth. Let the hyperparameter vector be θ = (θ1, θ2, …, θ n ), the value range of each hyperparameter is θ i ∈[a i ,b i ]; 3.3 Iterative optimization, through continuous sampling and evaluation, gradually approaching the optimal hyperparameter combination until the preset optimization goal is met or the maximum number of iterations is reached. The initial sampling randomly samples a set of hyperparameters θ in the defined hyperparameter space. (0) , based on the sampled hyperparameter training model, calculate the loss value L(θ (0) ), based on the initial sampling results, use the Bayesian optimization method to update the posterior distribution of the hyperparameters, and select a new hyperparameter combination θ based on the updated posterior distribution (t+1) Evaluate and repeat the above steps until the loss value L(θ (t) ) converges to a preset threshold or reaches the maximum number of iterations; 3.4 Verification and Application: Use the optimal hyperparameter combination found to train the final model, and evaluate its performance on an independent validation set to ensure the reliability and generalization ability of the optimization effect. The error between the predicted value and the actual value on the training set is calculated by the mean absolute error (MAE) to judge the performance of the trained time series prediction model. Specifically: in: x i is the true value, y i is the actual value, n is the number of samples; Step 4, transfer learning and online update: save the network hyperparameters and model weight information of the pre-trained model after hyperparameter optimization using the first set of data, and migrate it to the second set of actual data from the nuclear power plant, and use the previously learned feature knowledge to perform multi-step time series prediction on the second set of data.

Citation Information

Patent Citations

  • Nuclear power station power transformer state evaluation and life prediction method based on data driving

    CN115730452A

  • Multi-domain graph migration bearing life prediction method based on digital twin model driving

    CN116662861A

  • Multi-source data fusion stroke risk prediction method and system under digital twin framework

    CN117457212A

Cited By

  • Industrial robot position error and interval prediction method and electronic equipment

    CN119369396A

  • Natural gas consumption prediction method and system based on temperature interval

    CN120181469A

  • Production rhythm self-adaptive converter steelmaking oxygen consumption prediction method and system

    CN120951151A

  • Storage tank metering data processing method, computer equipment and storage medium

    CN121072203A

  • Sensor arrangement method of double-code-channel encoder

    CN122360557A