A gamma spectrum intelligent noise reduction method, system and storage medium

By dividing the gamma spectrum into multiple segments and using a convolutional neural network-stacked denoising autoencoder for denoising, the problem of cumbersome and low-efficiency gamma spectrum denoising operations in the existing technology is solved, achieving Efficient gamma spectrum data analysis.

CN117909650BActive Publication Date: 2024-10-18北京聚原科技有限公司 +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311771667.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-21
Publication Date
2024-10-18
Estimated Expiration
2043-12-21

AI Technical Summary

Technical Problem

Existing gamma spectrum noise reduction methods are cumbersome and inefficient, making it difficult to effectively remove noise in gamma ray pulse data and affecting the data analysis results.

Method used

An intelligent denoising method based on convolutional neural network-stacked denoising autoencoder is used to divide the gamma spectrum into multiple segments, and integrate the denoised segments through weighted average, using deep learning technology to improve denoising efficiency.

Benefits of technology

It significantly improves the noise reduction efficiency of gamma energy spectrum, simplifies the operation process, reduces the noise reduction time, and improves the accuracy and efficiency of data analysis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117909650B_ABST
    Figure CN117909650B_ABST
Patent Text Reader

Abstract

The present invention provides a method, system and storage medium for intelligent denoising of a gamma spectrum, the method comprising: dividing an acquired gamma spectrum into a plurality of gamma spectrum segments of a first length, and adjacent gamma spectrum segments have a second length of overlapping gamma spectrum segments; denoising the plurality of gamma spectrum segments of the first length respectively based on a pre-trained convolutional neural network-stacked denoising autoencoder to obtain a plurality of denoised gamma spectrum segments; weighted averaging the values ​​of data points at the same position of the overlapping parts in the denoised gamma spectrum segments, and integrating the data points of each denoised gamma spectrum segment obtained after the weighted averaging to obtain a complete denoised gamma spectrum. The present invention can make the denoising process easy to operate, enhance its adaptive ability and improve the denoising efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of signal denoising, and in particular to a gamma spectrum intelligent denoising method and system. Background Art

[0002] Gamma spectrum analysis technology plays an important role in nuclear physics research, geological survey, environmental radioactivity research, homeland security, etc. Gamma spectrum analysis technology can directly or indirectly obtain important information such as the structure of the substance and the type and content of the constituent elements by acquiring and analyzing the gamma spectrum of radioactive nuclides. However, in the detection of radioactive signals and nuclide identification, due to the influence of environmental background radiation, cosmic rays, shielding and other factors, the gamma spectrum data measured by the detector has a certain randomness and contains a lot of interference noise, which means that the collection of gamma-ray pulse data will inevitably be affected by noise, which will in turn have an adverse effect on the subsequent processing of gamma spectrum data, such as the determination of peak position, calculation of peak area, and subtraction of base. In order to accurately and qualitatively analyze the gamma spectrum, the gamma spectrum must be subjected to noise reduction processing.

[0003] Traditional gamma spectrum denoising methods mainly use hardware methods and threshold methods, including sliding average method, centroid method and wavelet transform method. Although traditional methods are easy to understand, they are easily affected by external factors and require operators to have certain analysis experience. There are also problems such as cumbersome operation, poor denoising effect and long denoising time. For example, the wavelet threshold denoising method requires independent setting of the threshold, which makes the entire denoising process time-consuming and inefficient.

[0004] Therefore, there is an urgent need for a gamma spectrum denoising method with simple operation, short denoising time and strong adaptability to improve the denoising efficiency of the gamma spectrum. Summary of the invention

[0005] In view of this, the embodiments of the present invention provide a method and system for intelligent noise reduction of a gamma energy spectrum, so as to make the noise reduction process easy to operate, reduce the noise reduction time, and improve the noise reduction efficiency of the gamma energy spectrum.

[0006] One aspect of the present invention provides a gamma spectrum intelligent noise reduction method, the method comprising the following steps:

[0007] Dividing the acquired gamma energy spectrum into a plurality of gamma energy spectrum segments of a first length, wherein adjacent gamma energy spectrum segments have overlapping portions of a second length;

[0008] Based on the pre-trained convolutional neural network-stacked denoising autoencoder, multiple gamma energy spectrum segments of the first length are denoised respectively to obtain multiple denoised gamma energy spectrum segments; wherein the convolutional neural network-stacked denoising autoencoder is a deep neural network composed of a convolutional neural network and a stacked denoising autoencoder, and the output of the convolutional neural network is used as the input of the stacked denoising autoencoder; the convolutional neural network includes an input layer, a backbone network composed of alternating convolutional layers and pooling layers, and a fully connected layer; the stacked denoising autoencoder is a fully connected neural network composed of multiple stacked autoencoders, and the hidden layer of the previous autoencoder is used as the input of the current autoencoder;

[0009] The values ​​of the data points at the same position in the overlapping parts of the denoised gamma spectrum fragments are weighted averaged, and the data points of each denoised gamma spectrum fragment obtained after the weighted average are integrated to obtain a complete denoised gamma spectrum.

[0010] In some embodiments of the present invention, the first length is 64, 128 or 256 unit lengths, and the second length is 3 / 4 of the first length.

[0011] In some embodiments of the present invention, before denoising a plurality of gamma spectrum segments of the first length based on the pre-trained convolutional neural network-stacked denoising autoencoder, the method further includes:

[0012] By using linear normalization, the values ​​of the data points in the gamma spectrum are mapped to within (0,1).

[0013] In some embodiments of the present invention, the pre-trained convolutional neural network-stacked denoising autoencoder is obtained by:

[0014] Noise is added to the noise-free gamma energy spectrum segment to generate a noisy gamma energy spectrum segment, the noisy gamma energy spectrum segment is input into a convolutional neural network, and the first gamma energy spectrum segment output by the convolutional neural network is used as the input of the stacked denoising autoencoder, the stacked denoising autoencoder outputs a second gamma energy spectrum segment, the loss function of the second gamma energy spectrum segment and the noise-free gamma energy spectrum segment is calculated, and the network parameters are tuned based on the calculated loss function to complete a round of network training;

[0015] When the training times reach the set times or the calculated loss function is less than e -6 In this case, a pre-trained convolutional neural network - stacked denoising autoencoder is obtained; wherein the network parameters include the weights and biases of the neurons, and the calculated loss function is the root mean square error of the values ​​of the data points of the noise-free gamma energy spectrum fragment and the second gamma energy spectrum fragment.

[0016] In some embodiments of the present invention, tuning network parameters based on the calculated loss function includes:

[0017] The convolutional neural network performs back propagation, and the stacked denoising autoencoder performs layer-by-layer greedy training to adjust the network parameters based on the calculated loss function;

[0018] The neuron weights obtained through layer-by-layer greedy training are used as the initial neuron weights for supervised training of the stacked denoising autoencoder. The network parameters are updated by backpropagating and gradient descent the calculated loss function value in the convolutional neural network-stacked denoising autoencoder.

[0019] In some embodiments of the present invention, the backbone network includes 5 convolutional layers and 5 pooling layers, and the convolutional layers and the pooling layers are alternating with each other; the stacked denoising autoencoder includes an autoencoder with 3 stacked fully connected layers.

[0020] In some embodiments of the present invention, weighted averaging of the values ​​of data points at the same position in the overlapping portion of the denoised gamma spectrum segments comprises:

[0021] Assigning a weight to the value of each data point based on the number of times each data point in the overlapping part of the gamma spectrum segment is denoised; wherein the assigned weight is the inverse of the number of denoising times;

[0022] The values ​​of the data points at the same position in the overlapping part of the denoised gamma spectrum fragments are weighted averaged to obtain a unique value.

[0023] In some embodiments of the present invention, the method further comprises: evaluating the noise reduction performance based on the roughness, the deformation and the noise reduction time;

[0024] Among them, the deformation degree of the complete denoised gamma energy spectrum is the average deformation degree of the characteristic peak of the denoised gamma energy spectrum, and the deformation degree formula of a single characteristic peak is:

[0025]

[0026] Among them, D i is the deformation degree of the i-th characteristic peak, H i1 is the peak height of the characteristic peak after noise reduction, H i0 is the peak height of the characteristic peak before noise reduction, W i1 is the peak height of the characteristic peak after noise reduction, W i0 is the peak height of the characteristic peak before noise reduction.

[0027] Another aspect of the present invention provides a gamma spectrum intelligent noise reduction system, the system comprising: a processor and a memory, the memory storing computer instructions, the processor being used to execute the computer instructions stored in the memory, and when the computer instructions are executed by the processor, the system implements the steps of the method described in any of the above embodiments.

[0028] Another aspect of the present invention provides a computer-readable storage medium having a computer program stored thereon, which implements the steps of the method described in any of the above embodiments when the program is executed by a processor.

[0029] The gamma spectrum intelligent denoising method and system of the present invention divides the gamma spectrum into multiple gamma spectrum segments, uses a convolutional neural network-stacked denoising autoencoder to denoise the gamma spectrum segments, and obtains a complete denoised gamma spectrum by merging the denoised gamma spectrum segments. The method overcomes the problems of the existing denoising methods, such as cumbersome operation, poor effect, and long time, and can significantly improve the efficiency of denoising the gamma spectrum.

[0030] Additional advantages, purposes, and features of the present invention will be described in part in the following description, and will become apparent to those skilled in the art after studying the following, or may be learned from the practice of the present invention. The purposes and other advantages of the present invention may be achieved and obtained by the structures specifically indicated in the specification and the accompanying drawings.

[0031] Those skilled in the art will appreciate that the objectives and advantages that can be achieved with the present invention are not limited to the above specific description, and the above and other objectives that can be achieved by the present invention will be more clearly understood from the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] The drawings described herein are used to provide a further understanding of the present invention, constitute a part of the present application, and do not constitute a limitation of the present invention. In the drawings:

[0033] Figure 1 The figure is a flow chart of a method for intelligent denoising of a gamma spectrum in one embodiment of the present invention.

[0034] Figure 2 Schematic diagram of the network structure of a stacked denoising autoencoder in one embodiment of the present invention.

[0035] Figure 3 FIG. 4 is a schematic diagram of a process of acquiring a complete denoised gamma energy spectrum according to an embodiment of the present invention.

[0036] Figure 4 FIG. 1 is a schematic diagram of noise reduction results of different noise reduction methods in an embodiment of the present invention. DETAILED DESCRIPTION

