Nuclide spectrum full spectrum recognition method, system and medium based on recurrent neural network

Through the LSTM-KAN model of the recurrent neural network, the energy value and track location information of the nuclide spectrum data are fused, which solves the problems of difficulty in distinguishing nuclide peaks and weak anti-interference ability in traditional methods, and achieves high-performance detection in complex environments. Accurate multinuclide identification and optimization of computational resources.

CN118427693BActive Publication Date: 2024-09-10CHENGDU MTS TECH
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410888574.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-04
Publication Date
2024-09-10
Estimated Expiration
2044-07-04

AI Technical Summary

Technical Problem

Traditional nuclide spectrum identification methods are difficult to distinguish overlapping nuclide peaks in complex samples, and suffer from environmental and instrument noise interference and poor identification accuracy at low radioactivity levels. Existing machine learning methods have weak anti-interference capabilities and occupy a large amount of computing resources.

Method used

The LSTM-KAN model based on the recurrent neural network is used to extract the time series characteristics of the nuclide spectrum data through the LSTM layer and combine it with the KAN layer for nonlinear transformation to fuse the energy value and road address location information to achieve nuclide identification.

Benefits of technology

It improves the accuracy and anti-interference ability of nuclide identification, reduces the occupation of computing resources, and realizes full-spectrum identification of multi-nuclides in complex environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118427693B
    Figure CN118427693B
Patent Text Reader

Abstract

The present invention discloses a method, system and medium for full spectrum identification of nuclide spectrum based on recurrent neural network, which belongs to the technical field of nuclide spectrum identification. The method comprises the following steps: S1: obtaining the first nuclide spectrum data after deducting the background radiation; S2: dividing the first nuclide spectrum data into multiple segments, retaining the channel address position corresponding to each energy value in the first nuclide spectrum data to obtain the second nuclide spectrum data; S3: passing the second nuclide spectrum data into the trained LSTM-KAN model, first extracting the data features of the second nuclide spectrum data through the LTSM layer, and then performing nuclide identification through the KAN layer; S4: outputting the identification result of the second nuclide spectrum data to determine the nuclide type of the first nuclide spectrum data. By segmenting a complete nuclide spectrum, each segment is identified once, thereby realizing multi-nuclide identification of the full spectrum. The energy value and energy position are fused, which greatly improves the nuclide identification effect in the real environment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of nuclide spectrum recognition, and in particular to a method, system and medium for full spectrum recognition of nuclide spectrum based on recurrent neural network. Background Art

[0002] The traditional method of nuclide spectrum identification is to use a gamma detector (such as a NaI crystal detector) to measure the gamma rays emitted by the detected material. The energy distribution of the gamma rays forms the so-called gamma energy spectrum, and then the collected energy spectrum is analyzed to find and measure the peak positions and peak areas in the spectrum. These peaks correspond to the characteristic energy gamma rays released by a specific nuclide during radioactive decay, and the identified peaks are compared with the energy spectrum lines in the database of known nuclides. The database contains the energy values ​​of gamma rays that various nuclides may release when decaying. If the position of a peak matches the characteristic energy line of a nuclide in the database, the nuclide becomes a candidate for identification. In complex samples, the characteristic gamma-ray energies of different nuclides may overlap, making it difficult to distinguish the spectral lines. Especially when the energy resolution is limited, overlapping peaks may lead to misidentification or missed identification. In addition, the radiation background noise of the environment and the instrument itself, as well as the interference of non-radioactive components in the sample, may affect the clarity of the spectrum and reduce the accuracy of identification. At low radioactivity levels, the characteristic peaks may be so weak that they are difficult to distinguish from the background. At this time, the identification algorithm based on the nuclide library may be ineffective due to the low signal-to-noise ratio.

[0003] In order to make up for such defects, many scholars have proposed the use of machine learning methods to learn and identify nuclide spectrum data. However, among the existing machine learning methods, most of them are feature learning of one-dimensional data after background deduction, or data processing such as wavelet packet transform, discrete cosine transform, discrete Fourier transform, etc. to make the spectrum features smoother so that the machine learning neural network model is easier to fit. However, this method is limited by the quality and diversity of training data, and ignores the importance of the energy peak location to nuclide identification. It has weak anti-interference ability and consumes a lot of computing resources, which makes it difficult to work in real time. Summary of the invention

