Pulse identification method and device for MWD (Measurement While Drilling), and electronic equipment

By performing open and close operations, low-pass filtering and sliding median debaseline processing on the pulse signals in drilling measurements, peak pulses are identified and corrected, and error pulses are removed using the arrangement and combination method, efficient pulse decoding is achieved in complex environments, improving the accuracy of signal recognition and decoding.

CN120357872AActive Publication Date: 2025-07-22DEZHOU UNITED GASOLINEEUM MACHINERY
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202510824801.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-19
Publication Date
2025-07-22
Estimated Expiration
2045-06-19

AI Technical Summary

Technical Problem

In the drilling-as-you-gas exploration process, the pulse signal recognition accuracy in the prior art is low, especially under the influence of increasing well depth and noise, it is difficult to effectively identify and decode pulse signals.

Method used

By receiving pulse signal data, the preset length signal segment is extracted based on the pulse width, open and close operations, low-pass filtering, sliding median debaseline processing, identifying peak pulses, using preset pulse arrangement combination to remove error pulses, and correcting positions through the least squares method, and finally converting the pulse sequence into a decoded value.

Benefits of technology

It improves the signal-to-noise ratio of the pulse signal, accurately recognizes peak pulses, improves the accuracy and efficiency of pulse decoding, and solves the problem of low pulse recognition accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120357872A_ABST
    Figure CN120357872A_ABST
Patent Text Reader

Abstract

The invention discloses a pulse identification method and device for MWD and electronic equipment, and relates to the technical field of pulses, and the pulse identification method comprises the steps: receiving pulse signal data, extracting pulse signal segments with a preset length from the pulse signal data according to a time sequence based on the pulse width, processing each pulse signal segment, and obtaining a pulse signal segment; the method comprises the steps of obtaining target pulse signal segments, identifying peak pulses on each target pulse signal segment, determining a target position of each peak pulse on a pulse signal sequence to obtain an initial pulse sequence, removing error pulses on each target pulse signal segment in the initial pulse sequence based on preset pulse permutation and combination to obtain a target pulse sequence, and outputting the target pulse sequence. And converting the target pulse sequence into a decoding value based on a preset pulse parameter table. According to the invention, the technical problem of low accuracy of pulse identification in the prior art is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of pulse technology, and in particular, to a pulse recognition method and apparatus for MWD, and an electronic device. Background Art

[0002] In the process of Measurement While Drilling (MWD) in oil and gas exploration, at present, most of the downhole measurement data rely on mud as the carrier to transmit pulse signals. With the continuous increase of well depth, the pump pressure signal decays continuously, the influence of noise signals increases continuously, and the decoding accuracy rate will also decrease. Therefore, in complex signals, how to improve the signal-to-noise ratio of pulse signals, quickly identify effective pulse signals and decode them has become a key problem to be solved in the process of measurement while drilling.

[0003] In the related art, the following methods can be used for pulse recognition: (1) The amplitude comparison approximation method is used to obtain the amplitude characteristics of mud pulse signals. However, this method is sensitive to the noise of mud pulse signals. If the noise signal on site is large, it may affect the amplitude of the gradual approximation, and may cause distortion of the amplitude, thereby resulting in incorrect pulse recognition and affecting decoding; (2) The convolutional neural network method is used to realize the recognition of mud pulses. However, this method requires building a model and a large number of model trainings on the basis of the established model, and the desired effect can only be obtained after multiple trainings. If the number or quality of the trainings is insufficient, it may affect the recognition and processing of actual mud pulse signals and affect decoding; (3) Adaptive filtering is used to remove the noise in mud pulse signals. However, affected by factors such as noise, the convergence speed of adaptive filtering will vary, and it may distort the actual pulse signal, thereby resulting in deviation of pulse position recognition.

[0004] In view of the above problems, no effective solution has been proposed yet. Summary of the Invention

[0005] Embodiments of the present invention provide a pulse recognition method and apparatus for MWD, and an electronic device, so as to at least solve the technical problem of low accuracy in pulse recognition in the related art.

[0006] According to one aspect of an embodiment of the present invention, there is provided a pulse recognition method for MWD, including: receiving pulse signal data, and extracting a pulse signal segment with a preset length from the pulse signal data based on the pulse width in chronological order; processing each pulse signal segment to obtain a target pulse signal segment; identifying peak pulses on each target pulse signal segment, and determining the target positions of each peak pulse in the pulse signal sequence to obtain an initial pulse sequence, where the pulse signal sequence is a sequence formed by combining all the target pulse signal segments in chronological order; removing incorrect pulses on each target pulse signal segment in the initial pulse sequence based on a preset pulse arrangement combination to obtain a target pulse sequence, and converting the target pulse sequence into a decoded value based on a preset pulse parameter table.

[0007] Further, the step of processing each pulse signal segment to obtain a target pulse signal segment includes: performing an opening operation on each signal in the pulse signal segment to obtain a first pulse signal segment, and performing a closing operation on each signal in the first pulse signal segment to obtain a second pulse signal segment; performing filtering processing on each signal in the second pulse signal segment based on a filtering factor array to obtain a third pulse signal segment; sorting the signal values of each signal in the third pulse signal segment, and determining the minimum signal value based on the sorting result; using the minimum signal value as a baseline value, and removing the baseline of each signal in the third pulse signal segment based on the baseline value to obtain a fourth pulse signal segment; performing amplification processing on each signal in the fourth pulse signal segment based on an amplification factor array to obtain a target pulse signal segment.

[0008] Further, the step of performing an opening operation on each signal in the pulse signal segment to obtain a first pulse signal segment, and performing a closing operation on each signal in the first pulse signal segment to obtain a second pulse signal segment includes: performing erosion processing on each signal in the pulse signal segment based on a preset circular region to obtain a first eroded pulse signal segment; performing dilation processing on each signal in the first eroded pulse signal segment based on a preset circular region to obtain a first dilated pulse signal segment, and using the first dilated pulse signal segment as the first pulse signal segment; performing dilation processing on each signal in the first dilated pulse signal segment based on a preset circular region to obtain a second dilated pulse signal segment; performing erosion processing on each signal in the second dilated pulse signal segment based on a preset circular region to obtain a second eroded pulse signal segment, and using the second eroded pulse signal segment as the second pulse signal segment.

[0009] Further, the signal value of each signal in the first expansion pulse signal segment is the first expansion signal value. The step of eroding each signal in the pulse signal segment includes: taking the signal as the current signal and determining the set of neighboring signals of the current signal, where the set of neighboring signals includes: a preset number of signals adjacent to the current signal and before the current signal, and a preset number of signals adjacent to the current signal and after the current signal, and the preset number is equal to the radius of the preset circular area; determining the height value of each signal in the set of neighboring signals, and taking the difference between the current signal value of each signal and the height value as the erosion standard value of each signal; in the case where the current signal value of the signal is greater than or equal to the erosion standard value, taking the erosion standard value as the first expansion signal value of the signal, and in the case where the current signal value of the signal is less than the erosion standard value, taking the current signal value as the first expansion signal value of the signal.

[0010] Further, the signal value of each signal in the first erosion pulse signal segment is the first erosion signal value. The step of dilating each signal in the first erosion pulse signal segment includes: taking the signal as the current signal and determining the set of neighboring signals of the current signal; determining the height value of each signal in the set of neighboring signals, and taking the sum value between the current signal value of each signal and the height value as the dilation standard value of each signal; in the case where the current signal value of the signal is less than or equal to the dilation standard value, taking the dilation standard value as the first erosion signal value of the signal, and in the case where the current signal value of the signal is greater than the dilation standard value, taking the current signal value as the first erosion signal value of the signal.

[0011] Further, the step of identifying the peak pulse on each target pulse signal segment includes: traversing each preset signal on the target pulse signal segment, where the preset signal is a signal on the target pulse signal segment except the start signal and the end signal; for each preset signal, determining the previous signal and the next signal adjacent to the preset signal; based on the signal value of the preset signal, the signal value of the previous signal adjacent to the preset signal, and the signal value of the next signal adjacent to the preset signal, determining the peak signal value of the preset signal; in the case where the peak signal value is less than 0, determining the preset signal as the peak pulse on the target pulse signal segment, where there is at most one peak pulse on each target pulse signal segment.

[0012] Further, the step of determining the target position of each peak pulse on the pulse signal sequence includes: identifying a synchronization header on the pulse signal sequence, and using the pulse signal indicated by a preset synchronization identifier on the synchronization header as the initial pulse signal of the pulse signal sequence; determining the length between each peak pulse and the initial pulse signal, and using the length as the absolute position of the peak pulse; in the case where the absolute position is a floating-point value, performing rounding conversion on the floating-point value to obtain an integer value of the peak pulse, and determining the error of the peak pulse based on the floating-point value and the integer value; based on the errors of all peak pulses, using the least squares method to determine a prediction error; and based on the prediction error, correcting the absolute position of each peak pulse to obtain the target position of the peak pulse on the pulse signal sequence.