[0037] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the embodiments and the accompanying drawings. Here, the illustrative embodiments of the present invention and their descriptions are used to explain the present invention, but are not intended to limit the present invention.

[0038] It should also be noted that, in order to avoid obscuring the present invention due to unnecessary details, only structures and / or processing steps closely related to the solutions according to the present invention are shown in the accompanying drawings, while other details that are not closely related to the present invention are omitted.

[0039] It should be emphasized that the term “include / comprises” when used herein refers to the presence of features, elements, steps or components, but does not exclude the presence or addition of one or more other features, elements, steps or components.

[0040] Hereinafter, embodiments of the present invention will be described with reference to the accompanying drawings. In the accompanying drawings, the same reference numerals represent the same or similar components, or the same or similar steps.

[0041] The gamma energy spectrum is obtained by statistically calculating the peak data of the gamma-ray pulse, and noise is usually introduced in the process of obtaining the gamma energy spectrum. Traditional denoising methods are generally based on mathematical analysis, such as sliding average, wavelet, and centroid method. Therefore, the overall analysis of the complete energy spectrum is more important. For example, the sliding average method needs to determine the expected value of a certain data point after denoising based on the values ​​of the previous and next data points. In addition, although the traditional gamma energy spectrum denoising method is easy to understand and operate, it is easily affected by external factors and requires the operator to have certain analysis experience, which also makes the traditional denoising method less adaptive.

[0042] Deep learning technology aims to establish a neural network mechanism that simulates the human brain for analysis and learning. It uses a deep nonlinear network structure and its powerful ability to mine the deep essential features of a data set to approximate complex functions. Convolutional neural network (CNN) is one of the representative algorithms in deep learning technology. It can achieve feature extraction and dimensionality reduction of data through convolution calculation. Considering that neural networks have stronger feature extraction capabilities for shorter input signals and have better learning effects, an embodiment of the present invention provides a gamma spectrum intelligent denoising method based on data segmentation and deep learning. This method overcomes the problems of cumbersome operation, poor effect, and long time in the prior art, and improves the efficiency of gamma spectrum denoising.

[0043] In the present invention, unless otherwise specified, a gamma spectrum segment represents a noisy signal, and refers to a gamma spectrum segment before noise reduction.

[0044] Figure 1 FIG. 1 is a flow chart of a method for intelligent noise reduction of gamma spectrum according to an embodiment of the present invention. Figure 1 The method shown may specifically include steps S110 to S130.

[0045] Step S110: dividing the acquired gamma energy spectrum (or the gamma energy spectrum containing noise) into a plurality of gamma energy spectrum segments of a first length, and adjacent gamma energy spectrum segments have gamma energy spectrum overlapping segments of a second length.

[0046] In some embodiments of the present invention, the first length is 64, 128 or 256 unit lengths, and the second length is 3 / 4 of the first length.

[0047] Traditional deep learning denoising methods usually input the entire gamma energy spectrum into a neural network to achieve denoising, which has a certain denoising performance for input signals of shorter length. However, since the noise on each data point in the entire gamma energy spectrum is independent, when the signal length is long, it is difficult for the neural network to learn the characteristics of all data points, which may result in the failure to completely remove the noise of the noisy energy spectrum, or even cause it to deform significantly, resulting in poor denoising performance. Therefore, considering that the length of the gamma energy spectrum is usually long and the noise on each data point is independent of each other, the complete gamma energy spectrum can be evenly divided into multiple gamma energy spectrum segments based on the idea of ​​data segmentation, and the gamma energy spectrum segments can be used instead of the complete gamma energy spectrum as the input of the neural network.

[0048] After denoising the gamma spectrum fragments, it is necessary to combine all the denoised gamma spectrum fragments into a complete denoised gamma spectrum. However, due to the poor learning ability of the neural network at both ends of the gamma spectrum fragments, it is difficult to achieve a good denoising effect for the data points at both ends of the gamma spectrum fragments, which results in a large difference in the values ​​of the data points at the same position at the fragment connection (i.e., the overlapping part of the gamma spectrum) after denoising. If the denoised gamma spectrum fragments are simply combined into a complete gamma spectrum, a large gap may appear at the connection of the gamma spectrum fragments. To solve this problem, it is possible to consider using a sliding window segmentation method to divide the gamma spectrum into multiple gamma spectrum fragments. More specifically, by setting a sliding window with a first length and selecting different starting data points to segment the gamma spectrum, the stride can be set to 1 / 4 of the first length.

[0049] Furthermore, in the process of denoising the gamma spectrum, the gamma spectrum can be evenly divided into a plurality of gamma spectrum segments of a first length, and adjacent gamma spectrum segments overlap gamma spectrum segments of a second length. The address length of the gamma spectrum is generally 128, 256, 512, 1024, 2048, etc. To facilitate segmentation of gamma spectrum with different address lengths, the first length can be 64, 128 or 256 address lengths; the gamma spectrum segment of the second length is the overlapped portion of adjacent gamma spectrum segments, and the second length can be 3 / 4 of the first length, i.e., 48, 96 or 192 address lengths (the address is the horizontal coordinate of the gamma spectrum).

[0050] As an example, the second length is smaller than the first length, but the track length of the second length can be changed and is not necessarily 3 / 4 of the first length, but can also be 4 / 5 of the first length, etc. The present invention is not limited thereto.

