A method and apparatus for signal correction in nuclear magnetic resonance systems
By using a signal correction method for the nuclear magnetic resonance system, a functional relationship is established between the nuclear magnetic resonance signal quantity and gain value of the calibration sample. The gain transfer coefficient and calibration parameters are then calculated, which solves the measurement error problem caused by hardware aging of the nuclear magnetic resonance oil content analyzer. This improves measurement accuracy and efficiency and reduces maintenance costs.
Patent Information
- Application Number
- CN202111667821.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-31
- Publication Date
- 2025-10-31
- Estimated Expiration
- 2041-12-31
AI Technical Summary
The aging of the hardware in the nuclear magnetic resonance oil content analyzer leads to increased measurement errors, affecting measurement accuracy and efficiency, and resulting in high maintenance costs.
By performing signal correction on the NMR system, a functional relationship is established using the NMR signal quantity and gain value of the calibration sample. The gain transfer coefficient and calibration parameters are then calculated to correct the signal of the NMR system and stabilize the measurement results.
It improves the long-term stability of the NMR system, reduces test fluctuations caused by measurement errors and hardware wear and tear, and lowers maintenance costs.
Smart Images

Figure CN114324442B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of nuclear magnetic resonance (NMR) measurement technology, and more specifically to a method and apparatus for signal correction of NMR systems. Background Technology
[0002] Nuclear magnetic resonance oil content analyzers play an important role in industries such as measuring the oil content or oil content of chemical fibers. They are specifically designed for detecting the oil content of oily crops and their processed products. This instrument has the advantages of high efficiency, safety, and high accuracy, and is a new type of product in the field of non-destructive testing.
[0003] As a high-precision product, the NMR oil content analyzer requires calibration before measurement to ensure accuracy. In some fiber factories, the NMR oil content analyzer tests a large number of products daily, with frequent use, shift work, and continuous operation. This leads to aging of the analyzer's hardware due to environmental factors or prolonged use, resulting in decreased accuracy and increased error. Frequent calibration reduces measurement efficiency. Furthermore, the NMR oil content analyzer itself is expensive, and hardware maintenance is costly. Therefore, a calibration method is needed to correct errors caused by hardware issues in the NMR oil content analyzer, thereby ensuring the long-term stability of its measurement accuracy. Summary of the Invention
[0004] Therefore, the present invention aims to solve the technical problem of measurement error caused by hardware aging in the prior art of NMR oil content measuring instrument, and thus provides a method and device for signal correction of NMR system.
[0005] According to a first aspect, embodiments of the present invention provide a method for signal correction of an NMR system, comprising the following steps: when it is determined that the NMR system signal needs correction, using the NMR system to detect multiple selected calibration samples to obtain the NMR signal quantity corresponding to each calibration sample; acquiring the measurement gain value collected by the NMR system when detecting the multiple calibration samples; calculating a gain transfer coefficient using the NMR signal quantity, the measurement gain value, and the functional relationship between the NMR signal and the gain, wherein the gain transfer coefficient is used to represent the multiple relationship between the measurement gain value and the true gain value; calculating the current actual gain value of the NMR system based on the measurement gain value and the gain transfer coefficient; calculating the current calibration parameter of the NMR system using the functional relationship between the calibration parameter and the actual gain value, and the actual gain value, wherein the calibration parameter is the coefficient of a first functional relationship between the mass of the calibration sample and the NMR signal after the NMR system detects the calibration sample, so as to achieve correction of the NMR system.
[0006] Optionally, the NMR system signal correction method further includes: using the uncorrected NMR system to detect the calibration sample with known mass to obtain the uncorrected NMR signal quantity; calculating the mass of the calibration sample using the uncorrected NMR signal quantity and the uncorrected functional relationship; determining whether the difference between the calculated mass of the calibration sample and the known mass of the calibration sample is within a preset threshold range; and determining that the NMR system signal needs to be corrected when it is not within the preset threshold range.
[0007] Optionally, the NMR system signal correction method further includes: determining whether the difference between the calculated mass of the calibration sample and the known mass of the calibration sample exceeds a threshold value; and outputting an alarm prompt when the threshold value is exceeded.
[0008] Optionally, the gain of the NMR system includes pre-gain, digital gain, and analog gain, wherein the number of selected calibration samples is greater than or equal to the number of gain types.
[0009] Optionally, the functional relationship between the nuclear magnetic resonance signal and the gain is as follows:
[0010] log(s) = u·g + v
[0011] Where s represents the nuclear magnetic resonance signal, g represents the gain, and u and v are constant values.
[0012] Optionally, the functional relationship between the calibration parameters and the actual gain value is as follows:
[0013] log(k) = c·g x+d
[0014] log(b) = p·g x +q
[0015] Where k represents the slope of the first functional relationship, b represents the intercept of the first functional relationship, and c, d, p, and q are constants.
[0016] Optionally, the actual current gain value of the NMR system is calculated based on the measured gain value and the gain transfer coefficient:
[0017] g x =w x ·g0
[0018] Among them, w x Let g be the gain transfer coefficient, g0 be the measured gain value, and g x This represents the current actual gain value.
[0019] According to a second aspect, embodiments of the present invention provide a signal correction device for an NMR system, comprising: a detection module, configured to, when it is determined that the NMR system signal needs correction, use the NMR system to detect multiple selected calibration samples to obtain the NMR signal quantity corresponding to each calibration sample; an acquisition module, configured to acquire the measurement gain value acquired by the NMR system when detecting the multiple calibration samples; a function module, configured to calculate a gain transfer coefficient using the NMR signal quantity, the measurement gain value, and the functional relationship between the NMR signal and the gain, wherein the gain transfer coefficient is used to represent the multiple relationship between the measurement gain value and the true gain value; a calculation module, configured to calculate the current actual gain value of the NMR system based on the measurement gain value and the gain transfer coefficient; and a correction module, configured to calculate the current calibration parameter of the NMR system using the functional relationship between the calibration parameter and the actual gain value, and the actual gain value, wherein the calibration parameter is the coefficient of a first functional relationship between the mass of the sample being tested and the NMR signal after the NMR system detects the sample being tested, so as to achieve correction of the NMR system.
[0020] According to a third aspect, embodiments of the present invention provide a computer device, including: a memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the computer instructions to perform the above-described method for signal correction of nuclear magnetic resonance systems.
[0021] According to a fourth aspect, embodiments of the present invention provide a computer-readable storage medium storing computer instructions for causing the computer to perform the above-described method for signal correction of an MRI system.
[0022] The technical solution of this invention has the following advantages:
[0023] In this embodiment, when it is determined that the NMR system signal needs correction, the uncorrected NMR system is used to measure multiple selected calibration samples to obtain the NMR signal quantity corresponding to each calibration sample. The measurement gain value acquired by the uncorrected NMR system during the detection of the multiple calibration samples is obtained. Using the NMR signal quantity, the measurement gain value, and the functional relationship between the NMR signal and gain, the gain transfer coefficient is calculated. Based on the measurement gain value and the gain transfer coefficient, the current actual gain value of the uncorrected NMR system is calculated. Using the functional relationship between the calibration parameters and the actual gain value, and the actual gain value, the calibration parameters of the current uncorrected NMR system are calculated. Finally, based on the linear functional relationship between the NMR signal and sample mass, the NMR system is corrected. This correction method can ensure the long-term stability of the NMR system signal. Correcting the NMR signal and calibration parameters can effectively improve the problem of test fluctuations and measurement errors caused by hardware wear and tear of the NMR system. Attached Figure Description
[0024] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0025] Figure 1 This is a flowchart illustrating a specific example of a signal correction method for an nuclear magnetic resonance system according to Embodiment 1 of the present invention;
[0026] Figure 2 This is a schematic block diagram of a specific example of a signal correction device for a nuclear magnetic resonance system according to Embodiment 2 of the present invention;
[0027] Figure 3 This is a schematic diagram of a specific example of a computer device according to Embodiment 3 of the present invention. Detailed Implementation
[0028] The technical solution of the present invention will now be clearly and completely described with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0029] In the description of this invention, it should be noted that the terms "center," "upper," "lower," "left," "right," "vertical," "horizontal," "inner," and "outer," etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are used only for the convenience of describing the invention and for simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on the invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and should not be construed as indicating or implying relative importance.
[0030] In the description of this invention, it should be noted that, unless otherwise explicitly specified and limited, the terms "installation," "connection," and "linking" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; they can also refer to the internal connection of two components; and they can refer to a wireless connection or a wired connection. Those skilled in the art can understand the specific meaning of the above terms in this invention based on the specific circumstances.
[0031] Furthermore, the technical features involved in the different embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
[0032] This embodiment provides a method for correcting the signal of an NMR system, which can solve the problem of measurement errors caused by hardware aging in NMR oil content analyzers. When an NMR oil content analyzer experiences hardware wear and tear due to long-term operation, the measurement results of the NMR system fluctuate and deviate, thus requiring signal correction to ensure the long-term stability of the NMR system.
[0033] In this embodiment, for ease of explanation, the NMR system requiring calibration is collectively referred to as the uncalibrated NMR system or the uncalibrated NMR oil content measuring instrument. The magnetic resonance signal obtained by the calibrated and accurate NMR oil content measuring instrument is referred to as the first NMR signal, and the magnetic resonance signal obtained by the uncalibrated NMR system or the uncalibrated NMR oil content measuring instrument is referred to as the second NMR signal.
[0034] Example 1
[0035] This embodiment provides a method for signal correction in an NMR system. This method can be executed by devices such as servers or computers. The server or other devices acquire data such as the NMR signal quantity and amplifier gain of the calibration sample. A linear regression function is established and calculated. The calculation results are then combined with the function relationship to achieve NMR system signal correction. Figure 1As shown, it includes the following steps:
[0036] Step S101: If it is determined that the NMR system signal needs to be corrected, the NMR system is used to detect multiple selected calibration samples to obtain the NMR signal quantity corresponding to each calibration sample.
[0037] In this embodiment, an NMR oil content analyzer is used as an example. In order to ensure the accuracy of the NMR oil content analyzer, when the measured calibration sample shows a deviation, the NMR oil content analyzer will be calibrated. However, the calibration time is long and the portability is poor.
[0038] In this embodiment of the invention, to improve the calibration efficiency of each NMR oil content analyzer, it is first necessary to select multiple calibration samples with known mass and oil content. Data is then acquired using a calibrated and precise NMR oil content analyzer to establish a functional relationship. In this embodiment, all calibration samples have known mass and oil content. Specifically, multiple selected calibration samples with known mass and oil content are placed into the calibrated NMR oil content analyzer for measurement. Since the measuring instrument is a calibrated and precise NMR oil content analyzer, the converted oil content of the first NMR signal obtained from the calibration sample is consistent with the oil content of the calibration sample itself. By measuring multiple sets of first NMR signal quantities and the mass of the calibration samples, a functional relationship s = k0·m + b0 is established between the NMR signal s and the sample mass m through linear regression, where k0 and b0 are constants, s is the NMR signal, and m is the sample mass.
[0039] Furthermore, a linear functional relationship between the NMR signal *s* and the sample mass *m* was obtained through measurements of multiple calibration samples. In this embodiment, to further establish the functional relationship between the calibration parameters and the gain, the linear functional relationship between the NMR signal *s* and the sample mass *m* is expressed as a first functional relationship, with the formula s = k·m + b, where k is the slope of the first functional relationship and b represents the intercept of the first functional relationship. *k* and *b* are called calibration parameters. In this embodiment, the NMR signal quantity represents a specific numerical value, and the NMR signal represents a variable relationship.
[0040] Before each day's operation, or when it's necessary to determine if calibration is required, the NMR oil content analyzer needs to be tested to determine the second NMR signal quantity measured by the analyzer before calibration. Substituting this second NMR signal quantity into the function s = k0·m + b0, the mass of the calibration sample is obtained. The difference between the obtained mass and the known mass of the calibration sample is then determined to be within a preset threshold range. If it is within the preset threshold range, the NMR system signal does not require calibration; otherwise, calibration is required.
[0041] If it is determined that the NMR system signal needs to be corrected, that is, using the uncorrected NMR system, multiple calibration samples are selected again for detection to obtain the second NMR signal quantity corresponding to each calibration sample.
[0042] Step S102: Obtain the measurement gain value collected by the NMR system when detecting multiple calibration samples.
[0043] When using a calibrated or uncalibrated NMR system to detect multiple selected calibrated samples, it is possible not only to obtain the first or second NMR signal quantity corresponding to each calibrated sample, but also to acquire the corresponding gain value of the NMR system. Specifically, the gain value of the NMR system can reflect the aging of the hardware of the NMR oil content analyzer. That is, when measuring calibrated samples, the acquired gain value will fluctuate due to the aging of the NMR oil content analyzer hardware. In this embodiment, a functional relationship is established between the NMR signal and the gain to correct for signal fluctuations caused by hardware aging. The gain value will not fluctuate significantly in a short period of time, such as three hours or five hours; therefore, the gain value of the NMR system acquired within a fixed time period is a constant. In this embodiment, the gain value represents a specific numerical value, and gain represents a variable relationship.
[0044] In this embodiment, the measured gain value refers to the gain value collected by the uncalibrated NMR system when detecting multiple calibration samples. If the NMR system signal is determined to require calibration, it indicates that the signal has deviated, meaning the gain of the NMR system is fluctuating. In other words, the gain of the uncalibrated NMR system needs to be calibrated. When the uncalibrated NMR system is used to detect multiple reselected calibration samples, the measured gain value corresponding to the uncalibrated NMR system is recorded.
[0045] Step S103: Using the nuclear magnetic resonance signal quantity, the measured gain value, and the functional relationship between the nuclear magnetic resonance signal and the gain, the gain transfer coefficient is calculated, wherein the gain transfer coefficient is used to represent the multiple relationship between the measured gain value and the true gain value.
[0046] To establish the functional relationship between gain and NMR signal, a calibrated NMR oil content analyzer was used. The gain of the calibrated NMR oil content analyzer was repeatedly adjusted, and multiple calibrated samples with known mass and oil content were measured to obtain different first NMR signal quantities. Based on the multiple gain changes and the corresponding first NMR signal quantities obtained after each change, a first logarithmic function log(s) = u·g + v was generated through linear regression, where u and v are constants, g is the gain, and s is the NMR signal. This first logarithmic function can be referred to as the logarithmic relationship between the gain of the calibrated NMR oil content analyzer and its NMR signal.
[0047] The gain of an NMR system can be indirectly changed by altering the hardware, such as changing the RF coil or the transmission line length between the RF power amplifier and the RF coil.
[0048] As described in step S101, when it is determined that the NMR system signal needs correction, multiple calibration samples are selected again for detection to obtain the second NMR signal quantity corresponding to each calibration sample. The gain of the NMR system before correction is changed multiple times, and the selected calibration samples are detected again to obtain the second NMR signal quantity corresponding to each calibration sample after the gain change, as well as the measured gain value after the gain change of the NMR system before correction. The gain transfer coefficient is calculated using the first logarithmic function relationship, the second NMR signal quantity, and the measured gain value. The gain transfer coefficient is used to represent the multiple relationship between the measured gain value and the true gain value. The true gain is the gain of the calibrated NMR oil content analyzer.
[0049] Step S104: Calculate the current actual gain value of the NMR system based on the measured gain value and the gain transfer coefficient.
[0050] Specifically, the gain transfer coefficient is calculated using the first logarithmic function relationship, the second nuclear magnetic resonance signal quantity, and the measured gain value. The product of this coefficient and the measured gain value after the gain of the uncorrected nuclear magnetic resonance system is acquired is the current actual gain value, which is the specific value of the true gain.
[0051] It can be represented as g x =w x ·g 0x , where gx w represents the current actual gain value. x G is the gain transfer coefficient. 0x To determine the gain value.
[0052] Step S105: The calibration parameters of the current NMR system are calculated using the functional relationship between the calibration parameters and the actual gain value, and the actual gain value. The calibration parameters are the coefficients of the first functional relationship between the mass of the calibration sample and the NMR signal detected by the NMR system on the calibration sample, so as to achieve the correction of the NMR system.
[0053] As described in step S103 above, the first logarithmic function relationship log(s) = u·g + v is the logarithmic function relationship between the NMR signal s and the gain g. According to step S101, the NMR signal s and the sample mass m have a linear relationship. When there is a logarithmic function relationship between the NMR signal s and the gain g, correspondingly, the slope k and the intercept b of the first function relationship also have a logarithmic function relationship with the gain g. A second logarithmic function relationship log(k) = c·g + d and a third logarithmic function relationship log(b) = p·g + q are generated, where k represents the slope of the first function relationship, b represents the intercept of the first function relationship, and c, d, p, and q are constants. Further, the slope k and the intercept b of the first function relationship are the calibration parameters. The actual gain value g is then... x By substituting the second and third logarithmic function relationships as the gain, the slope k and intercept b of the first function relationship are obtained. Substituting the obtained slope k and intercept b of the first function relationship into the first function relationship, the corrected nuclear magnetic resonance signal is obtained, and finally the correction of the nuclear magnetic resonance system is achieved.
[0054] In this embodiment, when it is determined that the NMR system signal needs correction, the uncorrected NMR system is used to measure multiple selected calibration samples to obtain the NMR signal quantity corresponding to each calibration sample. The measurement gain value acquired by the uncorrected NMR system during the detection of the multiple calibration samples is obtained. Using the NMR signal quantity, the measurement gain value, and the functional relationship between the NMR signal and gain, the gain transfer coefficient is calculated. Based on the measurement gain value and the gain transfer coefficient, the current actual gain value of the uncorrected NMR system is calculated. Using the functional relationship between the calibration parameters and the actual gain value, and the actual gain value, the calibration parameters of the uncorrected NMR system are calculated. Finally, based on the linear functional relationship between the NMR signal and sample mass, the NMR system is corrected. This correction method can ensure the long-term stability of the NMR system signal. Correcting the NMR signal and calibration parameters can effectively improve the problem of test fluctuations and measurement errors caused by hardware losses in the NMR system.
[0055] As an optional implementation, this embodiment of the invention further includes:
[0056] The uncalibrated NMR system is used to detect a calibration sample with known mass to obtain the uncalibrated NMR signal quantity; the mass of the calibration sample is calculated using the uncalibrated NMR signal quantity and the uncalibrated functional relationship; it is determined whether the difference between the calculated mass of the calibration sample and the known mass of the calibration sample is within a preset threshold range; if it is not within the preset threshold range, it is determined that the NMR system signal needs to be calibrated.
[0057] As described above, before each day's operation, or when it is necessary to determine whether calibration is required, the NMR oil content analyzer needs to be tested to determine the second NMR signal quantity measured by the analyzer before calibration. The obtained second NMR signal quantity is then substituted into the function s = k0·m + b0 to obtain the mass of the calibration sample. It is then determined whether the difference between the obtained mass and the known mass of the calibration sample is within a preset threshold range. If it is within the preset threshold range, the NMR system signal does not require calibration; otherwise, calibration is required.
[0058] As an optional implementation, this embodiment of the invention further includes:
[0059] Determine whether the difference between the calculated mass of the calibration sample and the known mass of the calibration sample exceeds a threshold value; if the threshold value is exceeded, an alarm is output.
[0060] Substitute the second nuclear magnetic resonance signal obtained from the uncorrected nuclear magnetic resonance oil content analyzer into the function relationship s = k0·m + b0 to obtain the mass of the calibration sample. Determine whether the difference between the obtained mass of the calibration sample and the known mass of the calibration sample is within the preset threshold range. If it is not within the threshold range, determine again whether it exceeds the highest or lowest limit value. If it exceeds the highest or is lower than the lowest limit value, output an alarm prompt. If it does not exceed the highest or is lower than the lowest limit value, continue to complete the calibration of the nuclear magnetic resonance system signal.
[0061] In this embodiment, in order to ensure the effectiveness of the nuclear magnetic resonance system calibration, a maximum limit value and a minimum limit value are set. When the maximum limit value is exceeded or the minimum limit value is lowered, it indicates that the hardware of the nuclear magnetic resonance oil content measuring instrument is severely damaged and needs to be replaced or repaired.
[0062] As an optional implementation, in this embodiment of the invention, the gain of the NMR system includes pre-gain, digital gain, and analog gain, wherein the number of selected calibration samples is greater than or equal to the number of gain types.
[0063] When considering only one of the three gains, the second and third logarithmic function relationships satisfy the following:
[0064] log(k x ) = c x ·g P +d x
[0065] log(b x ) = p x ·g P +q x
[0066] Where x can be P, D, or A, representing pre-amplifier, digital, and analog, respectively, and c x d x p x q x It is a constant value.
[0067] When considering all three gains simultaneously, the second and third logarithmic function relationships satisfy the following:
[0068] log(k) = c P ·g P +c D ·g D +c A ·g A +d
[0069] log(b) = p P ·g P +pD ·g D +p A ·g A +q
[0070] Among them, c P c D c A , d, p P p D p A Both q and q are constants.
[0071] Specifically, the other two gains can be fixed while only the remaining one is changed, and c can be obtained through linear regression. P c D c A , d, p P p D p A The values of q and q. The regression process needs to consider the regression residuals. If obvious outliers appear, it indicates that the calibration parameters are not suitable for determination under the corresponding gain conditions or that the currently determined calibration parameters are unreliable.
[0072] As an optional implementation, in this embodiment of the invention, the functional relationship between the nuclear magnetic resonance signal and the gain is as follows:
[0073] log(s) = u·g + v
[0074] Where s represents the nuclear magnetic resonance signal, g represents the gain, and u and v are constant values.
[0075] When all three gains are considered simultaneously, the functional relationship between the nuclear magnetic resonance signal and the gain satisfies:
[0076] log(s) = u P ·g P +u D ·g D +u A ·g A +v
[0077] To establish a functional relationship between gain and NMR signal, a calibrated NMR oil content analyzer was used. The gain of the calibrated NMR oil content analyzer was repeatedly adjusted, and multiple calibrated samples with known mass and oil content were measured to obtain different first NMR signal quantities. Based on the multiple gain adjustments and the corresponding first NMR signal quantities obtained after each adjustment, a linear regression was performed to finally generate a functional relationship between NMR signal and gain.
[0078] As an optional implementation, in this embodiment of the invention, the functional relationship between the calibration parameters and the actual gain value is as follows:
[0079] log(k) = c·g x +d
[0080] log(b) = p·g x +q
[0081] Where k represents the slope of the first functional relationship, b represents the intercept of the first functional relationship, and g x This represents the current actual gain value, while c, d, p, and q are constants.
[0082] The first logarithmic function relationship, log(s) = u·g + v, represents the logarithmic function relationship between the NMR signal s and the gain g. According to step S101, the NMR signal s has a linear relationship with the sample mass m. When a logarithmic function relationship exists between the NMR signal s and the gain g, correspondingly, the slope k and intercept b of the first function relationship also have a logarithmic function relationship with the gain g. That is, the second logarithmic function relationship is log(k) = c·g + d, and the third logarithmic function relationship is log(b) = p·g + q. In this embodiment, since the actual gain value g... x This refers to the specific value of the true gain, which is the gain of the calibrated NMR oil content analyzer. In other words, the actual gain value g... x This refers to the specific value of the gain g.
[0083] As an optional implementation, in this embodiment of the invention, the actual current gain value of the NMR system is calculated based on the measured gain value and the gain transfer coefficient as follows:
[0084] g x =w x ·g0
[0085] Among them, w x Let g be the gain transfer coefficient, g0 be the measured gain value, and g x This represents the current actual gain value.
[0086] Specifically, as described in step S104, the gain transfer coefficient is obtained by calculating using the first logarithmic function log(s) = u·g + v, the second nuclear magnetic resonance signal quantity, and the measured gain value. When considering all three gains, the functional relationship between the nuclear magnetic resonance signal and the gain satisfies:
[0087] log(s) = u P ·w P ·g 0P +u D ·w D ·g 0D +u A ·w A·g 0A +v
[0088] Specifically, the pre-gain transfer coefficient w can be obtained by calculating using the following formula. p Digital gain transfer coefficient w D and the analog gain transfer coefficient w A .
[0089]
[0090] In this embodiment, the pre-gain, digital gain, and analog gain are considered simultaneously to calculate the pre-gain transfer coefficient w. p Digital gain transfer coefficient w D and the analog gain transfer coefficient w A In practice, fluctuations in any gain can correct the NMR signal and calibration parameters, effectively improving the test fluctuations and measurement errors caused by hardware losses in the NMR system.
[0091] Example 2
[0092] This embodiment provides a signal correction device for an nuclear magnetic resonance (NMR) system. This device can be used to execute the NMR system signal correction method described in Embodiment 1 above. The device can be installed inside a server or other equipment, with modules cooperating to achieve NMR system signal correction. Figure 2 As shown, the device includes:
[0093] The detection module 201 is used to detect multiple selected calibration samples using the nuclear magnetic resonance system when it is determined that the nuclear magnetic resonance system signal needs to be corrected, so as to obtain the nuclear magnetic resonance signal quantity corresponding to each calibration sample.
[0094] Acquisition module 202 is used to acquire the measurement gain value acquired by the NMR system when detecting multiple calibration samples;
[0095] Function module 203 is used to calculate the gain transfer coefficient using the nuclear magnetic resonance signal quantity, the measured gain value, and the functional relationship between the nuclear magnetic resonance signal and the gain, wherein the gain transfer coefficient is used to represent the multiple relationship between the measured gain value and the true gain value;
[0096] Calculation module 204 is used to calculate the current actual gain value of the NMR system based on the measured gain value and the gain transfer coefficient;
[0097] The calibration module 205 is used to calculate the calibration parameters of the current NMR system using the functional relationship between the calibration parameters and the actual gain value, and the actual gain value. The calibration parameters are the coefficients of the first functional relationship between the mass of the sample under test and the NMR signal detected by the NMR system on the sample under test, so as to achieve calibration of the NMR system.
[0098] In this embodiment, when it is determined that the NMR system signal needs correction, the uncorrected NMR system is used to measure multiple selected calibration samples to obtain the NMR signal quantity corresponding to each calibration sample. The measurement gain value acquired by the uncorrected NMR system during the detection of the multiple calibration samples is obtained. Using the NMR signal quantity, the measurement gain value, and the functional relationship between the NMR signal and gain, the gain transfer coefficient is calculated. Based on the measurement gain value and the gain transfer coefficient, the current actual gain value of the uncorrected NMR system is calculated. Using the functional relationship between the calibration parameters and the actual gain value, and the actual gain value, the calibration parameters of the uncorrected NMR system are calculated. Finally, based on the linear functional relationship between the NMR signal and sample mass, the NMR system is corrected. This correction method can ensure the long-term stability of the NMR system signal. Correcting the NMR signal and calibration parameters can effectively improve the problem of test fluctuations and measurement errors caused by hardware losses in the NMR system.
[0099] Example 3
[0100] This embodiment provides a computer device, such as... Figure 3 As shown, the computer device includes a processor 301 and a memory 302, wherein the processor 301 and the memory 302 can be connected via a bus or other means. Figure 3 Taking the example of a connection between China and Israel via a bus.
[0101] Processor 301 can be a Central Processing Unit (CPU). Processor 301 can also be other general-purpose processors, digital signal processors (DSPs), graphics processing units (GPUs), embedded neural network processing units (NPUs), or other dedicated deep learning coprocessors, application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or combinations of the above types of chips.
[0102] The memory 302, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs, non-transitory computer-executable programs, and modules, such as the program instructions / modules corresponding to the nuclear magnetic resonance system signal correction method in the embodiments of the present invention. The processor 301 executes various functional applications and data processing of the processor by running the non-transitory software programs, instructions, and modules stored in the memory 302, thereby implementing the nuclear magnetic resonance system signal correction method in the above-described method embodiments.
[0103] The memory 302 may further include a program storage area and a data storage area, wherein the program storage area may store the operating system and applications required for at least one function; the data storage area may store data created by the processor 301, etc. Furthermore, the memory 302 may include high-speed random access memory and non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, the memory 302 may optionally include memory remotely located relative to the processor 301, and these remote memories may be connected to the processor 301 via a network. Embodiments of the aforementioned network include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
[0104] The memory 302 stores one or more modules, which, when executed by the processor 301, perform actions such as... Figure 1 The illustrated embodiment shows a method for signal correction in an MRI system.
[0105] For specific details regarding the aforementioned computer equipment, please refer to the relevant documentation. Figure 1 The relevant descriptions and effects in the illustrated embodiments are for understanding purposes only and will not be repeated here.
[0106] This invention also provides a computer-readable storage medium storing computer-executable instructions that can execute the signal correction method for an MRI system described in any of the above embodiments. The storage medium may be a magnetic disk, optical disk, read-only memory (ROM), random access memory (RAM), flash memory, hard disk drive (HDD), or solid-state drive (SSD), etc.; the storage medium may also include combinations of the above types of memory.
[0107] Obviously, the above embodiments are merely illustrative examples for clear explanation and are not intended to limit the implementation. Those skilled in the art will recognize that other variations or modifications can be made based on the above description. It is neither necessary nor possible to exhaustively list all possible implementations here. However, obvious variations or modifications derived therefrom are still within the scope of protection of this invention.
Claims
1. A method for signal correction in an nuclear magnetic resonance (NMR) system, characterized in that, Includes the following steps: If it is determined that the NMR system signal needs to be corrected, the NMR system is used to detect multiple selected calibration samples to obtain the NMR signal quantity corresponding to each calibration sample. The measurement gain values collected by the NMR system when detecting multiple calibration samples are obtained; The gain transfer coefficient is calculated using the nuclear magnetic resonance signal quantity, the measured gain value, and the functional relationship between the nuclear magnetic resonance signal and the gain. The gain transfer coefficient is used to represent the multiple relationship between the measured gain value and the true gain value. The functional relationship between the nuclear magnetic resonance signal and the gain is: log(s) = u·g + v; where s represents the nuclear magnetic resonance signal, g represents the gain value, and u and v are constants. The current actual gain value of the NMR system is calculated based on the measured gain value and the gain transfer coefficient. The calibration parameters of the current NMR system are calculated using the functional relationship between the calibration parameters and the actual gain value, wherein the calibration parameters are the coefficients of the first functional relationship between the mass of the calibration sample and the NMR signal detected by the NMR system on the calibration sample, so as to achieve the correction of the NMR system. The first functional relationship is: s = k·m + b; where s is the nuclear magnetic resonance signal, m is the sample mass, and k and b are the calibration parameters; The functional relationship between the calibration parameters and the actual gain value is as follows: log(k)=c·g x +d log(b)=p·g x +q Where k represents the slope of the first functional relationship, b represents the intercept of the first functional relationship, and g x The actual gain value is given, where c, d, p, and q are constants.
2. The signal correction method for an NMR system according to claim 1, characterized in that, Also includes: The uncalibrated nuclear magnetic resonance signal quantity was obtained by detecting the calibrated sample with known mass using the uncalibrated nuclear magnetic resonance system. The mass of the calibration sample is calculated using the uncorrected nuclear magnetic resonance signal quantity and the uncorrected functional relationship. Determine whether the difference between the calculated mass of the calibration sample and the known mass of the calibration sample is within a preset threshold range; When the signal is not within the preset threshold range, it is determined that the nuclear magnetic resonance system signal needs to be corrected.
3. The signal correction method for an NMR system according to claim 2, characterized in that, Also includes: Determine whether the difference between the calculated mass of the calibration sample and the known mass of the calibration sample exceeds a threshold value; An alarm will be triggered when the threshold value is exceeded.
4. The signal correction method for an NMR system according to claim 1, characterized in that, The gain of the NMR system includes pre-gain, digital gain, and analog gain, wherein the number of selected calibration samples is greater than or equal to the number of gain types.
5. The signal correction method for an NMR system according to claim 1, characterized in that, The actual current gain value of the NMR system is calculated based on the measured gain value and the gain transfer coefficient: g x =w x ·g0 Among them, w x denoted as the gain transfer coefficient, and g0 as the measured gain value.
6. A signal correction device for an nuclear magnetic resonance system, characterized in that, include: The detection module is used to detect multiple selected calibration samples using the nuclear magnetic resonance system when it is determined that the nuclear magnetic resonance system signal needs to be corrected, so as to obtain the nuclear magnetic resonance signal quantity corresponding to each calibration sample. The acquisition module is used to acquire the measurement gain value collected by the NMR system when detecting multiple calibration samples; The function module is used to calculate the gain transfer coefficient using the nuclear magnetic resonance signal quantity, the measured gain value, and the functional relationship between the nuclear magnetic resonance signal and the gain. The gain transfer coefficient is used to represent the multiple relationship between the measured gain value and the true gain value. The functional relationship between the nuclear magnetic resonance signal and the gain is: log(s) = u·g + v; where s represents the nuclear magnetic resonance signal, g represents the gain value, and u and v are constants. The calculation module is used to calculate the current actual gain value of the NMR system based on the measured gain value and the gain transfer coefficient; The calibration module is used to calculate the calibration parameters of the current NMR system using the functional relationship between the calibration parameters and the actual gain value, and the actual gain value. The calibration parameters are coefficients of a first functional relationship between the mass of the sample under test and the NMR signal detected by the NMR system on the sample, to achieve calibration of the NMR system. The first functional relationship is: s = k·m + b; where s is the NMR signal, m is the sample mass, and k and b are the calibration parameters. The functional relationship between the calibration parameters and the actual gain value is as follows: log(k)=c·g x +d log(b)=p·g x +q Where k represents the slope of the first functional relationship, b represents the intercept of the first functional relationship, and g x The actual gain value is given, where c, d, p, and q are constants.
7. A computer device, characterized in that, include: A memory and a processor are communicatively connected, the memory storing computer instructions, and the processor executing the computer instructions to perform the signal correction method for a nuclear magnetic resonance system as described in any one of claims 1-5.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions for causing the computer to perform the signal correction method for a nuclear magnetic resonance system as described in any one of claims 1-5.
Citation Information
Patent Citations
Method and device for determining oil content of rocks
CN106442599A
Concentration measuring instrument calibration method and device and concentration measuring instrument
CN110501458A