[0004] The purpose of the present invention is to overcome the deficiencies of the prior art and to provide a method, system and medium for full spectrum identification of nuclides based on a recurrent neural network.

[0005] The object of the present invention is achieved through the following technical solutions: The first aspect of the present invention provides: a method for full spectrum identification of nuclides based on a recurrent neural network, comprising the following steps:

[0006] S1: Obtain the first nuclide spectrum data after deducting background radiation;

[0007] S2: Divide the first nuclide spectrum data into multiple segments, retain the channel address position corresponding to each energy value in the first nuclide spectrum data to obtain second nuclide spectrum data;

[0008] S3: The second nuclide spectrum data is passed into the trained LSTM-KAN model, the data features of the second nuclide spectrum data are first extracted through the LTSM layer, and then the nuclide is identified through the KAN layer;

[0009] S4: Output the identification result of the second nuclide spectrum data to determine the nuclide type of the first nuclide spectrum data.

[0010] Preferably, the LTSM layer extracts the time series features of the second nuclide spectrum data, and maintains the hidden state to capture the long-term dependency of the second nuclide spectrum data to obtain data features; then the KAN layer performs nonlinear transformation on the data features to complete nuclide identification and classified output.

[0011] Preferably, the second nuclide spectrum data is n Contains energy value E The location of the channel corresponding to the energy value P Two-dimensional data , the second nuclide spectrum data is flattened before entering the LTSM layer Flatten to one-dimensional data .

[0012] Preferably, the KAN layer comprises an input layer, a hidden layer and an output layer, the output layer has multiple dimensions, and a spline activation function is set for each dimension.

[0013] Preferably, the training data for training the LSTM-KAN model is obtained by collecting various radiation sources through a nuclide spectrometer, and the collection distance and measurement time of each piece of training data are different.

[0014] The second aspect of the present invention provides: a nuclide spectrum full spectrum recognition system based on a recurrent neural network, which is used to implement any of the above-mentioned nuclide spectrum full spectrum recognition methods based on a recurrent neural network, comprising:

[0015] A data acquisition module, used to obtain the first nuclide spectrum data after deducting the background radiation;

[0016] A data processing module, used for dividing the first nuclide spectrum data into multiple segments, retaining the track address position corresponding to each energy value in the first nuclide spectrum data to obtain the second nuclide spectrum data;

[0017] The nuclide identification module is used to pass the second nuclide spectrum data into the trained LSTM-KAN model, first extract the data features of the second nuclide spectrum data through the LTSM layer, and then perform nuclide identification through the KAN layer;

[0018] The nuclide type determination module is used to output the identification result of the second nuclide spectrum data to determine the nuclide type of the first nuclide spectrum data.

[0019] The third aspect of the present invention provides: a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are loaded and executed by a processor, any of the above-mentioned full-spectrum nuclide spectrum identification methods based on recurrent neural networks is implemented.

[0020] The beneficial effects of the present invention are:

[0021] 1) Using a deep learning network, a complete 1024-channel nuclide spectrum is segmented and entered into the network model in sequence, and each segment is identified once, thereby achieving full-spectrum multi-nuclide identification.

[0022] 2) The energy value and energy position in the nuclide spectrum of the data were fused, which greatly improved the nuclide identification effect in the real environment.

[0023] 3) We built an LSTM-KAN model for nuclide spectrum identification. This model combines LSTM's excellent ability to capture long sequence data features, replaces the MLP in traditional neural networks with KAN, and evolves the fixed activation function inside neurons in traditional neural networks into a highly flexible activation function on the edge of neuron nodes that can be learned during training, greatly improving the generalization ability of the model. Experiments have shown that the effect of using one layer of KAN is comparable to that of two to three layers of MLP. Compared with the original MLP model, the number of KAN parameters is significantly reduced when achieving the same effect, which can reduce the occupation of computing resources. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] Figure 1 This is a flow chart of the full spectrum identification method of nuclide spectrum based on recurrent neural network;

[0025] Figure 2 This is a working principle diagram of the full spectrum identification method of nuclide spectrum based on recurrent neural network;