[0013] Further, the preset pulse arrangement combination includes: a plurality of preset pulse arrangements. Based on the preset pulse arrangement combination, the step of removing incorrect pulses on each target pulse signal segment in the initial pulse sequence includes: determining the pulses to be decoded on each target pulse signal segment; in the case where the number of pulses to be decoded is greater than a preset decoding number, performing permutation and combination on all the pulses to be decoded to obtain a plurality of pulse permutations to be decoded; matching each pulse permutation to be decoded with the plurality of preset pulse arrangements, and determining the pulse permutation to be decoded that matches any one of the preset pulse arrangements as the target pulse permutation to be decoded; determining the other pulses to be decoded on the target pulse signal segment except for the target pulses included in the target pulse permutation to be decoded as incorrect pulses, and removing the incorrect pulses on the target pulse signal segment.

[0014] According to another aspect of the embodiments of the present invention, there is also provided a pulse recognition device for MWD, including: an extraction unit, configured to receive pulse signal data, and extract a pulse signal segment with a preset length from the pulse signal data based on the pulse width in chronological order; a processing unit, configured to process each pulse signal segment to obtain a target pulse signal segment; an identification unit, configured to identify peak pulses on each target pulse signal segment, and determine the target position of each peak pulse on the pulse signal sequence to obtain an initial pulse sequence, where the pulse signal sequence is a sequence obtained by combining all the target pulse signal segments in chronological order; and a removal unit, configured to remove incorrect pulses on each target pulse signal segment in the initial pulse sequence based on a preset pulse arrangement combination to obtain a target pulse sequence, and convert the target pulse sequence into a decoded value based on a preset pulse parameter table.

[0015] Further, the processing unit includes: a first processing module, configured to perform an opening operation on each signal in the pulse signal segment to obtain a first pulse signal segment, and perform a closing operation on each signal in the first pulse signal segment to obtain a second pulse signal segment; a second processing module, configured to perform filtering processing on each signal in the second pulse signal segment based on a filtering factor array to obtain a third pulse signal segment; a first determination module, configured to sort the signal values of each signal in the third pulse signal segment, and determine the minimum signal value based on the sorting result; a first removal module, configured to use the minimum signal value as a baseline value, and remove the baseline of each signal in the third pulse signal segment based on the baseline value to obtain a fourth pulse signal segment; a third processing module, configured to perform amplification processing on each signal in the fourth pulse signal segment based on an amplification factor array to obtain a target pulse signal segment.

[0016] Further, the first processing module includes: a first erosion module, configured to perform erosion processing on each signal in the pulse signal segment based on a preset circular region to obtain a first eroded pulse signal segment; a first dilation module, configured to perform dilation processing on each signal in the first eroded pulse signal segment based on the preset circular region to obtain a first dilated pulse signal segment, and use the first dilated pulse signal segment as the first pulse signal segment; a second dilation module, configured to perform dilation processing on each signal in the first dilated pulse signal segment based on the preset circular region to obtain a second dilated pulse signal segment; a second erosion module, configured to perform erosion processing on each signal in the second dilated pulse signal segment based on the preset circular region to obtain a second eroded pulse signal segment, and use the second eroded pulse signal segment as the second pulse signal segment.

[0017] Further, the signal value of each signal in the first dilated pulse signal segment is a first dilation signal value. The first erosion module includes: a first determination sub-module, configured to use the signal as a current signal, and determine a neighborhood signal set of the current signal, where the neighborhood signal set includes: a preset number of signals adjacent to the current signal and before the current signal, and a preset number of signals adjacent to the current signal and after the current signal, and the preset number is equal to the radius of the preset circular region; a second determination sub-module, configured to determine the height value of each signal in the neighborhood signal set, and use the difference between the current signal value of each signal and the height value as the erosion standard value of each signal; a first assignment sub-module, configured to use the erosion standard value as the first dilation signal value of the signal when the current signal value of the signal is greater than or equal to the erosion standard value, and use the current signal value as the first dilation signal value of the signal when the current signal value of the signal is less than the erosion standard value.

[0018] Further, the signal value of each signal in the first corrosion pulse signal segment is the first corrosion signal value. The first dilation module includes: a third determination sub-module, configured to use this signal as the current signal and determine the set of neighboring signals of the current signal; a fourth determination sub-module, configured to determine the height value of each signal in the set of neighboring signals, and use the sum value between the current signal value and the height value of each signal as the dilation standard value of each signal; a second assignment sub-module, configured to, when the current signal value of the signal is less than or equal to the dilation standard value, use the dilation standard value as the first corrosion signal value of this signal, and when the current signal value of the signal is greater than the dilation standard value, use the current signal value as the first corrosion signal value of this signal.

[0019] Further, the recognition unit includes: a first traversal module, configured to traverse each preset signal on the target pulse signal segment, where the preset signal is a signal on the target pulse signal segment except for the start signal and the end signal; a second determination module, configured to, for each preset signal, determine the previous signal and the next signal adjacent to the preset signal; a third determination module, configured to determine the peak signal value of the preset signal based on the signal value of the preset signal, the signal value of the previous signal adjacent to the preset signal, and the signal value of the next signal adjacent to the preset signal; a fourth determination module, configured to, when the peak signal value is less than 0, determine the preset signal as the peak pulse on the target pulse signal segment, where there is at most one peak pulse on each target pulse signal segment.

[0020] Further, the recognition unit further includes: a first recognition module, configured to recognize the synchronization header on the pulse signal sequence and use the pulse signal indicated by the preset synchronization identifier on the synchronization header as the initial pulse signal of the pulse signal sequence; a fifth determination module, configured to determine the length between each peak pulse and the initial pulse signal, and use the length as the absolute position of the peak pulse; a sixth determination module, configured to, when the absolute position is a floating-point value, perform rounding conversion on the floating-point value to obtain an integer value of the peak pulse, and determine the error of the peak pulse based on the floating-point value and the integer value; a seventh determination module, configured to determine the prediction error by using the least squares method based on the errors of all peak pulses; a first correction module, configured to correct the absolute position of each peak pulse based on the prediction error to obtain the target position of the peak pulse on the pulse signal sequence.

[0021] Further, the preset pulse permutation and combination includes: a plurality of preset pulse permutations. The removing unit includes: an eighth determining module, configured to determine the pulses to be decoded on each target pulse signal segment; a first sorting module, configured to perform permutation and combination on all the pulses to be decoded when the number of the pulses to be decoded is greater than the preset decoding number, so as to obtain a plurality of decoded pulse permutations; a first matching module, configured to match each decoded pulse permutation with the plurality of preset pulse permutations, and determine the decoded pulse permutation that matches any one of the preset pulse permutations as the target decoded pulse permutation; a ninth determining module, configured to determine the pulses to be decoded on the target pulse signal segment other than the target decoded pulses included in the target decoded pulse permutation as error pulses, and remove the error pulses on the target pulse signal segment.

[0022] According to another aspect of the embodiments of the present invention, there is also provided a computer program product, including a non-volatile computer-readable storage medium storing a computer program, where the computer program, when executed by a processor, implements the pulse recognition method for MWD according to any one of the above.

[0023] According to another aspect of the embodiments of the present invention, there is also provided an electronic device, including one or more processors and a memory, where the memory is configured to store one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors implement the pulse recognition method for MWD according to any one of the above.

[0024] In the present invention, pulse signal data is received, and based on the pulse width, pulse signal segments with a preset length are extracted from the pulse signal data in chronological order. Each pulse signal segment is processed to obtain a target pulse signal segment, the peak pulses on each target pulse signal segment are identified, and the target positions of each peak pulse in the pulse signal sequence are determined to obtain an initial pulse sequence. Based on the preset pulse permutation and combination, the error pulses on each target pulse signal segment in the initial pulse sequence are removed to obtain a target pulse sequence, and based on the preset pulse parameter table, the target pulse sequence is converted into a decoded value, thereby solving the technical problem of low accuracy in pulse recognition in the related art.

[0025] In the present invention, each pulse signal segment can be processed in chronological order to remove the noise with a large amplitude in the signal and improve the signal-to-noise ratio of the signal. Then, by calculating the peak method, the accurate positions of each peak pulse are identified, and the permutation and combination method is used to exclude the error pulses. After that, the identified target pulse sequence can be converted into a decoded value, achieving the technical effects of accurately and efficiently recognizing pulses and improving the accuracy and efficiency of pulse decoding. Description of the Drawings