[0051] In some embodiments of the present invention, before denoising the gamma spectrum segment of the first length based on the pre-trained convolutional neural network-stacked denoising autoencoder, the method further includes:

[0052] By using linear normalization, the values ​​of the data points in the gamma spectrum are mapped to within (0,1), where the value of the data point refers to the value of the ordinate of the gamma spectrum segment, that is, the number of pulses.

[0053] More specifically, since the characteristics of the gamma energy spectrum fragments are significantly different from the original complete gamma energy spectrum (such as the difference between the maximum and minimum values. The maximum value of the complete gamma energy spectrum is generally near the 0 channel address, and the minimum value is generally near the end channel address. The difference between the maximum and minimum values ​​represents the count difference of the entire gamma energy spectrum; while the differences between the gamma energy spectrum fragments are large, the positions of the maximum and minimum values ​​cannot be determined, the fragment may be on the rising edge of the spectrum peak, or it may cover overlapping peaks, and the maximum and minimum values ​​of the gamma energy spectrum fragment cannot represent the count difference of the entire gamma energy spectrum), the values ​​of the data points of the gamma energy spectrum fragments need to be normalized before inputting into the neural network, so as to use the gradient descent method to find the optimal solution during the training process.

[0054] Furthermore, before the gamma energy spectrum fragment is output from the neural network, the input of the neural network (i.e., the gamma energy spectrum fragment) needs to be normalized; and after the gamma energy spectrum fragment is output from the neural network, the output of the neural network needs to be denormalized (i.e., the inverse process of linear normalization) to obtain a denoised gamma energy spectrum fragment.

[0055] Step S120: Based on the pre-trained convolutional neural network-stacked denoising autoencoder, denoise multiple gamma energy spectrum segments of the first length respectively to obtain multiple denoised gamma energy spectrum segments; wherein the convolutional neural network-stacked denoising autoencoder is a deep neural network composed of a convolutional neural network and a stacked denoising autoencoder, and the output of the convolutional neural network is used as the input of the stacked denoising autoencoder; the convolutional neural network includes an input layer, a backbone network composed of alternating convolutional layers and pooling layers, and a fully connected layer; the stacked denoising autoencoder is a fully connected neural network composed of stacked autoencoders of multiple fully connected layers, and the hidden layer of the previous autoencoder is used as the input of the next autoencoder.

[0056] More specifically, multiple gamma spectrum segments are input into a pre-trained convolutional neural network-stacked denoising autoencoder to obtain multiple corresponding denoised gamma spectrum segments. Since the convolutional neural network-stacked denoising autoencoder is a deep neural network composed of a convolutional neural network and multiple stacked autoencoders, the denoising process of the gamma spectrum segment is as follows: the gamma spectrum segment is input into the convolutional neural network, and the output of the fully connected layer of the convolutional neural network is input into the stacked denoising autoencoder through the input layer of the convolutional neural network, the backbone network composed of alternating convolutional layers and pooling layers, and the fully connected layer, and finally the denoised gamma spectrum segment is obtained from the output of the stacked denoising autoencoder. Relative to the initial noisy gamma spectrum segment, the value (vertical coordinate value) of the data point of the denoised gamma spectrum segment will change during the denoising process, while the horizontal coordinate remains unchanged.

[0057] In some embodiments of the present invention, the pre-trained convolutional neural network-stacked denoising autoencoder is obtained by:

[0058] Noise is added to the noise-free gamma energy spectrum segment to generate a noisy gamma energy spectrum segment, the noisy gamma energy spectrum segment is input into a convolutional neural network, and the first gamma energy spectrum segment output by the convolutional neural network is used as the input of the stacked denoising autoencoder, the stacked denoising autoencoder outputs a second gamma energy spectrum segment, the loss function of the second gamma energy spectrum segment and the noise-free gamma energy spectrum segment is calculated, and the network parameters are tuned based on the calculated loss function to complete a round of network training;

[0059] When the number of training times reaches the set number or the loss function calculated by the noise-free gamma spectrum segment and the second gamma spectrum segment is less than e -6 In this case, a pre-trained convolutional neural network - stacked denoising autoencoder is obtained; wherein the network parameters include the weights of neurons and the biases of neurons, and the calculated loss function is the root mean square error of the values ​​of the data points of the noise-free gamma energy spectrum fragment and the second gamma energy spectrum fragment.

[0060] As an example, the convolutional neural network and the stacked denoising autoencoder are trained together as a whole, not separately.

[0061] In some embodiments of the present invention, the backbone network includes 5 convolutional layers and 5 pooling layers, and the convolutional layers and the pooling layers are alternating with each other; the stacked denoising autoencoder includes 3 stacked autoencoders.

[0062] As an example, the network structure of CNN is shown in Table 1, including an input layer, a backbone network consisting of alternating convolutional layers and pooling layers, and a fully connected layer. The network structure of CNN can be divided into two parts. One part is a backbone network consisting of alternating convolutional layers and pooling layers. The convolutional layers are used for feature extraction, and the pooling layers are used for dimensionality reduction and to prevent overfitting. The other part is a fully connected layer network, which is used to flatten the feature map obtained by the backbone network to aggregate global information and map it to the output space.

[0063] Table 1 Summary of CNN network structure

[0064]

[0065]