[0026] Figure 3 This is the working principle diagram of MLP;

[0027] Figure 4 This is the working principle diagram of KAN;

[0028] Figure 5 This is the workflow diagram of the LSTM-KAN model;

[0029] Figure 6 This is a schematic diagram of the overall test accuracy of the LSTM-KAN model;

[0030] Figure 7Schematic diagram of LSTM-KAN model training loss;

[0031] Figure 8 This is a schematic diagram of the F1 score of the LSTM-KAN model;

[0032] Fig. 9 This is a schematic diagram of the accuracy of the LSTM-KAN model;

[0033] Fig.10 Schematic diagram of the recall rate of the LSTM-KAN model. DETAILED DESCRIPTION

[0034] The technical solution of the present invention will be clearly and completely described below in conjunction with the embodiments. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0035] See also Figure 1-Figure 10 The first aspect of the present invention provides: a method for full spectrum identification of nuclides based on a recurrent neural network, comprising the following steps:

[0036] S1: Obtain the first nuclide spectrum data after deducting background radiation;

[0037] S2: Divide the first nuclide spectrum data into multiple segments, retain the channel address position corresponding to each energy value in the first nuclide spectrum data to obtain second nuclide spectrum data;

[0038] S3: The second nuclide spectrum data is passed into the trained LSTM-KAN model, the data features of the second nuclide spectrum data are first extracted through the LTSM layer, and then the nuclide is identified through the KAN layer;

[0039] S4: Output the identification result of the second nuclide spectrum data to determine the nuclide type of the first nuclide spectrum data.

[0040] In this embodiment, because the activity and intensity of the radioactive source are different during measurement, the energy peaks formed are also different, which is easy to cause interference to the model fitting and real-time measurement. Therefore, for the data learned or received by the model, the present invention pays more attention to the position information of the nuclide energy peak, so the data accepted by the model is two-dimensional data, that is, ,in E is the energy value, P The energy value corresponds to the channel address position. In order to realize the identification of multiple nuclides, the present invention divides a nuclide, such as a 1024-channel nuclide spectrum, into 20 groups. , enter the network for recognition in turn. The LSTM-KAN model constructed in the present invention is a deep learning model that combines the long short-term memory (LSTM) network and the Kolmogorov-ArnoldNetwork (KAN) layer, which is mainly used to process sequence data and perform classification tasks. LSTM is used to capture the dynamic characteristics of the data, and the KAN layer is used to replace the traditional support vector machine (MLP), and a highly flexible nonlinear activation function is introduced to adapt to complex decision boundaries and enhance the expression and generalization capabilities of the model. LSTM (Long Short-Term Memory) is a special RNN (recurrent neural network). Compared with traditional RNN, LSTM is more suitable for processing and predicting important events with longer intervals in time series. The traditional RNN structure can be regarded as a "loop" composed of multiple repeated neurons, each neuron accepts input information and generates output, and then the output is used as the input of the next neuron again, and then passed on in sequence. This structure can learn short-term dependencies on sequence data, but due to the gradient disappearance and gradient explosion problems, RNN is difficult to achieve good performance when processing long sequences. LSTM can effectively solve the problem of long sequences by introducing the concepts of memory cells, input gates, output gates, and forget gates. Memory cells are responsible for storing important information. The input gate determines whether to write the current input information into the memory cell, the forget gate determines whether to forget the information in the memory cell, and the output gate determines whether to use the information in the memory cell as the current output. The control of these gates can effectively capture important long-term dependencies in the sequence and solve the gradient problem.

[0041] In some embodiments, the LTSM layer extracts time series features of the second nuclide spectrum data, and maintains a hidden state to capture the long-term dependency of the second nuclide spectrum data to obtain data features; then the KAN layer performs nonlinear transformation on the data features to complete nuclide identification and classification output.

[0042] In this embodiment, the time series feature extraction of the second nuclide spectrum data is first performed through the LSTM layer. The LSTM layer maintains a hidden state to capture the long-term dependencies in the second nuclide spectrum data. Its output is the hidden state of each time step. The LSTM output of all time steps is directly passed to the KAN layer. The KAN layer then performs nonlinear transformation on these features and generates classification output.

