Decoding noise reduction method, apparatus, device, and medium

By employing a dual-path neural network and time-frequency feature fusion method, combined with an attention mechanism and a dynamic pulse template library, the decoding adaptability problem of mud pulse signals under dynamic working conditions was solved, achieving accurate decoding and improved robustness in high-noise environments.

CN123185033APending Publication Date: 2026-11-27CNPC GREATWALL DRILLING COMPANY +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202610998054.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-06
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing mud pulse signal decoding methods are not adaptable enough to dynamic working conditions such as changes in drilling speed and pump frequency fluctuations. They are difficult to effectively handle the decrease in signal-to-noise ratio and increase in bit error rate caused by multi-source interference, and it is difficult to balance decoding accuracy and real-time performance.

Method used

A dual-path neural network architecture is used to extract periodic noise and non-periodic vibration noise respectively. By combining time-frequency feature fusion and attention mechanism, the pulse template library is dynamically updated to perform peak detection and output target instruction code.

Benefits of technology

It achieves accurate and robust decoding of mud pulse signals in high-noise environments, improves the robustness and field adaptability of the system, reduces the risk of false peak identification, and adapts to dynamic working conditions such as drilling speed changes and pump frequency jumps.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123185033A_ABST
    Figure CN123185033A_ABST
Patent Text Reader

Abstract

The embodiment of the application provides a decoding denoising method, device, equipment and medium, and belongs to the technical field of oil and gas exploration and development. The method comprises the following steps: preprocessing an original mud pulse signal to obtain a preprocessed signal; inputting the preprocessed signal into a first neural network and a second neural network respectively; performing noise suppression on the preprocessed signal based on periodic noise estimation and non-periodic vibration noise estimation to obtain a preliminary denoised signal; performing time domain feature extraction and frequency domain feature extraction on the preliminary denoised signal, and fusing the time domain feature and the frequency domain feature to obtain time-frequency fusion features; performing peak value detection on the time-frequency fusion features based on an attention mechanism and a dynamically updated pulse template library to obtain pulse timing information; and outputting a target instruction code based on the pulse timing information. The application can improve the adaptability of decoding denoising under dynamic working conditions.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of oil and gas exploration and development technology, and specifically to a decoding and noise reduction method, apparatus, equipment and medium. Background Technology

[0002] Mud pulse signals, as the mainstream uplink data transmission method in measurement-while-drilling (MWD) systems, are widely used in oil and gas drilling operations. In traditional engineering practice, surface systems typically rely on signal processing algorithms such as bandpass filters, sliding threshold methods, and maximum peak tracking to extract and decode features from mud pressure curves. However, mud pulse signals are highly susceptible to interference from multiple sources in actual well environments, including periodic pressure fluctuations from mud pumps, mechanical vibrations of drill strings, and wellbore flow noise, resulting in signal distortion and a significant decrease in the signal-to-noise ratio (SNR). The aforementioned traditional methods heavily rely on empirical parameter adjustments, are sensitive to downhole drilling rate fluctuations, pump pulse frequency changes, and vibration disturbances, and exhibit a significant increase in bit error rate under low SNR (SNR < 3dB) conditions, while also struggling to balance decoding accuracy and real-time performance.

[0003] In recent years, some studies have attempted to introduce artificial intelligence models such as neural networks to automatically extract effective pulse features from the time or frequency domains through training, thereby improving decoding performance under nonlinear interference. However, existing deep learning methods mainly focus on single-modal modeling and fail to structurally separate multi-source interference such as pump noise and vibration. Furthermore, they lack end-to-end fusion optimization of key aspects such as template matching, context decoding, and error checking, resulting in decoding performance still limited by issues such as missing local features and misidentified peaks. In addition, with the increasing frequency of operations in long deep well sections, signal transmission delay, compression distortion, and phase drift become more prominent, and existing methods remain insufficiently adaptable to dynamic conditions such as changes in drilling speed and pump frequency fluctuations. Summary of the Invention

[0004] The purpose of this invention is to provide a decoding and noise reduction method, apparatus, device, and medium to solve the problem of insufficient adaptability of existing decoding and noise reduction methods under dynamic working conditions such as drilling speed changes and pump frequency jumps.

[0005] To achieve the above objectives, in a first aspect, embodiments of the present invention provide a decoding and noise reduction method, the method comprising: The original mud pulse signal is preprocessed to obtain the preprocessed signal; The preprocessed signals are input into a first neural network and a second neural network, respectively. The first neural network is used to extract periodic noise estimates, and the second neural network is used to extract non-periodic vibration noise estimates. Based on the periodic noise estimation and non-periodic vibration noise estimation, noise suppression is performed on the preprocessed signal to obtain a preliminary denoised signal; The initial noise-reduced signal is subjected to time-domain feature extraction and frequency-domain feature extraction, and the time-domain features and frequency-domain features are fused to obtain time-frequency fusion features; Based on the attention mechanism and a dynamically updated pulse template library, peak detection is performed on the time-frequency fusion features to obtain pulse timing information; Based on the pulse timing information, the target instruction code is output.

[0006] Optionally, the input features of the first neural network include the instantaneous amplitude of the signal, the first-order difference, the second-order difference, and the pump stroke timing mark; the input of the second neural network includes the time spectrum of the signal and triaxial vibration sensor data.