[0026] The accompanying drawings described herein are used to provide a further understanding of the present invention and form a part of the present invention. The schematic embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation to the present invention. In the drawings:

[0027] Figure 1 is a flowchart of an optional pulse recognition method for MWD according to an embodiment of the present invention;

[0028] Figure 2 is a schematic diagram of an optional sampling filtering and recognition process of a signal according to an embodiment of the present invention;

[0029] Figure 3 is a schematic diagram of the simulation test results of an optional pulse recognition method for MWD according to an embodiment of the present invention;

[0030] Figure 4 is a schematic diagram of the water cycle test results of an optional pulse recognition method for MWD according to an embodiment of the present invention;

[0031] Figure 5 is a schematic diagram of an optional pulse recognition device for MWD according to an embodiment of the present invention;

[0032] Figure 6 is a hardware structure block diagram of an electronic device (or mobile device) for a pulse recognition method for MWD according to an embodiment of the present invention. Detailed Embodiments

[0033] In order to enable those skilled in the art to better understand the solution of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

[0034] It should be noted that the terms "first", "second", etc. in the present invention are used to distinguish similar objects and do not necessarily need to describe a specific order or sequence. It should be understood that such data can be interchanged under appropriate circumstances so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or units does not necessarily need to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products, or devices.

[0035] It should be noted that the relevant information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) collected and involved in the present invention are all information and data authorized by the user or fully authorized by all parties. Moreover, the processing of relevant data, such as collection, storage, use, processing, transmission, provision, disclosure, and application, complies with the relevant laws, regulations, and standards of the relevant regions, takes necessary confidentiality measures, does not violate public order and good customs, and provides corresponding operation entrances for users to choose to authorize or refuse. For example, an interface is set between the present system and relevant users or institutions. Before obtaining relevant information, a request for obtaining information needs to be sent to the aforementioned users or institutions through the interface, and after receiving the consent information feedback from the aforementioned users or institutions, the relevant information is obtained.

[0036] The present invention relates to the measurement-while-drilling technology in the field of oil and gas exploration and development, and proposes a pulse identification method. First, the opening and closing operation method can be used to remove the pulse signals with larger amplitudes (i.e., pump pressure mutation signals) in the pulse signals, and the low-pass filtering method is used to further process the signals after the opening and closing operation to retain the signals in the low-frequency part. Then, the sliding median filtering algorithm is used to remove the baseline to retain the change trend of the signals. Next, the long-time slot correlation algorithm is adopted to improve the signal-to-noise ratio of the pulse signals, so that the effective signals obtain the maximum gain. After that, the pulses are obtained by calculating the peak method, and the accumulated errors are removed by the error compensation method to ensure that the error of the pulse from the ideal position is within the minimum range. Then, the permutation and combination method is used to exclude the wrong pulses, and the wrong pulse signals similar to the normal pulse signals can be excluded. In this way, the effective pulses can be quickly identified, and at the same time, the computational complexity is reduced, and the effective pulse signals can be quickly identified for subsequent pulse decoding.

[0037] The present invention will be described in detail below in conjunction with each embodiment.

[0038] Embodiment 1

[0039] According to an embodiment of the present invention, an embodiment of a pulse identification method for MWD is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. And although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in a different order from here.

[0040] Figure 1 is a flowchart of an optional pulse identification method for MWD according to an embodiment of the present invention. As Figure 1 shown, the method includes the following steps:

[0041] Step S101: Receive pulse signal data, and based on the pulse width, extract pulse signal segments of a preset length from the pulse signal data in chronological order.

[0042] In an embodiment of the present invention, during the measurement-while-drilling process of oil and gas exploration, the acquired downhole measurement data can be processed by a surface processor for pump pressure to obtain an analog signal, and the analog signal of the pump pressure is converted into a digital signal (i.e., pulse signal data), and then transmitted to the host computer through a bus. The host computer uses a caching mechanism to avoid missing data. Then, according to the actual pulse width, pulse signal segments of a preset length (consistent with the pulse width for subsequent signal processing and decoding) are extracted from the pulse signal data in chronological order.

[0043] In some alternative embodiments, the data (pulse signal data) received by the host computer is stored in a buffer. The size of the buffer is theoretically unlimited and can store data without limit. Data can be taken from the buffer within each time slot (i.e., data is extracted according to the actual slot width (determined according to the pulse width)), which is approximately the same as the time when data is stored in the buffer. In this way, data storage and data extraction are strictly separated, ensuring that the buffer will not increase without limit and there will be no omission of transmitted data.

[0044] Exemplarily, the data storage structure is: list = {X0, X1, X2, …, Xn-1, Xn}, where n represents the length of the acquired data, and Xn represents the pulse signal at the nth moment.

[0045] Here, the pulse width refers to the duration of the pulse signal. The slot width refers to the length of the signal time window for analysis and decoding, also known as the time slot. The setting of the slot width is determined based on the frequency and duration of the pulse signal. For example, if the frequency of the pulse signal is 10 times per second, the slot width can be set to 0.1 second, and a segment of data can be extracted from the signal every 0.1 second for processing to identify and decode the pulse signal.

[0046] Step S102: Process each pulse signal segment to obtain a target pulse signal segment.

[0047] In an embodiment of the present invention, processing each pulse signal segment includes: opening and closing operation processing, low-pass filtering processing, sliding median baseline removal processing, and signal-to-noise ratio improvement processing, etc., to obtain a target pulse signal segment. In this way, after filtering out large spike signals and low-pass filtering, the low-frequency part in the signal is retained, and high-frequency noise signals are removed. After using the median algorithm to remove the baseline, the signal-to-noise ratio of the signal is improved through relevant algorithms, which can ensure that the trend of signal change is not damaged, provide a more effective pulse signal for subsequent processing, and ensure the effectiveness and accuracy of decoding calculations.

[0048] In the embodiments of the present invention, the opening and closing operation processing refers to first removing the spike noise in the pulse signal segment through the opening operation, and then restoring the continuity and smoothness of the signal through the closing operation to ensure the quality of the signal. The low-pass filtering processing can use a finite impulse response filter (such as a FIR (Finite Impulse Response) low-pass filter) to remove the high-frequency noise components in the signal and retain the low-frequency signal, thereby improving the signal-to-noise ratio. The sliding median baseline removal processing eliminates the baseline drift by finding the median value within a sliding window and is applicable to processing signals with random noise.

[0049] Step S103: Identify the peak pulses on each target pulse signal segment, and determine the target positions of each peak pulse in the pulse signal sequence to obtain an initial pulse sequence, where the pulse signal sequence is a sequence formed by combining all the target pulse signal segments in chronological order.

[0050] In the embodiments of the present invention, the peak pulses on each target pulse signal segment can be identified first, and then the positions of each peak pulse in the pulse signal sequence (i.e., the sequence formed by combining all the target pulse signal segments in chronological order) are determined, and the difference between the cumulative error and the predicted pulse is statistically calculated. The least squares method is used to calculate the linear coefficient, and the position of the actual peak pulse is corrected to obtain the target position of each peak pulse in the pulse signal sequence, thereby obtaining an initial pulse sequence (i.e., a sequence containing the accurate positions of the peak pulses).

[0051] Step S104: Based on a preset pulse arrangement combination, remove the incorrect pulses on each target pulse signal segment in the initial pulse sequence to obtain a target pulse sequence, and convert the target pulse sequence into a decoded value based on a preset pulse parameter table.

[0052] In the embodiments of the present invention, the corrected pulse signal (i.e., the initial pulse sequence) is converted into a signal arrangement available for decoding, and according to the preset pulse arrangement combination (i.e., the legal pulse arrangement set according to past experience or theory, used to exclude incorrect pulses), the valid pulses within the time slot length are arranged and combined to exclude the incorrect pulses to obtain a target pulse sequence. Then, the look-up table method can be used to convert the corresponding pulse data into actual attitude parameters (i.e., decoded values) according to the preset pulse parameter table (i.e., a table containing the correspondence between the pulse sequence and specific decoding information).

[0053] In some optional embodiments, the possible pulse combinations of each length can be written into a dictionary in advance, and then the arrangement result (i.e., the target pulse sequence) is used to query in the dictionary. According to the query result, the calculation parameters required for the current decoded content are queried, and then converted into actual decoded values through proportional calculation and displayed.

[0054] In summary, each pulse signal segment can be processed in chronological order to remove the noise with a large amplitude in the signal and improve the signal-to-noise ratio of the signal. Then, by calculating the peak method, the accurate position of each peak pulse can be identified, and the permutation and combination method can be used to exclude the wrong pulses. After that, the identified target pulse sequence can be decoded and numerically converted, achieving the technical effects of accurately and efficiently identifying pulses and improving the accuracy and efficiency of pulse decoding, thereby solving the technical problem of low accuracy in pulse identification in the related art.

