QPSO-LSTM-based containment internal temperature field prediction method

Through QPSO-LSTM model optimization, the problem of predicting the temperature field inside the containment under nuclear reactor LOCA accident conditions has been solved, achieving temperature prediction with higher accuracy and speed, and improving the safety of nuclear reactors.

CN118690428APending Publication Date: 2024-09-24XI AN JIAOTONG UNIV
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410693377.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-31
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

It is difficult to accurately predict the temperature field inside the containment of a nuclear reactor under LOCA accident conditions with existing technology. The complex interaction mechanism of multiple materials and the diversity of equipment make it difficult to predict mathematical physics equations.

Method used

Using the temperature field prediction method based on QPSO-LSTM, through data collection, normalization, LSTM model initialization and quantum particle swarm algorithm optimization, the QPSO-LSTM model is constructed to predict the temperature field inside the containment, avoiding complex geometric modeling and Description of mathematical physics equations.

Benefits of technology

It improves the accuracy and calculation speed of temperature field prediction inside the containment, provides a more reliable temperature prediction reference, and improves the safety of nuclear reactors for accident handling.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118690428A
    Figure CN118690428A
Patent Text Reader

Abstract

The invention discloses a QPSO-LSTM-based containment internal temperature field prediction method, and the method comprises the following steps: 1, collecting containment internal temperature field information under the LOCA working condition of different crevasse sizes as a training set and a test set, and carrying out the normalization; 2, initializing long short-term memory (LSTM) neural network model parameters; 3, optimizing model parameters of the LSTM by using a quantum particle swarm optimization (QPSO); 4, transmitting the parameters subjected to the QPSO optimization to an LSTM (Long Short Term Memory) model; 5, training and testing the LSTM model by using the data set; 6, the QPSO-LSTM model is stored; and 7, predicting the internal temperature field of the containment under the LOCA working condition. The method provided by the invention can predict the future containment internal temperature field without intervention premeasures according to the temperature data within a period of time after an accident, provides reliable reference for workers in an accident handling site, and has important significance for improving the safety of a nuclear reactor.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of nuclear reactor containment internal temperature field prediction, and in particular relates to a containment internal temperature prediction method based on QPSO-LSTM. Technical Background

[0002] The containment is the last barrier of the nuclear power plant's defense in depth and plays an important role in preventing radioactive substances from entering the environment. When a breach occurs in the reactor's primary circuit, a large amount of high-temperature and high-pressure water and steam will be sprayed into the containment to raise its temperature. Therefore, ensuring that the temperature inside the containment is within the design limit under accident conditions is of great significance to ensuring the integrity of the containment.

[0003] There are numerous devices inside the containment and the interaction mechanisms of various materials are complex, making it difficult to accurately predict the temperature field inside the containment under LOCA accident conditions through mathematical and physical equations. Summary of the invention

[0004] In order to fill the gap in the above-mentioned prior art, the purpose of the present invention is to provide a method for predicting the internal temperature field of the containment based on QPSO-LSTM, which can predict the future internal temperature field of the containment when there are no intervention measures based on the temperature data within a period of time after the accident, and provide a reliable reference for the staff at the accident disposal site, which is of great significance to improving the safety of nuclear reactors.

[0005] To achieve the above object, the technical solution adopted by the present invention is:

[0006] A method for predicting the internal temperature field of a containment shell based on QPSO-LSTM includes the following steps:

[0007] Step 1: Data collection and normalization, including the following:

[0008] 1) Establish a geometric model of the containment and divide the interior of the containment into N nodes to determine the initial parameters of the source term under M LOCA accident conditions, including the breach location, steam mass flow rate at the breach, breach steam enthalpy, and steam spray duration:

[0009] 2) Use the GOTHIC program to calculate the internal temperature field of the containment within 0-P seconds after the accident is triggered as a data set sample;

[0010] 3) Divide the data set samples into training set samples and test set samples;

