Nuclear power plant parameter prediction method based on constraint migration among simulation measurement data

Through the transfer learning method based on simulation and measurement data, using multiple sets of simulation working condition data to establish a GRU pre-trained model and add physical constraints, the problem of long training time and lack of physical laws in the existing technology of nuclear power plant operation parameter prediction model is solved. Higher prediction accuracy and shorter training time are achieved.

CN118886326AInactive Publication Date: 2024-11-01SHANGHAI JIAOTONG UNIV
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411075995.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-07
Publication Date
2024-11-01
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The existing data-driven nuclear power plant operating parameter prediction model requires long hyperparameter optimization and training time, and lacks physical laws to support, which may lead to violations of actual physical phenomena.

Method used

Using a transfer learning method based on simulation and measurement data, a GRU pre-training model is established through pre-training and fine-tuning methods, multiple sets of simulation condition data are used to establish a GRU pre-training model, and physical constraints are added in the online stage to improve prediction accuracy and reduce training time.

Benefits of technology

It improves prediction accuracy, reduces fine-tuning training time, and effectively avoids the problem of violating actual physical phenomena caused by the lack of physical laws in the data-driven model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118886326A_ABST
    Figure CN118886326A_ABST
Patent Text Reader

Abstract

A nuclear power plant operation parameter prediction method based on physical constraint transfer learning between simulation and measurement data comprises the following steps: performing hyper-parameter optimization and fine tuning on a GRU pre-training model after performing joint training on the GRU pre-training model through simulation working condition data in an offline stage; and in the on-line stage, performing real-time prediction on the operation parameters of the nuclear power plant by adopting the fine-tuned model. According to the method, a pre-training-fine tuning mode is adopted, multiple sets of simulation working condition data are used as expansion of existing rare measurement data, and accurate judgment of nuclear power data is achieved.
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 predicting nuclear power plant operating parameters based on transfer learning containing physical constraints between simulation and measurement data. Background Art

[0002] Existing prediction models for reactor operating parameters are mainly divided into two categories: model-driven and data-driven. Among them, the data-driven prediction method is mainly based on machine learning methods. Its main principle is to train neural networks based on the reactor operating parameters obtained in the past to predict future changes in reactor operating parameters. Summary of the invention

[0003] In view of the defects of existing data-driven prediction technology that requires hyperparameter optimization and training of neural network models, the long time required for the optimization and training process, and the problem that existing data-based training models may produce results that violate actual physical phenomena due to the lack of support from physical laws, the present invention proposes a nuclear power plant operating parameter prediction method based on physical constraint transfer learning between simulation and measurement data. The method adopts a pre-training-fine-tuning approach, supplemented by multiple groups of simulation operating condition data as an expansion of existing scarce measurement data, to achieve accurate judgment of nuclear power data.

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

[0005] The present invention relates to a method for predicting operating parameters of a nuclear power plant based on physically constrained transfer learning between simulation and measurement data. In an offline stage, a GRU pre-training model is jointly trained with simulation operating condition data, and then hyperparameters are optimized and fine-tuned. In an online stage, the fine-tuned model is used to predict the operating parameters of the nuclear power plant in real time.

[0006] The simulation operating condition data is obtained in the following manner: according to the operating procedures of the operating condition to be predicted, a nuclear reactor thermal hydraulic simulation program is used to perform simulation to obtain simulation data.

[0007] The joint training refers to: using multiple groups of simulation working condition data that are similar to but not exactly the same as the experimental working conditions to train a GRU network. During the training process, the loss functions of the multiple groups of simulation working conditions are averaged as the total loss ultimately used to update the network parameters.

[0008] The GRU pre-training model includes: an input layer, several GRU layers and a fully connected layer, wherein: each GRU layer calculates the GRU gating unit according to the data of the previous GRU layer or the input layer, and outputs the calculation result to the next GRU layer or the fully connected layer; the fully connected layer receives the data of the last GRU layer, performs linear changes and then outputs the predicted data information.

[0009] The hyperparameter optimization refers to: according to the loss of the GRU pre-trained model on the validation set, a new set of hyperparameters is obtained through a tree-structured Bayesian optimization algorithm (TPE), the network is trained again and the loss on the validation set is calculated until the loss on the validation set is minimized.