[0055] In order to improve the accuracy of determining the target pulse signal segment, in the pulse identification method for MWD provided in Embodiment 1 of the present application, each signal in the pulse signal segment is subjected to opening operation to obtain the first pulse signal segment, and each signal in the first pulse signal segment is subjected to closing operation to obtain the second pulse signal segment; based on the filter factor array, each signal in the second pulse signal segment is filtered to obtain the third pulse signal segment; the signal values of each signal in the third pulse signal segment are sorted, and based on the sorting result, the minimum signal value is determined; the minimum signal value is used as the baseline value, and based on the baseline value, the baseline of each signal in the third pulse signal segment is removed to obtain the fourth pulse signal segment; based on the amplification factor array, each signal in the fourth pulse signal segment is amplified to obtain the target pulse signal segment.

[0056] In the embodiment of the present invention, according to the actual pulse width, data with a fixed length (i.e., the pulse signal segment) is extracted. First, the extracted data can be amplified according to the requirements of the opening and closing operations, and then the processed data is first subjected to the opening operation to remove large spikes and burrs in the data, and then the closing operation is used to shrink the data processed by the opening operation to ensure the smoothness of the data. After that, the data is reduced to obtain the data processed by the opening and closing operations.

[0057] Specifically, for the extracted pulse signal segment with a preset length, the opening operation is first applied to remove the noise or spike interference with a large amplitude in the signal, ensuring the continuity and smoothness of the signal. Subsequently, the closing operation is performed on the first pulse signal segment processed by the opening operation to further eliminate small-scale signal fluctuations, make the signal shape smoother, and reduce misjudgment in subsequent processing.

[0058] In the embodiment of the present invention, a finite impulse response (FIR) low-pass filter can be used to filter the second pulse signal segment processed by the opening and closing operations to obtain the third pulse signal segment. The filter factor array defines the frequency response characteristics of the filter to further eliminate high-frequency noise and retain the low-frequency components in the signal, that is, the main information of the pulse signal. Among them, the processing of low-pass filtering is expressed as follows:

[0059] ;

[0060] Among them, the input signal is , the unit impulse response of the FIR filter is (i.e., the filtering factor), with lengths k = 0, 1, …, n−1, where n represents the number of signals, and the output signal is y(k). After processing, the noise in the high-frequency part of the signal can be removed, only the signal and noise in the low-frequency part are retained, further ensuring the effectiveness and smoothness of the signal.

[0061] In the embodiment of the present invention, in the third pulse signal segment after filtering, the signal values y(k) are sorted and the minimum value is found as the baseline value Xbase of the current signal segment. Then, based on the baseline value, the baseline of each signal in the third pulse signal segment is removed to obtain the fourth pulse signal segment. The formula for removing the baseline is as follows:

[0062] ;

[0063] By removing the baseline, baseline drift is eliminated, avoiding data deviation after fluctuations in on-site pump pressure data, and providing a unified data standard for pulse decoding.

[0064] In the embodiment of the present invention, after obtaining the data (i.e., the fourth pulse signal segment), since there are still some low-frequency noise signals in the signal, the curve does not look very perfect, and further processing is required to improve the signal-to-noise ratio of the signal. Therefore, an amplification processing algorithm is adopted. According to a preset amplification factor array (defining the amplification ratio of the signal at different positions or different frequencies, used to enhance the effective signal and improve the signal-to-noise ratio), the noise of the signal is further removed to obtain the target pulse signal segment. The expression for amplifying the signal is as follows:

[0065] ;

[0066] Among them, represents the amplification factor, which is operated with the input data , k = 0, 1, …, n−1 to amplify the signal and improve the usability of the signal.

[0067] In this embodiment, the signal-to-noise ratio of the pulse signal in measurement-while-drilling is effectively improved, ensuring the continuity and stability of the signal. The opening and closing operations remove large burrs and small fluctuations, the low-pass filter eliminates high-frequency noise, the baseline removal makes the signal fluctuations relatively stable, and the amplification processing further highlights the effective pulse signal. This series of processes makes the pulse signal clearer and more reliable, providing a high-quality signal basis for subsequent pulse recognition and decoding, and improving the accuracy and efficiency of measurement-while-drilling.

[0068] To remove the pump pressure mutation in the signal, the signal is processed by opening and closing operations. In the pulse recognition method for MWD provided in the first embodiment of the present application, based on a preset circular region, each signal in the pulse signal segment is eroded to obtain a first eroded pulse signal segment; based on the preset circular region, each signal in the first eroded pulse signal segment is dilated to obtain a first dilated pulse signal segment, and the first dilated pulse signal segment is used as the first pulse signal segment; based on the preset circular region, each signal in the first dilated pulse signal segment is dilated to obtain a second dilated pulse signal segment; based on the preset circular region, each signal in the second dilated pulse signal segment is eroded to obtain a second eroded pulse signal segment, and the second eroded pulse signal segment is used as the second pulse signal segment.

[0069] In the embodiment of the present invention, a circular data region with a radius of r (i.e., the preset circular region) can be set first to implement erosion and dilation processing of the signal through this circular region.

[0070] In the embodiment of the present invention, the signal is first subjected to an opening operation. Assuming that the original data is A and the preset circular region is B, B can be used to erode A to obtain data C (i.e., the first eroded pulse signal segment) to process the burrs and spike data greater than or equal to r in the data, and then the data C is dilated with a radius of r to restore the processed data to the original position and size, obtaining data D (i.e., the first dilated pulse signal segment). In the processing process, the spikes and burrs are erased, and then the over-processed data is restored, ensuring the change trend of the data.

[0071] Exemplarily, the opening operation can be expressed as: , where A represents the original data and B is the circular data region with a radius of r.

[0072] In the embodiment of the present invention, the data D after the opening operation is subjected to a closing operation. B can be used to first dilate D to obtain data E (i.e., the second dilated pulse signal segment) to amplify the smaller fluctuations in the data, and then the data E is eroded to process the amplified burr or spike data to ensure the effectiveness and usability of the data after processing, and finally obtain data F (i.e., the second eroded pulse signal segment).

[0073] Exemplarily, the closing operation can be expressed as: , where D represents the original data and B is the circular data region with a radius of r.

[0074] In this way, the data processed by the opening and closing operations can remove large peaks or burrs in the data, and at the same time process small fluctuations, making the data smoother, that is, ensuring the change trend of the data and processing the fluctuations in the data.

[0075] In this embodiment, noise and large burrs in the signal are removed through erosion processing, and then the eroded part is restored through dilation processing. The pulse characteristics are strengthened again through dilation, and finally, the redundant peaks that may be introduced in the secondary processing are removed through erosion again to ensure the cleanliness of the signal and the clarity of the pulse. In this way, the signal-to-noise ratio of the signal is improved, so that the pulse signal can still be accurately captured and recognized in a complex environment, thereby improving the data quality and decoding accuracy in the measurement-while-drilling process.

[0076] Optionally, the signal value of each signal in the first dilated pulse signal segment is the first dilation signal value. In order to perform accurate erosion processing, in the pulse recognition method for MWD provided in Embodiment 1 of the present application, this signal is used as the current signal, and a set of neighborhood signals of the current signal is determined. The set of neighborhood signals includes: a preset number of signals adjacent to the current signal and before the current signal, and a preset number of signals adjacent to the current signal and after the current signal. The preset number is equal to the radius of the preset circular area; the height value of each signal in the set of neighborhood signals is determined, and the difference between the current signal value of each signal and the height value is used as the erosion standard value of each signal; when the current signal value of the signal is greater than or equal to the erosion standard value, the erosion standard value is used as the first dilation signal value of the signal, and when the current signal value of the signal is less than the erosion standard value, the current signal value is used as the first dilation signal value of the signal.

[0077] In the embodiment of the present invention, when processing each signal in the pulse signal segment, first, a certain signal is selected as the current signal, and then a set of neighborhood signals is determined around this signal. This set includes not only a preset number of signals adjacent to the current signal and before the current signal (that is, the number of adjacent signals between the current signal and the adjacent signals before it is equal to the preset number), but also a preset number of signals adjacent to the current signal and after the current signal (that is, the number of adjacent signals between the current signal and the adjacent signals after it is equal to the preset number). The preset number is equal to the radius value of the preset circular area.