[0066] Furthermore, the autoencoder is a data compression algorithm in deep learning technology, which has suitable practical applications in many fields such as speech recognition and image restoration. The autoencoder is a typical neural network with a large number of neurons on both sides and a small number of neurons in the middle. It is a fully connected neural network with a medium narrow edge width. On the basis of the autoencoder, adding noise to the input layer of the network can form corrupted data, thereby forming a denoising autoencoder. The denoising autoencoder can learn the statistical difference between the noise-free gamma spectrum segment and the second gamma spectrum segment (i.e., the output signal of the denoising autoencoder) (such as the loss function calculated by the noise-free gamma spectrum segment and the second gamma spectrum segment). Therefore, the denoising autoencoder can be regarded as a function that projects the first gamma spectrum segment into a noise-free gamma spectrum segment.

[0067] Multiple denoising autoencoders can be stacked to form a stacked denoising autoencoder (SDAE), and the hidden layer of the previous denoising autoencoder can be used as the input of the next denoising autoencoder, so that multiple denoising autoencoders are connected to form a SDAE. The noisy signal output by CNN (i.e., the first gamma spectrum fragment) is used as the input of SDAE for denoising.

[0068] As an example, the network structure of SDAE is as follows Figure 2 As shown in the figure, the stacked denoising autoencoder can be divided into an encoder and a decoder. It is a fully connected neural network composed of three stacked autoencoders, divided into six fully connected layers, and the encoder and decoder are composed of three fully connected layers respectively. The output of the fully connected layer of the CNN network is input into the fully connected layer 1 of the SDAE. After passing through the other five fully connected layers, the denoised gamma spectrum fragment can be output through the output layer of the overall network.

[0069] In some embodiments of the present invention, the tuning of network parameters based on the calculated loss function includes:

[0070] The convolutional neural network performs back propagation, and the stacked denoising autoencoder performs greedy training layer by layer to preliminarily adjust the network parameters;

[0071] The neuron weights obtained through layer-by-layer greedy training are used as the initial neuron weights for supervised training of the stacked denoising autoencoder, and the network parameters are updated again by backpropagating and gradient descent through the value of the calculated loss function in the convolutional neural network-stacked denoising autoencoder.

[0072] More specifically, CNN can adjust network parameters through back propagation, while the network training process of SDAE can be divided into two parts: unsupervised training and supervised parameter tuning. SDAE is trained layer by layer through unsupervised learning, and the network parameters of each autoencoder are adjusted according to the working principle of the denoising autoencoder (the network parameters include the bias and weights of the neurons in the fully connected network layer). In addition, the network weights of SDAE can be fine-tuned through supervised learning, and the weights obtained by the autoencoder through unsupervised training are used as the initial weights of the network for supervised training. Then, the back propagation algorithm and batch gradient descent algorithm are used to update the network parameters through supervised learning, reduce the loss function and continue the next training.

[0073] As an example, since the training process is to adjust the network parameters of CNN-SDAE, the signal output by the untrained convolutional neural network-stacked denoising autoencoder can only be a signal that has learned local features.

[0074] The gamma spectrum is segmented to obtain gamma spectrum fragments, and the gamma spectrum fragments are denoised by a pre-trained convolutional neural network-stacked denoising autoencoder (CNN-SDAE) to obtain denoised gamma spectrum fragments, and the process of synthesizing a complete denoised gamma spectrum is as follows: Figure 3 As shown, including:

[0075] The complete noisy gamma spectrum is divided into multiple noisy spectrum segments of the first length (there are overlapping segments of the second length between adjacent noisy spectrum segments), and these noisy spectrum segments are input into the CNN-SDAE network for denoising, and multiple denoised spectrum segments can be output accordingly, and finally a complete denoised gamma spectrum is obtained through synthesis. The CNN-SDAE network can be divided into a convolutional feature extraction network and a stacked denoising autoencoder, wherein the convolutional feature extraction network includes a backbone network composed of input layers, convolutional layers and pooling layers alternately, and a fully connected layer; the stacked denoising autoencoder can be divided into an encoder and a decoder, which is a fully connected neural network formed by connecting multiple denoising autoencoders. The noisy signal in the CNN-SDAE network is input into the convolutional feature extraction network, and the output of the convolutional feature extraction network can be used as the input of the stacked denoising autoencoder, and the stacked denoising autoencoder outputs a denoised signal.

[0076] Step S130: weighted average the values ​​of the data points at the same position in the overlapping parts of the denoised gamma spectrum segments, and integrate the data points of each denoised gamma spectrum segment obtained after weighted averaging (the integrated denoised gamma spectrum data points include the data points of the overlapping parts obtained after weighted averaging and the data points of the non-overlapping parts that have not been subjected to weighted averaging) to obtain a complete denoised gamma spectrum. Alternatively, weighted average the values ​​of the data points obtained by denoising the same data point of the gamma spectrum segments in all denoised gamma spectrum segments, and integrate the data points of each denoised gamma spectrum segment obtained after weighted averaging to obtain a complete denoised gamma spectrum.

[0077] The data points at the same position in the present invention refer to data points with the same horizontal coordinate (channel address) (the horizontal coordinate of the gamma spectrum segment will not change before and after noise reduction).

[0078] As an example, the gamma energy spectrum may be divided into a plurality of non-overlapping continuous gamma energy spectrum segments or a plurality of gamma energy spectrum segments with overlapping segments:

[0079] When it is divided into multiple non-overlapping continuous gamma spectrum segments, a simple method of merging the gamma spectrum segments is adopted, but this integration method easily leads to poor effect at the segment connection;

[0080] When it is divided into multiple gamma energy spectrum segments with overlapping segments, due to the existence of overlapping segments, the denoised gamma energy spectrum segments cannot be simply integrated into a complete denoised gamma energy spectrum. It is necessary to perform weighted averaging on the values ​​of the data points of the overlapping segments in the denoised gamma energy spectrum segments based on the same data point of the gamma energy spectrum segments to obtain a unique data point value, thereby integrating the data points of each denoised gamma energy spectrum segment to obtain a complete denoised gamma energy spectrum.

[0081] In some embodiments of the present invention, weighted averaging of the values ​​of data points at the same position in the overlapping portion of the denoised gamma spectrum segments comprises:

[0082] Assigning weights to the values ​​of the respective data points based on the number of times each data point in the overlapping portion of the gamma spectrum segment is denoised; wherein the assigned weights are the inverse of the number of occurrences;

[0083] The values ​​of the data points obtained by denoising the same data point of the gamma energy spectrum segments in the overlapping parts of all denoised gamma energy spectrum segments are weighted averaged (or, the values ​​of the data points at the same position in the overlapping parts (i.e., the connecting parts) of adjacent denoised gamma energy spectrum segments are weighted averaged) to obtain a unique value.

[0084] As an example, when the second length is ¾ of the first length, the minimum number of noise reductions for a data point is 1, and the maximum number of noise reductions is 4. The number of noise reductions is determined by the track address of the data point and the length of the overlapped segment.

[0085] Preferably, the values ​​of the data points at the same position in the overlapping part of the denoised gamma energy spectrum segment can be weighted averaged (the minimum denoising times of the data points in the overlapping part is 2, and the maximum denoising times is 4, so the weights assigned to the data points are 1 / 2, 1 / 3 or 1 / 4, and the data points in the non-overlapping part are unique values ​​after denoising, and no weighted averaging is required), or all the data points in the denoised gamma energy spectrum segment (the data points for weighted averaging must be the data points at the same position) can be weighted averaged (the minimum denoising times of all data points is 1, and the maximum denoising times is 4, so the weights assigned to the data points are 1, 1 / 2, 1 / 3 or 1 / 4, and the values ​​of the data points obtained by denoising in the non-overlapping part are weighted 1).

[0086] As an example, the number of pulses (the ordinate of the gamma spectrum) of the same channel address (the abscissa of the gamma spectrum) in the overlapped part of the de-noised gamma spectrum segment can be weighted averaged to obtain the number of unique pulses at the channel address. After integrating the data points of each de-noised gamma spectrum segment (including the data points of the overlapped part and the data points of the non-overlapped part), the complete de-noised gamma spectrum can be obtained. For example, when the first length is 128 channels and the second length is 96, the data points corresponding to the 100th channel are in the denoised gamma spectrum fragments within the channel address ranges of 1-128 (assuming the value of the data point after denoising is 9), 33-160 (assuming the value of the data point after denoising is 7), 65-192 (assuming the value of the data point after denoising is 10) and 97-224 (assuming the value of the data point after denoising is 11). The values ​​of these four denoised data points can be given a weight of 0.25, and the weighted average is performed to obtain a data point value of 9.25. Therefore, in the complete denoised gamma spectrum, the value of the data point corresponding to the 100th channel is 9.25.

[0087] In some embodiments of the present invention, after step S130, the gamma spectrum intelligent denoising method further includes step S140: evaluating the denoising performance based on the roughness, deformation and denoising time.

[0088] Among them, the deformation degree of the complete denoised gamma spectrum is the average value of the sum of the deformation degrees of each characteristic peak in the denoised gamma spectrum, and the deformation degree formula of a single characteristic peak is:

[0089]

[0090] Among them, D i is the deformation degree of the i-th characteristic peak, H i1 is the peak height of the characteristic peak after noise reduction, H i0 is the peak height of the characteristic peak before noise reduction, W i1 is the peak height of the characteristic peak after noise reduction, W i0 is the peak height of the characteristic peak before noise reduction.

[0091] More specifically, in order to compare the gamma spectrum intelligent denoising method proposed in the present invention with the traditional denoising method, three indicators, namely, roughness, deformation and denoising time, can be used to evaluate the denoising performance.

[0092] (1) The roughness S refers to the roughness of the data points before and after noise reduction, which describes the effectiveness of noise reduction. Its formula can be expressed as:

[0093]

[0094] Where x(n) represents the count of the nth channel of the gamma spectrum after noise reduction, x m(n) is the count of the nth channel of the gamma spectrum before noise reduction, and N is the total number of channels of the gamma spectrum. The lower the roughness, the better the noise reduction performance.

[0095] (2) Deformation refers to the degree of deformation before and after noise reduction, which describes the reliability of noise reduction. The deformation degree D of a single spectral peak i The formula can be expressed as:

[0096]

[0097] The deformation degree D of the complete energy spectrum ave It can be expressed as:

[0098]

[0099] Where Q is the number of characteristic peaks in the gamma spectrum. The smaller the deformation, the better the noise reduction performance.

