Self-adaptive spectrum stabilization method and device for gamma-ray spectrometer
Through the combined adaptive spectrum stabilization method of CPU and FPGA, the power supply voltage and software coefficient of the photomultiplier tube are adjusted, and the spectral line drift problem of the gamma spectrometer during environmental changes is solved, and the stability under different environmental conditions is achieved. and data accuracy.
Patent Information
- Application Number
- CN202411540111.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-31
- Publication Date
- 2025-02-07
- Estimated Expiration
- 2044-10-31
AI Technical Summary
When the ambient temperature, humidity, air pressure and other factors change, the existing gamma energy spectrometer causes spectral line to drift, causing the channel address to shift, and the correct soil nutrient data cannot be obtained.
Adaptive spectrum stabilization method combined with CPU and FPGA software is adopted to adjust the power supply voltage and software coefficient of the photomultiplier tube to achieve a comprehensive spectrum stabilization of factors such as temperature, humidity, and air pressure to ensure that the spectrum line is stable at the same energy. site.
It effectively solves the spectral line drift problem, improves the stability and data accuracy of the gamma energy spectrometer under different environmental conditions, and can be used in a wide range of environmental scenarios.
Smart Images

Figure CN119395744A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of smart agricultural soil detection. The present invention performs soil nutrient data detection based on gamma spectroscopy technology, mainly for the detection of trace radionuclides contained in soil background. Specifically, it relates to a method and device for adaptive spectrum stabilization using a CPU and FPGA software designed for a gamma spectrometer that needs spectrum stabilization when the channel offset is caused by environmental changes such as temperature, humidity, and air pressure after completing preliminary channel calculation statistics. Background Art
[0002] Soil nutrient gamma spectrum detectors usually use a detector structure of NaI, CsI or other scintillation crystals + photomultiplier tube PMT + preamplifier circuit + single-ended to differential circuit + ADC. The principle is that after the gamma rays of the soil to be tested are incident on the NaI scintillator and interact with the NaI scintillator crystal, the secondary electrons generated ionize or excite the scintillator molecules. When de-excited, the NaI scintillator crystal emits a large number of photons. After the photons are gathered on the photocathode of the photomultiplier tube, the photon emits photoelectrons on the photocathode through the photoelectric effect. The photoelectrons are gradually multiplied in the photomultiplier tube. The electrons multiplied by each multiplier are collected at the anode and formed into a detector output voltage pulse through the preamplifier circuit. The voltage pulse passes through the signal amplification and shaping circuit and the single-ended to differential drive circuit and enters the ADC for sampling and multi-channel pulse amplitude analysis, thereby obtaining multi-channel spectrum data (spectral line data) for gamma spectrum measurement.
[0003] The multi-channel pulse front-end circuit includes a current-voltage conversion circuit, a preamplifier circuit, a single-ended to differential circuit, an ADC sampling circuit + an FPGA digital processing circuit. The corresponding γ spectrum measurement process signal conversion process is: γ-ray energy-luminescence intensity of NaI crystal-number of photoelectrons-current pulse-voltage pulse amplitude-pulse amplitude after single-ended signal amplification and shaping-differential signal pulse amplitude-digital pulse amplitude value. Due to the existence of various natural radionuclides in nature, different nuclides have different amplitudes, so digitalization is required to cover all radionuclides.
[0004] In practical applications, temperature affects the sensitivity and dark current of the photomultiplier tube (PMT). The effect of temperature on sensitivity can be divided into two parts: the effect on cathode sensitivity and the effect on multiplication stage sensitivity. The temperature characteristics of cathode sensitivity are related to both wavelength and the type of photocathode surface, and the value of the temperature coefficient changes greatly from negative to positive near the critical wavelength of the long-wave limit.
[0005] Since the characteristics of crystals and photomultiplier tubes (PMTs) are known to be affected by the environment, the addresses of the same nuclide collected by the gamma spectrometer under different conditions will be different. Therefore, software or hardware spectrum stabilization design must be carried out according to different environments.
[0006] The current stabilization of gamma spectrometers is mainly focused on the field of temperature compensation, such as recording spectral line data at different temperatures, and then establishing the corresponding functional relationship, and collecting the ambient temperature in real time in practical applications. Using the known functional relationship to reversely calculate the new spectral line, the effect of stabilization is achieved.
[0007] The general process of spectrum stabilization of the currently commonly used gamma spectrometer is as follows: Figure 1 As shown, it only focuses on the field of temperature compensation. On the one hand, this method is purely based on software algorithms. When the temperature changes greatly and the original signal has a large deviation, part of the signal will be lost. On the other hand, the factors that cause spectral drift include not only temperature but also other factors, including but not limited to:
[0008] Humidity: The effect of humidity on photomultiplier tubes is mainly to increase the leakage current on the surface of the glass core column, and the rust on the surface of the pins will also cause poor contact, and may also cause the transmittance of the purple glass to decrease; secondly, the dirt on the surface of the pins will also cause the pins to rust and increase the leakage current.
[0009] Air pressure: Photomultiplier tubes can be used not only in an atmospheric pressure environment, but also in a reduced pressure environment. However, changes in air pressure may cause discharge between the internal leads of the photomultiplier tube. The internal vacuum degree of a general photomultiplier tube is 10 5 Pa, so in order not to cause discharge, the lead pin electrodes need to be kept at a sufficient distance. In addition, the design of the electrode lead part of the tube base and tube holder outside the photomultiplier tube also takes into account that no discharge will occur in an atmospheric pressure or vacuum environment.
[0010] In summary, multi-channel digital gamma spectrometers are affected by factors such as temperature, humidity, and air pressure during real-time acquisition, which will cause increased channel offset. If compensation is not performed, correct data cannot be obtained. The traditional compensation method only uses temperature as the compensation direction, and compensates for temperature changes based on a preset temperature compensation function through a software algorithm. This compensation spectrum stabilization method has many problems: 1) Compensation is based on temperature, but in practice the position of the temperature sensor does not represent the temperature at the crystal or PMT, which will cause a certain temperature sensor position deviation. 2) The spectral line drift and the temperature curve reflect the correlation when the temperature is balanced, and the temperature detected when the environment changes is different from the equilibrium temperature of the crystal and PMT, which will cause a certain temperature balance deviation. Temperature balance can be understood as the surface and internal temperature of the scintillation crystal are inconsistent when the ambient temperature changes, and it takes a certain amount of time to reach the same internal and external temperature. 3) Only temperature compensation cannot compensate for the impact of changes in environmental factors such as humidity and air pressure, and there will be deviations between the actual and the compensation. 4) Only software compensation cannot avoid the situation where the front-end signal conditioning does not match the environmental changes, resulting in the loss of actual spectral lines or reduced resolution. Summary of the invention
[0011] The purpose of the present invention is to propose a design method for adaptive spectrum stabilization of a gamma-ray spectrometer combined with software and hardware, so as to solve the problem of spectrum line drift caused by changes in ambient temperature, humidity, air pressure, etc., and stabilize the spectrum lines of the same energy at the same channel address through an adaptive spectrum stabilization method coordinated by software and hardware, so that the digital gamma-ray spectrometer can be used in a wide range of environmental scenarios and obtain sufficient stability.
[0012] In view of the shortcomings of existing technologies, such as Figure 5 As shown, the present invention proposes an adaptive spectrum stabilization method for a gamma spectrometer, which includes:
[0013] Initial step: when the scintillation crystal of the gamma spectrometer receives the gamma ray, the spectrum line array of the gamma spectrometer is obtained, the maximum value in the spectrum line array is extracted as the spectrum stabilization result, and the spectrum stabilization result is compared with the preset spectrum stabilization target to see whether they are the same. If they are the same, it is determined that the gamma spectrometer has been calibrated and the detection step is executed, otherwise the spectrum stabilization step is executed;
[0014] a spectrum stabilization step, determining whether the difference between the spectrum stabilization result and the spectrum stabilization target is less than a preset value; if so, executing software spectrum stabilization processing, adjusting the spectrum line array by coefficients, so as to calibrate the spectrum stabilization result to be the same as the spectrum stabilization target, and executing the detection step; otherwise, executing hardware spectrum stabilization processing, by adjusting the power supply voltage of the photomultiplier tube in the gamma spectrometer, changing the field strength of the electric field inside the photomultiplier tube, until the spectrum stabilization result is calibrated to be the same as the spectrum stabilization target, and executing the detection step;
[0015] The detection step is to use the gamma spectrometer to monitor the soil to be detected, obtain the spectral line array of the soil, and analyze the spectral line array to obtain soil nutrient data.
[0016] The adaptive spectrum stabilization method of the gamma spectrometer, wherein the gamma spectrometer includes an FPGA, and the FPGA is used to complete the pulse signal channel address calculation according to the digital signal output by the analog-to-digital converter in the gamma spectrometer to obtain a spectrum line array.
[0017] The adaptive spectrum stabilization method of the gamma spectrometer, wherein the FPGA adjusts the spectrum line array according to the coefficients.
[0018] In the adaptive spectrum stabilization method of the gamma spectrometer, the power supply of the photomultiplier tube is provided by a digital-to-analog converter, and the FPGA regulates the power supply voltage of the photomultiplier tube by controlling the voltage output by the digital-to-analog converter.
[0019] like Figure 6 As shown, the present invention also proposes an adaptive spectrum stabilization device for a gamma spectrometer, comprising:
[0020] The initial module obtains the spectrum line array of the gamma spectrometer when the scintillation crystal of the gamma spectrometer receives the gamma ray, extracts the maximum value in the spectrum line array as the spectrum stabilization result, and compares whether the spectrum stabilization result is the same as the preset spectrum stabilization target. If they are the same, it is determined that the gamma spectrometer has been calibrated and the detection module is executed, otherwise the spectrum stabilization module is executed;
[0021] The spectrum stabilization module determines whether the difference between the spectrum stabilization result and the spectrum stabilization target is less than a preset value. If so, software spectrum stabilization processing is performed to adjust the spectrum line array by coefficients to calibrate the spectrum stabilization result to be the same as the spectrum stabilization target, and the detection module is executed. Otherwise, hardware spectrum stabilization processing is performed to change the field strength of the electric field inside the photomultiplier tube by adjusting the power supply voltage of the photomultiplier tube in the gamma spectrometer until the spectrum stabilization result is calibrated to be the same as the spectrum stabilization target, and the detection module is executed;
[0022] The detection module uses the gamma spectrometer to monitor the soil to be detected, obtains the spectral line array of the soil, and analyzes the spectral line array to obtain soil nutrient data.
[0023] The adaptive spectrum stabilization device of the gamma spectrometer, wherein the gamma spectrometer includes an FPGA, and the FPGA is used to complete the pulse signal channel address calculation according to the digital signal output by the analog-to-digital converter in the gamma spectrometer to obtain a spectrum line array.
[0024] The adaptive spectrum stabilization device of the gamma spectrometer, wherein the FPGA adjusts the spectrum line array according to the coefficient; the power supply of the photomultiplier tube is provided by the digital-to-analog converter, and the FPGA regulates the power supply voltage of the photomultiplier tube by controlling the voltage output by the digital-to-analog converter.
[0025] The present invention also proposes an electronic device, which includes the adaptive spectrum stabilization device described above. The electronic device may be connected to an information display device, and the information display device is used to display the soil nutrient data according to display parameters and attributes set by the user or through an artificial intelligence model.
[0026] The present invention also proposes a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the adaptive spectrum stabilization method are implemented.
[0027] The present invention also proposes a computer program product, comprising a computer program, wherein the steps of the adaptive spectrum stabilization method are implemented when the computer program is executed by a processor.
[0028] It can be seen from the above scheme that the advantages of the present invention are:
[0029] The present invention combines hardware circuits with software algorithms to take into account factors such as temperature, humidity, and air pressure, and quantifies spectrum drift. Large drift is adjusted from the source of the signal by changing the PMT high voltage to suit the subsequent signal conditioning circuit to avoid causing the loss of spectrum lines or reducing resolution. Smaller drift is stabilized by software coefficient compensation. Compared with the traditional temperature compensation method, it can achieve spectrum stabilization of comprehensive factors such as temperature, humidity, and air pressure, and at the same time cooperate with the adjustment of PMT high voltage to solve the problems of low resolution and spectrum line loss in the traditional compensation method. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] Figure 1 Traditional temperature compensation spectrum stabilization flow chart
[0031] Figure 2 Block diagram of spectrum stabilization at large offsets
[0032] Figure 3 Block diagram of spectrum stabilization at small offsets
[0033] Figure 4 It is a structural block diagram of the device of the present invention;
[0034] Figure 5 is a flow chart of the method of the present invention;
[0035] Figure 6 It is a module diagram of the device of the present invention;
[0036] Figure 7 This is a schematic diagram of the structure of a first electronic device of the present invention;
[0037] Figure 8 This is a schematic diagram of the application environment structure of the first electronic device of the present invention;
[0038] Fig. 9 It is a schematic diagram of the structure of a second electronic device of the present invention.
[0039] Reference numerals:
[0040] A-First electronic device;
[0041] B- Adaptive spectrum stabilization device of gamma spectrometer;
[0042] C-data acquisition equipment;
[0043] D-information display device;
[0044] 1000 - second electronic device;
[0045] Ⅰ-computational unit;
[0046] II-ROM;
[0047] III-RAM;
[0048] IV-bus;
[0049] V-interface;
[0050] VI - input unit;
[0051] VII-output unit;
[0052] VIII- Storage medium;
[0053] Ⅸ-Communication unit. DETAILED DESCRIPTION
[0054] It should be noted that, in this application, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprises" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.
[0055] Without more constraints, an element defined by the phrase "comprising a..." does not exclude the existence of other identical elements in the process, method, article or apparatus comprising the element.
[0056] The processor described in the present invention is the control center of the electronic device, which can be a processor or a general term for multiple processing elements. For example, it can be one or more central processing units (CPUs), or application specific integrated circuits (ASICs), or one or more integrated circuits configured to implement the embodiments of the present invention, such as one or more microprocessors (digital signal processors, DSPs), or one or more field programmable gate arrays (FPGAs).
[0057] Optionally, the processor can perform various functions of the electronic device by running or executing a software program stored in the memory, and calling data stored in the memory.
[0058] In a specific implementation, as an embodiment, the processor may include one or more CPUs. Each of these processors may be a single-core processor (single-CPU) or a multi-core processor (multi-CPU). The processor here may refer to one or more devices, circuits, and / or processing cores for processing data (such as computer program instructions). Electronic devices may include: servers, desktop computers, laptops, smart phones, tablet computers, embedded computers, etc., wherein the embedded computers include vehicles and robots, etc.
[0059] The memory is used to store the software program for executing the solution of the present invention, and the execution is controlled by the processor. The specific implementation method can refer to the above method embodiment, which will not be repeated here.
[0060] It should be noted that the structure of the electronic device shown in the drawings of the present invention does not constitute a limitation thereto, and the actual knowledge structure recognition device may include more or fewer components than shown in the drawings, or a combination of certain components, or a different arrangement of components.
[0061] The above embodiments can be implemented in whole or in part by software, hardware (such as circuits), firmware or any other combination. When implemented by software, the above embodiments can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions or computer programs. When the computer instructions or computer programs are loaded or executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center by wired (such as infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server or data center that contains one or more available media sets. The available medium can be a magnetic medium (for example, a floppy disk, a hard disk, a tape), an optical medium (for example, a DVD), or a semiconductor medium. The semiconductor medium can be a solid-state hard disk.
[0062] It should also be understood that the term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. A and B can be singular or plural. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship, but it may also indicate an "and / or" relationship. Please refer to the context for specific understanding.
[0063] In the present invention, "at least one" means one or more, and "more than one" means two or more. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can be represented by: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple.
[0064] It should also be understood that in various embodiments of the present invention, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
[0065] In the several embodiments provided by the present invention, it should be understood that the disclosed devices, apparatuses and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of the units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0066] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0067] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0068] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0069] Therefore, the present invention proposes a method and process for adaptive spectrum stabilization of a gamma spectrometer using a combination of software and hardware, involving software and hardware, such as Figure 4 As shown, it includes: PMT bias circuit, current-voltage conversion circuit, preamplifier circuit, single-ended to differential circuit, A / D converter, FPGA chip, high-precision DAC, PMT high-voltage control circuit, and CPU software control.
[0070] The method flow steps are as follows: the current pulse output by the multiplier tube is converted into a voltage pulse signal through a current-voltage conversion circuit;
[0071] The voltage pulse signal enters the first-stage amplifier circuit, which is composed of an operational amplifier, and the amplification factor can be controlled by a digitally controlled resistor;
[0072] The single-ended to differential conversion circuit converts the voltage pulse single-ended signal after the first stage amplification into a differential signal;
[0073] The differential pulse signal enters the ADC, thereby completing the discretization of the analog voltage differential signal into a digital signal.
[0074] FPGA completes the calculation of the pulse signal channel address through the algorithm, and then reports it to the CPU. After the CPU performs statistics, it divides the result into two parts according to a preset parameter, depending on whether the deviation is larger or smaller than this parameter. If the adjustment range is large, it is fed back to the FPGA to compensate for the PMT high-voltage control part; if the adjustment range is small, the FPGA will fine-tune the software coefficient. For example, the input potassium-containing soil ray peak should be at 490 (stable spectrum target). If it is measured at 496 (stable spectrum result), it should be calibrated and stabilized. When it stabilizes at the stable spectrum target of 490, we believe that the ray peak positions of the remaining soil elements have also completed the calibration and stabilization of the spectrum.
[0075] In order to make the above features and effects of the present invention more clearly and understandably described, embodiments are given below and described in detail with reference to the accompanying drawings. This specification discloses one or more embodiments that include the features of the present invention. The disclosed embodiments are only for illustration. The scope of protection of the present invention is not limited to the disclosed embodiments, and the present invention is defined by the attached claims.
[0076] 1. Spectrum stabilization process at large offsets
[0077] FPGA reads the high-speed raw data collected by ADC and calculates the spectral line data for a certain period of time through relevant algorithms, and transmits it to the CPU through the interface. Due to the random statistical characteristics of the spectral line, the CPU first filters and conditions the original spectral line, and performs low-pass filtering without changing the center information of the channel address by means of a Gaussian sliding center window. The conditioned data is calculated by the K40 center peak detection algorithm to calculate the channel address of the center peak. Then, the stabilization result is output by the stabilization algorithm that imports the configuration parameters. When the offset is large, the instruction to modify the PMT high voltage is sent back to the FPGA. The spectral line data is an array, and the maximum value is found within the range of the configuration parameters. The coordinate number corresponding to the maximum value is the stabilization result. This coordinate number minus the stabilization target (also a coordinate number) set by the software is the offset.
[0078] After receiving the instruction to modify the PMT high voltage, the FPGA writes the relevant parameters into the high-precision DAC module to drive the PMT high voltage module to adjust the corresponding high voltage value. The high voltage value corresponds to the field strength of the internal electric field. The field strength increases, the amplitude increases, and the channel address increases. Modifications based on the original signal are suitable for subsequent conditioning circuits to improve resolution without losing signals. The principle block diagram is shown below. Figure 2 As shown in the green link in the figure, a combination of software and hardware is required to complete:
[0079] First, the CPU filters the received FPGA data, then calculates the maximum value within the set area, calculates the coordinate number x1 corresponding to the maximum value, and then subtracts the default coordinate number x2 set by the system. If (x1-x2) is greater than the set parameter, generally the default is 10, then the CPU subtracts the preset value, such as 10, from the original PMT voltage y1, and sends the new data to the FPGA through instructions. The FPGA configures this data into the DAC, and the DAC output change is reflected in the high-voltage module. The high-voltage module acts on the PMT through the newly modified voltage.
[0080] If (x1-x2) is less than the set parameter, generally -10 by default, then the CPU adds 10 to the original PMT voltage y1 and sends the signal data to the FPGA through instructions. The FPGA configures this data into the DAC. The DAC output change is reflected in the high-voltage module, and the high-voltage module acts on the PMT through the newly modified voltage.
[0081] 2. Spectrum stabilization process at small offsets
[0082] FPGA reads the high-speed raw data collected by ADC and calculates the spectral line data of a certain period of time through the relevant algorithm, and transmits it to the CPU through the interface. Due to the random statistical characteristics of the spectral line, the CPU first filters and conditions the original spectral line, and performs low-pass filtering without changing the center information of the channel address by using the Gaussian sliding center window. The conditioned data is calculated by the K40 center peak detection algorithm to calculate the channel address of the center peak. Then, the stabilization result is output by the stabilization algorithm that imports the configuration parameters. When the offset is small, the instruction to modify the FPGA coefficient is sent back to the FPGA.
[0083] After receiving the instruction to modify the FPGA coefficient, the FPGA writes the relevant parameters into the spectrum line calculation module and adjusts the internal logic of the FPGA calculation through the coefficient to obtain higher spectrum line stability. Figure 3 As shown in the green link in the figure, this spectrum stabilization link is completed through the software algorithm of CPU and FPGA. At this time, FPGA can be equivalent to an amplifier algorithm module, with normal input x and output y. In addition, a coefficient a is input. At this time, x is input and the output is a*y. If the coefficient is 1, the original value remains unchanged. If the coefficient is greater than 1, the output increases. If the coefficient is less than 1, the output decreases.
[0084] The following is a system embodiment corresponding to the above method embodiment. This embodiment can be implemented in conjunction with the above embodiment. The relevant technical details mentioned in the above embodiment are still valid in this embodiment. In order to reduce repetition, they are not repeated here. Accordingly, the relevant technical details mentioned in this embodiment can also be applied in the above embodiment.
[0085] like Figure 6 As shown, the present invention also proposes an adaptive spectrum stabilization device for a gamma spectrometer, comprising:
[0086] The initial module obtains the spectrum line array of the gamma spectrometer when the scintillation crystal of the gamma spectrometer receives the gamma ray, extracts the maximum value in the spectrum line array as the spectrum stabilization result, and compares whether the spectrum stabilization result is the same as the preset spectrum stabilization target. If they are the same, it is determined that the gamma spectrometer has been calibrated and the detection module is executed, otherwise the spectrum stabilization module is executed;
[0087] The spectrum stabilization module determines whether the difference between the spectrum stabilization result and the spectrum stabilization target is less than a preset value. If so, software spectrum stabilization processing is performed to adjust the spectrum line array by coefficients to calibrate the spectrum stabilization result to be the same as the spectrum stabilization target, and the detection module is executed. Otherwise, hardware spectrum stabilization processing is performed to change the field strength of the electric field inside the photomultiplier tube by adjusting the power supply voltage of the photomultiplier tube in the gamma spectrometer until the spectrum stabilization result is calibrated to be the same as the spectrum stabilization target, and the detection module is executed;
[0088] The detection module uses the gamma spectrometer to monitor the soil to be detected, obtains the spectral line array of the soil, and analyzes the spectral line array to obtain soil nutrient data.
[0089] The adaptive spectrum stabilization device of the gamma spectrometer, wherein the gamma spectrometer includes an FPGA, and the FPGA is used to complete the pulse signal channel address calculation according to the digital signal output by the analog-to-digital converter in the gamma spectrometer to obtain a spectrum line array.
[0090] The adaptive spectrum stabilization device of the gamma spectrometer, wherein the FPGA adjusts the spectrum line array according to the coefficient; the power supply of the photomultiplier tube is provided by the digital-to-analog converter, and the FPGA regulates the power supply voltage of the photomultiplier tube by controlling the voltage output by the digital-to-analog converter.
[0091] The present invention also proposes an electronic device, wherein the electronic device is connected to an information display device, and the information display device is used to display the soil nutrient data according to display parameters and attributes set by a user or through an artificial intelligence model.
[0092] The present invention also proposes a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the adaptive spectrum stabilization method are implemented.
[0093] The present invention also proposes a computer program product, comprising a computer program, wherein the steps of the adaptive spectrum stabilization method are implemented when the computer program is executed by a processor.
[0094] like Figure 7 As shown, the present invention further proposes a first electronic device A in another embodiment, comprising the adaptive spectrum stabilization device.
[0095] like Figure 8 As shown, the first electronic device A can also be connected to the data acquisition device C and the information display device D through a wired or wireless information transmission scheme. The data acquisition device C is used to collect soil rays, and the information display device D is used to display the soil nutrient data analyzed by the present invention.
[0096] The information display device D can process the data output by the first electronic device A based on the information display mechanism to improve the readability of the data output by the first electronic device A. The information display mechanism can be manually preset, for example, the data output by the first electronic device A is visually displayed, which can be based on the display parameters and / or attributes set by the user. The display parameters can be, for example, the display data range, and the display attributes can be, for example, the display font, color, whether to scroll and play, etc. The user is presented with the key information specified by the user, such as the spectrum array, soil nutrient data, etc. The user can understand this information more timely without having to access the secondary page or scroll the page, saving the user's operation. Or the information display mechanism can be an artificial intelligence AI display model, which can learn the user's key information based on the user's previous usage habits, such as viewing time, number of clicks, number of edits, etc., and then automatically present rich and necessary key information to the user.
[0097] The present invention also provides a computer program product, which includes a computer program. The computer program can be stored in a readable storage medium. When the computer program is executed by a processor, the computer can execute the adaptive spectrum stabilization method provided by the above methods.
[0098] The present invention also proposes a storage medium VIII in another embodiment for storing a computer program for executing the adaptive spectrum stabilization method. It should be understood that the storage medium in the embodiment of the present invention may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of random access memory (RAM) are available, such as static RAM (SRAM), dynamic random access memory (DRAM), synchronous DRAM (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link DRAM (SLDRAM), and direct rambus RAM (DR RAM).
[0099] Fig. 9 A schematic block diagram of a second electronic device 1000 that can be used to implement an embodiment of the present invention is shown. The second electronic device 1000 electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The second electronic device 1000 can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples, and are not intended to limit the implementation of the present invention described and / or required herein. The second electronic device 1000 may be the same or different from the first electronic device A.
[0100] The second electronic device 1000 includes a computing unit I, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory II (ROM) or a computer program loaded from a storage medium VIII into a random access memory (RAM) III. In RAM III, various programs and data required for the operation of the device 1000 can also be stored. The computing unit I, ROM II, and RAM III are connected to each other via a bus IV. An input / output (I / O) interface V is also connected to the bus IV.
[0101] A plurality of components in the second electronic device 1000 are connected to the I / O interface V, including: an input unit VI, such as a keyboard, a mouse, etc.; an output unit VII, such as various types of displays, speakers, etc.; a storage medium VIII, such as a disk, an optical disk, etc.; and a communication unit IX, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit IX allows the second electronic device 1000 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0102] The computing unit I may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of computing unit I include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit I performs the various methods and processes described above, such as method steps S1-S3. For example, in some embodiments, the method may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage medium VIII. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 1000 via ROM II and / or a communication unit IX. When the computer program is loaded into RAM III and executed by the computing unit I, one or more steps of the method described above may be performed. Alternatively, in other embodiments, the computing unit I may be configured to execute the method in any other appropriate manner (e.g., by means of firmware).
[0103] Although the embodiments of the present invention have been disclosed as above, they are not limited to the applications listed in the specification and the implementation modes, and they can be fully applied to various fields suitable for the present invention. For those familiar with the art, additional modifications can be easily implemented. Therefore, without departing from the general concept defined by the claims and the scope of equivalents, the present invention is not limited to the specific details and the illustrations shown and described herein.
Claims
1. An adaptive spectrum stabilization method for a gamma spectrometer, characterized in that: include: Initial step: when the scintillation crystal of the gamma spectrometer receives the gamma ray, the spectrum line array of the gamma spectrometer is obtained, the maximum value in the spectrum line array is extracted as the spectrum stabilization result, and the spectrum stabilization result is compared with the preset spectrum stabilization target to see whether they are the same. If they are the same, it is determined that the gamma spectrometer has been calibrated and the detection step is executed, otherwise the spectrum stabilization step is executed; a spectrum stabilization step, determining whether the difference between the spectrum stabilization result and the spectrum stabilization target is less than a preset value; if so, executing software spectrum stabilization processing, adjusting the spectrum line array by coefficients, so as to calibrate the spectrum stabilization result to be the same as the spectrum stabilization target, and executing the detection step; otherwise, executing hardware spectrum stabilization processing, by adjusting the power supply voltage of the photomultiplier tube in the gamma spectrometer, changing the field strength of the electric field inside the photomultiplier tube, until the spectrum stabilization result is calibrated to be the same as the spectrum stabilization target, and executing the detection step; The detection step is to use the gamma spectrometer to monitor the soil to be detected, obtain the spectral line array of the soil, and analyze the spectral line array to obtain soil nutrient data.
2. The adaptive spectrum stabilization method of a gamma spectrometer according to claim 1, characterized in that: The gamma spectrometer comprises an FPGA, which is used to complete pulse signal channel address calculation according to the digital signal output by the analog-to-digital converter in the gamma spectrometer to obtain a spectrum line array.
3. The adaptive spectrum stabilization method of a gamma spectrometer according to claim 2, characterized in that: The FPGA adjusts the spectral line array according to the coefficients.
4. The adaptive spectrum stabilization method of a gamma spectrometer according to claim 2, characterized in that: The power supply of the photomultiplier tube is provided by a digital-to-analog converter, and the FPGA adjusts the power supply voltage of the photomultiplier tube by controlling the voltage output by the digital-to-analog converter.
5. An adaptive spectrum stabilization device for a gamma spectrometer, characterized in that: include: The initial module obtains the spectrum line array of the gamma spectrometer when the scintillation crystal of the gamma spectrometer receives the gamma ray, extracts the maximum value in the spectrum line array as the spectrum stabilization result, and compares whether the spectrum stabilization result is the same as the preset spectrum stabilization target. If they are the same, it is determined that the gamma spectrometer has been calibrated and the detection module is executed, otherwise the spectrum stabilization module is executed; The spectrum stabilization module determines whether the difference between the spectrum stabilization result and the spectrum stabilization target is less than a preset value. If so, software spectrum stabilization processing is performed to adjust the spectrum line array by coefficients to calibrate the spectrum stabilization result to be the same as the spectrum stabilization target, and the detection module is executed. Otherwise, hardware spectrum stabilization processing is performed to change the field strength of the electric field inside the photomultiplier tube by adjusting the power supply voltage of the photomultiplier tube in the gamma spectrometer until the spectrum stabilization result is calibrated to be the same as the spectrum stabilization target, and the detection module is executed; The detection module uses the gamma spectrometer to monitor the soil to be detected, obtains the spectral line array of the soil, and analyzes the spectral line array to obtain soil nutrient data.
6. The adaptive spectrum stabilization device of a gamma spectrometer according to claim 5, characterized in that: The gamma spectrometer comprises an FPGA, which is used to complete pulse signal channel address calculation according to the digital signal output by the analog-to-digital converter in the gamma spectrometer to obtain a spectrum line array.
7. The adaptive spectrum stabilization device of a gamma spectrometer according to claim 6, characterized in that: The FPGA adjusts the spectrum line array according to the coefficient; the power supply of the photomultiplier tube is provided by the digital-to-analog converter, and the FPGA regulates the power supply voltage of the photomultiplier tube by controlling the voltage output by the digital-to-analog converter.
8. An electronic device, characterized in that: It comprises an adaptive spectrum stabilization device as described in claims 5-7, and the electronic device is connected to an information display device, and the information display device is used to display the soil nutrient data according to display parameters and attributes set by the user or through an artificial intelligence model.
9. A computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the steps of the adaptive spectrum stabilization method according to any one of claims 1 to 4 are implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the adaptive spectrum stabilization method described in any one of claims 1 to 4 are implemented.
Citation Information
Patent Citations
Digital logarithm gamma energy spectrometer
CN101799554A
Multimodal spectrum stabilizing method of low-activity gamma power spectrum
CN110146915A
Unmanned aerial vehicle (UAV) aviation gamma-ray energy spectrum detecting and data processing system and processing method thereof
CN110515116A
Gamma-ray spectrum detection method and device for soil nutrients
CN118858594A