[0078] In some optional embodiments, if the number of signals adjacent to and before the current signal is less than a preset number, splice the previous pulse signal segment adjacent to the pulse signal segment with the pulse signal segment to obtain a preset number of signals adjacent to and before the current signal; if the number of signals adjacent to and after the current signal is less than a preset number, splice the next pulse signal segment adjacent to the pulse signal segment with the pulse signal segment to obtain a preset number of signals adjacent to and after the current signal. If this pulse signal segment is the start pulse signal segment or the end pulse signal segment of the collected pulse signal data, start from the r-th signal on the start pulse signal segment as the current signal, and skip the last r signals on the end pulse signal segment.

[0079] In the embodiments of the present invention, the height value of each signal in the neighborhood signal set can be calculated. Specifically, each signal in the neighborhood signal set can be numbered in sequence, with the range from -r to +r. Based on the value corresponding to the signal number and the radius, the height value of the signal can be calculated. For example, each number i corresponds to a value, and according to the formula the height value of the signal can be obtained, where |i| represents the value corresponding to the number i. Then, the difference between the current signal value and the height value of each signal is used as the erosion standard value of each signal. If the current signal value of the signal is greater than or equal to the erosion standard value, the erosion standard value is used as the first dilation signal value of the signal. This is a process of signal weakening, which is equivalent to reducing the amplitude of the signal to the erosion standard value, thereby removing spikes or noise in the signal; if the current signal value of the signal is less than the erosion standard value, no processing is required and the signal value remains unchanged (i.e., the current signal value is used as the first dilation signal value of the signal).

[0080] In this embodiment, the erosion processing process is a dynamic and local signal optimization strategy. By evaluating the environment around the signal point to determine the processing method of the signal point, it helps to remove local abnormal high points, that is, noise or spikes, and ensures that the signal is smoother and more continuous. By setting the neighborhood signal set and the erosion standard value, precise control of the signal can be achieved, avoiding unnecessary damage to the effective signal while removing noise. In addition, it can adapt to different signal environments because the erosion standard value is dynamically calculated based on local signal characteristics rather than a fixed threshold.

[0081] Optionally, the signal value of each signal in the first corrosion pulse signal segment is the first corrosion signal value. In order to perform accurate dilation processing, in the pulse recognition method for MWD provided in the first embodiment of the present application, this signal is used as the current signal, and the neighborhood signal set of the current signal is determined; the height value of each signal in the neighborhood signal set is determined, and the sum value between the current signal value of each signal and the height value is used as the dilation standard value of each signal; when the current signal value of the signal is less than or equal to the dilation standard value, the dilation standard value is used as the first corrosion signal value of the signal, and when the current signal value of the signal is greater than the dilation standard value, the current signal value is used as the first corrosion signal value of the signal.

[0082] In the embodiment of the present invention, a signal point to be processed can be first selected as the "current signal", and a "neighborhood signal set" is determined around this point. This set includes not only the signal points adjacent to the current signal and located before and after it (referred to as neighborhood signals), but also the number of these neighborhood signals is equal to the radius of the preset circular area. For example, if the radius of the preset circular area is 3, the neighborhood signal set will include the 3 signal points before and the 3 signal points after the current signal.

[0083] Then, the "height value" (i.e., signal strength or amplitude) of each signal point in the neighborhood signal set is calculated, and the sum value obtained by adding the current signal value of each signal and the height value of each signal is used as the "dilation standard value" of this signal. This standard value is used for subsequent dilation processing judgment. A high dilation standard value means that the signal point is more likely to be affected by the dilation processing, and vice versa.

[0084] After that, according to the relationship between the value of the current signal point and the dilation standard value, it is decided whether to perform dilation processing. Specifically, if the value of the current signal point is less than or equal to the dilation standard value, the dilation standard value is regarded as the "first corrosion signal value", that is, dilation processing is performed; if the value of the current signal point is greater than the dilation standard value, the current signal value remains unchanged, that is, no dilation processing is performed.

[0085] In this embodiment, local peaks (i.e., noise) in the signal are removed through corrosion processing, and then the areas in the signal that may have been over-corroded are restored through dilation processing to maintain the continuity of the signal profile. In this way, the interference of noise on signal recognition can be effectively reduced, and at the same time, the true features of the signal are retained as much as possible to ensure the accuracy of subsequent pulse recognition.

[0086] To improve the accuracy of identifying peak pulses, in the pulse identification method for MWD provided in Embodiment 1 of the present application, each preset signal on the target pulse signal segment is traversed, where the preset signal is a signal on the target pulse signal segment except for the start signal and the end signal; for each preset signal, determine the previous signal and the next signal adjacent to the preset signal; based on the signal value of the preset signal, the signal value of the previous signal adjacent to the preset signal, and the signal value of the next signal, determine the peak signal value of the preset signal; in the case where the peak signal value is less than 0, determine the preset signal as the peak pulse on the target pulse signal segment, where there is at most one peak pulse on each target pulse signal segment.

[0087] In the embodiment of the present invention, all signal points except the start and end of the signal segment can be checked one by one. These internal signal points are called "preset signals". For each preset signal point being checked, determine the adjacent signal points before and after it. According to the signal value (i.e., amplitude value) of the current preset signal point, as well as the signal values of the previous signal and the next signal, calculate the peak signal value of the preset signal. The calculation formula for the peak signal value is as follows:

[0088] ;

[0089] where, represents the signal value of the current preset signal, represents the signal value of the previous signal of the current preset signal, represents the signal value of the next signal of the current preset signal.

[0090] In the embodiment of the present invention, if the peak signal value is less than 0, then determine the preset signal as the peak pulse on the target pulse signal segment. If there is no preset signal with a peak signal value less than 0 on the target pulse signal segment, it indicates that there is no peak pulse on the target pulse signal segment.

[0091] It should be noted that at most one peak pulse can be identified in each target pulse signal segment to ensure the uniqueness and accuracy of pulse identification.

[0092] In this embodiment, from the preprocessed signal segment, by comparing the signal values of the signal points, the possible peak pulses are accurately located, which can not only effectively identify the key turning points in the pulse signal, but also ensure the accuracy of the identification process and the uniqueness of the pulse.

[0093] To improve the accuracy of determining the target position of each peak pulse on the pulse signal sequence, in the pulse recognition method for MWD provided in Embodiment 1 of the present application, the sync header on the pulse signal sequence is recognized, and the pulse signal indicated by the preset sync identifier on the sync header is used as the initial pulse signal of the pulse signal sequence; the length between each peak pulse and the initial pulse signal is determined, and the length is used as the absolute position of the peak pulse; in the case where the absolute position is a floating-point value, rounding conversion is performed on the floating-point value to obtain the integer value of the peak pulse, and based on the floating-point value and the integer value, the error of the peak pulse is determined; based on the errors of all peak pulses, the least squares method is used to determine the prediction error; based on the prediction error, the absolute position of each peak pulse is corrected to obtain the target position of the peak pulse on the pulse signal sequence.

[0094] In the embodiment of the present invention, there is a sync header at the beginning of the received pulse signal data. Therefore, by identifying the "sync header" in the pulse signal sequence, the starting position of the pulse signal to be decoded can be determined. The sync header is the starting flag of the signal sequence, with unique pulse characteristics or sequences, which are easy to distinguish and locate. After finding the sync header, according to the preset "sync identifier", the specific pulse signal indicated in the sync header is determined as the "initial pulse signal". In this way, the reference point for subsequent pulse positioning is ensured to be accurate, avoiding decoding errors caused by incorrect starting point positioning.

[0095] Then, for each identified "peak pulse", calculate the "length" between it and the initial pulse signal, that is, the time interval or the distance of the signal segment. This length value represents the "absolute position" of the peak pulse relative to the initial pulse signal, and is an important parameter for pulse signal decoding.

[0096] In the embodiment of the present invention, preliminary pulse value calculations are performed according to the current time slot length, and the floating-point pulse value corresponding to the absolute position of each peak pulse is calculated. Then, rounding conversion is performed on the floating-point pulse value to obtain the standard ideal position value of the peak pulse (that is, the converted integer value. For example, if the floating-point pulse value is 9.9, the standard ideal position value is 10). Then, the error between the integer value and the floating-point pulse value is calculated. By statistically analyzing the difference between the actual position and the predicted position of each pulse, the least squares method is used to obtain the linear conversion parameter, and the prediction error of the current pulse is calculated. After that, the current time slot length used for calculating the pulse value is updated with this prediction error, the error of the current floating-point pulse is compensated (that is, the absolute position of each peak pulse is corrected), and the compensated pulse data (that is, the target position of each peak pulse on the pulse signal sequence) is used as the actual pulse for decoding.

[0097] In this embodiment, through error calculation and the least squares method, automatic correction of the position deviation commonly existing in the pulse signal sequence is achieved, improving the reliability and accuracy of pulse signal decoding.

