Disclosure of Invention
Aiming at the defects of the prior art, the invention provides a dose rate correction method based on an artificial neural network, which is used for training key data in an energy spectrum acquired by a detector by adopting a prediction model based on the artificial neural network so as to further realize prediction.
The invention provides a point source dose rate correction method based on an artificial neural network, which comprises the following steps: s1, acquiring corresponding dose rate values of energy spectrum data of an unmanned aerial vehicle radioactivity monitoring system at different heights, wherein the dose rate values are respectively used as input parameters and output parameters; s2, dividing part of the energy spectrum data at different heights into training data, dividing the other part into test data, constructing an artificial neural network model by using the input parameters and the output parameters in the training data, and importing the training data into the artificial neural network model for training to obtain a trained artificial neural network model; s3, respectively importing the test data into the trained artificial neural network model to obtain an ideal output result, and comparing errors between the ideal output result and the corresponding test data; and if the error is larger than or equal to the set precision expected value, repeating the steps S2 and S3, and if the error is smaller than the set precision expected value, training the debugged artificial neural network model to be a point source dose rate correction algorithm.
Further, the method for acquiring the energy spectrum of the unmanned aerial vehicle radioactivity monitoring system at different heights comprises the following steps: monte Carlo software was used to simulate the energy spectrum of the unmanned aerial vehicle radioactivity monitoring system at different heights.
Further, the method for obtaining the input parameters and the output parameters in the energy spectrum data with different heights and constructing the artificial neural network model comprises the following steps: carrying out normalization processing on the energy spectrum data at different heights; the number of main components which mainly contribute to the dose rate deposition after normalization processing is extracted as an input parameter; the air absorption dose rate of the radioactive source deposited in the air is taken as an output parameter; calculating an implicit layer by using the input parameter and the output parameter; the structure of the artificial neural network model is an input layer, an hidden layer and an output layer, and the structure of the artificial neural network model is utilized to construct the model of the artificial neural network.
Further, the method for extracting the number of main components which mainly contribute to the dose rate deposition after normalization treatment comprises the following steps: extracting data related to the air deposition dose rate from the energy spectrum data at different heights; carrying out standardization processing on the related data to obtain standardized data; calculating correlation coefficients among the standardized data, and forming a correlation coefficient matrix; calculating each characteristic value of the correlation coefficient matrix; and calculating the contribution rate and the accumulated contribution rate of each related data by using the characteristic values, wherein when the accumulated contribution rate is larger than a threshold value, the corresponding minimum characteristic value quantity is used as the main component quantity contributing mainly, namely the input parameter.
Further, the data relating to the air deposition dose rate includes: the total energy peak count, energy, single escape peak, double escape peak, annihilation peak and corresponding measurement time and height of each nuclide.
Further, the method for obtaining the standardized data by performing the standardized processing on the related data is to use the following formula:
Wherein x ij represents the j index of the i-th energy spectrum; data is shown after x ij has undergone a normalization operation; wherein the method comprises the steps of Is representative of the average value of all of the above-mentioned energy spectrum data; as the variance of the data, the data variance is represented, and s j is the standard deviation between the two data represented.
Further, the method for calculating the correlation coefficient between the standardized data uses the following formula:
Wherein r ij is the correlation coefficient between the energy spectrum data x i and x j; x i is the average value of the ith energy spectrum data; x j is the average value of the j-th energy spectrum data; n represents the number of spectrums used for calculation, and x kj represents the j index of the k energy spectrum.
Further, the expected precision value is 10 -3.
Further, the method further comprises the steps of: if the error is smaller than the expected precision value, measuring the dose rate of the same radioactive source at different heights by using an unmanned aerial vehicle radioactivity monitoring system in an actual scene, and comparing the dose rate with the actual output result to verify the quality of the artificial neural network model.
The method disclosed by the application solves the problems of long time and high cost of manpower and material resources in the dose verification work in the dose rate height correction process in the existing point source mode, can improve the efficiency and quality of dose correction, and the result is beneficial to analyzing the verification result and reduces the verification cost. By using the BPNN artificial neural network, the efficiency of the whole dose rate height correction can be effectively improved, and the integrated correction of the nuclide dose rate height correction is realized.
Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.
Detailed Description
The following detailed description of specific embodiments of the invention is provided in connection with the accompanying drawings and examples in order to provide a better understanding of the aspects of the invention and advantages thereof. However, the following description of specific embodiments and examples is for illustrative purposes only and is not intended to be limiting of the invention.
The following disclosure provides many different embodiments, or examples, for implementing different features of the invention. In order to simplify the present disclosure, components and arrangements of specific examples are described below. They are, of course, merely examples and are not intended to limit the invention. Furthermore, the present invention may repeat reference numerals and/or letters in the various examples, which are for the purpose of brevity and clarity, and which do not themselves indicate the relationship between the various embodiments and/or arrangements discussed. In addition, the present invention provides examples of various specific processes and materials, but one of ordinary skill in the art will recognize the application of other processes and/or the use of other materials.
First, the origin of BPNN (back propagation neural network algorithm) under the explanation is needed. Artificial neural networks (ARTIFICIAL NEURAL NETWORK, ANN) are a growing research hotspot in the field of artificial intelligence since the 80 s of the 20 th century. The research of artificial neural networks has been in progress in the last decade, and the Back-Propagation algorithm (Back-Propagation) has been proposed as the earliest and most commonly used multi-layer perceptron network training method, and has been used until 70 and 80 years. The back propagation artificial neural network (BPNN) using the error back propagation algorithm as a core is also widely used.
The artificial neural network (BP) model topological structure comprises an input layer, an hidden layer and an output layer, wherein neurons of the input layer are determined by the dimension of the sample attribute, the number of neurons of the output layer is determined by the sample classification number, and the hidden layer can be determined according to the actual situation. Essentially, the BP algorithm uses a gradient descent method to calculate the minimum value of an objective function by using a network error square objective function. The basic BP algorithm includes two processes, forward propagation of the signal and backward propagation of the error. BPNN (back propagation neural network) has many advantages such as strong nonlinear mapping capability, high self-learning and adaptive capability, strong fault tolerance capability, etc. By using the BPNN, the efficiency of the whole dose rate height correction can be effectively improved, and the integrated correction of the nuclide dose rate height correction is realized.
In addition, the MCNP simulation software utilized in the present application needs to be briefly described below. The MCNP software is the software using the Monte Carlo simulation method. The subject nature of nuclear technology has led to the inability to perform actual measurements or experimental work in many cases, where computer simulation calculations have shown unique advantages. Meanwhile, for the nuclear reaction problem with complex structure and reaction mechanism, the general numerical method is difficult to solve, while the MC (Monte Carlo) method can accurately simulate the physical process in practice, and solve the problem that the traditional numerical method is difficult to solve, so that the method is widely applied to the research of the nuclear-related field. The MC method grows gradually along with the development of atomic energy industry in the middle 40 th century, the basic idea is a statistical sampling method based on random number selection, the traditional empirical method cannot approach to a real physical process, satisfactory results are difficult to obtain, the Monte Carlo method has remarkable advantages in solving the particle transport problem, then a plurality of MC simulation programs are gradually developed, EGS, MCNP, GEANT4 and the like are mainly used at present, wherein MCNP is developed by the American Larmose national laboratory of los, photon, electron, neutron and the like transport problem in substances in a three-dimensional geometry, the applicable photon energy range is 1E-3 MeV-1E 5MeV, the electron energy range is 1E-3 MeV-1E 3MeV, and the neutron energy range is 1E-11 MeV-20 MeV. The MCNP has complete program function, various material reaction section data are rich, the variance reduction method is various, the universality is strong and the use is simple.
Fig. 2 shows a flow chart of the point source dose rate correction method based on the artificial neural network.
As shown in fig. 2, the energy spectrum, i.e. simulation data, of the unmanned aerial vehicle radioactivity monitoring system at different heights is firstly obtained, and the simulation is performed by using MCNP software. And extracting energy spectrum data and dose rate values at different heights as input parameters and output parameters. And dividing part of the energy spectrum data at different heights into training data, and dividing the other part into test data. It should be noted that the number of test data is not less than 50, and the number of training data is far greater than the number of test data, for example, 50, and 450 in the embodiment of the present application.
And constructing an artificial neural network model, namely a BPNN algorithm model, by using the input parameters and the output parameters in the training data, respectively importing the training data into the artificial neural network model for training, and obtaining the trained artificial neural network model.
And respectively importing the test data into the trained artificial neural network model to obtain an ideal output result, comparing the ideal output under the same height with the corresponding test data, and if the error is smaller than the precision expected value, obtaining the artificial neural network training model as a required point source air dose rate correction algorithm. If the error is greater than or equal to the expected precision value, the artificial neural network training model does not meet the requirement, and the artificial neural network model needs to be continuously trained by repeating the steps. In addition, if the error is smaller than the precision expected value, the correction algorithm is verified by the energy spectrum data actually measured by the unmanned aerial vehicle airborne radiation monitoring system on site.
Each step will be described in detail below. The application adopts MCNP to simulate the emissivity of ground point sources in the air with different heights. Firstly, selecting a proper unmanned aerial vehicle flight altitude interval and a nuclide energy interval, and selecting a proper airborne detection system.
And secondly, using MCNP to simulate and acquire energy spectrum data of the unmanned aerial vehicle radioactivity monitoring system at different heights. And divides the energy spectrum data into test data and training data. And extracting data related to the air deposition dosage rate from the training data, carrying out normalization processing on all information data related to the air deposition dosage rate, and selecting the number of principal components which mainly contribute to the dosage rate deposition as an input parameter. The air absorption dose rate of the radiation source deposited in air is taken as an output parameter.
And thirdly, calculating the hidden layer node number according to the input parameters and the output parameters. Constructing an artificial neural network model. And respectively importing the training data into the constructed artificial neural network model to perform model training. And obtaining the trained artificial neural network model.
The method for constructing the artificial neural network model comprises the following steps: and carrying out normalization processing on the energy spectrum data at different heights. And extracting the number of principal components which mainly contribute to the dose rate deposition after normalization processing as an input parameter. The air absorption dose rate of the radioactive source deposited in the air is taken as an output parameter; the number of hidden layer nodes is calculated using the input parameters and the output parameters. The structure of the artificial neural network model is that the input parameters-hidden layer node number-output parameters are used for constructing the model of the artificial neural network.
The method for extracting the number of main components which mainly contribute to the deposition of the dose rate after normalization processing is to extract data related to the dose rate of air deposition from energy spectrum data at different heights. And carrying out standardization processing on the related data to obtain standardized data. And calculating correlation coefficients among the standardized data, and forming a correlation coefficient matrix. Calculating each characteristic value of the correlation coefficient matrix; and calculating the contribution rate and the accumulated contribution rate of each related data by utilizing each characteristic value, and determining the corresponding minimum characteristic value number as the main component number contributing mainly when the accumulated contribution rate exceeds a threshold value.
Data relating to the air deposition dose rate includes the total energy peak count, energy, single escape peak, double escape peak, annihilation peak and corresponding measurement times and heights for each species.
The method for obtaining the standardized data by carrying out standardized processing on the related data comprises the following steps of:
Wherein x ij represents the j index of the i-th energy spectrum; data is shown after x ij has undergone a normalization operation; wherein the method comprises the steps of Is representative of the average of all of the energy spectrum data; As the variance of the data, the data variance is represented, and s j is the standard deviation between the two data represented. n represents the number of energy spectrums used for calculation.
Wherein the mean and standard deviation can be calculated according to the following formula:
The meaning of each term in the formula is the same as above.
The method for calculating the correlation coefficient between the standardized data is to use the following formula:
Wherein r ij is a correlation coefficient between the energy spectrum data x i and x j; x i is the average value of the ith energy spectrum data; x j is the average value of the j-th energy spectrum data; n represents the number of spectrums used for calculation, and x kj represents the j index of the k energy spectrum.
Combining the correlation coefficients into a correlation coefficient matrix R
Calculating a correlation coefficient matrix, and sequencing the obtained eigenvalues and eigenvectors, namely solving an eigenvalue equation:
|λI-R|=0
and I is an identity matrix of a corresponding dimension, the eigenvalue lambda 1,λ2,λ3,...,λ17 and the eigenvector corresponding to the eigenvalue lambda 1,λ2,λ3,...,λ17 are obtained by calculating the above formula, and the eigenvectors are ordered according to the size.
Then, the contribution rate of each component and the accumulated contribution value are calculated to screen the main component, and the calculation formula of the contribution rate alpha l of the first main component is as follows:
The calculation formula of the accumulated contribution rate G k of the k principal components is as follows:
when the cumulative contribution rate is greater than 80%, the corresponding minimum k value, namely the number of main components, is also input information.
And fourthly, testing the trained artificial neural network model, respectively importing test data into the trained artificial neural network model to obtain an ideal output result, comparing errors between the test data and the corresponding test data, and if the errors are smaller than a set precision expected value, obtaining the trained network model as a required correction method.
The method for comparing the error between the ideal output result and the corresponding test data is according to the following formula:
Wherein m i represents an ideal output result obtained by the trained artificial neural network model, o i represents an actual output result obtained by the trained artificial neural network model, and n represents the number of samples.
Empirically, the expected model accuracy is typically set to 10 -3.
In addition, part of the input layer, output layer and hidden layer information extracted from the MCNP software can be used for training an artificial neural network model, and the other part can be used for testing the identification capability of the BN network model before training the network model.
In addition, as shown in fig. 2, the trained artificial neural network is utilized to verify the data sample of the radioactive source, which uses the unmanned plane radioactivity monitoring system to measure the quality, at a certain distance, so as to verify the training quality of the artificial neural network model.
Examples
For ease of understanding, the present application discloses in detail a first embodiment modified by applying the method.
Step one: an appropriate on-board detection system is selected. The invention selects a NaI (T1) detector system, which is composed of a 2X 2 inch NaI (T1) detector, a multichannel amplitude analyzer and matched MAESTRO software, wherein the energy range of the detector is 30keV to 3MeV, the energy resolution is 7.7 percent (Cs-137, 662 KeV), and the multichannel amplitude analyzer is 1024 channels. According to the detection principle of a NaI (T1) detector, gamma particles and the detector act on a crystal part mainly, and in the NaI (T1) detector model diagram shown in figure 3, the crystal geometric dimension and surrounding cladding material structure are shown as the figure, wherein the thickness of an aluminum shell is 2.5mm, the thickness of a glass material is SiO 2, the thickness of the glass material is 2mm, the material of a reflecting layer is MgO, and the thickness of the reflecting layer is 0.5mm. The model used in the MCNP simulation process was also modeled in accordance with the data described above.
Step two: according to the method provided by the invention, the flight height interval of the unmanned aerial vehicle selected in a simulation way is 0-100 m, the value is 0.2 m apart from 0-100 m to obtain a height value, 500 groups of height data are selected in total, and 500 groups of simulation data can be correspondingly obtained; the corresponding energy information is expressed as the energy of the incident photon, set to energy values representing different nuclides, the content comprising: am-241 (59.5 KeV), cs-137 (662 KeV), co-60 (1173 KeV and 1332 KeV), K-40 (1460 KeV).
Step three: according to the method provided by the invention, the MCNP simulates the selected detector model: the point source is at ground level 0 meters and the detector of the unmanned aerial vehicle radioactivity monitoring system is directly above the point source, with the distance taking the distance interval described above (as shown in fig. 1). The source term of the simulation is isotropic, and the emission weight is 1. And (3) establishing a model by using a corresponding curved surface card and a cell card, and acquiring an energy spectrogram of the sodium iodide crystal detector by using an F8 card. According to the method provided by the invention, in the MCNP simulation process, the authenticity of the simulated energy spectrum is related to the number of emission particles, and the simulation can be carried out by adopting the emission particle number of 1×10 11.
Step four: and training the BP artificial neural network by taking 450 groups of data in 500 groups of data obtained through simulation as training data, and testing the identification capacity of the BP artificial neural network by taking the rest 50 groups of data as test data.
Step five: according to the method provided by the invention, firstly, the energy spectrum obtained by MCNP is normalized, and then the energy spectrum characteristic extraction is carried out, so that the total energy peak count and the energy corresponding to the Am-241 nuclide in the energy spectrum are obtained; the total energy peak count and energy corresponding to Cs-137 nuclides; the count and energy of the totipotent peak corresponding to the 1173KeV peak of Co-60; the total energy peak count, energy and single escape peak and double escape peak corresponding to 1332KeV peak of Co-60; the count, energy and single escape peak and double escape peak of the all-round peak corresponding to 1460KeV peak of K-40; together with the annihilation peaks in the energy spectrum, the corresponding measurement time and height are 17 data relating to the airborne deposition dose rate of the nuclear species. Because the energy spectrum information is numerous, the energy spectrum data obtained by extraction is multidimensional data, the extracted data is required to be subjected to dimension reduction treatment, and the data with the largest contribution to the corresponding dose rate is selected.
Step six: according to the method provided by the invention, 450 groups of data of the training set are selected, and then a 450X 17 data matrix X is constructed according to 17 data selected in the fifth step as variables.
Where i=1, 2,3,..450, j=1, 2,3,..17. i represents 450 data of the training set, j represents 17 energy spectrum characteristic value data obtained by extraction.
Step seven: and D, processing the data in the step six to obtain a standardized matrix. The purpose is to eliminate the difference in dimensionality and magnitude order between the individual data and obtain normalized dataWherein the data within the matrixCan be calculated by the following formula:
Wherein x ij represents the j index of the i-th energy spectrum; data is shown after x ij has undergone a normalization operation; wherein the method comprises the steps of Is the average of all data; as the variance of the data, the data variance is represented, and s j is the standard deviation between the two data represented.
In the above formula, n represents the number of energy spectrums for calculation, and n=450.
To obtain the contribution value of each component, a matrix R (correlation coefficient matrix) is calculated:
wherein the calculation formula of r ij is as follows:
In the above formula, r ij is the correlation coefficient of the original variables x i and x j; x i is the ith energy spectrum; x j is the j-th energy spectrum characteristic value; n represents the number of spectrums used for calculation.
And (3) calculating a characteristic value and a characteristic vector obtained by the correlation coefficient matrix, and sequencing, namely solving a characteristic equation:
|λI-R|=0
and I is an identity matrix of a corresponding dimension, the eigenvalue lambda 1,λ2,λ3,...,λ17 and the eigenvector corresponding to the eigenvalue lambda 1,λ2,λ3,...,λ17 are obtained by calculating the above formula, and the eigenvectors are ordered according to the size.
Then, the contribution rate of each component and the accumulated contribution value are calculated to screen the main component, and the calculation formula of the contribution rate alpha l of the first main component is as follows:
The calculation formula of the accumulated contribution rate G k of the k principal components is as follows:
As calculated by the above equation and the embodiment provided by the present invention, when the number of principal components is equal to 12, the cumulative contribution rate is greater than 80%, and it is considered that these twelve data are principal components of the present embodiment.
The 12 main components are the energy of the rays emitted by the four radioactive sources Am-241 (59.5 KeV), cs-137 (662 KeV), co-60 (1173 KeV and 1332 KeV) and K-40 (1460 KeV) in the simulation, the count of the totipotent peaks corresponding to 5 energies in the energy spectrum, and the time and the height of the measurement.
Step eight: the 12 characteristic parameters obtained in the step seven are applied to the input parameters of the artificial neural network, meanwhile, the output parameters are the deposition air absorption dose rate of each nuclide in the air, and the total output parameters are 4, so that the number of used input nodes N=12 and the number of used output nodes M=4. Determining the number of hidden layer nodes Q may be obtained by an empirical formula:
the optimal node number selected by the method is 10. Therefore, the BPNN of the present invention has a structure of 12-10-4.
Step nine: the 450 groups of training data after the random grouping is conducted are imported into an artificial neural network model, and the model is trained;
Step ten: the test data are imported into a trained artificial neural network model, and error MSE between an output result obtained by the model and the corresponding test data is compared: calculated according to equation 1, where n=450;
Step eleven: comparing the MSE with the expected model precision value, and if the MSE is smaller than 10 -3, considering that model training is completed; if the MSE is larger than the precision expected value, the network parameters need to be continuously modified until the MSE is smaller than the precision expected value, and training is finished;
Step twelve: according to the method provided by the invention, finally, the trained artificial neural network model is utilized to verify the data samples of the three artificial radioactive sources of Am-241, cs-137 and Co-60 measured by using the unmanned plane radioactivity monitoring system at the position of 1 meter, so as to verify the network training quality.
It is apparent that the above examples are only illustrative of the present invention and are not limiting of the embodiments. Other variations or modifications of the above teachings will be apparent to those of ordinary skill in the art. It is not necessary here nor is it exhaustive of all embodiments. And obvious variations or modifications thereof are contemplated as falling within the scope of the present invention.