A low-field NMR time-domain data recovery method based on U-Net
Patent Information
- Application Number
- CN202210842640.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-18
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2042-07-18
AI Technical Summary
In low-field nuclear magnetic resonance, the signal-to-noise ratio of NMR time-domain data is low and susceptible to interference, resulting in uncertainty in the relaxation time distribution. Existing noise reduction methods cannot effectively solve this problem.
A network model based on one-dimensional U-Net is used to establish an odd-even echo data model through multi-spin echo experiments, construct NMR time domain signal sample pairs with and without interference, and train the network to obtain a prediction model for NMR recovery. time domain signal.
It achieves a fully automatic and fast data recovery process, improves the accuracy of relaxation time distribution, reduces the impact of noise and interference, and provides reliable quantitative analysis results.
Smart Images

Figure CN115128115B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of low-field nuclear magnetic resonance, and in particular relates to a low-field NMR time-domain data recovery method based on U-Net. Background Art
[0002] Low-field nuclear magnetic resonance (LF-NMR) is an important measurement technology for detecting the structure and properties of porous media, and is widely used in fields such as petrochemicals and core analysis. In low-field NMR, a spin multi-echo pulse sequence (CPMG) is often used to sample NMR time domain data (TD-NMR), and then relaxation time inversion (quasi-inverse Laplace transform) is performed to obtain the NMR relaxation time distribution of each component inside the sample. Furthermore, through the NMR relaxation time distribution analysis, important reservoir parameters such as core porosity, pore size distribution, permeability, bound water saturation, wettability, surface relaxation rate, etc. are obtained, as well as the observation and analysis of the distribution state of reservoir fluids (water, oil) and the dynamic behavior of molecules in the reservoir, providing a theoretical basis and practical possibility for improving oil and gas recovery and optimizing the oil production process. It solves many exploration problems of conventional oil reservoirs and is one of the important means of evaluating oil and gas reservoirs.
[0003] In LF-NMR, the NMR time domain data collected using the CPMG sequence has the following characteristics: (1) Due to the high detection sensitivity of NMR (SNR∝nγ 5 / 2 B0 3 / 2 ) and the number of nuclei observed per unit volume n, the magnetic gyroscopic ratio of the nuclei γ 5 / 2 And magnetic field strength B0 3 / 2 The signal-to-noise ratio (SNR) of time-domain NMR data of low-content samples detected in low fields is usually low. (2) In the process of collecting data using the CPMG sequence, it will be affected by imperfect refocusing, which will not only cause the amplitude of the NMR time-domain data to be smaller than the ideal signal amplitude, but also generate false echoes and interfere with the NMR time-domain data. The interference of false echoes causes the amplitude of odd and even echoes to jump, and the NMR time-domain data does not show an ideal exponential decay. That is, in a low magnetic field intensity environment, the collected NMR time-domain data usually has the characteristics of low signal-to-noise ratio and is susceptible to interference. However, the essence of relaxation time inversion is the inverse Laplace transform, which is an ill-posed problem. For time-domain NMR data with finite noise and interference signals, many inversion solutions fit the data to the statistics of the noise and interference signals, making the inverted NMR relaxation time distribution have a large uncertainty.
[0004] In the field of LF-NMR applications, how to recover echo data from NMR time domain data has always been a very important hot and difficult research issue in NMR relaxation time analysis technology. At present, domestic and foreign research methods mainly include methods based on wavelet transform, low-rank approximation, and filtering. Time-frequency transform is a widely used noise reduction method. Wavelet transform has good time-frequency characteristics and multi-resolution characteristics, which can well separate noise and useful signals. However, there is no unified standard for the selection of wavelet basis, decomposition scale and threshold for time domain data denoising of NMR, and these methods do not take into account the characteristics of NMR data and treat all signals uniformly.
[0005] In view of the problems existing in the above-mentioned existing noise reduction algorithms, the present invention proposes a method for NMR time domain data recovery based on a one-dimensional U-shaped convolutional network (1DU-Net). First, a 1D U-Net network model is established, and the error is constrained by the L2 norm; then, the NMR nuclear spin response of the multi-spin echo experiment is used to establish an odd-even echo data model to generate an NMR time domain signal with interference and a reference NMR signal without interference as a sample pair data set to train the U-Net network and output a prediction network model; finally, the NMR time domain signal to be tested is predicted by the prediction network model to obtain the recovered NMR time domain signal.
[0006] Compared with existing noise reduction methods, the process is fully automatic, does not rely on prior information, and does not require human participation in parameter self-learning; relaxation time analysis of the recovered NMR time domain signal can accurately determine the NMR relaxation time distribution that is usually unreliable in traditional methods; and the prediction speed is fast. Summary of the invention
[0007] The purpose of the present invention is to provide a low-field NMR time-domain data recovery method based on U-Net in view of the above-mentioned problems existing in the prior art.
[0008] The above-mentioned purpose of the present invention is achieved by the following technical means:
[0009] A low-field NMR time-domain data recovery method based on U-Net comprises the following steps:
[0010] Step 1: Build a sample pair dataset in is the NMR time domain signal with interference, M l is the NMR time domain signal without interference, l is the sample pair number, and the NMR time domain signal with interference and the interference-free NMR time domain signal M l The components correspond to each other;
[0011] Step 2: Establish a one-dimensional U-Net network model.
[0012] Step 3: In the sample pair dataset Sample pairs are randomly selected as training data sets and validation data sets. The one-dimensional U-Net network model is trained with the training data set to minimize the loss function and obtain the optimal mapping relationship between the NMR time domain data with interference and the NMR time domain signal without interference. The validation data set is used to evaluate the one-dimensional U-Net network model during the training process, and the hyperparameters of the one-dimensional U-Net network model are fine-tuned to improve the generalization ability of the one-dimensional U-Net network model. The optimal mapping relationship between the NMR time domain data with interference and the NMR time domain signal without interference constitutes the prediction model.
[0013] Construct the sample pair dataset in step 1 as described above The following steps are involved:
[0014] Step 1.1, generate different NMR relaxation times,
[0015] Step 1.2, determine the echo sampling time τ and the number of echoes N,
[0016] Step 1.3, construct a single-component single training sample pair. The single-component NMR time domain signal with interference and the single-component NMR time domain signal without interference constitute a single-component single training sample pair. The single-component NMR time domain signal with interference is constructed based on the following formula:
[0017]
[0018] The construction of single-component interference-free NMR time domain signal is based on the following formula:
[0019]
[0020] in, is the amplitude of the NMR time-domain signal with interference, n is a positive integer, T2 is a randomly selected NMR relaxation time in step 1.1, f(T2) is 1, C0(nτ) is a random value between 0.8 and 1, C1(nτ) is a random value between 0.9 and 1, ε(nτ) is the Rice noise,
[0021] Step 1.4: Construct a two-component single training sample pair. The two-component NMR time domain signal with interference and the two-component NMR time domain signal without interference constitute a two-component single training sample pair.
[0022] The construction of the two-component NMR time domain signal containing interference is based on the following formula:
[0023]
[0024] The construction of the two-component interference-free NMR time domain signal is based on the following formula:
[0025]
[0026] T 2_1 and T 2_2 Two NMR relaxation times are randomly selected from step 1.1. The distribution of NMR relaxation time f(T 2_1 ) and the distribution of NMR relaxation times f(T 2_2 ) is 1,
[0027] Step 1.5: Construct three-component single training sample pairs. Three-component NMR time domain signals with interference and three-component NMR time domain signals without interference constitute three-component single training sample pairs.
[0028] The three-component NMR time domain signal with interference is constructed based on the following formula:
[0029]
[0030] The construction of the three-component interference-free NMR time domain signal is based on the following formula:
[0031]
[0032] T 2_1 , T 2_2 , and T 2_3 Three NMR relaxation times are randomly selected from step 1.1. The distribution of NMR relaxation time f(T 2_1 ), the distribution of NMR relaxation time f(T 2_2 ) and the distribution of NMR relaxation times f(T 2_3 ) is 1,
[0033] Step 1.6: Repeat steps 1.3-1.5 to generate a sample pair dataset NMR time domain signal with interference Including: single-component NMR time domain signal with interference, two-component NMR time domain signal with interference, three-component NMR time domain signal with interference, and NMR time domain signal without interference M l Including: single-component NMR time domain signal without interference, two-component NMR time domain signal without interference, and three-component NMR time domain signal without interference.
[0034] The loss function in step 3 as described above is based on the following formula:
[0035]
[0036] in, is the NMR time domain data containing interference in the simulated ι-th sample pair Compared with the interference-free NMR time domain signal M ι The mapping relationship between them, Θ is the weight value in the one-dimensional U-Net network model, N B is the total number of sample pairs, and ‖·‖2 is the 2-norm.
[0037] Compared with the prior art, the present invention has the following beneficial effects:
[0038] 1. The present invention is an intelligent data recovery method, which is fully automatic and does not require human intervention or prior information.
[0039] 2. The present invention is a fast data recovery method with a short processing time, which greatly improves the efficiency of the recovery algorithm.
[0040] 3. The present invention is a more accurate data recovery method, which provides a guarantee for obtaining reliable quantitative analysis results of nuclear magnetic resonance time domain data. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Figure 1 It is a structural diagram based on the one-dimensional U-Net network model;
[0042] Figure 2 Comparison of NMR time domain data before and after recovery: (a) NMR time domain data with interference, signal-to-noise ratio is 30; (b) NMR time domain data without interference restored by the prediction model RecTD-NMR Net;
[0043] Figure 3 Comparison diagram of relaxation time distribution inverted from NMR time domain data with interference and relaxation time distribution inverted from NMR time domain data without interference restored by the prediction model RecTD-NMR Net: (a) is the relaxation time distribution inverted from NMR time domain data with interference, the solid line is the ideal relaxation time distribution, and the dotted line is the relaxation time distribution inverted from NMR time domain data with interference; (b) is the relaxation time distribution inverted from NMR time domain data without interference restored by the prediction model RecTD-NMR Net, the solid line is the ideal relaxation time distribution, and the dotted line is the relaxation time distribution inverted from NMR time domain data restored by the prediction model RecTD-NMRNet. DETAILED DESCRIPTION
[0044] In order to facilitate those skilled in the art to understand and implement the present invention, the present invention is further described in detail below in conjunction with embodiments. It should be understood that the implementation examples described herein are only used to illustrate and explain the present invention and are not used to limit the present invention.
[0045] A low-field NMR time-domain data recovery method based on U-Net comprises the following steps:
[0046] The NMR nuclear spin response of the multi-spin echo experiment is used to establish the odd-even echo data model, which is used to establish the NMR time domain signal with interference.
[0047] In this embodiment, the NMR nuclear spin response of the multi-spin echo experiment is used to establish an odd-even echo data model, and the NMR time domain signal containing interference can be obtained according to the odd-even echo data model. The odd-even echo data model is shown in formula (1).
[0048]
[0049] Wherein, C0(nτ)<1 is the influence factor of imperfect refocusing of magnetization vector, which makes the amplitude of echo train actually collected lower than that of ideal model; C1(nτ)<1 is the influence factor of odd echo; τ is the echo sampling time; T2 is the NMR relaxation time; f(T2) is the distribution of NMR relaxation time T2, f(T2)≥0; ε is noise, and Rice noise is used in this embodiment; is the amplitude of the NMR time domain signal containing interference, n is a positive integer, n≤N, and N represents the number of echoes.
[0050] Establishing a data model of NMR time-domain signals without interference
[0051] In this embodiment, the interference-free NMR time domain signal data model is obtained based on the following formula (2):
[0052]
[0053] An NMR time domain signal without interference can be obtained according to the NMR time domain signal data model.
[0054] Step 1: Generate training samples
[0055] Step 1.1: Generate 1000 different NMR relaxation times T2 in the range of 0.1 ms to 1000 ms.
[0056] Step 1.2: The echo sampling time τ is 0.1ms and the echo number N is 10000.
[0057] Step 1.3: Construct a single-component single training sample pair. The single-component NMR time domain signal with interference and the single-component NMR time domain signal without interference constitute a single-component single training sample pair. The single-component NMR time domain signal with interference is constructed as shown in Formula 3, and the single-component NMR time domain signal without interference is constructed as shown in Formula 4.
[0058]
[0059]
[0060] Randomly select an NMR relaxation time T2 from step 1.1, and f(T2) is 1; simulate random noise, and the simulated random noise is Ricean distributed. C0(nτ) randomly selects a value between 0.8 and 1, and C1(nτ) randomly selects a value between 0.9 and 1. According to formula (3) and formula (4), the single-component NMR time domain signal with interference and the single-component NMR time domain signal without interference are calculated respectively to form a single-component single training sample pair.
[0061] Step 1.4: Construct a two-component single training sample pair. The two-component NMR time domain signal with interference and the two-component NMR time domain signal without interference constitute a two-component single training sample pair. The two-component NMR time domain signal with interference is constructed as shown in formula (5), and the two-component NMR time domain signal without interference is constructed as shown in formula (6).
[0062]
[0063]
[0064] Randomly select two NMR relaxation times T2 from step 1.1 and record them as NMR relaxation time T 2_1 and NMR relaxation time T 2_2 , the distribution of NMR relaxation times f(T 2_1 ) and the distribution of NMR relaxation times f(T 2_2 ) is 1, that is, f(T 2_1 )+f(T 2_2 )=1. Simulate random noise, and the simulated random noise is Rice distribution. C0(nτ) randomly selects a value between 0.8 and 1, and C1(nτ) randomly selects a value between 0.9 and 1. According to formula (5) and formula (6), the two-component NMR time domain signal with interference and the two-component NMR time domain signal without interference are calculated respectively to form a two-component single training sample pair.
[0065] Step 1.5: Construct a three-component single training sample pair. The three-component NMR time domain signal with interference and the three-component NMR time domain signal without interference constitute a three-component single training sample pair. The three-component NMR time domain signal with interference is constructed as shown in formula (7), and the three-component NMR time domain signal without interference is constructed as shown in formula (8).
[0066]
[0067]
[0068] Randomly select three NMR relaxation times T2 from step 1.1 as NMR relaxation times T 2_1 , NMR relaxation time T 2_2 and NMR relaxation time T 2_3 , the distribution of NMR relaxation times f(T 2_1 ), the distribution of NMR relaxation time f(T 2_2 ) and the distribution of NMR relaxation times f(T 2_3 ) is 1, that is, f(T 2_1 )+f(T 2_2 )+f(T 2_3 )=1. Simulate random noise, and the simulated random noise is Rice distribution. C0(nτ) randomly selects a value between 0.8 and 1, and C1(nτ) randomly selects a value between 0.9 and 1. According to formula (7) and formula (8), the three-component NMR time domain signals with interference and the three-component NMR time domain signals without interference are calculated respectively to form three-component single training sample pairs.
[0069] Step 1.6: Repeat steps 1.3-1.5 to batch generate quantitative sample pair data sets (l=1,2,3..50000), where is the NMR time domain signal with interference, M l is the NMR time domain signal without interference, and l is the sample pair number. Including: single-component NMR time domain signal with interference, two-component NMR time domain signal with interference, three-component NMR time domain signal with interference, and NMR time domain signal without interference M l Including: single-component NMR time domain signal without interference, two-component NMR time domain signal without interference, and three-component NMR time domain signal without interference. and the interference-free NMR time domain signal M l The components correspond to each other.
[0070] Step 2: Build a one-dimensional U-Net network model
[0071] The network model established in this embodiment is a one-dimensional U-Net network model. This network structure can implicitly extract the deep features of input data with Rice noise to achieve the effect of noise reduction. The one-dimensional U-Net network model includes an encoding path and a decoding path, such as Figure 1As shown in the figure. The encoding path has 4 encoding modules, each of which includes a one-dimensional convolution (Conv1D) layer (the convolution kernel is 2), a Sigmoid activation function, a batch normalization (Batch Normalization, BN) layer and a one-dimensional maximum pooling (Max Pooling) layer (the pooling convolution kernel is 2). The number of feature channels will double after each encoding module. The decoding path has 4 decoding modules, each of which includes a one-dimensional deconvolution (Conv1D Transpose) layer (the convolution kernel is 2), a Sigmoid activation function, a batch normalization (Batch Normalization, BN) layer and an upsampling (UpSampling) layer (the convolution kernel is 2). The number of feature channels will be halved after each decoding module. A skip connection is established between the decoding module on the decoding path and the corresponding encoding module on the encoding path. The feature output layer after the decoding path includes an output convolution layer and a linear rectifier function (Rectified Linear Unit, ReLU).
[0072] The appropriate loss function is one of the core factors that determine and improve the prediction ability of the network model. The loss function of the 1D U-Net network model is shown in formula (9):
[0073]
[0074] in, is the NMR time domain data containing interference in the simulated ι-th sample pair Compared with the interference-free NMR time domain signal M ι The mapping relationship between them, Θ is the weight value in the one-dimensional U-Net network model, N B is the total number of sample pairs, and ‖·‖2 is the 2-norm.
[0075] Step 3: Model training
[0076] In order to effectively train the one-dimensional U-Net network model, firstly, the sample pair dataset prepared in step 1 is The order of the sample pairs in (l=1,2,3..50000) is shuffled, and then 40,000 sample pairs are randomly selected as the training data set to train the one-dimensional U-Net network model to minimize the loss function and obtain the optimal mapping relationship between the NMR time domain data with interference and the NMR time domain signal without interference. The remaining 10,000 sample pairs are used as the validation data set to evaluate the one-dimensional U-Net network model during the training process and fine-tune the hyperparameters of the one-dimensional U-Net network model to improve the generalization ability of the one-dimensional U-Net network model. The optimal mapping relationship between the NMR time domain data with interference and the NMR time domain signal without interference constitutes the prediction model RecTD-NMR Net.
[0077] In this embodiment, the hyperparameters of the one-dimensional U-Net network model are set as follows: The number of iterations (epoch) is 3000, and the batch size (Batch Size) is 200. The optimizer uses the adaptive moment estimation algorithm (Adam), the initial learning rate is 1e-4, and it is set that if the loss does not decrease after every 5 epochs, the learning rate will be reduced to 0.1 times the original value, the minimum learning rate is 1e-6, and the initialization weight parameter of the convolution layer is the Kaiming uniform distribution function.
[0078] Step 4: Data Recovery
[0079] The NMR time domain data with interference is input into the prediction model (RecTD-NMR Net) learned in step 3 for prediction, and the corresponding restored NMR time domain data without interference is output.
[0080] Figure 2 Shown in the figure is a comparison of NMR time domain data before and after recovery. Figure 3 The inversion results of NMR time domain data before and after recovery are compared with the ideal results. It can be seen that the inversion results of NMR time domain data after recovery are closer to the ideal signal.
[0081] The specific embodiments described herein are merely examples of the spirit of the present invention. Those skilled in the art may make various modifications or additions to the specific embodiments described or replace them in similar ways, but they will not deviate from the spirit of the present invention or exceed the scope defined by the appended claims.
Claims
1. A low-field NMR time-domain data recovery method based on U-Net, characterized in that: The following steps are involved: Step 1: Build a sample pair dataset in is the NMR time domain signal with interference, M l is the NMR time domain signal without interference, l is the sample pair number, and the NMR time domain signal with interference and the interference-free NMR time domain signal M l The components correspond to each other; Step 2: Establish a one-dimensional U-Net network model. Step 3: In the sample pair dataset Randomly select sample pairs as training data sets and validation data sets, train the one-dimensional U-Net network model with the training data set to minimize the loss function and obtain the optimal mapping relationship between the NMR time domain data with interference and the NMR time domain signal without interference. The validation data set evaluates the one-dimensional U-Net network model during the training process, and fine-tunes the hyperparameters of the one-dimensional U-Net network model to improve the generalization ability of the one-dimensional U-Net network model. The optimal mapping relationship between the NMR time domain data with interference and the NMR time domain signal without interference constitutes a prediction model. Construct a sample pair data set in step 1 The following steps are involved: Step 1.1, generate different NMR relaxation times, Step 1.2: Determine the echo sampling time τ and the number of echoes N. Step 1.3, construct a single-component single training sample pair. The single-component NMR time domain signal with interference and the single-component NMR time domain signal without interference constitute a single-component single training sample pair. The single-component NMR time domain signal with interference is constructed based on the following formula: The construction of single-component interference-free NMR time domain signal is based on the following formula: in, is the amplitude of the NMR time-domain signal with interference, n is a positive integer, T2 is a randomly selected NMR relaxation time in step 1.1, f(T2) is 1, C0(nτ) is a random value between 0.8 and 1, C1(nτ) is a random value between 0.9 and 1, ε(nτ) is the Rice noise, Step 1.4: Construct a two-component single training sample pair. The two-component NMR time domain signal with interference and the two-component NMR time domain signal without interference constitute a two-component single training sample pair. The construction of the two-component NMR time domain signal containing interference is based on the following formula: The construction of the two-component interference-free NMR time domain signal is based on the following formula: T 2_1 and T 2_2 Two NMR relaxation times are randomly selected from step 1.
1. The distribution of NMR relaxation time f(T 2_1 ) and the distribution of NMR relaxation times f(T 2_2 ) is 1, Step 1.5: Construct a three-component single training sample pair. The three-component NMR time domain signals with interference and the three-component NMR time domain signals without interference constitute a three-component single training sample pair. The three-component NMR time domain signal with interference is constructed based on the following formula: The construction of the three-component interference-free NMR time domain signal is based on the following formula: T 2_1 、T 2_2 , and T 2_3 Three NMR relaxation times are randomly selected from step 1.
1. The distribution of NMR relaxation time f(T 2_1 ), the distribution of NMR relaxation time f(T 2_2 ) and the distribution of NMR relaxation times f(T 2_3 ) is 1, Step 1.6: Repeat steps 1.3-1.5 to generate a sample pair dataset NMR time domain signal with interference Including: single-component NMR time domain signal with interference, two-component NMR time domain signal with interference, three-component NMR time domain signal with interference, and NMR time domain signal without interference M l Including: single-component NMR time domain signal without interference, two-component NMR time domain signal without interference, and three-component NMR time domain signal without interference.
2. A U-Net-based low-field NMR time-domain data recovery method according to claim 1, characterized in that: The loss function in step 3 is based on the following formula: in, is the NMR time domain data containing interference in the simulated ι-th sample pair Compared with the interference-free NMR time domain signal M ι The mapping relationship between them, Θ is the weight value in the one-dimensional U-Net network model, N B is the total number of sample pairs, and ‖·‖2 is the 2-norm.