[0098] Optionally, the preset pulse permutation combinations include: a plurality of preset pulse permutations. In order to accurately remove incorrect pulses, in the pulse identification method for MWD provided in Embodiment 1 of the present application, the pulses to be decoded on each target pulse signal segment are determined; in the case where the number of pulses to be decoded is greater than the preset decoding number, all the pulses to be decoded are permuted and combined to obtain a plurality of pulse permutations to be decoded; each pulse permutation to be decoded is matched with the plurality of preset pulse permutations, and the pulse permutation to be decoded that is matched with any one of the preset pulse permutations is determined as the target pulse permutation to be decoded; the other pulses to be decoded on the target pulse signal segment except for the target pulses to be decoded included in the target pulse permutation to be decoded are determined as incorrect pulses, and the incorrect pulses on the target pulse signal segment are removed.

[0099] In the embodiment of the present invention, the pulses to be decoded (pulse signals determined to possibly carry valid information) on each target pulse signal segment can be determined. If the total number of detected pulses to be decoded exceeds the preset decoding number, then according to the number of pulses that should be used for actual decoding, these pulses are permuted and combined to generate a variety of possible pulse permutations to be decoded. Here, the preset decoding number is usually set based on the coding rule and actual application requirements. Pulses exceeding this number may contain incorrect or redundant information.

[0100] In the embodiment of the present invention, each pulse permutation to be decoded is matched with the plurality of preset pulse permutations in the preset pulse permutation combination. Here, the preset pulse permutation is a legal pulse sequence template defined in advance according to the coding protocol. If a certain pulse permutation to be decoded exactly matches any one of the templates in the preset pulse permutations, then this pulse permutation to be decoded is used as the "target pulse permutation to be decoded", that is, a valid sequence that conforms to the coding rule. Then, all the pulses that do not belong to the target pulse permutation to be decoded are marked as "incorrect pulses", and these incorrect pulses are excluded from the target pulse signal segment. In this way, it is ensured that the decoded pulse sequence completely conforms to the coding protocol, thereby avoiding decoding errors and improving the accuracy and efficiency of decoding.

[0101] In this embodiment, through permutation and combination and matching verification, not only can the pulse sequence that conforms to the coding rule be identified, but also incorrect pulses can be effectively excluded, thereby ensuring the accuracy and reliability of the decoding result. In this way, the accuracy rate of pulse signal decoding is improved. Especially in an environment with complex signals and high noise, it can more efficiently screen out valid pulse information, enhancing the information transmission and decoding capabilities of the measurement-while-drilling system.

[0102] The following provides a detailed description in conjunction with another optional specific implementation manner.

[0103] In an embodiment of the present invention, a method for sampling, filtering, and identifying signals is proposed. Figure 2 It is a schematic diagram of an optional signal sampling, filtering, and identification process according to an embodiment of the present invention, as Figure 2 shown, including the following processes:

[0104] (1) Data caching and extraction: The host computer collects pump pressure pulse signals and stores them in the buffer, extracts data according to the actual slot width, and strictly separates data storage from data extraction;

[0105] (2) Opening and closing operations and FIR low-pass processing: Perform opening and closing operations on the extracted data to remove sudden changes in pump pressure, and use a finite impulse response (FIR) low-pass filter to filter out high-frequency signals and retain low-frequency data;

[0106] (3) Sliding median to remove the baseline and perform correlation processing: Adopt the sliding median algorithm to remove the baseline of the signal. And perform correlation operations to amplify the effective signal to ensure that the changes in the signal can be accurately identified;

[0107] (4) Peak acquisition, calculation of cumulative error and pulse correction: Calculate the pulse peak, statistically calculate the difference between the cumulative error and the predicted pulse, use the least squares method to calculate the linear coefficient, and correct the actual pulse signal;

[0108] (5) Permutation and combination, exclusion of incorrect pulses: Convert the corrected pulse signal into a signal arrangement available for decoding, and perform permutation and combination on the pulses within the effective time slot length to exclude incorrect pulses;

[0109] (6) Lookup table for combination types and data conversion: Use the lookup table method to convert the corresponding pulse data into actual attitude parameters.

[0110] In this embodiment, the change trend of the signal can be retained, and at the same time, noise data with large amplitudes can be removed, ensuring that during the low-pass filtering process, the waveform of the pulse signal after low-pass filtering or the relative position of the pulse will not be affected by the large-amplitude noise. Then, use the error statistical algorithm to compensate for the cumulative error of the actually collected pulses to ensure that the pulse position used for actual decoding is the most reasonable.

[0111] In an embodiment of the present invention, the method of analog simulation and water circulation test can be adopted to verify the effectiveness of the filtering effect.

[0112] (1) Analog simulation.

[0113] Collect the pump pressure data on-site during actual drilling. Using a 1:1 restoration method, process the original signal with the above filtering method. Finally, after processing, it is possible to identify the valid signal in the pulse signal with peak changes and various clutter. Figure 3 It is a schematic diagram of the simulation test results of an optional pulse recognition method for MWD according to an embodiment of the present invention, as Figure 3 shown, which respectively shows the curve graphs drawn based on the original data, the curve graphs drawn based on the data processed by morphological opening and closing operations, the curve graphs drawn based on the data processed by low-pass filtering, the curve graphs drawn based on the data processed by baseline removal, and the curve graphs drawn based on the data processed by correlation processing.

[0114] From Figure 3 it can be seen that there is a pump pressure signal with a large amplitude change at the peak in the original data. After the morphological opening and closing operation, the signal with a large amplitude can be successfully processed. After low-pass filtering, the signal-to-noise ratio is further improved. After baseline removal and correlation processing, the pulse signal is clearly shown and has the same manifestation form as the pulse in the original data, which is beneficial for subsequent pulse decoding.

[0115] (2) Water circulation test.

[0116] The pulse recognition method can be integrated into the upper computer decoding software for actual water circulation tests. Collect data on-site, perform filtering and recognition in real-time. According to the obtained water circulation test results, it shows that this pulse recognition method can meet the usage scenarios. Using this method for real-time filtering and recognition of pulse signals, clear and valid pulse signals are obtained. Figure 4 It is a schematic diagram of the water circulation test results of an optional pulse recognition method for MWD according to an embodiment of the present invention, as Figure 4 shown, which shows the curve graph after filtering and recognition through the water circulation test.

[0117] In the embodiment of the present invention, first, morphological opening and closing operations are used to remove the noise with a large amplitude in the signal, and low-pass filtering is used to filter out high-frequency signals. While median filtering removes the baseline, a correlation algorithm is used to improve the signal-to-noise ratio. Then, the change trend of the pulse signal after autocorrelation is used to identify the peak as the valid pulse, and at the same time, threshold filtering is used to filter out invalid pulses. By finite accumulation of the pulse positions, the accurate pulse positions are obtained, which can provide effective signals for decoding and improve the decoding efficiency.

[0118] The following is a detailed description in combination with another embodiment.

[0119] Embodiment 2

[0120] A pulse recognition device for MWD provided in this embodiment includes multiple implementation units, and each implementation unit corresponds to each implementation step in the first embodiment above.

[0121] Figure 5 FIG. is a schematic diagram of an optional pulse recognition device for MWD according to an embodiment of the present invention, as Figure 5 shown, the pulse recognition device may include: an extraction unit 50, a processing unit 51, an identification unit 52, and a removal unit 53.

[0122] Among them, the extraction unit 50 is configured to receive pulse signal data, and based on the pulse width, extract a pulse signal segment with a preset length from the pulse signal data in chronological order;

[0123] The processing unit 51 is configured to process each pulse signal segment to obtain a target pulse signal segment;

[0124] The identification unit 52 is configured to identify the peak pulses on each target pulse signal segment, and determine the target positions of each peak pulse in the pulse signal sequence to obtain an initial pulse sequence, where the pulse signal sequence is a sequence obtained by combining all target pulse signal segments in chronological order;

[0125] The removal unit 53 is configured to remove the incorrect pulses on each target pulse signal segment in the initial pulse sequence based on a preset pulse arrangement combination to obtain a target pulse sequence, and convert the target pulse sequence into a decoded value based on a preset pulse parameter table.

[0126] The above pulse recognition device can first process each pulse signal segment in chronological order to remove the noise with a large amplitude in the signal and improve the signal-to-noise ratio of the signal, then identify the accurate positions of each peak pulse by calculating the peak method, and use the permutation and combination method to exclude the incorrect pulses. After that, the identified target pulse sequence can be converted into a decoded value, achieving the technical effects of accurately and efficiently identifying pulses and improving the accuracy and efficiency of pulse decoding, thereby solving the technical problem of low accuracy in pulse recognition in the related art.

