A method and signal processing system for processing magnetic guidance signals while drilling.
By real-time detection and calibration of sensor sampling frequency, combined with excitation source module and data fusion technology, the problem of sensor sampling frequency deviation in complex downhole environments has been solved, achieving high-precision magnetic field signal processing and target well position calculation, thus improving the working efficiency and reliability of drilling magnetic guidance technology.
Patent Information
- Application Number
- CN202510632890.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-16
- Publication Date
- 2026-11-17
AI Technical Summary
In complex downhole environments, deviations in sensor sampling frequency from preset values lead to distortion of the time-domain waveform and aliasing of frequency-domain magnetic field signals, affecting the accuracy of target well location calculations. Existing technologies struggle to calibrate in real time and adapt to the effects of nonlinear environments.
By analyzing the time and frequency domain information of the magnetic field signal, the sensor sampling frequency deviation is detected and calibrated in real time. Combined with the excitation source module, the target well casing is actively excited to generate induced current and magnetic field signals at the same frequency. The sampling frequency is calculated by data fusion method of time domain periodic statistics and frequency domain spectrum analysis. A closed-loop calibration feedback mechanism is established, and the signal recognizability is enhanced by phase-locked extraction and mean filtering.
It improves the sampling accuracy of the sensor, reduces magnetic field signal waveform distortion and energy aliasing, enhances the accuracy of target well location calculation and system stability, strengthens the ability to identify target signals, and reduces the impact of noise interference.
Smart Images