[0010] The fine-tuning mentioned above means: based on the GRU pre-training model, continue to train some layers of the network through measurement data, and add physical constraints during the training process, that is, the total loss function TotalLoss = max(Loss, Loss p ), where: Loss is the data loss, Loss p is the physical loss to avoid overfitting. Technical Effects

[0011] The present invention establishes a pre-trained model through multiple groups of simulation working condition data similar to actual working conditions, and multiple groups of similar simulation working conditions enhance the generalization of the pre-trained model. The pre-trained model is migrated to the actual working condition, and the model is fine-tuned by adding physical constraints, so that the prediction accuracy is improved and the fine-tuning training time is greatly reduced compared to direct training. The fine-tuning process adds physical constraints contained in the actual working condition, which effectively avoids the lack of physical law support for the data-driven model and the occurrence of results that violate actual physical phenomena. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0013] Figure 2 This is a schematic diagram of the GRU pre-training model;

[0014] Figure 3 This is a schematic diagram of the training process for Loss averaging of 9 sets of simulation data;

[0015] Figure 4 Schematic diagram of the hyperparameter optimization process;

[0016] Figure 5 Schematic diagram of the training process that adds physical constraints to the fine-tuning process;

[0017] Figure 6 It is a schematic diagram for comparing 9 sets of simulation working condition data with the measured data;

[0018] Figure 7 It is a schematic diagram of the prediction effect of ZBS working condition during the pre-training process;

[0019] Figure 8 Schematic diagram of the percentage error of the ZBS condition during the pre-training process;

[0020] Fig. 9 This is a schematic diagram of the prediction effect of directly applying the pre-trained model to the measured data;

[0021] Fig.10 Schematic diagram of the prediction percentage error of the pre-trained model directly applied to the measured data;

[0022] Fig.11 This is a schematic diagram of the prediction effect after fine-tuning the pre-trained model;

[0023] Fig.12 Schematic diagram of the prediction percentage error after fine-tuning the pre-trained model;

[0024] Fig.13 This is a schematic diagram for comparing the effects of physical constraints;

[0025] Fig.14 This is a comparison chart of the effects of the various pre-training and fine-tuning methods on the test set. DETAILED DESCRIPTION

[0026] like Figure 1 As shown, this embodiment relates to a method for predicting nuclear power plant operating parameters based on transfer learning containing physical constraints between simulation and measurement data, using 9 sets of simulation operating condition data and establishing Figure 2 After the GRU pre-training model is shown, the pre-training model is migrated to the actual working condition, and physical constraints are added to the model during fine-tuning, and finally the pre-training model is migrated to the actual working condition for prediction, which includes:

[0027] Step 1: Figure 3 As shown, the GRU pre-trained model is jointly trained by 9 groups of simulation working condition data: the 9 groups of simulation data are divided into the first 70% of the time as the training set, and the data in the last 30% of the time as the verification set, which are used to train the pre-trained model. Specifically, at the beginning of training, the loss of the training set TrainLoss and the loss of the verification set ValiLoss are calculated synchronously, the loss of the training set is used for gradient descent and back propagation, and the loss of the verification set is used to terminate the training program.

[0028] The 9 groups of simulated working condition data similar to the actual working conditions are obtained in the following manner: by simulating the predicted working condition and similar working conditions to obtain multiple groups of pre-trained data; in the implementation method here, we should focus on the method and do not need to be too specific.

[0029] The loss calculation method is as follows: in each Epoch training process, each set of simulation condition data is input into the GRU pre-training model and 9 losses are calculated accordingly, and then the total loss is obtained by averaging. For the validation set loss, the minimum validation loss minValiLoss of the training so far is calculated in each Epoch. When the minimum validation loss changes after 50 repetitions, it is considered that the training has been repeated and the pre-training process can be ended.

[0030] Step 2: Perform the following steps on the GRU pre-training model: Figure 4 The hyperparameter optimization shown includes:

[0031] 2.1. Initialize several sets of hyperparameters θ k ,k=1,2,…,K;

[0032] 2.2. Train the GRU pre-training model under each set of hyperparameter combinations and obtain the corresponding minimum verification loss minValiLoss as the objective function to be optimized;

[0033] 2.3. Arrange the objective function values ​​under several sets of hyperparameter combinations from small to large, divide them into good and bad groups according to a certain ratio (such as 15%), and calculate the probability distribution p of the two groups respectively. g (θ) and p b (θ);