[0127] Optionally, the processing unit includes: a first processing module configured to perform an opening operation on each signal in the pulse signal segment to obtain a first pulse signal segment, and perform a closing operation on each signal in the first pulse signal segment to obtain a second pulse signal segment; a second processing module configured to perform a filtering operation on each signal in the second pulse signal segment based on a filtering factor array to obtain a third pulse signal segment; a first determination module configured to sort the signal values of each signal in the third pulse signal segment and determine a minimum signal value based on the sorting result; a first removal module configured to use the minimum signal value as a baseline value and remove the baseline of each signal in the third pulse signal segment based on the baseline value to obtain a fourth pulse signal segment; and a third processing module configured to perform an amplification operation on each signal in the fourth pulse signal segment based on an amplification factor array to obtain a target pulse signal segment.

[0128] Optionally, the first processing module includes: a first erosion module configured to perform an erosion operation on each signal in the pulse signal segment based on a preset circular region to obtain a first eroded pulse signal segment; a first dilation module configured to perform a dilation operation on each signal in the first eroded pulse signal segment based on the preset circular region to obtain a first dilated pulse signal segment and use the first dilated pulse signal segment as the first pulse signal segment; a second dilation module configured to perform a dilation operation on each signal in the first dilated pulse signal segment based on the preset circular region to obtain a second dilated pulse signal segment; and a second erosion module configured to perform an erosion operation on each signal in the second dilated pulse signal segment based on the preset circular region to obtain a second eroded pulse signal segment and use the second eroded pulse signal segment as the second pulse signal segment.

[0129] Optionally, the signal value of each signal in the first dilated pulse signal segment is a first dilated signal value, and the first erosion module includes: a first determination sub-module configured to use the signal as a current signal and determine a neighborhood signal set of the current signal, where the neighborhood signal set includes: a preset number of signals adjacent to the current signal and before the current signal, and a preset number of signals adjacent to the current signal and after the current signal, and the preset number is equal to the radius of the preset circular region; a second determination sub-module configured to determine the height value of each signal in the neighborhood signal set and use the difference between the current signal value of each signal and the height value as the erosion standard value of each signal; and a first assignment sub-module configured to, when the current signal value of the signal is greater than or equal to the erosion standard value, use the erosion standard value as the first dilated signal value of the signal, and when the current signal value of the signal is less than the erosion standard value, use the current signal value as the first dilated signal value of the signal.

[0130] Optionally, the signal value of each signal in the first corrosion pulse signal segment is the first corrosion signal value. The first dilation module includes: a third determination sub-module, configured to use the signal as the current signal and determine the set of neighborhood signals of the current signal; a fourth determination sub-module, configured to determine the height value of each signal in the set of neighborhood signals, and use the sum value between the current signal value and the height value of each signal as the dilation standard value of each signal; a second acting as sub-module, configured to, when the current signal value of the signal is less than or equal to the dilation standard value, use the dilation standard value as the first corrosion signal value of the signal, and when the current signal value of the signal is greater than the dilation standard value, use the current signal value as the first corrosion signal value of the signal.

[0131] Optionally, the recognition unit includes: a first traversal module, configured to traverse each preset signal on the target pulse signal segment, where the preset signal is a signal on the target pulse signal segment except for the start signal and the end signal; a second determination module, configured to, for each preset signal, determine the previous signal and the next signal adjacent to the preset signal; a third determination module, configured to determine the peak signal value of the preset signal based on the signal value of the preset signal, the signal value of the previous signal adjacent to the preset signal, and the signal value of the next signal adjacent to the preset signal; a fourth determination module, configured to, when the peak signal value is less than 0, determine the preset signal as the peak pulse on the target pulse signal segment, where there is at most one peak pulse on each target pulse signal segment.

[0132] Optionally, the recognition unit further includes: a first recognition module, configured to recognize the synchronization header on the pulse signal sequence, and use the pulse signal indicated by the preset synchronization identifier on the synchronization header as the initial pulse signal of the pulse signal sequence; a fifth determination module, configured to determine the length between each peak pulse and the initial pulse signal, and use the length as the absolute position of the peak pulse; a sixth determination module, configured to, when the absolute position is a floating-point value, perform rounding conversion on the floating-point value to obtain an integer value of the peak pulse, and determine the error of the peak pulse based on the floating-point value and the integer value; a seventh determination module, configured to determine the prediction error by using the least squares method based on the errors of all peak pulses; a first correction module, configured to correct the absolute position of each peak pulse based on the prediction error to obtain the target position of the peak pulse on the pulse signal sequence.

[0133] Optionally, the preset pulse arrangement combination includes: a plurality of preset pulse arrangements. The removal unit includes: an eighth determination module for determining the pulses to be decoded on each target pulse signal segment; a first sorting module for, when the number of pulses to be decoded is greater than the preset decoding number, performing permutation and combination on all the pulses to be decoded to obtain a plurality of pulse permutations to be decoded; a first matching module for matching each pulse permutation to be decoded with the plurality of preset pulse arrangements and determining the pulse permutation to be decoded that matches any one of the preset pulse arrangements as the target pulse permutation to be decoded; a ninth determination module for determining the other pulses to be decoded on the target pulse signal segment except for the target pulses to be decoded included in the target pulse permutation to be decoded as error pulses and removing the error pulses on the target pulse signal segment.

[0134] The above-mentioned pulse recognition device may further include a processor and a memory. The above-mentioned extraction unit 50, processing unit 51, recognition unit 52, removal unit 53, etc. are all stored in the memory as program units, and the processor executes the above-mentioned program units stored in the memory to implement corresponding functions.

[0135] The above-mentioned processor includes a kernel, and the kernel retrieves the corresponding program units from the memory. One or more kernels can be set, and by adjusting the kernel parameters, error pulses on each target pulse signal segment in the initial pulse sequence are removed based on the preset pulse arrangement combination to obtain a target pulse sequence, and the target pulse sequence is converted into a decoded value based on the preset pulse parameter table.

[0136] The above-mentioned memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of, for example, read-only memory (ROM) or flash memory (flash RAM), and the memory includes at least one storage chip.

[0137] The present invention also provides a computer program product, which, when executed on a data processing device, is adapted to execute a program initialized with the following method steps: receiving pulse signal data, and based on the pulse width, extracting pulse signal segments of a preset length from the pulse signal data in chronological order, processing each pulse signal segment to obtain a target pulse signal segment, identifying the peak pulses on each target pulse signal segment, and determining the target positions of each peak pulse in the pulse signal sequence to obtain an initial pulse sequence, removing the error pulses on each target pulse signal segment in the initial pulse sequence based on the preset pulse arrangement combination to obtain a target pulse sequence, and converting the target pulse sequence into a decoded value based on the preset pulse parameter table.

[0138] According to another aspect of the embodiments of the present invention, there is also provided a computer program product, including a non-volatile computer-readable storage medium storing a computer program, which, when executed by a processor, implements the pulse recognition method for MWD according to any one of the above.

[0139] According to another aspect of the embodiments of the present invention, there is also provided an electronic device, including one or more processors and a memory for storing one or more programs, wherein, when the one or more programs are executed by the one or more processors, the one or more processors implement the above-mentioned pulse recognition method for MWD.

[0140] Figure 6 is a hardware structural block diagram of an electronic device (or mobile device) for the pulse recognition method for MWD according to the embodiments of the present invention. As Figure 6 shown, the electronic device may include one or more processors (for example, Figure 6 processor 602a, processor 602b,..., processor 602n in , and these processors may include, but are not limited to, processing devices such as a microprocessor MCU or a field programmable gate array FPGA), and a memory 604 for storing data. In addition, it may further include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of the I / O interface), a network interface, a keyboard, a power supply, and / or a camera. Those of ordinary skill in the art can understand that Figure 6 the structure shown Figure 6 is only illustrative and does not limit the structure of the above-mentioned electronic device. For example, the electronic device may further include more or fewer components than Figure 6 shown, or have a different configuration from

[0141] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0142] The embodiments or examples of the present disclosure are not exhaustive. They are only illustrations of some embodiments or examples and do not constitute specific limitations on the protection scope of the present disclosure. Without contradiction, each step in a certain embodiment or example can be implemented as an independent embodiment, and the steps can be combined arbitrarily. For example, a solution obtained by removing some steps in a certain embodiment or example can also be implemented as an independent embodiment, and the order of the steps in a certain embodiment or example can be arbitrarily exchanged. In addition, the optional ways or optional examples in a certain embodiment or example can be combined arbitrarily; furthermore, the embodiments or examples can be combined arbitrarily. For example, some or all of the steps of different embodiments or examples can be combined arbitrarily, and a certain embodiment or example can be combined arbitrarily with the optional ways or optional examples of other embodiments or examples.