[0100] (3) The noise reduction time is the time required to complete the noise reduction using different noise reduction methods on the experimental host. The noise reduction time mentioned in the present invention only includes the time used for data processing, and does not include the time required for data import and export. Gamma spectrum noise reduction is a sub-process of gamma spectrum analysis. The shorter the noise reduction time, the higher the efficiency of gamma spectrum analysis in practical applications.

[0101] In a specific embodiment of the present invention, the gamma spectrum intelligent noise reduction method specifically includes the following steps:

[0102] 1. Get the pre-trained CNN-SDAE network:

[0103] The complete gamma spectrum of 1024 channels is divided into 8 gamma spectrum segments of 128 channels. These gamma spectrum segments are normalized and then trained through the CNN-SDAE network. After multiple trainings (assuming that the calculated loss function is less than e -6 , indicating that the training is completed), and the trained CNN-SDAE network model is obtained.

[0104] Among them, the dimensions of the CNN-SDAE network can be set as follows: the input of CNN is 128, the output is 128; the input of SDAE is 128, the output is 128, and the number of neurons in the first hidden layer of SDAE is 128.

[0105] The number of training iterations of the CNN-SDAE network is set to 30,000, and the loss function threshold is set to e -6 .

[0106] As an example, during the training process, the starting data point of the gamma spectrum segment can be randomly selected (for example, after selecting the gamma spectrum segment of 128 addresses of 67-194, the gamma spectrum segment of 128 addresses of 195-322 can be selected, or the gamma spectrum segment of 128 addresses of 200-327 can be selected, but the length of the gamma spectrum segment must be consistent), and the advantage of evenly segmenting the complete gamma spectrum is that it can ensure that the features of each data point in the complete gamma spectrum are learned by the CNN-SDAE network. As an example, multiple different noisy gamma spectra can be selected for training.

[0107] 2. Denoising of gamma spectrum fragments based on pre-trained CNN-SDAE network

[0108] When denoising the complete gamma spectrum with a length of 1024 addresses, a sliding window with a length of 128 addresses can be set, and different starting data points can be selected for segmentation with a step of 32 address lengths, and 29 gamma spectrum segments with address ranges of 1-128, 33-160, 65-192, etc. can be obtained. The results of segmenting the gamma spectrum using a sliding window are shown in Table 2. i Indicates the i-th channel address of the gamma spectrum. As an example, in the actual denoising process, the complete gamma spectrum needs to be segmented evenly, and the starting point of the gamma spectrum segment cannot be randomly selected.

[0109] Table 2 Summary of the results of gamma spectrum segmentation using sliding window

[0110]

[0111] After denoising by the CNN-SDAE network, these gamma spectrum fragments are weighted averaged according to the repeated data points, and finally a complete gamma spectrum after denoising is obtained.

[0112] 3. Noise reduction performance evaluation

[0113] The denoising results of different denoising methods are shown in Figure 2. Figure 4 By comparing the traditional gamma spectrum denoising method with the denoising method of the present invention, it can be seen that the CNN-SDAE denoising method of the present invention is generally superior to the existing empirical mode decomposition (EMD) denoising method and wavelet iterative transformation method.

[0114] Depend on Figure 4It can be seen that the segmented enhanced CNN-SDAE denoising method proposed in the present invention can remove noise as much as possible while retaining the characteristics of the gamma spectrum data. Compared with the EMD denoising method, the CNN-SDAE denoising method has lower unsmoothness and better denoising ability. Compared with the wavelet iterative transform method, the CNN-SDA denoising method has a smaller deformation degree and can better retain data features. In addition, the CNN-SDA denoising method also has less denoising time, and can complete the denoising of the spectrum more quickly.

[0115] The gamma spectrum intelligent denoising method proposed in the present invention divides the gamma spectrum into multiple gamma spectrum segments, and uses the CNN-SDAE neural network to denoise the gamma spectrum segments, thereby merging the denoised gamma spectrum segments into a complete denoised gamma spectrum. The method has the following advantages:

[0116] 1. Dividing the gamma spectrum into multiple gamma spectrum segments and using the gamma spectrum segments as the input of the neural network not only enables the neural network to fully learn the characteristics of each data point, but also expands the amount of data in the data set.

[0117] 2. This method has good noise reduction performance for most noisy signals, while traditional methods are difficult to remove weak noise (for example, the empirical mode decomposition method still retains a certain amount of noise).

[0118] 3. This method is simple to operate, takes a short time to denoise, and has strong adaptive ability, which can significantly improve the denoising efficiency of the gamma energy spectrum; and the operator does not need to intervene manually during the denoising process, making the operation more convenient.

[0119] Corresponding to the above method, the present invention also provides a gamma spectrum intelligent noise reduction system, which includes a computer device, the computer device includes a processor and a memory, the memory stores computer instructions, the processor is used to execute the computer instructions stored in the memory, and when the computer instructions are executed by the processor, the system implements the steps of the method described above.

[0120] The embodiment of the present invention also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps of the aforementioned edge computing server deployment method are implemented. The computer-readable storage medium can be a tangible storage medium, such as a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a floppy disk, a hard disk, a removable storage disk, a CD-ROM, or any other form of storage medium known in the technical field.

[0121] The segmented denoising method proposed in the present invention is not only applicable to gamma energy spectra, but also other neutron energy spectra can be processed by the CNN-SDAE denoising method proposed in the present invention.