[0007] Optionally, the noise suppression is achieved by a first formula, which is:

[0008] in, This is the initial noise reduction signal. The preprocessed signal For periodic noise estimation, For non-periodic vibration noise estimation, and This is the noise suppression coefficient.

[0009] Optionally, the method further includes: Obtain downhole temperature and / or vibration intensity; A temperature compensation factor is calculated based on the downhole temperature, and the learning rate of the first neural network and / or the second neural network is adjusted based on the temperature compensation factor; and / or, The noise suppression coefficient is adjusted according to the vibration intensity.

[0010] Optionally, the time-domain feature extraction employs multi-layer dilated causal convolution, with the dilation factor of each layer increasing exponentially; the frequency-domain feature extraction employs complex convolution to process the short-time Fourier transform spectrum in order to preserve phase information.

[0011] Optionally, the expansion factor of the multilayer dilatational causal convolution is dynamically adjusted according to the real-time downhole drilling rate.

[0012] Optionally, the dilation factor sequence includes 1, 2, 4, 8, and 16; the complex convolution is calculated using a second formula, which is:

[0013] in, and These are the real and imaginary parts of a complex number, respectively. and It is the convolution kernel.

[0014] Optionally, the time-frequency fusion features are calculated using a third formula, which is:

[0015] in, As a time-frequency fusion feature, For time domain features, For frequency domain characteristics, For the Sigmoid function, For element-wise multiplication, This indicates feature splicing.

[0016] Optionally, the attention mechanism calculates the attention score of the current signal segment and each template in the pulse template library, and introduces a pump stroke mask to suppress interference peaks during the pump cycle.

[0017] Optionally, the pulse template library is dynamically updated using a clustering algorithm, with the update formula being:

[0018] in, and Let be the k-th template before and after the update, respectively, and λ be the smoothing factor. For the set of samples belonging to the k-th template, The number of samples in the sample set. A single sample in the sample set.

[0019] Optionally, the step of outputting the target instruction code based on the pulse timing information includes: The pulse timing information is decoded to obtain the initial instruction code; Perform verification on the initial instruction code; If the verification passes, the initial instruction code will be output as the target instruction code. If the verification fails, a graph neural network or a multilayer perceptron is used to predict the flip probability of each bit in the initial instruction code, and the erroneous bits are corrected according to the flip probability. The corrected instruction code is then output as the target instruction code.

[0020] Optionally, the step of predicting the flip probability of each bit in the initial instruction code using a graph neural network or a multilayer perceptron, and correcting erroneous bits based on the flip probability, includes: For each bit in the initial instruction code, calculate the confidence level of the bit; Obtain the value of the bit, the confidence level, and the sum of the values ​​of the neighboring bits of the bit; The bit value, confidence level, and sum are input into the multilayer perceptron, and the bit flip probability is output. If the flip probability is greater than a preset threshold, the value of the bit is inverted.

[0021] Secondly, embodiments of the present invention provide a decoding and noise reduction device, the device comprising: The processing module is used to preprocess the raw mud pulse signal to obtain the preprocessed signal; The input module is used to input the preprocessed signal into a first neural network and a second neural network, respectively, wherein the first neural network is used to extract periodic noise estimation and the second neural network is used to extract non-periodic vibration noise estimation. The suppression module is used to suppress noise in the preprocessed signal based on the periodic noise estimation and the non-periodic vibration noise estimation to obtain a preliminary noise-reduced signal. The extraction module is used to extract time-domain features and frequency-domain features from the preliminary noise reduction signal, and to fuse the time-domain features and frequency-domain features to obtain time-frequency fusion features; The detection module is used to perform peak detection on the time-frequency fusion features based on an attention mechanism and a dynamically updated pulse template library to obtain pulse timing information; The output module is used to output the target instruction code based on the pulse timing information.

[0022] Thirdly, embodiments of the present invention provide an electronic device, the electronic device comprising: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, it implements the decoding and noise reduction method as described in the first aspect.

[0023] Fourthly, embodiments of the present invention provide a computer-readable storage medium storing computer program instructions, which, when executed by a processor, implement the decoding and noise reduction method as described in the first aspect.

[0024] In this application, periodic noise estimation and non-periodic vibration noise estimation are extracted by a first neural network and a second neural network, respectively, achieving structured separation and targeted suppression of pump noise and vibration interference, effectively solving the problem of insufficient multi-source noise processing capability of single-mode modeling. Based on this, the time-domain and frequency-domain features of the denoised signal are jointly extracted and fused, fully exploring the temporal structure and spectral characteristics of the pulse signal and avoiding the loss of local features. Furthermore, an attention mechanism and a dynamically updated pulse template library are introduced for peak detection, enhancing the ability to identify effective pulses under complex interference and significantly reducing the risk of false peak identification. The entire process, from signal preprocessing to instruction code output, forms an end-to-end fusion optimization without manual intervention. Simultaneously, because each module adopts a learnable neural network and a dynamic template update mechanism, it can adapt to dynamic working conditions such as drilling speed changes and pump frequency jumps, improving the system's robustness and field adaptability. Therefore, this invention effectively overcomes the shortcomings of existing deep learning decoding methods in multi-source noise separation, feature fusion, dynamic adaptability, and end-to-end optimization, achieving accurate and robust decoding of mud pulse signals in high-noise environments with strong adaptability.