[0043] In some embodiments, the second nuclide spectrum data is n Contains energy value E The location of the channel corresponding to the energy value P Two-dimensional data , the second nuclide spectrum data is flattened before entering the LTSM layer Flatten to one-dimensional data .

[0044] In this embodiment, the second nuclide spectrum data Flatten to one-dimensional data It is conducive to the work of the LSTM layer. Then the data flow enters the model and the nuclide classification results are obtained after calculation. The model workflow is as follows Figure 5 shown.

[0045] In some embodiments, the KAN layer includes an input layer, a hidden layer, and an output layer, wherein the output layer has multiple dimensions, and a spline activation function is set for each dimension.

[0046] MLP is the abbreviation of Multilayer Perceptron. Its principle is as follows Figure 3 As shown, it is a basic artificial neural network model. It consists of multiple neural network layers, including an input layer, a hidden layer, and an output layer. Each layer is composed of multiple neurons (or nodes), and there are connections between neurons in adjacent layers, and each connection has a weight. The working principle of MLP is to pass the input signal through multiple neural network layers, and use an activation function in each layer to perform weighted summation on the input and generate an output. In this embodiment, KAN is used instead of MLP. The LSTM-KAN model mainly consists of three parts, SplineActivation (spline activation function), KANLayer (KAN layer) and LSTM-KAN (overall model); SplineActivation is a custom activation function module, which uses a cubic polynomial spline function as an activation function. Each spline function is defined by four learnable coefficient parameters (a, b, c, d), corresponding to the polynomial By defining these coefficients as model parameters, they can be learned and optimized during training to adapt to the data. KANLayer represents a KAN layer that combines traditional linear transformations with multiple custom spline activation functions. For each dimension in the output layer, there is a separate spline activation function, allowing the model to learn complex, nonlinear decision boundaries. In the forward propagation, the linearly transformed output is split, each dimension passes through a corresponding spline activation function, and then these activated outputs are spliced ​​together to form the final output.

[0047] In some embodiments, the training data for training the LSTM-KAN model is obtained by collecting data from various radiation sources using a nuclide spectrometer, and the collection distance and measurement time of each piece of training data are different.

[0048] In this embodiment, the training data is relatively abundant, and the training data information is shown in Table 1.

[0049] Table 1 Training data information table

[0050]

[0051] Among them, the negative class represents the nuclide spectrum data without nuclide species.

[0052] After experiments, the accuracy and fit of the model are both excellent. The accuracy can reach more than 97% after 30 rounds of training. The evaluation criteria of the model are test accuracy (accuracy), training loss (train_loss), recall rate (recall), F1 score (f1_score), and precision (precision). Among them, the recall rate is the proportion of instances correctly identified as positive classes (true classes) by the model to all actual positive class instances. Among them, TP represents the number of samples that are actually positive and predicted to be positive, and FN represents the number of samples that are actually positive but predicted to be negative.

[0053] Precision indicates the proportion of samples that are actually positive among the samples predicted by the model to be positive. Among them, TP is the true positive example (the number of samples correctly predicted by the model as the positive class), and FP is the false positive example (the number of samples incorrectly predicted by the model as the positive class).

[0054] The F1 score is used to evaluate the overall performance of the model. .

[0055] like Figure 6-Figure 10 As shown, Figure 6 , 8 The horizontal axes of , 9, and 10 are the training rounds, and the vertical axes are the values ​​calculated for each round in the range [0,1]; Figure 7 The horizontal axis is the number of iterations, and the vertical axis is the loss value. The experimental data show that the deep learning neural network LSTM-KAN model constructed by the present invention has excellent performance, is suitable for full spectrum recognition of mixed nuclide spectra, and has a wide range of applications.

[0056] The second aspect of the present invention provides: a nuclide spectrum full spectrum recognition system based on a recurrent neural network, which is used to implement any of the above-mentioned nuclide spectrum full spectrum recognition methods based on a recurrent neural network, comprising:

[0057] A data acquisition module, used to obtain the first nuclide spectrum data after deducting the background radiation;