[0011] 4) Use the standard normalization algorithm to normalize all sample data:

[0012]

[0013] Tnorm ——Normalized data, K;

[0014] T——unnormalized data, K;

[0015] μ——the mean of all sample data, K;

[0016] σ——standard deviation of all sample data, K;

[0017] Step 2: Initialize the LSTM model parameters, including the following:

[0018] Use the internal temperature field of the containment at the first m moments to predict the temperature field at the next m+1 moments; initialize the number of input layer nodes, output layer nodes, two hidden layer nodes, number of iterations, and learning rate of the LSTM model;

[0019] Step 3: Use the QPSO algorithm to optimize the LSTM model, which includes the following:

[0020] 1) Initialize the population size, number of iterations, and spatial dimension of the QPSO particle swarm;

[0021] 2) Because the optimization parameters include the number of hidden layer nodes, learning rate and number of iterations in the LSTM model, the number of hidden layer nodes, learning rate and number of iterations are randomly initialized to correspond to the speed and position of the particles;

[0022] 3) Use the training set data to train the LSTM model, use the test set data to evaluate the performance of the LSTM model, and select the root mean square error RMSE as the particle fitness function:

[0023]

[0024] Where:

[0025] n——total number of samples;

[0026] X pred (i)——the predicted value of the temperature field of the i-th sample;

[0027] X act (i)——actual value of the temperature field of the i-th sample;

[0028] 4) Update the historical optimal position and global optimal position of the particle;

[0029] 5) The average optimal position of all particles is calculated using the following formula;

[0030]

[0031] Where:

[0032] M best——the average optimal position of particles;

[0033] M – the size of the particle group;

[0034] p best_i ——The historical optimal position of the i-th particle in the current iteration;

[0035] 6) Update the position of each particle;

[0036] P i =φ·p best_i +(1-φ)g best

[0037]

[0038] Where:

[0039] x i ——The updated position of the i-th particle;

[0040] α——innovation parameter, not greater than 1;

[0041] φ——a value in the interval (0,1);

[0042] u——a value in the interval (0,1);

[0043] P i ——local attraction factor;

[0044] x i0 ——The initial position of the ith particle;

[0045] g best ——The current global optimal particle;

[0046] In the above formula, the probability of + and - is 0.5;

[0047] 7) Determine whether the maximum number of iterations has been reached. If so, go to step 4; otherwise, return to step 3 (3);

[0048] Step 4: Select the particle with the best fitness value as the optimal solution, input the parameter vector corresponding to the particle including the number of hidden layer nodes, learning rate and number of iterations into the LSTM model, and build the QPSO-LSTM model;

[0049] Step 5: Train and test the LSTM model in the QPSO-LSTM model. The specific contents include:

[0050] 1) Use the training set to train the LSTM model;

[0051] 2) Use the trained LSTM model to predict the temperature field of the test set samples;

[0052] 3) Calculate the root mean square error RMSE, mean absolute error MAE, mean relative percentage error MAPE and determination coefficient R between the predicted value of the temperature field of the test set sample and the actual value of the temperature field 2 As an evaluation indicator of LSTM model;

[0053]

[0054] Where:

[0055] ——The average value of the actual value of the temperature field of all samples;

[0056] 4) Determine whether all the above LSTM model evaluation indicators meet the requirements at the same time. If so, go to step 6; otherwise, return to step 3;

[0057] Step 6: Save the QPSO-LSTM model obtained in step 5;

[0058] Step 7: For any LOCA condition, use the QPSO-LSTM model to predict the temperature field inside the containment.

[0059] Preferably, in step 1 (2), the data sampling interval is 1 s, and there are P sampling points in total.

[0060] Preferably, in step 1, 80% of the data set is divided into a training set, and 20% of the data set is divided into a test set. In this way, the data can be fully utilized to ensure that the model has enough data to learn features and patterns, thereby improving the model's predictive ability and stability; and the model performance can be accurately evaluated, which helps to check whether the model can generalize to unseen data and avoid overfitting.