[0025] Other features and advantages of the embodiments of the present invention will be described in detail in the following detailed description section. Attached Figure Description

[0026] The accompanying drawings are provided to further illustrate embodiments of the present invention and form part of the specification. They are used together with the following detailed description to explain the embodiments of the present invention, but do not constitute a limitation thereof. In the drawings: Figure 1 The schematic diagram illustrates a flowchart of a decoding and noise reduction method according to an embodiment of this application; Figure 2 The schematic diagram illustrates the structure of a decoding and noise reduction device according to an embodiment of this application; Figure 3 The schematic diagram illustrates the hardware structure of the electronic device provided in the embodiments of this application. Detailed Implementation

[0027] The specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are for illustration and explanation only and are not intended to limit the scope of the present invention.

[0028] The specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are for illustration and explanation only and are not intended to limit the scope of the present invention.

[0029] It should be noted that the acquisition, transmission, storage, use, and processing of data in the technical solution of this application all comply with the relevant provisions of national laws and regulations. In the embodiments of this application, certain existing industry solutions such as software, components, and models may be mentioned. These should be considered exemplary, intended only to illustrate the feasibility of implementing the technical solution of this application, and do not imply that the applicant has already used or necessarily used such solutions.

[0030] Figure 1 The illustration schematically shows a flowchart of a decoding and noise reduction method according to an embodiment of this application. Figure 1 As shown in the figure, this application provides a decoding and noise reduction method, which includes: Step 101: Preprocess the original mud pulse signal to obtain the preprocessed signal; In this embodiment, in actual well site environments, the raw mud pulse signal is typically superimposed with DC drift and amplitude fluctuations. Therefore, this step first performs high-precision sampling of the raw mud pulse signal, setting the sampling frequency to at least five times the highest signal frequency to ensure no distortion of pulse details. Subsequently, a sliding window method is used to segment the sampled signal, with the window length and overlap rate set according to the pulse period characteristics to support real-time streaming processing. For each signal segment, a sliding mean filter is used to eliminate the DC component and remove steady-state offsets caused by sensor temperature drift or pump pressure fluctuations; then, maximum absolute value normalization or Z-sigma normalization is applied. score The standardization method adjusts the signal amplitude to a standard range, making the input data distribution suitable for the subsequent neural network processing requirements. After the above processing, a standardized, continuous, and complete preprocessed signal is obtained, providing a stable and reliable input for subsequent noise separation.

[0031] In an alternative embodiment, the raw signal can first be acquired by sampling at a high frequency of 20 kHz to ensure that details of each pulse are captured. The signal is then segmented into fixed windows of 100 ms, with a 20% overlap between each segment to ensure signal continuity and coverage integrity.

[0032] To eliminate zero-point offset and platform fluctuations, the system uses a moving average filter to eliminate the DC component in each segment:

[0033] Where N represents the number of data points within the window. Next, Z is used... score Standardization scales all segmented signals to a uniform numerical range:

[0034] Step 102: The preprocessed signal is input into the first neural network and the second neural network respectively, wherein the first neural network is used to extract periodic noise estimation and the second neural network is used to extract non-periodic vibration noise estimation. This step employs a dual-path parallel neural network architecture to model multi-source noise in the preprocessed signal. The first neural network is designed to address the periodic pressure fluctuations generated by the mud pump operation. Its input includes the instantaneous amplitude of the signal, first-order difference, second-order difference, and synchronously acquired pump stroke timing markers. It learns the periodic dependence of the pump stroke cycle through a multi-layer time-series network (such as LSTM) and outputs a periodic noise estimate. The second neural network is used to suppress broadband random vibration noise caused by downhole drilling tool movement. Its input integrates the time-spectrum graph of the preprocessed signal with triaxial vibration sensor data (acceleration signals in the X, Y, and Z directions). It extracts the frequency and spatial distribution patterns of the vibration through a convolutional network and outputs a non-periodic vibration noise estimate. The two networks operate in parallel, specifically modeling two types of interference from different physical sources, laying the foundation for subsequent precise noise suppression.

[0035] In an alternative embodiment, the two main types of disturbances at the well site are: ① periodic fluctuations generated by the mud pump (approximately 0.5s per cycle); ② broadband oscillations caused by drill string movement. To address these two types of noise, this system designs two independent sub-networks: The LSTM network processes periodic pump noise. The input includes the original signal amplitude, its first and second derivatives, and the synchronously acquired pump stroke timing (i.e., pump stroke timing markers). The model learns a periodic pattern and outputs a pump noise estimate:

[0036] in, , , , These are the original signal amplitude, its first and second derivatives, and the pump stroke beat acquired synchronously.

[0037] A CNN network models vibration noise, with its input coming from a triaxial accelerometer. The STFT spectrum of the signal is used to capture broadband non-stationary disturbance characteristics in the frequency domain:

[0038] in The time spectrum of the signal. These are triaxial vibration components; Step 103: Based on the periodic noise estimation and aperiodic vibration noise estimation, noise suppression is performed on the preprocessed signal to obtain a preliminary denoised signal; After obtaining the periodic noise estimates and aperiodic vibration noise estimates, this step uses a weighted subtraction method to remove these two types of noise components from the preprocessed signal. Specifically, the preprocessed signal is denoted as S. raw The periodic noise estimate is denoted as N. p The non-periodic vibration noise estimate is denoted as N. v The initial noise reduction signal S clean Calculated using the following formula: ; in, This is the initial noise reduction signal. The preprocessed signal For periodic noise estimation, For non-periodic vibration noise estimation, and The noise suppression coefficient, in an optional embodiment, can be respectively... and The above coefficients can be dynamically adjusted according to the actual noise intensity at the well site to achieve the best suppression effect. This step can effectively eliminate periodic spike interference caused by pump stroke and broadband background noise generated by drill string vibration, significantly improve the signal-to-noise ratio, and obtain a high-quality preliminary noise reduction signal.

[0039] Step 104: Extract time-domain features and frequency-domain features from the preliminary noise reduction signal, and fuse the time-domain features and frequency-domain features to obtain time-frequency fusion features; To fully extract pulse morphology and frequency distribution information from the denoised signal, this step constructs a time-frequency dual-stream feature extraction network. The time-domain branch employs a multi-layer dilated causal convolution structure, with the dilation factor of each convolution layer increasing exponentially (e.g., 1, 2, 4, 8, 16). This expands the receptive field while maintaining temporal causality, effectively capturing long-range dependent features across multiple pulse cycles. The frequency-domain branch first performs a short-time Fourier transform on the initial denoised signal to obtain a time-spectrum image. Then, a complex convolutional network processes this spectrum image. Complex convolution can simultaneously preserve the real and imaginary parts of the spectrum, avoiding phase loss and thus accurately extracting the dominant frequency position and harmonic structure of the pulse signal. Finally, a gated fusion mechanism integrates the time-domain and frequency-domain features: a learnable weight vector is calculated, the two features are weighted and combined, and then subjected to a nonlinear transformation to generate a time-frequency fused feature containing rich temporal and spectral information. This fused feature provides a complete representation for subsequent peak detection.

[0040] In one embodiment, the dilation factor sequence includes 1, 2, 4, 8, and 16; the complex convolution is calculated using a second formula, which is:

[0041] in, and These are the real and imaginary parts of a complex number, respectively. and It is the convolution kernel.

[0042] In one embodiment, the time-frequency fusion feature is calculated using a third formula, which is:

[0043] in, As a time-frequency fusion feature, For time domain features, For frequency domain characteristics, For the Sigmoid function, For element-wise multiplication, This indicates feature splicing.

[0044] In an optional embodiment, downhole mud signals often exhibit waveform broadening and distortion due to factors such as varying tubing length and formation impedance. To comprehensively extract pulse characteristics, this system uses a "time-frequency dual-stream architecture": The temporal branch employs a five-layer dilated causal convolution (D-Conv) to support long-term pulse morphology modeling within a window, with the dilation factor expanded from 1 to 16, resulting in a wide receptive field.

[0045] The frequency domain branch processes the spectrogram based on a complex convolution structure (ComplexConv2d), preserving the phase and amplitude information of the STFT, which helps to identify frequency domain changes.

[0046] The two outputs are fused into a unified feature vector through a gating mechanism for subsequent peak detection.

[0047] in, As a time-frequency fusion feature, For time domain features, For frequency domain characteristics, For the Sigmoid function, For element-wise multiplication, This indicates feature splicing.

[0048] Step 105: Based on the attention mechanism and the dynamically updated pulse template library, peak detection is performed on the time-frequency fusion features to obtain pulse timing information; In one embodiment, the attention mechanism calculates the attention score of the current signal segment and each template in the pulse template library, and introduces a pump stroke mask to suppress interference peaks during the pump cycle.

[0049] In this embodiment, under strong noise conditions, the waveform of a single pulse may be distorted, making it difficult to stably locate the signal using traditional fixed threshold methods. This step introduces a template matching detection framework based on an attention mechanism. The system maintains a dynamically updated pulse template library, which contains several typical waveform templates extracted from historically successfully decoded pulses using a clustering algorithm. For the current signal segment, it is used as a query, and the template library is used as the key and value. An attention score map is obtained through multi-head attention calculation. Simultaneously, to avoid periodic false peak interference caused by the mud pump stroke, a pump stroke mask is introduced into the attention score calculation, resetting the attention weight of the time position corresponding to the pump cycle to negative infinity, thereby effectively shielding the interference during that period. In the attention score heatmap, the peak position corresponds to the pulse arrival time. To further improve positioning accuracy, a differentiable nonmaximum suppression algorithm is used to extract precise peak coordinates from the heatmap and output pulse timing information (such as the timestamp of each pulse). The dynamic template library is continuously updated with newly decoded pulses, enabling the model to adapt to waveform drift caused by changes in downhole operating conditions.

[0050] Specifically, in one optional embodiment, traditional threshold-based detection methods are prone to misjudgment because the pump stroke may induce spurious pulse peaks. Therefore, the system introduces an attention mechanism and establishes a dynamic pulse template library: Current signal segment Q and template library T k Compare attention scores:

[0051] in It is a mask matrix generated based on the pump cycle:

[0052] Template updates are dynamically adjusted using an exponential smoothing method to adapt to different formations:

[0053] in, and Let be the k-th template before and after the update, respectively, and λ be the smoothing factor, which can be 0.9. For the set of samples belonging to the k-th template, The number of samples in the sample set. A single sample in the sample set.

[0054] The final peak position was extracted from the heatmap using the differentiable nonmaximum suppression algorithm (NMS), and the actual positioning accuracy was stable at 0.5~1ms.

[0055] Step 106: Output the target instruction code based on the pulse timing information.

[0056] After obtaining the pulse timing information, this step converts it into a command code for downhole instrument transmission. First, the time intervals of adjacent pulses are mapped to binary bits based on the pulse timing information (e.g., short intervals represent 0, long intervals represent 1), resulting in an initial command code sequence. Then, this initial command code is verified: a Cyclic Redundancy Check (CRC) algorithm (e.g., CRC-16) is used to verify its integrity. If the verification passes, it is directly output as the final target command code; if the verification fails, an AI-assisted error correction mechanism is activated. Specifically, using a graph neural network or multilayer perceptron, based on the current bit value, confidence level, and contextual information of adjacent bits, the flip probability of each bit is predicted; when the flip probability exceeds a preset threshold (e.g., 0.7), the bit is inverted. The corrected command code is the final output target command code. This step combines traditional verification with deep learning fault tolerance, significantly improving the decoding success rate under strong noise interference.

[0057] In this embodiment, periodic noise estimation and non-periodic vibration noise estimation are extracted by the first neural network and the second neural network, respectively, achieving structured separation and targeted suppression of pump noise and vibration interference. This effectively solves the problem of insufficient multi-source noise processing capability of single-mode modeling. Based on this, the time-domain and frequency-domain features of the denoised signal are jointly extracted and fused, fully exploring the temporal structure and spectral characteristics of the pulse signal and avoiding the loss of local features. Furthermore, an attention mechanism and a dynamically updated pulse template library are introduced for peak detection, enhancing the ability to identify effective pulses under complex interference and significantly reducing the risk of false peak identification. The entire process, from signal preprocessing to instruction code output, forms an end-to-end fusion optimization without manual intervention. Simultaneously, because each module adopts a learnable neural network and a dynamic template update mechanism, it can adapt to dynamic working conditions such as drilling speed changes and pump frequency jumps, improving the system's robustness and field adaptability. Therefore, this invention effectively overcomes the shortcomings of existing deep learning decoding methods in multi-source noise separation, feature fusion, dynamic adaptability, and end-to-end optimization, achieving accurate and robust decoding of mud pulse signals in high-noise environments with strong adaptability.

[0058] In one embodiment of this application, the method further includes: Obtain downhole temperature and / or vibration intensity; A temperature compensation factor is calculated based on the downhole temperature, and the learning rate of the first neural network and / or the second neural network is adjusted based on the temperature compensation factor; and / or, The noise suppression coefficient is adjusted according to the vibration intensity.

[0059] In this embodiment, the current bottom hole temperature T (in degrees Celsius) and the triaxial vibration intensity vector V=(V) are acquired in real time using downhole sensors. x V y V z Temperature data is obtained from temperature sensors mounted on the drill string, and vibration intensity data is obtained from triaxial accelerometers. These parameters are updated at a fixed frequency (e.g., once per second) to dynamically adjust the model's operating parameters.

[0060] The high-temperature environment downhole (typically exceeding 85°C) can cause drift in electronic component characteristics and signal attenuation, thereby affecting the convergence stability of neural network models. Therefore, this invention calculates a temperature compensation factor based on the downhole temperature. The calculation formula is as follows:

[0061] Where T is the current real-time temperature. When T = 85℃, =1; when T>85℃ >1, the compensation factor increases; when T<85℃ <1, the compensation factor decreases.

[0062] Based on this temperature compensation factor, the learning rates of the first neural network (LSTM pump noise filter) and / or the second neural network (CNN vibration noise filter) are dynamically adjusted. The formula for calculating the real-time learning rate η is:

[0063] Where 0.001 is the basic learning rate, σ( () is the Sigmoid function. This is for vibration and noise gain. This adjustment mechanism ensures that the learning rate is appropriately increased to accelerate convergence in high-temperature environments and decreased to maintain stability in low-temperature environments.

[0064] The vibration intensity of the downhole drilling tool directly affects the accuracy of the vibration noise estimation Nv output by the second neural network. The vibration noise gain is calculated based on the triaxial vibration vector. : ; in This is a triaxial vibration vector; as the vibration intensity increases, β V This increases accordingly. The vibration noise gain is used to dynamically adjust the coefficients α and β in the noise suppression step.

[0065] It should be noted that the temperature compensation and vibration intensity adjustment mentioned above can be performed independently or in combination. Based on actual sensor data, the system updates the learning rate and noise suppression coefficient within each signal processing cycle, ensuring the neural network model always operates in a state adapted to the current downhole environment. Through this environmental awareness and adaptive mechanism, this invention effectively improves the model's decoding stability and noise reduction performance under extreme conditions such as high temperature and strong vibration.

[0066] In one embodiment of this application, the expansion factor of the multilayer dilatational causal convolution is dynamically adjusted according to the real-time downhole drilling rate.

[0067] In the temporal feature extraction process, the dilation factor of the multi-layer dilated causal convolution determines the receptive field size of the network, thus affecting the model's ability to capture pulse features at different time scales. Changes in downhole drilling rate (ROP) directly affect the transmission rate and pulse interval of the mud pulse signal: the higher the drilling rate, the more pulses are generated per unit time, and the shorter the pulse interval; the lower the drilling rate, the longer the pulse interval. To adapt to this dynamic characteristic, this invention introduces a mechanism for adaptively adjusting the dilation factor according to the real-time drilling rate.

[0068] Specifically, the current drilling rate is acquired in real time using downhole measurement-while-drilling (MWD) tools. For the 11th layer (out of 5) of the multi-layer dilatational causal convolution, the dilatation factor is no longer fixed to a preset sequence [1,2,4,8,16], but is dynamically calculated based on the real-time drilling rate. This embodiment adopts the following adjustment strategy: ; The expansion factor of the third layer varies with the drilling rate: d=4 when ROP=20 m / h; d3=2 when ROP=10 m / h; and d3=16 when ROP=40 m / h. The basic expansion factor of the remaining layers remains constant to ensure that the receptive field is within a reasonable range.

[0069] This dynamic adjustment mechanism enables the receptive field of the time-domain network to automatically scale with changes in drilling speed: at high drilling speeds (short pulse intervals), the expansion factor is appropriately reduced to avoid the receptive field becoming too large and causing aliasing of features from adjacent pulses; at low drilling speeds (long pulse intervals), the expansion factor is increased to ensure that the network can capture long-range dependencies spanning multiple pulse cycles. In this way, the present invention effectively enhances the adaptability of the time-domain feature extraction module to drilling speed fluctuations, maintaining the stability and accuracy of pulse morphology recognition at different drilling speeds.

[0070] In one embodiment of this application, the step of outputting the target instruction code based on the pulse timing information includes: The pulse timing information is decoded to obtain the initial instruction code; Perform verification on the initial instruction code; If the verification passes, the initial instruction code will be output as the target instruction code. If the verification fails, a graph neural network or a multilayer perceptron is used to predict the flip probability of each bit in the initial instruction code, and the erroneous bits are corrected according to the flip probability. The corrected instruction code is then output as the target instruction code.

[0071] In one embodiment, the step of predicting the flip probability of each bit in the initial instruction code using a graph neural network or a multilayer perceptron, and correcting erroneous bits based on the flip probability, includes: For each bit in the initial instruction code, calculate the confidence level of the bit; Obtain the value of the bit, the confidence level, and the sum of the values ​​of the neighboring bits of the bit; The bit value, confidence level, and sum are input into the multilayer perceptron, and the bit flip probability is output. If the flip probability is greater than a preset threshold, the value of the bit is inverted.

[0072] In this embodiment, the initial instruction code is obtained through decoding. The peak sequence can be modeled using a Transformer decoder, and the position information is adaptively adjusted using the real-time drilling rate ROP (Recovery Point Opportunity) for position encoding.

[0073] The initial instruction code is obtained after decoding. .

[0074] Perform CRC-16 check on the initial instruction code (polynomial G(x)=x) 16 +x 15 +x 2 +1). If the verification passes, the instruction code will be directly output as the target instruction code.

[0075] Fault tolerance correction in case of verification failure: If the decoding result fails the CRC-16 check, the GNN module is called to perform fault-tolerant prediction on local bits. Calculate the confidence level: for each bit The confidence level Confi is calculated based on the difference between its pulse amplitude and the ideal amplitude in the template library.

[0076] Feature extraction: Extract the value ci and confidence level of the current bit. and the sum of neighboring bit values , among which the neighborhood .

[0077] Predicting the flip probability: Input the above features into the MLP, and output the flip probability:

[0078] Bit correction: Set a threshold of 0.7, if If the value is greater than 0.7, then the bit is inverted. Otherwise, it remains unchanged, that is:

[0079] After processing all bits, the corrected instruction code is obtained, which is then output as the final target instruction code. It possesses high anti-interference decoding capabilities.

[0080] In this embodiment, through the above process, the present invention can effectively identify and repair bit errors caused by strong noise interference (such as pump surge false peaks and vibration shocks), significantly improving the fault tolerance capability of the decoding system and the reliability of output commands.

[0081] Figure 2 A schematic diagram of a decoding and noise reduction device provided in another embodiment of this application is shown. For ease of explanation, only the parts related to the embodiments of this application are shown.

[0082] Reference Figure 2 The decoding and noise reduction device 200 may include: Processing module 201 is used to preprocess the original mud pulse signal to obtain the preprocessed signal; The input module 202 is used to input the preprocessed signal into the first neural network and the second neural network respectively, wherein the first neural network is used to extract periodic noise estimation and the second neural network is used to extract non-periodic vibration noise estimation. The suppression module 203 is used to suppress noise in the preprocessed signal based on the periodic noise estimation and the non-periodic vibration noise estimation to obtain a preliminary noise-reduced signal. Extraction module 204 is used to extract time-domain features and frequency-domain features from the preliminary noise reduction signal, and to fuse the time-domain features and frequency-domain features to obtain time-frequency fusion features; The detection module 205 is used to perform peak detection on the time-frequency fusion features based on an attention mechanism and a dynamically updated pulse template library to obtain pulse timing information. The output module 206 is used to output the target instruction code based on the pulse timing information.