[0058] A data processing module, used for dividing the first nuclide spectrum data into multiple segments, retaining the track address position corresponding to each energy value in the first nuclide spectrum data to obtain the second nuclide spectrum data;

[0059] The nuclide identification module is used to pass the second nuclide spectrum data into the trained LSTM-KAN model, first extract the data features of the second nuclide spectrum data through the LTSM layer, and then perform nuclide identification through the KAN layer;

[0060] The nuclide type determination module is used to output the identification result of the second nuclide spectrum data to determine the nuclide type of the first nuclide spectrum data.

[0061] The third aspect of the present invention provides: a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are loaded and executed by a processor, any of the above-mentioned full-spectrum nuclide spectrum identification methods based on recurrent neural networks is implemented.

[0062] The above is only a preferred embodiment of the present invention. It should be understood that the present invention is not limited to the form disclosed herein, and should not be regarded as excluding other embodiments, but can be used in various other combinations, modifications and environments, and can be modified within the scope of the concept described herein through the above teachings or the technology or knowledge of the relevant field. The changes and modifications made by those skilled in the art shall not deviate from the spirit and scope of the present invention, and shall be within the scope of protection of the claims attached to the present invention.

Claims

1. A method for full spectrum identification of nuclides based on recurrent neural network, characterized in that: The following steps are involved: S1: Obtain the first nuclide spectrum data after deducting background radiation; S2: Divide the first nuclide spectrum data into multiple segments, retain the channel address position corresponding to each energy value in the first nuclide spectrum data to obtain second nuclide spectrum data; S3: The second nuclide spectrum data is passed into the trained LSTM-KAN model, the data features of the second nuclide spectrum data are first extracted through the LTSM layer, and then the nuclide is identified through the KAN layer; S4: Output the identification result of the second nuclide spectrum data to determine the nuclide type of the first nuclide spectrum data.

2. The method for full spectrum identification of nuclides based on recurrent neural network according to claim 1, characterized in that: The LTSM layer extracts the time series features of the second nuclide spectrum data, and maintains the hidden state to capture the long-term dependency of the second nuclide spectrum data to obtain data features; then the KAN layer performs nonlinear transformation on the data features to complete nuclide identification and classification output.

3. The method for full spectrum identification of nuclides based on recurrent neural network according to claim 1, characterized in that: The second nuclide spectrum data is n Contains energy value E The location of the channel corresponding to the energy value P Two-dimensional data , the second nuclide spectrum data is flattened before entering the LTSM layer Flatten to one-dimensional data .

4. The method for full spectrum identification of nuclides based on recurrent neural network according to claim 1, characterized in that: The KAN layer comprises an input layer, a hidden layer and an output layer, wherein the output layer has multiple dimensions, and a spline activation function is set for each dimension.

5. The method for full spectrum identification of nuclides based on recurrent neural network according to claim 1, characterized in that: The training data for training the LSTM-KAN model is obtained by collecting various radiation sources through a nuclide spectrometer, and the collection distance and measurement time of each training data are different.

6. A nuclide spectrum recognition system based on recurrent neural network, characterized in that: The method for realizing the full spectrum identification of nuclides based on a recurrent neural network as claimed in any one of claims 1 to 5 comprises: A data acquisition module, used to obtain the first nuclide spectrum data after deducting the background radiation; A data processing module, used for dividing the first nuclide spectrum data into multiple segments, retaining the track address position corresponding to each energy value in the first nuclide spectrum data to obtain the second nuclide spectrum data; The nuclide identification module is used to pass the second nuclide spectrum data into the trained LSTM-KAN model, first extract the data features of the second nuclide spectrum data through the LTSM layer, and then perform nuclide identification through the KAN layer; The nuclide type determination module is used to output the identification result of the second nuclide spectrum data to determine the nuclide type of the first nuclide spectrum data.

7. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are loaded and executed by the processor, the full spectrum identification method of nuclide spectrum based on recurrent neural network as described in any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

  • Nuclide identification method

    CN111308543A

  • Energy spectrum analysis system, energy spectrum analysis method and energy spectrum data analysis equipment

    CN111538069A

  • Nuclide identification method in complex environment

    CN117872449A

  • Nuclide identification method and apparatus

    WO2024113755A1

  • KR20210048843A