[0143] In the above embodiments of the present invention, the descriptions of the respective embodiments have their own emphases. For the parts not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0144] In several embodiments provided by the present invention, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only illustrative. For example, the division of the units can be a logical function division. In actual implementation, there can be other division methods. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed couplings or direct couplings or communication connections to each other can be through some interfaces. The indirect couplings or communication connections of the units or modules can be in an electrical or other form.

[0145] The units described as separate components may or may not be physically separated. The components shown as units may or may not be physical units, that is, they can be located in one place or distributed to multiple units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0146] In addition, the functional units in each embodiment of the present invention can be integrated in a processing unit, or each unit can exist physically alone, or two or more units can be integrated in one unit. The above integrated units can be implemented in the form of hardware or in the form of software functional units.

[0147] When the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of this technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes: various media that can store program codes, such as USB flash drives, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), mobile hard disks, magnetic disks, or optical discs.

[0148] The above are only the preferred embodiments of the present invention. It should be noted that for those of ordinary skill in the art, without departing from the principle of the present invention, several improvements and refinements can be made, and these improvements and refinements should also be regarded as the protection scope of the present invention.

Claims

1. A pulse recognition method for MWD, characterized in that, Including: Receiving pulse signal data, and based on the pulse width, extracting a pulse signal segment with a preset length from the pulse signal data in chronological order; Processing each of the pulse signal segments to obtain a target pulse signal segment; Identifying peak pulses on each of the target pulse signal segments, and determining the target positions of each of the peak pulses in the pulse signal sequence to obtain an initial pulse sequence, where the pulse signal sequence is a sequence formed by combining all the target pulse signal segments in chronological order; Based on a preset pulse arrangement combination, removing the incorrect pulses on each of the target pulse signal segments in the initial pulse sequence to obtain a target pulse sequence, and converting the target pulse sequence into a decoded value based on a preset pulse parameter table.

2. The pulse recognition method according to claim 1, wherein The step of processing each of the pulse signal segments to obtain a target pulse signal segment includes: Performing an opening operation on each signal in the pulse signal segment to obtain a first pulse signal segment, and performing a closing operation on each signal in the first pulse signal segment to obtain a second pulse signal segment; Based on a filter factor array, performing a filtering process on each signal in the second pulse signal segment to obtain a third pulse signal segment; Sorting the signal values of each signal in the third pulse signal segment, and determining the minimum signal value based on the sorting result; Taking the minimum signal value as a baseline value, and removing the baseline of each signal in the third pulse signal segment based on the baseline value to obtain a fourth pulse signal segment; Based on an amplification factor array, performing an amplification process on each signal in the fourth pulse signal segment to obtain the target pulse signal segment.

3. The pulse recognition method according to claim 2, characterized in that The step of performing an opening operation on each signal in the pulse signal segment to obtain a first pulse signal segment, and performing a closing operation on each signal in the first pulse signal segment to obtain a second pulse signal segment includes: Based on a preset circular region, performing an erosion process on each signal in the pulse signal segment to obtain a first eroded pulse signal segment; Based on the preset circular region, performing a dilation process on each signal in the first eroded pulse signal segment to obtain a first dilated pulse signal segment, and taking the first dilated pulse signal segment as the first pulse signal segment; Based on the preset circular region, performing a dilation process on each signal in the first dilated pulse signal segment to obtain a second dilated pulse signal segment; Based on the preset circular region, performing an erosion process on each signal in the second dilated pulse signal segment to obtain a second eroded pulse signal segment, and taking the second eroded pulse signal segment as the second pulse signal segment.

4. The pulse recognition method according to claim 3, characterized in that The signal value of each signal in the first dilated pulse signal segment is a first dilation signal value. The step of performing an erosion process on each signal in the pulse signal segment includes: Take the signal as the current signal, and determine the set of neighboring signals of the current signal, where the set of neighboring signals includes: a preset number of signals adjacent to the current signal and before the current signal, and a preset number of signals adjacent to the current signal and after the current signal, and the preset number is equal to the radius of the preset circular region; Determine the height value of each signal in the set of neighboring signals, and take the difference between the current signal value of each signal and the height value as the corrosion standard value of each signal; In the case where the current signal value of the signal is greater than or equal to the corrosion standard value, take the corrosion standard value as the first dilation signal value of the signal, and in the case where the current signal value of the signal is less than the corrosion standard value, take the current signal value as the first dilation signal value of the signal.

5. The pulse recognition method according to claim 3, characterized in that The signal value of each signal in the first corrosion pulse signal segment is the first corrosion signal value. The step of dilating each signal in the first corrosion pulse signal segment includes: Take the signal as the current signal, and determine the set of neighboring signals of the current signal; Determine the height value of each signal in the set of neighboring signals, and take the sum value between the current signal value of each signal and the height value as the dilation standard value of each signal; In the case where the current signal value of the signal is less than or equal to the dilation standard value, take the dilation standard value as the first corrosion signal value of the signal, and in the case where the current signal value of the signal is greater than the dilation standard value, take the current signal value as the first corrosion signal value of the signal.

6. The pulse recognition method according to claim 1, characterized in that The step of identifying the peak pulse on each of the target pulse signal segments includes: Traverse each preset signal on the target pulse signal segment, where the preset signal is a signal on the target pulse signal segment except the start signal and the end signal; For each of the preset signals, determine the previous signal and the next signal adjacent to the preset signal; Based on the signal value of the preset signal, the signal value of the previous signal adjacent to the preset signal, and the signal value of the next signal adjacent to the preset signal, determine the peak signal value of the preset signal; In the case where the peak signal value is less than 0, determine the preset signal as the peak pulse on the target pulse signal segment, and there is at most one peak pulse on each of the target pulse signal segments.

7. The pulse recognition method according to claim 1, characterized in that, The step of determining the target position of each peak pulse in the pulse signal sequence includes: Identify the synchronization header on the pulse signal sequence, and take the pulse signal indicated by the preset synchronization identifier on the synchronization header as the initial pulse signal of the pulse signal sequence; Determine the length between each peak pulse and the initial pulse signal, and take the length as the absolute position of the peak pulse; In the case where the absolute position is a floating-point value, perform rounding conversion on the floating-point value to obtain the integer value of the peak pulse, and based on the floating-point value and the integer value, determine the error of the peak pulse; Based on the errors of all the peak pulses, use the least squares method to determine the prediction error; Based on the prediction error, correct the absolute position of each peak pulse to obtain the target position of the peak pulse on the pulse signal sequence.

8. The pulse recognition method according to claim 1, wherein The preset pulse arrangement combination includes: a plurality of preset pulse arrangements. Based on the preset pulse arrangement combination, the steps of removing the error pulses on each target pulse signal segment in the initial pulse sequence include: Determine the pulses to be decoded on each target pulse signal segment; When the number of the pulses to be decoded is greater than the preset decoding number, perform permutation and combination on all the pulses to be decoded to obtain a plurality of decoded pulse arrangements; Match each decoded pulse arrangement with a plurality of the preset pulse arrangements, and determine the decoded pulse arrangement that matches any one of the preset pulse arrangements as the target decoded pulse arrangement; Determine the other pulses to be decoded on the target pulse signal segment except the target pulses to be decoded included in the target decoded pulse arrangement as the error pulses, and remove the error pulses on the target pulse signal segment.

9. A pulse recognition device for MWD, characterized in that, It includes: An extraction unit, configured to receive pulse signal data, and extract a pulse signal segment with a preset length from the pulse signal data based on the pulse width in chronological order; A processing unit, configured to process each pulse signal segment to obtain a target pulse signal segment; An identification unit, configured to identify the peak pulses on each target pulse signal segment, and determine the target position of each peak pulse on the pulse signal sequence to obtain an initial pulse sequence, where the pulse signal sequence is a sequence obtained by combining all the target pulse signal segments in chronological order; A removal unit, configured to remove the error pulses on each target pulse signal segment in the initial pulse sequence based on the preset pulse arrangement combination to obtain a target pulse sequence, and convert the target pulse sequence into a decoded value based on the preset pulse parameter table.

10. An electronic device, characterized in that, It includes one or more processors and a memory. The memory is used to store one or more programs. When the one or more programs are executed by the one or more processors, the one or more processors implement the pulse identification method for MWD according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Optical fiber sensing array pulse time delay measurement method based on pulse template function

    CN106092340A

  • Real-time generation method and device for random pulse signals and electronic equipment

    CN109683147A

  • Baseline processing method and device of pulse signal and particle detection system

    CN111122421A

  • Pulse signal identification method and device, storage medium and particle detection system

    CN111122984A

  • Electric sensitive area signal denoising method based on wavelet transform and morphological filtering

    CN112329741A