[0061] Compared with the prior art, the present invention has the following advantages:

[0062] 1. Compared with the traditional long short-term memory neural network (LSTM) model, the prediction accuracy of the temperature field inside the containment is higher after being optimized by the quantum particle swarm algorithm (QPSO);

[0063] 2. Compared with the traditional computational fluid dynamics (CFD) method, the prediction of the internal temperature field of the containment based on the QPSO-LSTM method avoids complex geometric modeling, does not need to use mathematical physics equations to describe the interaction mechanism of multiple materials, and has a faster calculation speed. BRIEF DESCRIPTION OF THE DRAWINGS

[0064] Figure 1 This is the flow chart of the method for predicting the internal temperature field of the containment based on QPSO-LSTM;

[0065] Figure 2 Schematic diagram of containment node division;

[0066] Figure 3 This is a comparison chart of the actual and predicted values ​​of the temperature of node No. 2 inside the containment. DETAILED DESCRIPTION

[0067] The present invention is described in detail below with reference to the accompanying drawings.

[0068] The present invention provides a method for predicting the internal temperature field of a containment shell based on QPSO-LSTM. The specific process is as follows: Figure 1 As shown, the following steps are included:

[0069] Step 1: Data collection and normalization, including the following:

[0070] 1) Establish Figure 2 The geometric model of the containment is shown and the interior of the containment is divided into 27 nodes. The initial parameters of the source term under 300 LOCA (Loss of Coolant Accident) conditions are determined, including the breach position, steam mass flow rate at the breach, breach steam enthalpy and steam spraying duration:

[0071] The breach locations include: inside node 1, inside node 2, inside node 3, and inside node 4;

[0072] Steam flow at the breach: 0.1kg / s, 0.5kg / s, 1.0kg / s, 5kg / s, 10kg / s;

[0073] Breakout steam enthalpy: 2600kJ / kg, 2700kJ / kg, 2800kJ / kg

[0074] Steam spray duration: 500s, 2000s, 4000s, 6000s, 10000s

[0075] 2) Use the GOTHIC program to calculate the temperature field inside the containment within 0-10000s after the accident is triggered as the data set sample, with a data sampling interval of 1s and a total of 10000 sampling points;

[0076] 3) Divide 80% of the data set samples into training set samples and divide 20% of the data set samples into test set samples;

[0077] 4) Use the standard normalization algorithm to normalize all sample data:

[0078]

[0079] T norm ——Normalized data, K;

[0080] T——unnormalized data, K;

[0081] μ——the mean of all sample data, K;

[0082] σ——standard deviation of all sample data, K;

[0083] Step 2: Initialize the LSTM model parameters, including the following:

[0084] The temperature field inside the containment at the first 15 moments is used to predict the temperature field at the next moment; miniBatchSize, i.e., the number of samples used each time the weight is updated, is set to 16; the number of input layer nodes is set to 15, the number of output layer nodes is set to 1, and the number of hidden layer nodes L1 and L2 are both set to 20; the activation function is set to the tanh function; maxEpochs, i.e., the maximum number of training rounds, is set to 20; the number of iterations per round K is set to 100, and the learning rate Ir is set to 0.005;

[0085] Step 3: Use the QPSO algorithm to optimize the LSTM model, which includes the following:

[0086] 1) The population size of the initial QPSO particle swarm is set to 3, the number of iterations is set to 4, and the spatial dimension, i.e. the number of optimization parameters, is set to 4;

[0087] 2) The optimization parameters include the number of nodes in the first hidden layer, the number of nodes in the second hidden layer, the learning rate, and the number of iterations in the LSTM model; the optimization range of the number of hidden layer nodes is set to [1,200], the optimization range of the number of training times is set to [10,100], and the optimization range of the learning rate is set to [0.001,0.1];