[0034] 2.4 Calculation The maximum value of the hyperparameter combination θ m , and θ m Add to θ k Repeat steps 2.2-2.4 until the maximum number of cycles is exceeded, and finally output the θ calculated in the last cycle m .

[0035] Step 3: Evaluate the prediction effect of the pre-trained model on the simulation data.

[0036] Step 4: Apply the pre-trained model directly to the measurement data: After filtering the measurement data, use the pre-trained model to predict the measurement data and evaluate the preliminary prediction results.

[0037] Step 5: Fine-tune the pre-trained model: Divide the filtered measurement data into 60% training set, 10% validation set and 30% test set, and continue to train the last fully connected layer of the pre-trained GRU pre-trained model, taking the larger value of the physical loss and the data loss as the total loss TotalLoss = max(Loss, Loss p ), that is, adding physical constraints when calculating Loss.

[0038] The physical constraint means that the loss function is designed according to the severity of the violation of physical laws in each training prediction of physical quantities, so as to avoid the phenomenon of violating physical laws as much as possible. This embodiment takes the accident condition of a certain type of steam generator SGTR as an example. At this time, the primary side needs to take out the heat of the closed secondary side, so the primary side outlet temperature is greater than the inlet temperature. The physical constraint is defined as a part of the loss, that is, the physical loss Loss p =max(T in -T out ,T th )-Tth , where: T th is a threshold close to 0. This definition means that when Tin-Tout>T th When the inlet temperature is as high as possible and the outlet temperature is as large as possible, the temperature difference between the two is regarded as physical loss; otherwise, the physical loss is 0.

[0039] The threshold T th The effect used to prevent physical losses is so strong that the data prediction results are completely biased towards physical losses, reducing the prediction accuracy.

[0040] like Figure 5 As shown in the figure, the training process of adding physical constraints during fine-tuning is as follows: at the beginning of training, the loss of the training set TrainLoss and the loss of the validation set ValiLoss are calculated synchronously. The loss of the training set is used for gradient descent and back propagation, and the loss of the validation set is used to terminate the training program. When the loss of the validation set reaches the minimum value, the fine-tuning training ends.

[0041] Step 6: Evaluate the prediction effect of the pre-trained model on the measured data after fine-tuning.

[0042] like Figure 6 As shown in Figure 1, there are 9 sets of comparisons between simulated operating data and actual operating data in the python3.8 environment. The measured data are from the experiment B 3.1 of the PKL III facility to simulate the steam generator heat transfer tube rupture accident. The reactor operating parameters involved are given in Table 1. The difference between the actual operating condition measured data and the simulated operating condition data is mainly in Tdc.

[0043] Table 1 Reactor operating parameters symbol Physical quantity one Pdm Steam generator secondary side steam pressure Pa TdM Steam generator secondary side steam temperature K Tc Steam generator secondary downcomer fluid temperature K Tout Steam generator primary outlet temperature K Tin Steam generator primary inlet temperature K Mfl Steam generator primary side mass flow kg /

[0044] like Figure 7 and Figure 8 As shown in the figure, the prediction effect and prediction percentage error of the pre-trained model in the ZBS simulation condition. Except for Mflw, the prediction percentage errors of other physical quantities do not exceed 1%. The local percentage error of the training set of Mflw is larger, but it does not exceed 4%. The prediction effect of the pre-trained model in the simulation condition is better.

[0045] like Fig. 9 and Fig.10 As shown in the figure, the prediction effect and prediction percentage error of the pre-trained model directly applied to the actual working condition measurement data are slightly worse than the prediction effect of the pre-trained model on the ZBS condition, and the local prediction percentage error of Pdm and Tout is slightly increased, but still does not exceed 1%, indicating that the application of the pre-trained model to actual working conditions is feasible.

[0046] like Fig.11 and Fig.12 The following table shows the prediction effect and prediction percentage error after fine-tuning the pre-trained model. After fine-tuning, the prediction percentage errors of Pdm, Tdc, Tout, and Tin are all reduced compared to the direct application of the pre-trained model to the measured data.

[0047] like Fig.13 The figure shows the comparison of the inlet and outlet temperature difference after adding physical constraints and fine-tuning without adding physical constraints. After adding physical constraints, the situation where the inlet temperature is lower than the outlet temperature is improved.