[0122] It should be understood by those skilled in the art that the exemplary components, systems and methods described in conjunction with the embodiments disclosed herein can be implemented in hardware, software or a combination of the two. Whether it is performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present invention are programs or code segments used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link via a data signal carried in a carrier.

[0123] It should be clear that the present invention is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present invention is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present invention.

[0124] In the present invention, features described and / or illustrated for one embodiment may be used in the same or similar manner in one or more other embodiments, and / or combined with features of other embodiments or replace features of other embodiments.

[0125] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the embodiments of the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A gamma spectrum intelligent noise reduction method, characterized in that: The method comprises the following steps: Dividing the acquired gamma energy spectrum into a plurality of gamma energy spectrum segments of a first length, wherein adjacent gamma energy spectrum segments have overlapping portions of a second length; Based on the pre-trained convolutional neural network-stacked denoising autoencoder, multiple gamma energy spectrum segments of the first length are denoised respectively to obtain multiple denoised gamma energy spectrum segments; wherein the convolutional neural network-stacked denoising autoencoder is a deep neural network composed of a convolutional neural network and a stacked denoising autoencoder, and the output of the convolutional neural network is used as the input of the stacked denoising autoencoder; the convolutional neural network includes an input layer, a backbone network composed of alternating convolutional layers and pooling layers, and a fully connected layer; the stacked denoising autoencoder is a fully connected neural network composed of 3 stacked autoencoders, and the hidden layer of the previous autoencoder is used as the input of the current autoencoder; wherein the backbone network includes 5 convolutional layers and 5 pooling layers; The values ​​of the data points at the same position in the overlapping parts of the denoised gamma energy spectrum fragments are weighted averaged, and the data points of each denoised gamma energy spectrum fragment obtained after the weighted average are integrated to obtain a complete denoised gamma energy spectrum; Among them, the pre-trained convolutional neural network-stacked denoising autoencoder is obtained by: Noise is added to a noise-free gamma energy spectrum segment to generate a noisy gamma energy spectrum segment, the noisy gamma energy spectrum segment is input into a convolutional neural network, and a first gamma energy spectrum segment output by the convolutional neural network is used as an input of a stacked denoising autoencoder, a second gamma energy spectrum segment is output by the stacked denoising autoencoder, a loss function of the second gamma energy spectrum segment and the noise-free gamma energy spectrum segment is calculated, and network parameters are tuned based on the calculated loss function to complete a round of network training; When the number of training times reaches the set number or the loss function obtained by the calculation is less than e -6 In this case, a pre-trained convolutional neural network-stacked denoising autoencoder is obtained; wherein the network parameters include weights and biases of neurons, and the calculated loss function is the root mean square error of the values ​​of the data points of the noise-free gamma energy spectrum segment and the second gamma energy spectrum segment.

2. The method according to claim 1, characterized in that: The first length is 64, 128 or 256 unit lengths, and the second length is 3 / 4 of the first length.

3. The method according to claim 1, characterized in that Before respectively denoising a plurality of gamma spectrum segments of the first length based on the pre-trained convolutional neural network-stacked denoising autoencoder, the method further includes: By using linear normalization, the values ​​of the data points in the gamma spectrum are mapped to within (0,1).

4. The method according to claim 1, characterized in that: The tuning of network parameters based on the calculated loss function includes: The convolutional neural network performs back propagation, and the stacked denoising autoencoder performs greedy training layer by layer to adjust network parameters based on the calculated loss function; The neuron weights obtained through layer-by-layer greedy training are used as the initial neuron weights for supervised training of the stacked denoising autoencoder, and the network parameters are updated by backpropagating and gradient descent through the value of the calculated loss function in the convolutional neural network-stacked denoising autoencoder.

5. The method according to claim 1, characterized in that The weighted averaging of the values ​​of the data points at the same position in the overlapping part of the noise-reduced gamma spectrum fragments includes: Assigning a weight to the value of each data point based on the number of times each data point in the overlapping part of the gamma spectrum segment is denoised; wherein the assigned weight is the inverse of the number of denoising times; The values ​​of the data points at the same position in the overlapping part of the denoised gamma spectrum fragments are weighted averaged to obtain a unique value.

6. The method according to claim 1, characterized in that The method further includes: evaluating the noise reduction performance based on the roughness, deformation and noise reduction time; Among them, the deformation degree of the complete denoised gamma energy spectrum is the average deformation degree of the characteristic peak of the denoised gamma energy spectrum, and the deformation degree formula of a single characteristic peak is: Among them, D i is the deformation degree of the i-th characteristic peak, H i1 is the peak height of the characteristic peak after noise reduction, H i0 is the peak height of the characteristic peak before noise reduction, W i1 is the peak height of the characteristic peak after noise reduction, W i0 is the peak height of the characteristic peak before noise reduction.

7. A gamma spectrum intelligent noise reduction system, comprising a processor and a memory, characterized in that: The memory stores computer instructions, and the processor is used to execute the computer instructions stored in the memory. When the computer instructions are executed by the processor, the system implements the steps of the method as claimed in any one of claims 1 to 6.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Discrete cosine neural-network fuzzy noise reduction method for nuclear detection data

    CN103176219A

  • Hyperspectral image deep noise reduction method and system based on two-stage learning framework

    CN114677300A