[0088] 3) Randomly initialize the number of hidden layer nodes, learning rate and number of iterations corresponding to the speed and position of the particles;

[0089] 4) Based on the initial parameters of the QPSO-LSTM model, the LSTM model is trained using the training set data, the performance of the LSTM model is evaluated using the test set data, and the root mean square error RMSE is selected as the particle fitness function:

[0090]

[0091] Where:

[0092] n——total number of samples;

[0093] X pred (i)——the predicted value of the temperature field of the i-th sample;

[0094] X act (i)——actual value of the temperature field of the i-th sample;

[0095] 5) Update the historical optimal position and global optimal position of the particle;

[0096] 6) The average optimal position of all particles is calculated using the following formula;

[0097]

[0098] Where:

[0099] M best ——the average optimal position of particles;

[0100] M – the size of the particle group;

[0101] p best_i ——The historical optimal position of the i-th particle in the current iteration;

[0102] 7) Update the position of each particle;

[0103] P i =φ·p best_i +(1-φ)g best

[0104]

[0105] Where:

[0106] x i ——The updated position of the i-th particle;

[0107] α——innovation parameter, generally not greater than 1;

[0108] φ——a value in the interval (0,1);

[0109] u——a value in the interval (0,1);

[0110] P i ——local attraction factor;

[0111] x i0 ——The initial position of the ith particle;

[0112] g best ——The current global optimal particle;

[0113] In the above formula, the probability of + and - is 0.5;

[0114] 8) Determine whether the maximum number of iterations 4 is reached or the fitness is less than the set value RMSE0. If so, go to step 4; otherwise, return to step 3 (4);

[0115] Step 4: Select the particle with the best fitness value as the optimal solution. After optimization, the number of nodes in the first hidden layer is 120, the number of nodes in the second hidden layer is 47, the learning rate is 0.0064, and the number of iterations is 52. Input the above parameters into the LSTM model to build the QPSO-LSTM model.

[0116] Step 5: Train and test the LSTM model in the QPSO-LSTM model. The specific contents include:

[0117] 1) Use the training set to train the LSTM model;

[0118] 2) Use the trained LSTM model to predict the temperature field of the test set samples;

[0119] 3) Calculate the root mean square error RMSE, mean absolute error MAE, mean relative percentage error MAPE and determination coefficient R between the predicted value of the temperature field of the test set sample and the actual value of the temperature field 2 As an evaluation indicator of LSTM model;

[0120]

[0121] Where:

[0122] ——The average value of the actual value of the temperature field of all samples;

[0123] 4) Determine whether the LSTM model evaluation indicators RMSE < 0.8, MAE < 0.4, MAPE < 0.01, | R 2 -1|<0.2, if yes, go to step 6; otherwise, go back to step 3;

[0124] Step 6: Finally, the RMSE of the QPSO-LSTM model is 0.79595, MAE is 0.26268, MAPE is 0.071429%, and |R 2 -1|=0.4912, which meets the model evaluation index; the comparison between the predicted value and the actual value is Figure 3 As shown; save the QPSO-LSTM model;

[0125] Step 7: For any LOCA condition, use the QPSO-LSTM model obtained in step 6 to predict the temperature field inside the containment.

[0126] The above content is a further detailed description of the present invention in combination with a specific preferred embodiment. It cannot be determined that the specific embodiments of the present invention are limited to this. For ordinary technicians in the technical field to which the present invention belongs, several simple deductions or substitutions can be made without departing from the concept of the present invention, which should be regarded as belonging to the present invention and the scope of patent protection determined by the submitted claims.

Claims

