Method and device for processing nuclear power data
By using the Leaky Relu activation function in LSTM, the problem of gradient disappearance in nuclear power data classification is solved, the training efficiency and accuracy of the model are improved, and efficient processing of complex nuclear power data is achieved.
Patent Information
- Application Number
- CN202410168299.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-06
- Publication Date
- 2024-08-30
AI Technical Summary
The complexity, diversity, structure and real-time nature of nuclear power data make its rapid classification a challenge, especially due to the vanishing gradient phenomenon in the deep structure of the LSTM model, which leads to a decrease in training efficiency and learning ability.
The Leaky Relu activation function is used in the input gate, forget gate and output gate of LSTM to replace the traditional SigMoid activation function. The model structure is adjusted to alleviate the gradient disappearance problem, and pre-training and time series processing are performed.
It improves the model's training efficiency by 15% and accuracy by 8%, alleviates the vanishing gradient problem, and improves the model's fitting speed and overall learning ability.
Smart Images

Figure FDA0004700314650000011 
Figure HDA0004700314670000011 
Figure HDA0004700314670000012
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of data processing, and in particular relates to a method and a device for processing nuclear power data. Background Art
[0002] Nuclear power data usually includes nuclear power plant construction data, power plant operation data, equipment data, environmental monitoring data, etc. These data are not only huge in quantity, but also highly complex and diverse.
[0003] First, the complexity of nuclear power data is reflected in its wide variety. Different types of nuclear power plants (such as pressurized water reactors, boiling water reactors, heavy water reactors, etc.) will generate different data types and formats. In addition, the same type of nuclear power plant will also generate different data under different operating conditions. There are complex correlations between these data, and in-depth analysis and mining are needed to reveal their internal laws.
[0004] Secondly, the complexity of nuclear power data is also reflected in its structure. Nuclear power data usually contains a large amount of numerical and non-numerical data, among which numerical data can be divided into continuous and discrete types. There are complex relationships between these data, and effective data processing and analysis methods are needed to extract useful information.
[0005] Finally, the complexity of nuclear power data is also reflected in its real-time and dynamic nature. Since the operating status of nuclear power plants changes with time and operating conditions, nuclear power data has strong real-time and dynamic nature. This requires us to respond quickly to these changes when classifying nuclear power data and adjust the classification strategy in a timely manner.
[0006] Due to the complexity, diversity, structure, real-time and dynamic characteristics of nuclear power data, rapid classification has become an extremely challenging task. Summary of the invention
[0007] The purpose of the present invention is to provide a method for processing nuclear power data, improve LSTM by using the Leaky Relu activation function, and change its model structure to improve the training efficiency and learning ability of the model.
[0008] In order to solve the above technical problems, the present invention is achieved through the following technical solutions:
[0009] The present invention is a method for processing nuclear power data, comprising the following steps:
[0010] The Leaky Relu activation function is used in the input gate, forget gate, and output gate of LSTM so that the derivative range during back propagation is as follows: [1,1] when X>0, and [α,α] when X≤0, where α is a preset value;
[0011] The final function of LSTM is:
[0012] Among them, w f are the neural network weights in the input gate:
[0013] b f is the neural network bias in the input gate
[0014] α (t-1) is the output of the hidden layer from the previous time step
[0015] X (t) is the input for this time step.
[0016] Preferably, the method further comprises pre-training the LSTM;
[0017] Collect nuclear power data;
[0018] Perform time series processing on data;
[0019] Train LSTM on different types of data separately;
[0020] Classify the model, process different data, and output the results.
[0021] Preferably, the nuclear power data includes pressurized water reactor data, boiling water reactor data, and heavy water reactor data.
[0022] Also includes LSTM unit training method:
[0023] Forget gate: The forget gate receives the current input x (t) and the hidden state α at the previous time step (t-1) , calculate the information f that needs to be forgotten (t) In this process, the LSTM with Leaky Relu activation function is introduced to calculate f (t) ;
[0024] Input gate: At time step t, the input gate receives the current input x (t) and the hidden state α at the previous time step (t-1) , calculate the new candidate state c (t) In this process, the input gate uses a tanh activation function to obtain the candidate c (t) , introduce LSTM with Leaky Relu activation function to calculate u (t) ;
[0025] Memory cell state: Memory cell state c (t) Through a tanh activation function and a dot product operation, with u (t)Multiply to get the new cell state c'(t). In this process, the tanh function scales the candidate state to a bounded interval, and the dot product operation removes the information to be forgotten from the candidate state to finally get the memory cell of the current time step;
[0026] Output gate: The output gate receives the current input x (t) and the hidden state α at the previous time step (t-1) And the new cell state c'(t), calculate the new hidden state a (t) In this process, the output gate activates the new unit state c'(t) through a tanh activation function, and then calculates o through a Leaky Relu activation function. (t) Finally, the dot multiplication operation is performed to obtain a (t) ;
[0027] The predicted value of the current time step: (t) Perform softmax activation to get y (t) .
[0028] A processing device for nuclear power data, comprising:
[0029] Forget gate module: The forget gate module is used to receive the current input x (t) and the hidden state α at the previous time step (t-1) , calculate the information f that needs to be forgotten (t);
[0030] Input gate module: The input gate receives the current input x (t) and the hidden state α at the previous time step (t-1) , calculate the new candidate state c (t);
[0031] Output gate module: The output gate module receives the current hidden state α (t-1) and the new cell state c'(t), calculate the new hidden state h (t);
[0032] Memory unit status module: The memory unit status module is used for.
[0033] Preferably, it also includes a nuclear power data module, which is used to store the collected nuclear power data of different time series.
[0034] The present invention has the following beneficial effects:
[0035] When the LSTM model of the present invention is trained, the Leaky Relu activation function is used instead of the common SigMoid activation function. In the processing of nuclear power data, the gradient disappearance is alleviated, and the model update parameters are no longer unable to be updated due to the continuous shrinking of the gradient. The model fitting speed and the overall training efficiency are improved by 15%, and the accuracy of the model trained by the neural network is improved by 8%.
[0036] Of course, any product implementing the present invention does not necessarily need to achieve all of the advantages described above at the same time. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for describing the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.
[0038] Figure 1 A flow chart of a method for processing nuclear power data according to the present invention;
[0039] Figure 2 This is an LSTM unit diagram for processing nuclear power data according to the present invention. DETAILED DESCRIPTION
[0040] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0041] When classifying nuclear power data, LSTM (Long Short-Term Memory Network) in deep learning is used. It is known that LSTM uses SigMoid activation function in its gated structure, and the derivative range of this activation function is in the interval [0, 0.25]. Since the derivative range of SigMoid is very narrow, if the SigMoid activation function is applied multiple times in the deep structure of the LSTM network, the gradient will inevitably be multiplied by multiple values between 0 and 0.25, causing the gradient to gradually disappear. This gradient disappearance phenomenon will affect the training efficiency and ability of the network, especially in the case of long sequences or multiple layers, making it difficult for the network to learn long-term dependent information, reducing the expression ability and learning effect of the LSTM model, and ultimately causing the classification to fail to achieve the expected effect.
[0042] We change the SigMoid here to the Leaky Relu activation function to replace the role of the SigMoid activation function.
[0043] See also Figure 1 As shown, the present invention is a method for processing nuclear power data, including pre-training LSTM;
[0044] Collect nuclear power data, including pressurized water reactor data, boiling water reactor data, and heavy water reactor data;
[0045] Perform time series processing on data;
[0046] Train LSTM on different types of data separately;
[0047] Classify the model, process different data, and output the results.
[0048] Among them, the Leaky Relu activation function is used in the input gate, forget gate and output gate of LSTM so that the derivative range during back propagation is as follows: [1,1] when X>0, [α,α] when X≤0, where α is the preset value;
[0049] The final function of LSTM is:
[0050] Among them, w f are the neural network weights in the input gate:
[0051] b f is the neural network bias in the input gate
[0052] α (t-1) is the output of the hidden layer from the previous time step
[0053] X (t) is the input for this time step.
[0054] Specifically, Figure 2 As shown in the figure, the neural network LSTM unit diagram.
[0055] Forget gate: The forget gate receives the current input x (t) and the hidden state α at the previous time step (t-1) , calculate the information f that needs to be forgotten (t) In this process, the LSTM with Leaky Relu activation function is introduced to calculate f (t) ;
[0056] Input gate: At time step t, the input gate receives the current input x (t) and the hidden state α at the previous time step (t-1) , calculate the new candidate state c (t)In this process, the input gate uses a tanh activation function to obtain the candidate c (t) , introduce LSTM with Leaky Relu activation function to calculate u (t) ;
[0057] Memory cell state: Memory cell state c (t) Through a tanh activation function and a dot product operation, with u (t) Multiply to get the new cell state c'(t). In this process, the tanh function scales the candidate state to a bounded interval, and the dot product operation removes the information to be forgotten from the candidate state to finally get the memory cell of the current time step;
[0058] Output gate: The output gate receives the current input x (t) and the hidden state α at the previous time step (t-1) And the new cell state c'(t), calculate the new hidden state a (t) In this process, the output gate activates the new unit state c'(t) through a tanh activation function, and then calculates o through a Leaky Relu activation function. (t) Finally, the dot multiplication operation is performed to obtain a (t) ;
[0059] The predicted value of the current time step: (t) Perform softmax activation to get y (t) .
[0060] A processing device for nuclear power data, executing a program to complete the above-mentioned nuclear power data processing method, comprising:
[0061] Forget gate module: The forget gate module is used to receive the current input x (t) and the hidden state α at the previous time step (t-1) , calculate the information f that needs to be forgotten (t);
[0062] Input gate module: The input gate receives the current input x (t) and the hidden state α at the previous time step (t-1) , calculate the new candidate state c (t);
[0063] Output gate module: The output gate module receives the current hidden state α (t-1) and the new cell state c'(t), calculate the new hidden state h (t);
[0064] Memory unit status module: The memory unit status module is used for.
[0065] Preferably, it also includes a nuclear power data module, which is used to store the collected nuclear power data of different time series.
[0066] After updating LSTM using the method mentioned in this patent, the gradient vanishing problem is alleviated, and the model parameters are no longer unable to update due to the shrinking gradient. The model fitting speed and overall training efficiency are improved by 15%, and the accuracy of the model trained using the neural network is improved by 8%.
[0067] It is worth noting that in the above system embodiment, the various units included are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.
[0068] In addition, a person skilled in the art can understand that all or part of the steps in the above-mentioned embodiments can be completed by instructing related hardware through a program, and the corresponding program can be stored in a computer-readable storage medium, such as a ROM / RAM, a disk or an optical disk.
[0069] The preferred embodiments of the present invention disclosed above are only used to help illustrate the present invention. The preferred embodiments do not describe all the details in detail, nor do they limit the invention to the specific implementation methods described. Obviously, many modifications and changes can be made according to the content of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the present invention, so that those skilled in the art can understand and use the present invention well. The present invention is limited only by the claims and their full scope and equivalents.
Claims
1. A method for processing nuclear power data, characterized in that: The steps include: The Leaky Relu activation function is used in the input gate, forget gate, and output gate of LSTM so that the derivative range during back propagation is as follows: [1,1] when X>0, and [α,α] when X≤0, where α is a preset value; The final function of LSTM is: Among them, w f are the neural network weights in the input gate: b f is the neural network bias in the input gate α (t-1) is the output of the hidden layer from the previous time step X (t) is the input for this time step.
2. A method for processing nuclear power data according to claim 1, characterized in that: It also includes pre-training of LSTM; Collect nuclear power data; Perform time series processing on data; Train LSTM on different types of data separately; Classify the model, process different data, and output the results.
3. A method for processing nuclear power data according to claim 1, characterized in that: The nuclear power data includes pressurized water reactor data, boiling water reactor data, and heavy water reactor data.
4. A method for processing nuclear power data according to claim 1, characterized in that: Also includes LSTM unit training method: Forget gate: The forget gate receives the current input x (t) and the hidden state α at the previous time step (t-1) , calculate the information f that needs to be forgotten (t) In this process, the LSTM with Leaky Relu activation function is introduced to calculate f (t) ; Input gate: At time step t, the input gate receives the current input x (t) and the hidden state α at the previous time step (t-1) , calculate the new candidate state c (t) In this process, the input gate uses a tanh activation function to obtain the candidate c (t) , introduce LSTM with Leaky Relu activation function to calculate u (t) ; Memory cell state: Memory cell state c (t) Through a tanh activation function and a dot product operation, with u (t) Multiply to get the new cell state c'(t). In this process, the tanh function scales the candidate state to a bounded interval, and the dot product operation removes the information to be forgotten from the candidate state to finally get the memory cell of the current time step; Output gate: The output gate receives the current input x (t) and the hidden state α at the previous time step (t-1) And the new cell state c'(t), calculate the new hidden state a (t) In this process, the output gate activates the new unit state c'(t) through a tanh activation function, and then calculates o through a Leaky Relu activation function. (t) Finally, the dot multiplication operation is performed to obtain a (t) ; The predicted value of the current time step: (t) Perform softmax activation to get y (t) .
5. A processing device for nuclear power data, characterized in that: include: Forget gate module: The forget gate module is used to receive the current input x (t) and the hidden state α at the previous time step (t-1) , calculate the information f that needs to be forgotten (t); Input gate module: The input gate receives the current input x (t) and the hidden state α at the previous time step (t-1) , calculate the new candidate state c (t); Output gate module: The output gate module receives the current hidden state α (t-1) and the new cell state c'(t), calculate the new hidden state h (t); Memory unit status module: The memory unit status module is used for.
6. A nuclear power data processing device according to claim 5, characterized in that: It also includes a nuclear power data module, which is used to store the collected nuclear power data of different time series.