[0083] Figure 3 A schematic diagram of the hardware structure of the electronic device provided in an embodiment of this application is shown.

[0084] The device may include a processor 301 and a memory 302 storing program instructions.

[0085] When processor 301 executes the program, it implements the steps in any of the above method embodiments.

[0086] For example, the program can be divided into one or more modules / units, one or more of which are stored in memory 302 and executed by processor 301 to complete this application. The one or more modules / units can be a series of program instruction segments capable of performing a specific function, which describe the execution process of the program in the device.

[0087] Specifically, the processor 301 may include a central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits that can be configured to implement the embodiments of this application.

[0088] Memory 302 may include mass storage for data or instructions. For example, and not limitingly, memory 302 may include a hard disk drive (HDD), floppy disk drive, flash memory, optical disk, magneto-optical disk, magnetic tape, or Universal Serial Bus (USB) drive, or a combination of two or more of these. Where appropriate, memory 302 may include removable or non-removable (or fixed) media. Where appropriate, memory 302 may be internal or external to the integrated gateway disaster recovery device. In a particular embodiment, memory 302 is non-volatile solid-state memory.

[0089] Memory may include read-only memory (ROM), random access memory (RAM), disk storage media devices, optical storage media devices, flash memory devices, and electrical, optical, or other physical / tangible memory storage devices. Therefore, typically, memory includes one or more tangible (non-transitory) readable storage media (e.g., memory devices) encoded with software including computer-executable instructions, and when the software is executed (e.g., by one or more processors), it is operable to perform the operations described with reference to the methods according to one aspect of this disclosure.

[0090] The processor 301 implements any of the methods described above by reading and executing program instructions stored in the memory 302.

[0091] In one example, the electronic device may also include a communication interface 303 and a bus 33. The processor 301, memory 302, and communication interface 303 are connected via the bus 33 and communicate with each other.

[0092] The communication interface 303 is mainly used to realize communication between various modules, devices, units and / or equipment in the embodiments of this application.

[0093] Bus 33 includes hardware, software, or both, that couples components of an online data traffic metering device together. For example, and not limitingly, the bus may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a Front Side Bus (FSB), HyperTransport (HT) interconnect, an Industry Standard Architecture (ISA) bus, an Infinite Bandwidth Interconnect, a Low Pin Count (LPC) bus, a memory bus, a Microchannel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCI-X) bus, a Serial Advanced Technology Attachment (SATA) bus, a Video Electronics Standards Association Local (VLB) bus, or other suitable buses, or combinations of two or more of these. Where appropriate, bus 33 may include one or more buses. Although specific buses are described and illustrated in embodiments of this application, this application contemplates any suitable bus or interconnect.

[0094] Furthermore, in conjunction with the methods in the above embodiments, this application embodiment can provide a storage medium for implementation. This storage medium stores program instructions; when these program instructions are executed by a processor, they implement any of the methods in the above embodiments.

[0095] This application also provides a chip, which includes a processor and a communication interface. The communication interface and the processor are coupled. The processor is used to run programs or instructions to implement the various processes of the above method embodiments and achieve the same technical effect. To avoid repetition, it will not be described again here.

[0096] It should be understood that the chip mentioned in the embodiments of this application may also be referred to as a system-on-a-chip, system chip, chip system, or system-on-a-chip, etc.

[0097] This application provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the various processes of the above method embodiments and achieve the same technical effects. To avoid repetition, it will not be described again here.

[0098] It should be clarified that this application is not limited to the specific configurations and processes described above and shown in the figures. For the sake of brevity, detailed descriptions of known methods are omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of this application is not limited to the specific steps described and shown. Those skilled in the art can make various changes, modifications, and additions, or change the order of steps, after understanding the spirit of this application.

[0099] The functional modules shown in the above block diagram can be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, they can be, for example, electronic circuits, application-specific integrated circuits (ASICs), appropriate firmware, plug-ins, function cards, etc. When implemented in software, the elements of this application are programs or code segments used to perform the required tasks. Programs or code segments can be stored on machine-readable media or transmitted over a transmission medium or communication link via data signals carried on a carrier wave. "Machine-readable media" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, fiber optic media, radio frequency (RF) links, etc. Code segments can be downloaded via computer grids such as the Internet, intranets, etc.

[0100] It should also be noted that the exemplary embodiments mentioned in this application describe methods or systems based on a series of steps or apparatus. However, this application is not limited to the order of the above steps; that is, the steps can be performed in the order mentioned in the embodiments, or in a different order, or several steps can be performed simultaneously.

[0101] The aspects of this disclosure have been described above with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and program products according to embodiments of this disclosure. It should be understood that each block in the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing apparatus to create a machine such that these instructions, executable via the processor of the computer or other programmable data processing apparatus, enable the implementation of the functions / actions specified in one or more blocks of the flowchart illustrations and / or block diagrams. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field-programmable logic circuit. It is also understood that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can also be implemented by special-purpose hardware performing the specified functions or actions, or can be implemented by a combination of special-purpose hardware and computer instructions.

[0102] The above are merely specific embodiments of this application. Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, modules, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here. It should be understood that the protection scope of this application is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in this application, and these modifications or substitutions should all be covered within the protection scope of this application.

Claims