1. A method for predicting the internal temperature field of a containment shell based on QPSO-LSTM, characterized in that: The steps include: Step 1: Data collection and normalization, including the following: 1) Establish a geometric model of the containment and divide the interior of the containment into N nodes to determine the initial parameters of the source term under M LOCA accident conditions, including the breach location, steam mass flow rate at the breach, breach steam enthalpy, and steam spray duration: 2) Use the GOTHIC program to calculate the internal temperature field of the containment within 0-P seconds after the accident is triggered as a data set sample; 3) Divide the data set samples into training set samples and test set samples; 4) Use the standard normalization algorithm to normalize all sample data: T norm ——Normalized data, K; T——unnormalized data, K; μ——the mean of all sample data, K; σ——standard deviation of all sample data, K; Step 2: Initialize the LSTM model parameters, including the following: Use the internal temperature field of the containment at the first m moments to predict the temperature field at the next m+1 moments; initialize the number of input layer nodes, output layer nodes, two hidden layer nodes, number of iterations, and learning rate of the LSTM model; Step 3: Use the QPSO algorithm to optimize the LSTM model, which includes the following: 1) Initialize the population size, number of iterations, and spatial dimension of the QPSO particle swarm; 2) Because the optimization parameters include the number of hidden layer nodes, learning rate and number of iterations in the LSTM model, the number of hidden layer nodes, learning rate and number of iterations are randomly initialized to correspond to the speed and position of the particles; 3) Use the training set data to train the LSTM model, use the test set data to evaluate the performance of the LSTM model, and select the root mean square error RMSE as the particle fitness function: Where: n——total number of samples; X pred (i)——the predicted value of the temperature field of the i-th sample; X act (i)——actual value of the temperature field of the i-th sample; 4) Update the historical optimal position and global optimal position of the particle; 5) The average optimal position of all particles is calculated using the following formula; Where: M best ——the average optimal position of particles; M – the size of the particle group; p best_i ——The historical optimal position of the i-th particle in the current iteration; 6) Update the position of each particle; P i =φ·p best_i +(1-φ)g best Where: x i ——The updated position of the i-th particle; α——innovation parameter, not greater than 1; φ——a value in the interval (0,1); u——a value in the interval (0,1); P i ——local attraction factor; x i0 ——The initial position of the ith particle; g best ——The current global optimal particle; In the above formula, the probability of + and - is 0.5; 7) Determine whether the maximum number of iterations has been reached. If so, go to step 4; otherwise, return to step 3 (3); Step 4: Select the particle with the best fitness value as the optimal solution, input the parameter vector corresponding to the particle including the number of hidden layer nodes, learning rate and number of iterations into the LSTM model, and build the QPSO-LSTM model; Step 5: Train and test the LSTM model in the QPSO-LSTM model. The specific contents include: 1) Use the training set to train the LSTM model; 2) Use the trained LSTM model to predict the temperature field of the test set samples; 3) Calculate the root mean square error RMSE, mean absolute error MAE, mean relative percentage error MAPE and determination coefficient R between the predicted value of the temperature field of the test set sample and the actual value of the temperature field 2 As an evaluation indicator of LSTM model; Where: ——The average value of the actual value of the temperature field of all samples; 4) Determine whether all the above LSTM model evaluation indicators meet the requirements at the same time. If so, go to step 6; otherwise, return to step 3; Step 6: Save the QPSO-LSTM model obtained in step 5; Step 7: For any LOCA condition, use the QPSO-LSTM model to predict the temperature field inside the containment.

2. The method for predicting the internal temperature field of a containment shell based on QPSO-LSTM according to claim 1 is characterized in that: In step 1 of 2), the data sampling interval is 1s, and there are a total of P sampling points.

3. The method for predicting the internal temperature field of a containment shell based on QPSO-LSTM according to claim 1 is characterized in that: In step 1 of 3), 80% of the data set is divided into a training set, and 20% of the data set is divided into a test set.

Citation Information

Cited By

  • Intelligent prediction method for temperature field of structural component of radio telescope

    CN120542276A

  • Intelligent prediction method for temperature field of radio telescope structural components

    CN120542276B