[0048] like Fig.14 As shown in the figure, it is a comparison chart of the effects of each part of the pre-training-fine-tuning method on the test set. The figure compares the impact of the pre-training process, the number of simulation conditions used for pre-training, and the fine-tuning process on the prediction results on the test set.

[0049] Compared with the prior art, the present invention can effectively improve the prediction ability of measurement data through pre-training and fine-tuning, use multiple simulation working condition data to train the pre-trained model to enhance the generalization of the pre-trained model, expand the prediction range of the pre-trained model, and further fine-tune the pre-trained model to further adapt to the measurement data, thereby improving the prediction performance and increasing physical constraints to effectively reduce violations of physical laws.

[0050] 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 predicting operating parameters of a nuclear power plant based on physically constrained transfer learning between simulation and measurement data, characterized in that: After the GRU pre-training model is jointly trained with simulation operating data in the offline stage, its hyperparameters are optimized and fine-tuned; in the online stage, the fine-tuned model is used to make real-time predictions of nuclear power plant operating parameters; The simulation operating condition data is obtained by: using a nuclear reactor thermal hydraulic simulation program to simulate according to the operating procedures of the operating condition to be predicted, and obtaining simulation data; The GRU pre-training model includes: an input layer, several GRU layers and a fully connected layer, wherein: each GRU layer calculates the GRU gating unit according to the data of the previous GRU layer or the input layer, and outputs the calculation result to the next GRU layer or the fully connected layer; the fully connected layer receives the data of the last GRU layer, performs linear changes and then outputs the predicted data information.

2. The method for predicting operating parameters of a nuclear power plant according to claim 1, characterized in that: The joint training refers to: using multiple groups of simulation working condition data that are similar to but not exactly the same as the experimental working conditions to train a GRU network. During the training process, the loss functions of the multiple groups of simulation working conditions are averaged as the total loss ultimately used to update the network parameters.

3. The method for predicting operating parameters of a nuclear power plant according to claim 1, characterized in that: The hyperparameter optimization refers to: according to the loss of the GRU pre-trained model on the validation set, a new set of hyperparameters is obtained through a tree-structured Bayesian optimization algorithm (TPE), the network is trained again and the loss on the validation set is calculated until the loss on the validation set is minimized.

4. The method for predicting operating parameters of a nuclear power plant according to claim 1 or 3, characterized in that: The hyperparameter optimization specifically includes: 1) Initialize several sets of hyperparameters θ k , k = 1, 2, ..., K; 2) Train the GRU pre-training model under each set of hyperparameter combinations and obtain the corresponding minimum verification loss minValiLoss as the objective function to be optimized; 3) Arrange the objective function values ​​under several sets of hyperparameter combinations from small to large, divide them into good and bad groups according to a certain ratio (such as 15%), and calculate the probability distribution p of the two groups respectively g (θ) and p b (θ); 4) Calculation The maximum value of the hyperparameter combination θ m , and θ m Add to θ k Repeat steps 2.2-2.4 until the maximum number of cycles is exceeded, and finally output the θ calculated in the last cycle m .

5. The method for predicting operating parameters of a nuclear power plant according to claim 1, characterized in that: The fine-tuning mentioned above means: based on the GRU pre-training model, continue to train some layers of the network through measurement data, and add physical constraints during the training process, that is, the total loss function TotalLoss = max(Loss, Loss p ), where: Loss is the data loss, Loss p is the physical loss to avoid overfitting.

6. The method for predicting operating parameters of a nuclear power plant according to claim 5, characterized in that: The data loss refers to: in each Epoch training process, each set of simulation condition data is input into the GRU pre-training model and 9 losses are calculated accordingly, and then the total loss is obtained by averaging; Physical loss p =max(T in -T out ,T th )-T th , where: T th is the threshold, that is, when Tin-Tout>T th When the inlet temperature is as high as possible and the outlet temperature is as large as possible, the temperature difference between the two is regarded as physical loss; otherwise, the physical loss is 0.

Citation Information

Patent Citations

  • Hyper-parameter search method and device based on knowledge graph

    CN114564560A

  • Nuclear power plant state prediction method based on interpretable machine learning

    CN117390390A

  • Method for predicting heat transfer coefficient of nuclear reactor after drying up

    CN117854614A

  • Aerodynamic load checking method for deformation of offshore wind power blade

    CN117993303A