1. A decoding and noise reduction method, characterized in that, The method includes: The original mud pulse signal is preprocessed to obtain the preprocessed signal; The preprocessed signals are input into a first neural network and a second neural network, respectively. The first neural network is used to extract periodic noise estimates, and the second neural network is used to extract non-periodic vibration noise estimates. Based on the periodic noise estimation and non-periodic vibration noise estimation, noise suppression is performed on the preprocessed signal to obtain a preliminary denoised signal; The initial noise-reduced signal is subjected to time-domain feature extraction and frequency-domain feature extraction, and the time-domain features and frequency-domain features are fused to obtain time-frequency fusion features; Based on the attention mechanism and a dynamically updated pulse template library, peak detection is performed on the time-frequency fusion features to obtain pulse timing information; Based on the pulse timing information, the target instruction code is output.

2. The method as described in claim 1, characterized in that, The input features of the first neural network include the instantaneous amplitude of the signal, the first-order difference, the second-order difference, and the pump stroke timing mark; the input of the second neural network includes the time spectrum of the signal and triaxial vibration sensor data.

3. The method as described in claim 1, characterized in that, The noise suppression is achieved through a first formula, which is: in, This is the initial noise reduction signal. The preprocessed signal For periodic noise estimation, For non-periodic vibration noise estimation, and This is the noise suppression coefficient.

4. The method as described in claim 3, characterized in that, The method further includes: Obtain downhole temperature and / or vibration intensity; A temperature compensation factor is calculated based on the downhole temperature, and the learning rate of the first neural network and / or the second neural network is adjusted based on the temperature compensation factor; and / or, The noise suppression coefficient is adjusted according to the vibration intensity.

5. The method as described in claim 1, characterized in that, The temporal feature extraction employs multi-layer dilated causal convolution, with the dilation factor of each layer increasing exponentially; the frequency domain feature extraction employs complex convolution to process the short-time Fourier transform spectrum in order to preserve phase information.

6. The method as described in claim 5, characterized in that, The expansion factor of the multi-layer dilatational causal convolution is dynamically adjusted according to the real-time downhole drilling rate.

7. The method as described in claim 5, characterized in that, The dilation factor sequence includes 1, 2, 4, 8, and 16; the complex convolution is calculated using a second formula, which is: in, and These are the real and imaginary parts of a complex number, respectively. and It is the convolution kernel.

8. The method as described in claim 1, characterized in that, The time-frequency fusion feature is calculated using a third formula, which is: in, As a time-frequency fusion feature, For time domain characteristics, For frequency domain characteristics, For the Sigmoid function, For element-wise multiplication, This indicates feature splicing.

9. The method as described in claim 1, characterized in that, The attention mechanism calculates the attention score of the current signal segment and each template in the pulse template library, and introduces a pump stroke mask to suppress interference peaks during the pump cycle.

10. The method as described in claim 1, characterized in that, The pulse template library is dynamically updated using a clustering algorithm, and the update formula is as follows: in, and Let be the k-th template before and after the update, respectively, and λ be the smoothing factor. For the set of samples belonging to the k-th template, The number of samples in the sample set. A single sample in the sample set.

11. The method as described in claim 1, characterized in that, The step of outputting the target instruction code based on the pulse timing information includes: The pulse timing information is decoded to obtain the initial instruction code; Perform verification on the initial instruction code; If the verification passes, the initial instruction code will be output as the target instruction code. If the verification fails, a graph neural network or a multilayer perceptron is used to predict the flip probability of each bit in the initial instruction code, and the erroneous bits are corrected according to the flip probability. The corrected instruction code is then output as the target instruction code.

12. The method as described in claim 11, characterized in that, The step of predicting the flip probability of each bit in the initial instruction code using a graph neural network or a multilayer perceptron, and correcting erroneous bits based on the flip probability, includes: For each bit in the initial instruction code, calculate the confidence level of the bit; Obtain the value of the bit, the confidence level, and the sum of the values ​​of the neighboring bits of the bit; The bit value, confidence level, and sum are input into the multilayer perceptron, and the bit flip probability is output. If the flip probability is greater than a preset threshold, the value of the bit is inverted.

13. A decoding noise reduction device, characterized in that, The device includes: The processing module is used to preprocess the raw mud pulse signal to obtain the preprocessed signal; The input module is used to input the preprocessed signal into a first neural network and a second neural network, respectively, wherein the first neural network is used to extract periodic noise estimation and the second neural network is used to extract non-periodic vibration noise estimation. The suppression module is used to suppress noise in the preprocessed signal based on the periodic noise estimation and the non-periodic vibration noise estimation to obtain a preliminary noise-reduced signal. The extraction module is used to extract time-domain features and frequency-domain features from the preliminary noise reduction signal, and to fuse the time-domain features and frequency-domain features to obtain time-frequency fusion features; The detection module is used to perform peak detection on the time-frequency fusion features based on an attention mechanism and a dynamically updated pulse template library to obtain pulse timing information; The output module is used to output the target instruction code based on the pulse timing information.

14. An electronic device, characterized in that, The electronic device includes: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, it implements the decoding and noise reduction method as described in any one of claims 1-12.

15. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer program instructions, which, when executed by a processor, implement the decoding and noise reduction method as described in any one of claims 1-12.