Figure CN123109637A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of oil drilling engineering technology, and in particular to a method and system for processing magnetic guidance signals while drilling. Background Technology
[0002] In magnetically guided drilling (MRDB) technology, the sampling frequency accuracy of the sensor module directly determines the quality of magnetic field signal acquisition and is a core element for achieving precise target well positioning. However, complex downhole environments such as high temperatures and vibrations can easily cause the actual sampling frequency of the sensor to deviate from the preset value, leading to problems such as time-domain waveform distortion (e.g., period measurement deviation) and frequency-domain energy aliasing (e.g., frequency component leakage) in the acquired magnetic field signal, affecting the accuracy of subsequent target well location calculations.
[0003] In one existing technology, a periodic calibration strategy is employed, in which the sensor sampling frequency is calibrated at fixed intervals. However, this method suffers from response delay and cannot capture instantaneous drift in the sampling frequency in real time. This results in continuous distortion of the acquired signal during the period of deviation accumulation, making it difficult for subsequent denoising processing to accurately separate the target magnetic field signal from noise, ultimately causing the positioning error to accumulate over time.
[0004] In another existing technology, hardware timing circuits such as crystal oscillators are used to maintain the sampling frequency. While this method can provide basic frequency stability, the additional hardware increases system complexity and cost. Furthermore, hardware calibration cannot adapt to the nonlinear effects of the downhole environment on sensor performance (such as nonlinear frequency changes caused by temperature drift), which can easily lead to systematic deviations in the acquired signal in both the time and frequency domains, further increasing the error in calculating the target well location.
[0005] Therefore, how to improve the accuracy of calculating the target well location by calibrating the sampling accuracy of the sensor in real time is an urgent problem to be solved. Summary of the Invention
[0006] The technical problem to be solved by the present invention is to provide a method and system for processing magnetic guidance signals while drilling, so as to overcome the limitations of the prior art in complex downhole environments, improve the accuracy of weak magnetic signal acquisition and anti-interference ability, and improve the working efficiency and reliability of magnetic guidance technology while drilling.
[0007] The technical solution of the present invention to solve the above-mentioned technical problems is as follows:
[0008] In a first aspect, the present invention provides a method for processing magnetic steering signals while drilling, applied to a signal processing system. The signal processing system includes a sensor module located in the wellbore. The method includes: determining a magnetic field signal based on the sensor module; the magnetic field signal includes a target magnetic field signal; the target magnetic field signal is emitted from a target well. Based on the time-domain and frequency-domain information corresponding to the magnetic field signal, the sampling frequency of the sensor module is determined. If the difference between the sampling frequency and a preset frequency is less than a preset value, the magnetic field signal is denoised to obtain the target magnetic field signal. Based on the target magnetic field signal, the location information of the target well is determined.
[0009] The beneficial effects of this invention are: by analyzing the time domain and frequency domain information of the magnetic field signal, the deviation between the sensor sampling frequency and the preset value is detected in real time and calibrated, reducing the waveform distortion and energy aliasing of the acquired magnetic field signal from the source of signal acquisition, providing a high-precision signal basis for subsequent noise reduction processing and position calculation, and effectively improving the accuracy of the target well position calculation.
[0010] Based on the above technical solution, the present invention can be further improved as follows.
[0011] Furthermore, the target well includes a target well casing, and the target magnetic field signal is emitted from the target well casing. The signal processing system also includes an excitation source module located in the drilling well. The method provided by this invention further includes: calibrating the excitation parameter values of the excitation source module to preset excitation values corresponding to the excitation parameters, and calibrating the sampling frequency of the sensor module to a preset frequency. An excitation signal is emitted from the excitation source module to the target well casing to excite the target well casing to emit the target magnetic field signal.
[0012] The beneficial effects of adopting the above-mentioned further scheme are: by actively stimulating the target well casing, it generates induced current and magnetic field signals with the same frequency as the excitation source, which transforms passive measurement into active signal injection, significantly enhancing the identifiability of the target magnetic field signal (distinguishing it from passively receiving natural weak magnetic signals in complex environments), and solving the problem that the target signal is easily submerged by noise in the existing technology.
[0013] Furthermore, the excitation parameters include frequency, intensity, and phase; the preset excitation value corresponding to frequency is a preset frequency value; the preset excitation value corresponding to intensity is a preset intensity value; and the preset excitation value corresponding to phase is a preset phase value.
[0014] The beneficial effects of adopting the above-mentioned further scheme are: the key parameters of the excitation signal are standardized and defined, so that the target magnetic field signal has unique frequency, amplitude and phase characteristics, which facilitates accurate matching of the reference signal during subsequent phase-locked extraction and reduces signal extraction errors caused by multi-parameter deviations.
[0015] Furthermore, if the difference between the sampling frequency and the preset frequency is greater than or equal to a preset value, the excitation parameter value of the excitation source module is calibrated to the preset excitation value, and the sampling frequency of the sensor module is calibrated to the preset frequency.
[0016] The beneficial effects of adopting the above-mentioned further solution are: a closed-loop calibration feedback mechanism is established, which automatically triggers the recalibration process when the sampling rate deviation is found to exceed the limit, avoiding continuous measurement errors caused by hardware drift or environmental interference, and improving the stability of the system in long-term operation.
[0017] Furthermore, based on the time-domain information corresponding to the magnetic field signal, a first sampling frequency corresponding to the sensor module is determined. Based on the frequency-domain information corresponding to the magnetic field signal, a second sampling frequency corresponding to the sensor module is determined. Based on the first and second sampling frequencies, the sampling frequency of the sensor module is determined.
[0018] The beneficial effects of adopting the above-mentioned further scheme are: to integrate two independent methods, time-domain periodic statistics (such as square wave rising edge interval) and frequency-domain spectrum analysis (such as FFT peak frequency), to calculate the sampling rate, and to use the periodic characteristics of the time domain and the energy concentration characteristics of the frequency domain to verify each other, thereby reducing the influence of noise interference on the single method (such as time-domain noise causing period measurement deviation and frequency leakage causing frequency estimation error), and finally improving the accuracy of sampling rate calibration through data fusion.
[0019] Furthermore, the time-domain information corresponding to the magnetic field signal includes a time-domain waveform of the magnetic field signal within a preset time period; the preset time period is the sampling time of the sensor module; the horizontal axis of the time-domain waveform is used to characterize the sampling time of the sensor module, and the vertical axis of the time-domain waveform is used to characterize the signal strength of the magnetic field signal. The positions of all rising edges in the time-domain waveform are extracted, and a standard period is determined based on the time interval between each rising edge. A first sampling frequency is determined based on the number of standard periods included within the preset time period and the number of samples taken by the sensor module within the preset time period.
[0020] The beneficial effects of adopting the above-mentioned further scheme are: for periodic signals (such as sine waves or square waves generated by excitation sources), the signal period can be directly calculated by extracting the rising edge as a clear feature point, avoiding the sensitivity of the traditional time-domain averaging method to non-periodic noise, and is suitable for stable sampling rate calculation in strong interference environments.
[0021] Furthermore, for any two adjacent rising edges, the time interval between any two adjacent rising edges is determined. The average value of the time intervals between adjacent rising edges is determined as the standard period, or the median value of the time intervals between adjacent rising edges is determined as the standard period.
[0022] The beneficial effect of adopting the above-mentioned further scheme is that by using statistical averaging or median filtering, the influence of individual abnormal rising edges (such as false triggering caused by noise) on the period calculation is suppressed, making the standard period closer to the true period of the signal, thereby improving the noise immunity of the first sampling frequency.
[0023] Furthermore, the frequency domain information corresponding to the magnetic field signal includes a frequency distribution map of the magnetic field signal within a preset time period; the horizontal axis of the frequency distribution map represents the frequency of the magnetic field signal, and the vertical axis represents the signal strength of the magnetic field signal. The frequency corresponding to the target sampling point in the frequency distribution map is determined as the target frequency; the target sampling point is the sampling point with the maximum signal strength in the frequency distribution map. Based on the target frequency, a second sampling frequency is determined.
[0024] The advantages of adopting the above-mentioned further scheme are: by utilizing the energy concentration characteristics of the frequency domain, the characteristic frequency of the target signal (i.e., the excitation source signal with the same frequency) can be directly locked, avoiding the dependence of the time domain method on the continuity of the signal. It is especially suitable for fast frequency identification in non-periodic noise environment, and improves the efficiency and accuracy of frequency domain analysis.
[0025] Furthermore, the average of the first sampling frequency and the second sampling frequency is determined as the sampling frequency of the sensor module.
[0026] The beneficial effect of adopting the above-mentioned further scheme is that by balancing the inherent errors of time-domain and frequency-domain methods (such as integer point truncation error of time-domain period measurement and frequency-domain picket fence effect error) through simple weighted averaging (or other mean calculation), the final sampling rate is closer to the true value, and the advantages of the two methods are complemented.
[0027] Furthermore, based on the frequency of the excitation signal, phase-locked extraction processing is performed on the magnetic field signal to obtain the target magnetic field signal.
[0028] The beneficial effects of adopting the above-mentioned further scheme are: by utilizing the narrow-band tracking characteristics of the lock-in amplifier, only the signal components with the same frequency as the excitation source are extracted, effectively filtering out power frequency noise, drilling equipment harmonics and other inter-frequency interference, so that the target signal can still be accurately separated in a strong noise environment, and significantly improving the signal-to-noise ratio.
[0029] Furthermore, mean filtering is performed on the magnetic field signal. Based on the excitation signal, phase-locked extraction is performed on the mean-filtered magnetic field signal to obtain the target magnetic field signal.
[0030] The beneficial effects of adopting the above-mentioned further scheme are: mean filtering, as a preprocessing step, smooths high-frequency noise (such as high-frequency electromagnetic fluctuations generated by drilling fluid flow) through a sliding window, extracts the signal baseline (low-frequency geomagnetic field signal), provides a purer input signal for subsequent phase-locked loop extraction, and reduces the interference of high-frequency noise on the phase-locked loop process.
[0031] Furthermore, the magnetic field signal also includes geomagnetic signals and electromagnetic interference signals. The geomagnetic signal is emitted based on the Earth's magnetic field, while the electromagnetic interference signal differs from the geomagnetic signal. Mean filtering is performed on the magnetic field signal to determine the geomagnetic signal. Based on the geomagnetic signal, a restricted region is determined; the restricted region is the numerical range between the upper and lower limits of the saturation region. Based on the restricted region, the mean-filtered magnetic field signal is adjusted. Based on the excitation signal, phase-locked loop extraction is performed on the adjusted magnetic field signal to obtain the target magnetic field signal.
[0032] The beneficial effects of adopting the above-mentioned further scheme are: in response to sudden strong interference (such as downhole discharge and transient magnetic fields generated by metal collision), the saturation threshold is dynamically set by geomagnetic signal to limit abnormal values within a reasonable range, thus ensuring the stability of subsequent phase-locked extraction.
[0033] Furthermore, the magnetic field signal includes magnetic field data collected by the sensor module at each sampling time. For the magnetic field data corresponding to any sampling time included in the magnetic field signal, a sliding time window is defined centered on the magnetic field data corresponding to that sampling time; the window size of the sliding time window is a preset window size. Based on the magnetic field data corresponding to each sampling time included in the sliding time window, the magnetic field data corresponding to any sampling time is updated. Based on the updated magnetic field data, the magnetic field signal is updated. The geomagnetic signal is determined from the updated magnetic field signal.
[0034] The advantages of adopting the above-mentioned further scheme are: it defines a specific implementation method for mean filtering, and suppresses random noise while preserving the low-frequency trend of the signal through local averaging with a fixed window size, and has low computational complexity, making it suitable for real-time downhole signal processing.
[0035] Furthermore, the magnetic field data includes the magnetic field strength collected at the corresponding sampling time. The average value of the magnetic field strength collected at each sampling time included in the sliding time window is determined as the value of the magnetic field strength collected at any sampling time.
[0036] The beneficial effects of adopting the above-mentioned further scheme are: it clarifies the calculation rules of mean filtering, so that the signal value of each sampling point is determined by the statistical characteristics of the neighborhood, rather than a single sampling value, effectively reducing the influence of isolated noise points, and is especially suitable for baseline extraction of slowly varying geomagnetic field signals.
[0037] Furthermore, based on the geomagnetic signal, the horizontal component of the geomagnetic field is determined. Based on the horizontal component of the geomagnetic field, the upper and lower limits of the saturation region are determined. Based on the upper and lower limits of the saturation region, the restricted area is determined.
[0038] The beneficial effects of adopting the above-mentioned further scheme are: by setting a dynamic threshold in combination with the physical characteristics of the geomagnetic field (the horizontal component is relatively stable), the saturation limit is matched with the actual geomagnetic field environment, avoiding the adaptability problem of fixed thresholds in different geographical locations (such as changes in the strength of the geomagnetic field), and improving the environmental versatility of the system.
[0039] Furthermore, if the magnetic field strength collected at any sampling time is greater than the upper saturation limit, then the magnetic field strength collected at any sampling time is adjusted to the upper saturation limit. If the magnetic field strength collected at any sampling time is less than the lower saturation limit, then the magnetic field strength collected at any sampling time is adjusted to the lower saturation limit.
[0040] The advantages of adopting the above-mentioned further solution are: it provides specific outlier handling rules, quickly suppresses sudden interference through hard limiting operation, prevents outliers from entering the subsequent phase-locked loop extraction algorithm and causing phase calculation deviation, and ensures the robustness of the signal processing link.
[0041] Furthermore, the signal strength and phase of the target magnetic field signal are obtained. Based on the signal strength and phase of the target magnetic field signal, the location information of the target well is determined.
[0042] The beneficial effect of adopting the above-mentioned further scheme is that it directly correlates the signal processing results (amplitude and phase) with the engineering target (positioning solution), and calculates the relative distance and azimuth between the two wells through amplitude attenuation and phase difference, providing accurate guidance for drilling trajectory adjustment.
[0043] Furthermore, a first signal expression and a second signal expression are determined. The first signal expression is determined based on the frequency, intensity, and phase of the excitation signal; the second signal expression is determined based on the frequency, intensity, and phase of the adjusted magnetic field signal. A third signal expression is obtained by multiplying the first and second signal expressions; the third signal expression includes a high-frequency term and a constant term; the constant term includes the phase difference information between the excitation signal and the target magnetic field signal. Based on the constant term, the signal intensity and phase of the target magnetic field signal are obtained.
[0044] The beneficial effects of adopting the above-mentioned further scheme are: separating the high-frequency component from the DC component (constant term), extracting the DC signal containing the phase difference, realizing high-precision measurement of weak phase changes, and solving the problem of noise affecting the phase measurement of traditional Fourier transform.
[0045] Secondly, the present invention provides a signal processing system, including a sensor module, an excitation source module, and a processing module. The excitation source module is used to transmit an excitation signal to the target well casing to excite the target well casing to emit a target magnetic field signal. The sensor module is used to acquire the magnetic field signal; the magnetic field signal includes the target magnetic field signal. The processing module is used to execute the drilling magnetic guidance signal processing method described in any one of the first aspects above.
[0046] Thirdly, the present invention provides an electronic device, comprising: a memory and one or more processors; the memory and the processors are coupled; wherein the memory stores computer program code, the computer program code including computer instructions, and when the computer instructions are executed by the processor, the electronic device performs the processing method for the drilling magnetic guidance signal as described in any of the first aspects above.
[0047] Fourthly, a computer-readable storage medium is provided, including computer instructions that, when executed on an electronic device, cause the electronic device to perform the drilling magnetic guidance signal processing method described in any of the first aspects above.
[0048] Fifthly, a computer program product is provided, which, when run on a computer, causes the computer to execute the processing method for the magnetic guidance signal while drilling as described in any of the first aspects above.
[0049] It is understood that the beneficial effects achieved by the system of the second aspect, the electronic device of the third aspect, the computer-readable storage medium of the fourth aspect, and the computer program product of the fifth aspect can be referred to the beneficial effects of the first aspect and any of its possible design embodiments, which will not be repeated here. Attached Figure Description
[0050] Figure 1 A flowchart illustrating a method for processing magnetic guidance signals while drilling provided by the present invention;
[0051] Figure 2 A schematic diagram of the structure of a signal processing system provided by the present invention;
[0052] Figure 3 This invention provides a schematic diagram of a scenario including a target well and a drilling well. Detailed Implementation
[0053] The technical solutions of the embodiments of this application will be described below with reference to the accompanying drawings. In the description of this application, unless otherwise stated, " / " indicates that the objects before and after are in an "or" relationship. For example, A / B can represent A or B. "And / or" in this application is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, and B alone, where A and B can be singular or plural. Furthermore, in the description of this application, unless otherwise stated, "multiple" refers to two or more. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can represent: a, b, c, ab, ac, bc, or abc, where a, b, and c can be single or multiple. Furthermore, to facilitate a clear description of the technical solutions in the embodiments of this application, the terms "first" and "second" are used in the embodiments of this application to distinguish identical or similar items with substantially the same function and effect. Those skilled in the art will understand that the terms "first" and "second" do not limit the quantity or execution order, and that "first" and "second" are not necessarily different. Meanwhile, in the embodiments of this application, words such as "exemplary" or "for example" are used to indicate that something is being used as an example, illustration, or description. Any embodiment or design scheme described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design schemes.
[0054] This invention provides a method and system for processing magnetic steering signals while drilling. By analyzing the time and frequency domain information of the magnetic field signal, the deviation between the sensor sampling frequency and the preset value is detected in real time and calibrated. This reduces waveform distortion and energy aliasing of the acquired magnetic field signal from the source of signal acquisition, providing a high-precision signal basis for subsequent noise reduction and position calculation, and effectively improving the accuracy of the target well position calculation.
[0055] See Figure 1 This is a flowchart illustrating a method for processing magnetic guidance signals while drilling provided by the present invention. The method for processing magnetic guidance signals while drilling provided by the present invention is applied to applications such as... Figure 2 The signal processing system shown includes a sensor module and an excitation source module located in the drilling site.
[0056] See also Figure 1 The present invention provides a method for processing magnetic guidance signals while drilling, comprising the following steps S101-S105:
[0057] S100: Calibrate the excitation parameter values of the excitation source module to the preset excitation values corresponding to the excitation parameters, and calibrate the sampling frequency of the sensor module to the preset frequency.
[0058] In some embodiments, the excitation parameters include frequency, intensity, and phase. The preset excitation value corresponding to frequency is a preset frequency value. The preset excitation value corresponding to intensity is a preset intensity value. The preset excitation value corresponding to phase is a preset phase value. Standardizing the key parameters of the excitation signal allows the target magnetic field signal in subsequent steps to have uniquely determined frequency, amplitude, and phase characteristics, facilitating accurate matching of the reference signal during subsequent phase-locked loop extraction and reducing signal extraction errors caused by multi-parameter deviations.
[0059] S101: Based on the excitation source module, an excitation signal is transmitted to the target well casing.
[0060] Among them, the target well casing is the casing located in the target well. Based on the excitation source module, the excitation signal is transmitted to the target well casing, which can excite the target well casing to emit the target magnetic field signal.
[0061] S102: Determine the magnetic field signal based on the sensor module.
[0062] Among them, the magnetic field signal includes the target magnetic field signal, which is emitted from the target well.
[0063] For example, see Figure 3 After calibrating the excitation source module 301 and the sensor module 302, the excitation source module 301 can radiate an excitation current I1 (the excitation signal in this embodiment) at a certain frequency. The excitation current I1 can pass through the drilling fluid and reach the target well casing 303. After receiving the excitation current I1, the target well casing 303 will return the excitation current I1 (the drilling casing 304 can receive the returned excitation current I1). During the return process, due to the current induction effect, a target magnetic field signal E1 will be generated. In addition, formation current I2 and drilling fluid current I3 will also be transmitted to the drilling casing. Due to the current induction effect, a geomagnetic signal will be generated around the formation current I2, and an electromagnetic interference signal will be generated around the drilling fluid current I3. The sensor module 302 can be used to collect magnetic field signals including the target magnetic field signal E1, the geomagnetic signal, and the electromagnetic interference signal.
[0064] As can be seen, the present invention actively excites the target well casing through the excitation source module, so that the target well casing generates induced current and magnetic field signals with the same frequency as the excitation source, transforming passive measurement into active signal injection, significantly enhancing the identifiability of the target magnetic field signal (different from passively receiving natural weak magnetic signals in complex environments), and solving the problem that the target signal is easily submerged by noise in the prior art.
[0065] In some embodiments, the sensor module includes a fluxgate sensor and an accelerometer. In this application embodiment, the calibration of the sensor module is the calibration of the fluxgate sensor included in the sensor module.
[0066] S103: Determine the sampling frequency of the sensor module based on the time-domain and frequency-domain information corresponding to the magnetic field signal.
[0067] In some embodiments, a first sampling frequency corresponding to the sensor module is determined based on the time-domain information corresponding to the magnetic field signal. A second sampling frequency corresponding to the sensor module is determined based on the frequency-domain information corresponding to the magnetic field signal. The sampling frequency of the sensor module is then determined based on the first and second sampling frequencies.
[0068] As can be seen, this invention calculates the sampling rate by fusing two independent methods: time-domain periodic statistics (such as the rising edge interval of a square wave) and frequency-domain spectral analysis (such as the peak frequency of an FFT). It utilizes the periodicity of the time domain and the energy concentration of the frequency domain to verify each other, reducing the impact of noise interference on the single method (such as time-domain noise causing period measurement deviation and frequency leakage causing frequency estimation error). Finally, it improves the accuracy of sampling rate calibration through data fusion.
[0069] In some embodiments, the time-domain information corresponding to the magnetic field signal includes a time-domain waveform of the magnetic field signal within a preset time period; the preset time period is the sampling time of the sensor module; the horizontal axis of the time-domain waveform is used to characterize the sampling time of the sensor module, and the vertical axis of the time-domain waveform is used to characterize the signal strength of the magnetic field signal. The positions of all rising edges in the time-domain waveform are extracted, and a standard period is determined based on the time interval between each rising edge. A first sampling frequency is determined based on the number of standard periods included within the preset time period and the number of samples taken by the sensor module within the preset time period.
[0070] For example, the first sampling frequency f can be determined based on the following formula. s / t :
[0071]
[0072] Among them, P N This represents the number of times the sensor module samples within a preset time period, where N represents the number of standard periods included within the preset time period, and f e This indicates the frequency of the excitation signal emitted by the excitation source module.
[0073] In this case, for periodic signals (such as sine or square wave signals generated by an excitation source), the signal period can be directly calculated by extracting the rising edge as a clear feature point. This avoids the sensitivity of the traditional time-domain averaging method to non-periodic noise and is suitable for calculating stable sampling rates in environments with strong interference.
[0074] In some embodiments, for any two adjacent rising edges, the time interval between any two adjacent rising edges is determined. The average of the time intervals between adjacent rising edges is determined as the standard period, or the median of the time intervals between adjacent rising edges is determined as the standard period.
[0075] As can be seen, this invention suppresses the influence of individual abnormal rising edges (such as false triggering caused by noise) on period calculation by statistical averaging or median filtering, making the standard period closer to the true period of the signal, thereby improving the noise immunity of the first sampling frequency.
[0076] In some embodiments, the frequency domain information corresponding to the magnetic field signal includes a frequency distribution map of the magnetic field signal over a preset time period; the horizontal axis of the frequency distribution map represents the frequency of the magnetic field signal, and the vertical axis represents the signal strength of the magnetic field signal. The frequency corresponding to the target sampling point in the frequency distribution map is determined as the target frequency; the target sampling point is the sampling point with the maximum signal strength in the frequency distribution map. Based on the target frequency, a second sampling frequency is determined.
[0077] For example, the second sampling frequency f can be determined based on the following formula. s / f :
[0078]
[0079] Among them, R e Indicates the target frequency.
[0080] In this case, by utilizing the energy concentration characteristics of the frequency domain, the characteristic frequency of the target signal (i.e., the excitation source signal with the same frequency) can be directly locked, avoiding the dependence of time domain methods on signal continuity. This is especially suitable for fast frequency identification in non-periodic noise environments, improving the efficiency and accuracy of frequency domain analysis.
[0081] In some embodiments, the average of the first sampling frequency and the second sampling frequency is determined as the sampling frequency of the sensor module.
[0082] For example, the sampling frequency f of the sensor module can be determined based on the following formula. s :
[0083]
[0084] This method balances the inherent errors of time-domain and frequency-domain methods (such as integer point truncation error in time-domain period measurement and picket fence error in frequency domain) by using weighted averaging (or other mean calculations), making the final sampling rate closer to the true value and achieving complementary advantages of the two methods.
[0085] In some embodiments, the sensor module may include three sets of fluxgate sensors and three sets of accelerometers. Each set of fluxgate sensors has three axes, and each set of accelerometers also has three axes. The fluxgate sensors are used to acquire magnetic field signals, and the accelerometers are used to acquire their own acceleration signals. In this case, the magnetic field signals acquired by the sensor module include nine sets of data corresponding to nine axes. The average value of the final sampling frequency of each axis can be determined as the actual sampling frequency of the sensor module using the aforementioned method.
[0086] S104: When the difference between the sampling frequency and the preset frequency is less than the preset value, the magnetic field signal is denoised to obtain the target magnetic field signal.
[0087] In some embodiments, see continue to see Figure 1 If the difference between the sampling frequency and the preset frequency is greater than or equal to the preset value, the excitation parameter value of the excitation source module can be calibrated to the preset excitation value, and the sampling frequency of the sensor module can be calibrated to the preset frequency. Then, return to execute the above steps S100 and subsequent steps to establish a closed-loop calibration feedback mechanism. When the sampling rate deviation is found to exceed the limit, the recalibration process is automatically triggered to avoid continuous measurement errors caused by hardware drift or environmental interference and improve the stability of the system in long-term operation.
[0088] Specifically, if the difference between the sampling frequency and the preset frequency is greater than or equal to the preset value, the excitation parameter value of the excitation source module needs to be calibrated to the preset excitation value first. Then, when the excitation source module sends an excitation signal based on the calibrated excitation parameters, the sampling frequency of the sensor module is calibrated to the preset frequency.
[0089] In some embodiments, phase-locked extraction processing can be performed on the magnetic field signal based on the frequency of the excitation signal to obtain the target magnetic field signal.
[0090] Specifically, the narrowband tracking characteristics of the lock-in amplifier can be utilized to extract only the signal components with the same frequency as the excitation source. This can effectively filter out power frequency noise, drilling equipment harmonics and other inter-frequency interference, so that the target signal can still be accurately separated in a strong noise environment, significantly improving the signal-to-noise ratio.
[0091] In some embodiments, mean filtering can be performed on the magnetic field signal. Based on the excitation signal, phase-locked extraction (PLI) is performed on the mean-filtered magnetic field signal to obtain the target magnetic field signal. Mean filtering, as a preprocessing step, can smooth high-frequency noise (such as high-frequency electromagnetic fluctuations generated by drilling fluid flow) through a sliding window, extract the signal baseline (low-frequency geomagnetic field signal), and provide a cleaner input signal for subsequent PLI extraction, reducing the interference of high-frequency noise on the PLI process.
[0092] In some embodiments, the magnetic field signal includes magnetic field data collected by the sensor module at each sampling time. For the magnetic field data corresponding to any sampling time included in the magnetic field signal, a sliding time window is defined centered on the magnetic field data corresponding to that sampling time; the window size of the sliding time window is a preset window size. Based on the magnetic field data corresponding to each sampling time included in the sliding time window, the magnetic field data corresponding to any sampling time is updated. Based on the updated magnetic field data, the magnetic field signal is updated. The geomagnetic signal is determined from the updated magnetic field signal.
[0093] In other words, this invention defines a specific implementation method for mean filtering. By using local averaging with a fixed window size, it can suppress random noise while preserving the low-frequency trend of the signal, and has low computational complexity, making it suitable for real-time downhole signal processing.
[0094] In some embodiments, the magnetic field data includes the magnetic field strength collected at the corresponding sampling time, and the average value of the magnetic field strength collected at each sampling time included in the sliding time window is determined as the value of the magnetic field strength collected at any sampling time.
[0095] As can be seen, this invention clarifies the calculation rules for mean filtering, so that the signal value of each sampling point is determined by the statistical characteristics of the neighborhood, rather than a single sampling value, effectively reducing the influence of isolated noise points, and is especially suitable for baseline extraction of slowly varying geomagnetic field signals.
[0096] The process of performing mean filtering on magnetic field signals will be described in detail below with reference to specific embodiments.
[0097] For example, suppose the magnetic field signal is x[n], and the magnetic field signal after mean filtering is y[n]. A mean filter with a window size of S is used, and the filtering formula is:
[0098]
[0099] Here, S is usually an odd number, such as 3, 5, 7, etc., and the value of S specifically represents the number of sampling points that the window can include. The choice of window size S is crucial; the larger S is, the more obvious the filtering effect, but it may lead to signal distortion. The smaller S is, the weaker the filtering effect. Those skilled in the art can further set the specific value of S based on actual scenarios and needs, and the embodiments of this application do not impose any limitations.
[0100] n represents the currently selected sampling point (corresponding to the magnetic field data at any sampling time centered above), and i represents the offset within the window, from... arrive
[0101] In some embodiments, mean filtering is performed on the magnetic field signal to determine the geomagnetic signal. Based on the geomagnetic signal, a restricted region is determined; the restricted region is a numerical range between the upper and lower limits of the saturation region. Based on the restricted region, the mean-filtered magnetic field signal is adjusted. Based on the excitation signal, phase-locked loop extraction is performed on the adjusted magnetic field signal to obtain the target magnetic field signal.
[0102] In other words, this invention addresses sudden strong interference (such as transient magnetic fields generated by downhole discharge or metal collisions) by dynamically setting a saturation threshold using geomagnetic signals, thereby limiting abnormal values within a reasonable range and ensuring the stability of subsequent phase-locked extraction.
[0103] In some embodiments, the horizontal component of the geomagnetic field can be determined based on geomagnetic signals. Based on the horizontal component of the geomagnetic field, an upper limit and a lower limit of the saturation region are determined. Based on the upper and lower limits of the saturation region, a restricted region is determined.
[0104] As can be seen, this invention combines the physical characteristics of the geomagnetic field (the horizontal component is relatively stable) to set a dynamic threshold, so that the saturation limit matches the actual geomagnetic field environment, avoids the adaptability problem of fixed thresholds in different geographical locations (such as changes in geomagnetic field strength), and improves the environmental versatility of the system.
[0105] In some embodiments, if the magnetic field strength collected at any sampling time is greater than the upper saturation limit, the magnetic field strength collected at any sampling time is adjusted to the upper saturation limit. If the magnetic field strength collected at any sampling time is less than the lower saturation limit, the magnetic field strength collected at any sampling time is adjusted to the lower saturation limit.
[0106] The process of determining the restricted area will be described in detail below with reference to specific embodiments.
[0107] For example, the horizontal component B of the Earth's magnetic field can be measured using methods such as optically pumped magnetic resonance. horiz Measurements based on the horizontal component B of the geomagnetic field. horiz You can set the upper limit value B of the saturation region. max and the lower limit of the saturation region B min Among them, the upper limit of the saturation region is B. max It can be represented as:
[0108] B max =B horiz +ΔB;
[0109] ΔB is a preset saturation threshold that can monitor the statistical characteristics of the magnetic field signal (such as mean and standard deviation) in real time and dynamically adjust the size of ΔB.
[0110] Lower limit of saturation region B min It can be represented as:
[0111] B min =B horiz -ΔB.
[0112] The following detailed description, using specific embodiments, illustrates the process of adjusting the mean-filtered magnetic field signal based on a restricted region.
[0113] For example, suppose the magnetic field strength corresponding to any magnetic field data included in the magnetic field signal is B. If B is greater than B0, max Then update B to B max If B is less than B min Then update B to B min If B is less than or equal to B max And greater than or equal to B min If so, then B remains unchanged.
[0114] As can be seen, this invention provides specific outlier handling rules, which quickly suppress sudden interference through hard limiting operations, prevent outliers from entering subsequent phase-locked loop extraction algorithms and causing phase calculation deviations, and ensure the robustness of the signal processing link.
[0115] In some embodiments, a first signal expression and a second signal expression can be determined. The first signal expression is determined based on the frequency, intensity, and phase of the excitation signal; the second signal expression is determined based on the frequency, intensity, and phase of the adjusted magnetic field signal. A third signal expression is obtained by multiplying the first and second signal expressions; the third signal expression includes a high-frequency term and a constant term; the constant term includes phase difference information between the excitation signal and the target magnetic field signal. Based on the constant term, the signal intensity and phase of the target magnetic field signal are obtained.
[0116] As can be seen, this invention separates the high-frequency component from the DC component (constant term) and extracts the DC signal containing the phase difference, thereby achieving high-precision measurement of weak phase changes and solving the problem of noise affecting phase measurement in traditional Fourier transform.
[0117] The following detailed description, with reference to specific embodiments, illustrates the process of performing phase-locked extraction on the adjusted magnetic field signal to obtain the target magnetic field signal.
[0118] For example, suppose the expression for the first signal corresponding to the excitation signal can be expressed as:
[0119]
[0120] Where A0 represents the intensity of the excitation signal, and ω represents the angular frequency of the excitation signal. This indicates the phase of the excitation signal.
[0121] The expression for the second signal corresponding to the magnetic field signal to be extracted by phase-locked loop can be expressed as:
[0122]
[0123] Among them, A x ω represents the intensity of the magnetic field signal, and ω represents the angular frequency of the magnetic field signal. This indicates the phase of the magnetic field signal.
[0124] Multiplying the first signal expression and the second signal expression yields the third signal expression:
[0125]
[0126] Based on the product-to-sum formula, r(t) can be simplified to:
[0127]
[0128] The simplified r(t) consists of two parts: a high-frequency component with a frequency of 2ω, containing rapidly changing parts, and a constant term with a frequency of 0, containing the phase difference. Information.
[0129] A low-pass filter can be used to remove components in a signal with frequencies above a certain threshold (typically high-frequency components containing 2ω), retaining only the portion with a frequency of 0. In other words, a low-pass filter eliminates high-frequency components, leaving only low-frequency components representing phase differences.
[0130] Assume the output of the low-pass filter is y LPF (t), then:
[0131]
[0132] By using a low-pass filter, the 2ωt frequency component is removed, ultimately resulting in a stable DC signal representing the phase difference between the input and reference signals. That is, the output y of the low-pass filter... LPF (t) is:
[0133]
[0134] The filtered phase difference signal is fed back to the voltage-controlled oscillator (VCO) as a control signal to adjust the phase of the excitation signal, gradually aligning it with the phase of the target magnetic field signal. When the frequency of the target magnetic field signal perfectly matches the frequency of the excitation signal, the signal strength and phase of the target magnetic field signal can be accurately extracted from the magnetic field signal. The target magnetic field signal extracted from the low-pass filter is directly related to the phase difference of the input magnetic field signal. By measuring the amplitude of the excitation signal and the gain relationship during the adjustment process, the amplitude of the target magnetic field signal can be obtained.
[0135] In this embodiment of the application, the target magnetic field signal is obtained by obtaining the signal strength and phase information of the target magnetic field signal.
[0136] In this invention, the advantages of using an excitation signal to extract the adjusted magnetic field signal by phase lock are: ① high signal-to-noise ratio, as the lock-in amplifier can effectively suppress noise that is not at the same frequency as the reference signal; ② high precision, as high-precision extraction of weak target magnetic field signals can be achieved by accurately matching the frequency and phase.
[0137] The signal extracted by phase-locked loop, combined with the actual sampling rate of the sampling device, allows for the acquisition of the signal strength and phase information of the target magnetic field signal with the same frequency as the excitation source. This invention effectively suppresses noise in the magnetic field signal that does not have the same frequency as the excitation signal through digital filtering.
[0138] S105: Determine the location information of the target well based on the target magnetic field signal.
[0139] The location information of the target well includes its position relative to the drilling well.
[0140] In some embodiments, the signal strength and phase of the target magnetic field signal can be obtained. Based on the signal strength and phase of the target magnetic field signal, the location information of the target well can be determined.
[0141] In other words, this invention directly correlates the signal processing results (amplitude and phase) with the engineering target (positioning calculation), and calculates the relative distance and azimuth between the two wells through amplitude attenuation and phase difference, which can provide precise guidance for drilling trajectory adjustment.
[0142] The present invention also provides a signal processing system, see below. Figure 2 It includes a sensor module, an excitation source module, and a processing module. The excitation source module transmits an excitation signal to the target well casing to stimulate the casing to emit a target magnetic field signal. The sensor module acquires the magnetic field signal, including the target magnetic field signal. The processing module executes the aforementioned method for processing magnetic guidance signals while drilling, which will not be elaborated upon here.
[0143] In some solutions, multiple embodiments of this application can be combined, and the combined solution can be implemented. Optionally, some operations in the processes of each method embodiment may be combined, and / or the order of some operations may be changed. Furthermore, the execution order between the steps of each process is merely exemplary and does not constitute a limitation on the execution order between steps; other execution orders are also possible. It is not intended to indicate that the execution order is the only possible order in which these operations can be performed. Those skilled in the art will conceive of various ways to reorder the operations described herein. In addition, it should be noted that the process details involved in one embodiment of this document are similarly applicable to other embodiments, or different embodiments may be combined.
[0144] Furthermore, some steps in the method embodiments can be equivalently replaced with other possible steps. Alternatively, some steps in the method embodiments may be optional and can be deleted in certain use cases. Or, other possible steps may be added to the method embodiments. Moreover, the various method embodiments can be implemented individually or in combination.
[0145] In some embodiments, the signal processing system of the present invention can be implemented in a combination of hardware and software. As an example, the signal processing system of the present invention can be a processor in the form of a hardware decoding processor, which is programmed to execute the signal processing method of the present invention. For example, the processor in the form of a hardware decoding processor can be one or more application-specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field-programmable gate arrays (FPGAs), or other electronic components.
[0146] The modules described in the embodiments of this invention can be implemented in software or hardware. The names of the modules are not, in some cases, limiting the scope of the module itself.
[0147] An electronic device according to an embodiment of the present invention includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements any of the above-mentioned signal processing methods. That is, an electronic device according to an embodiment of the present invention may include, but is not limited to: a processor and a memory; the memory is used to store the computer program; the processor is used to execute the signal processing method shown in any embodiment of the present invention by calling the computer program.
[0148] An embodiment of the present invention provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements any of the above-described signal processing methods.
[0149] Alternatively, the computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a compact disc read-only memory (CD-ROM), magnetic tape, a floppy disk, and an optical data storage device, etc.
[0150] In an exemplary embodiment, a computer program product or computer program is also provided, which includes computer instructions stored in a computer-readable storage medium. A processor of an electronic device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the electronic device to perform the aforementioned signal processing.
[0151] Computer program code for performing the operations of this invention can be written in one or more programming languages or a combination thereof. These programming languages include object-oriented programming languages—such as Java, Smalltalk, and C++—and conventional procedural programming languages—such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0152] It should be understood that the flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of methods and computer program products according to various embodiments of the present invention. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0153] The computer-readable storage medium provided in this invention can be, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EEPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this invention, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
[0154] The aforementioned computer-readable storage medium carries one or more programs, which, when executed by the electronic device, cause the electronic device to perform the method shown in the above embodiments.
[0155] The above description is merely a preferred embodiment of the present invention and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of disclosure in this invention is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-described concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features with similar functions disclosed in this invention.
[0156] Those skilled in the art will recognize that this invention can be implemented as a system, method, or computer program product. Therefore, this invention can be specifically implemented in the following forms: it can be entirely hardware, entirely software (including firmware, resident software, microcode, etc.), or a combination of hardware and software, generally referred to herein as a "circuit," "module," or "system." Furthermore, in some embodiments, this invention can also be implemented as a computer program product contained in one or more computer-readable media, which includes computer-readable program code.
[0157] Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention. Those skilled in the art can make changes, modifications, substitutions and variations to the above embodiments within the scope of the present invention.
Claims
1. A method for processing magnetic guidance signals while drilling, characterized in that, Applied to a signal processing system, the signal processing system including a sensor module located in a drilling site, the method includes: Based on the sensor module, a magnetic field signal is determined; the magnetic field signal includes a target magnetic field signal; the target magnetic field signal is emitted from the target well. Based on the time-domain and frequency-domain information corresponding to the magnetic field signal, the sampling frequency of the sensor module is determined; When the difference between the sampling frequency and the preset frequency is less than a preset value, the magnetic field signal is denoised to obtain the target magnetic field signal. Based on the target magnetic field signal, the location information of the target well is determined.
2. The method according to claim 1, characterized in that, The target well includes a target well casing, and the target magnetic field signal is emitted based on the target well casing; the signal processing system further includes an excitation source module located in the drilling well, and before determining the magnetic field signal based on the sensor module, the method further includes: The values of the excitation parameters of the excitation source module are calibrated to the preset excitation values corresponding to the excitation parameters, and the sampling frequency of the sensor module is calibrated to the preset frequency; The excitation source module transmits an excitation signal to the target well casing to excite the target well casing to emit the target magnetic field signal.
3. The method according to claim 2, characterized in that, The excitation parameters include frequency, intensity, and phase; the preset excitation value corresponding to the frequency is a preset frequency value; the preset excitation value corresponding to the intensity is a preset intensity value; and the preset excitation value corresponding to the phase is a preset phase value.
4. The method according to claim 3, characterized in that, After determining the sampling frequency of the sensor module based on the time-domain and frequency-domain information corresponding to the magnetic field signal, the method further includes: If the difference between the sampling frequency and the preset frequency is greater than or equal to a preset value, the excitation parameter value of the excitation source module is calibrated to the preset excitation value, and the sampling frequency of the sensor module is calibrated to the preset frequency.
5. The method according to claim 4, characterized in that, Based on the time-domain and frequency-domain information corresponding to the magnetic field signal, the sampling frequency of the sensor module is determined, including: Based on the time-domain information corresponding to the magnetic field signal, the first sampling frequency corresponding to the sensor module is determined; Based on the frequency domain information corresponding to the magnetic field signal, the second sampling frequency corresponding to the sensor module is determined; The sampling frequency of the sensor module is determined based on the first sampling frequency and the second sampling frequency.
6. The method according to claim 5, characterized in that, The time-domain information corresponding to the magnetic field signal includes a time-domain waveform diagram of the magnetic field signal within a preset time period; the preset time period is the sampling time of the sensor module; the horizontal axis of the time-domain waveform diagram is used to characterize the sampling time of the sensor module, and the vertical axis of the time-domain waveform diagram is used to characterize the signal strength of the magnetic field signal. Determining the first sampling frequency corresponding to the sensor module based on the time-domain information corresponding to the magnetic field signal includes: Extract the positions of all rising edges in the time-domain waveform; The standard period is determined based on the time interval between each of the rising edges; The first sampling frequency is determined based on the number of standard cycles included within the preset time period and the number of times the sensor module samples within the preset time period.
7. The method according to claim 6, characterized in that, Determining the standard period based on the time interval between each rising edge includes: For any two adjacent rising edges, determine the time interval between the two adjacent rising edges; The standard period is determined by the average of the time intervals between adjacent rising edges, or by the median of the time intervals between adjacent rising edges.
8. The method according to claim 7, characterized in that, The frequency domain information corresponding to the magnetic field signal includes a frequency distribution map of the magnetic field signal within the preset time period; the horizontal axis of the frequency distribution map represents the frequency of the magnetic field signal, and the vertical axis of the frequency distribution map represents the signal strength of the magnetic field signal; determining the second sampling frequency corresponding to the sensor module based on the frequency domain information corresponding to the magnetic field signal includes: The frequency corresponding to the target sampling point in the frequency distribution map is determined as the target frequency; the target sampling point is the sampling point with the maximum signal strength in the frequency distribution map; The second sampling frequency is determined based on the target frequency.
9. The method according to claim 8, characterized in that, Determining the sampling frequency of the sensor module based on the first sampling frequency and the second sampling frequency includes: The average value of the first sampling frequency and the second sampling frequency is determined as the sampling frequency of the sensor module.
10. The method according to claim 9, characterized in that, The step of denoising the magnetic field signal to obtain the target magnetic field signal includes: Based on the frequency of the excitation signal, phase-locked extraction processing is performed on the magnetic field signal to obtain the target magnetic field signal.
11. The method according to claim 10, characterized in that, The step of performing phase-locked extraction processing on the magnetic field signal based on the frequency of the excitation signal to obtain the target magnetic field signal includes: The magnetic field signal is subjected to mean filtering. Based on the excitation signal, the phase-locked extraction process is performed on the magnetic field signal that has undergone the mean filtering process to obtain the target magnetic field signal.
12. The method according to claim 11, characterized in that, The magnetic field signal also includes a geomagnetic signal and an electromagnetic interference signal, wherein the geomagnetic signal is emitted based on the geomagnetic field, and the electromagnetic interference signal is different from the geomagnetic signal; the step of performing mean filtering on the magnetic field signal further includes: The magnetic field signal is subjected to mean filtering to determine the geomagnetic signal; The step of performing phase-locked extraction processing on the magnetic field signal after the mean filtering based on the excitation signal to obtain the target magnetic field signal further includes: Based on the geomagnetic signal, a restricted area is determined; the restricted area is a numerical region between the upper limit and the lower limit of the saturation region. Based on the restricted area, adjust the magnetic field signal after the mean filtering process; Based on the excitation signal, the phase-locked extraction process is performed on the adjusted magnetic field signal to obtain the target magnetic field signal.
13. The method according to claim 12, characterized in that, The magnetic field signal includes magnetic field data collected by the sensor module at each sampling time; the step of performing mean filtering on the magnetic field signal to determine the geomagnetic signal includes: For any sampling time corresponding to the magnetic field data included in the magnetic field signal, a sliding time window is defined with the magnetic field data corresponding to any sampling time as the center; the window size of the sliding time window is a preset window size; Based on the magnetic field data corresponding to each sampling time included in the sliding time window, update the magnetic field data corresponding to any sampling time. The magnetic field signal is updated based on the updated magnetic field data. The geomagnetic signal is determined from the updated magnetic field signal.
14. The method according to claim 13, characterized in that, The magnetic field data includes the magnetic field strength collected at corresponding sampling times. Updating the magnetic field data corresponding to any sampling time based on the magnetic field data at each sampling time included in the sliding time window includes: The average value of the magnetic field strength collected at each sampling time included in the sliding time window is determined as the value of the magnetic field strength collected at any sampling time.
15. The method according to claim 14, characterized in that, The determination of the restricted area based on the geomagnetic signal includes: Based on the geomagnetic signal, the horizontal component of the geomagnetic field is determined; Based on the horizontal component of the geomagnetic field, the upper limit value and the lower limit value of the saturation region are determined; The restricted region is determined based on the upper limit and lower limit of the saturated region.
16. The method according to claim 15, characterized in that, Adjusting the magnetic field signal based on the restricted area includes: If the magnetic field strength collected at any sampling time is greater than the saturation upper limit, then the magnetic field strength collected at any sampling time is adjusted to the saturation upper limit. If the magnetic field strength collected at any sampling time is less than the lower saturation limit, then the magnetic field strength collected at any sampling time is adjusted to the lower saturation limit.
17. The method according to claim 16, characterized in that, The process of obtaining the target magnetic field signal includes: The signal strength and phase of the target magnetic field signal are obtained; Determining the location information of the target well based on the target magnetic field signal includes: The location information of the target well is determined based on the signal strength and phase of the target magnetic field signal.
18. The method according to claim 17, characterized in that, The process of obtaining the signal strength and phase of the target magnetic field signal includes: A first signal expression and a second signal expression are determined; the first signal expression is determined based on the frequency, intensity, and phase of the excitation signal; the second signal expression is determined based on the frequency, intensity, and phase of the adjusted magnetic field signal. A third signal expression is obtained by multiplying the first signal expression and the second signal expression; the third signal expression includes a high-frequency term and a constant term; the constant term includes the phase difference information between the excitation signal and the target magnetic field signal. Based on the constant term, the signal strength and phase of the target magnetic field signal are obtained.
19. A signal processing system, characterized in that, It includes a sensor module, an excitation source module, and a processing module; The excitation source module is used to transmit an excitation signal to the target well casing to excite the target well casing to emit a target magnetic field signal. The sensor module is used to acquire magnetic field signals; the magnetic field signals include the target magnetic field signal. The processing module is used to execute a method for processing magnetic guidance signals while drilling as described in any one of claims 1-18.
