Impedance self-matching method and system for differential pressure adhesion card early warning device of petroleum logging instrument
Through self-learning to obtain sticky card early warning voltage-dividing resistor circuit and particle swarm optimization algorithm, the problem of insufficient measurement sensitivity of petroleum logging instruments when mud and mud cake medium changes is solved, and intelligent early warning of downhole instrument sticky card is realized, improving the efficiency and accuracy of the drilling process.
Patent Information
- Application Number
- CN202510618167.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-05-14
- Publication Date
- 2025-08-15
AI Technical Summary
The prior art is difficult to effectively warn of underground instrument sticking during oil logging, resulting in waste of drilling processes and resources, and the sensor measurement sensitivity is not sufficient to detect the weak difference in resistivity between mud and mud cakes.
The self-learning acquisition of sticky card early warning voltage divider resistor circuit is adopted, and the particle swarm optimization algorithm is used to adjust the voltage divider resistor adaptively. The voltage is collected through the ADC and combined with the multiplexer to achieve resistance matching, which improves the significant changes in the measured voltage.
When mud and mud cake medium change, the sensor can intelligently and efficiently obtain voltage-dividing resistance, improve the early warning sensitivity and accuracy during well logging, and reduce the occurrence of sticky card accidents.
Smart Images

Figure CN120490614A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of drilling early warning, and in particular relates to an impedance self-matching method and system for a pressure difference adhesion card early warning device of a petroleum logging instrument. Background Art
[0002] In recent years, sticking of downhole logging instruments has become a common occurrence during offshore logging operations in regions such as the South China Sea. The probability of this happening is exponentially higher in complex open-hole wells. Failure to promptly detect these sticking incidents often results in significant human, material, and time costs, severely impacting drilling progress and oil and gas development.
[0003] At present, most of the drilling warning methods are studies on the types of stuck drills, such as statistical analysis of regional wells, and analysis based on traditional drilling physical models. These methods are difficult to guarantee the accuracy of the acquired data and are limited in the scope of application of the proposed methods. There is an existing sticking warning method based on the principle of uniformly distributed sensing. It arranges sensors on the short-section instrument to monitor and feedback the downhole environment in real time, and processes the data measured by the sensors to achieve sticking warning. In this research method, when the sensor measures the resistance of the medium, the circuit used is a simple voltage divider circuit design, that is, a resistor is connected in series with the sensor to form a loop for measurement. Since the resistivity difference between mud and mud cake is weak, high requirements are placed on the sensitivity of the circuit measurement. Summary of the Invention
[0004] The technical problem to be solved by the present invention is to provide an impedance self-matching method and system for a pressure difference adhesion card early warning device of a petroleum logging instrument.
[0005] To achieve the above object, the present invention adopts the following technical solutions:
[0006] An impedance self-matching method for a pressure differential adhesive card early warning device of a petroleum logging instrument, comprising:
[0007] Step S1, collecting voltage U0 through ADC;
[0008] Step S2: According to the voltage U0, the card sticking warning voltage divider resistor circuit is obtained through self-learning to realize the different resistances R to be tested. x Self-learning to obtain the voltage divider resistance R that meets the requirements c .
[0009] As a preference, in step S2, R x Construct an objective function for the target value, use the particle swarm optimization algorithm to optimize the objective function, and determine the voltage divider resistor R c .
[0010] Preferably, in step S2, a particle swarm optimization algorithm is used to search for an extreme value of the following objective function;
[0011]
[0012] Among them, x1, x2, and x3 are resistance values. The three channels that need to be turned on by the multiplexers are determined by x1, x2, and x3 to achieve the equivalent R c Satisfaction with R x Equal design requirements.
[0013] The present invention also provides an impedance self-matching system for a pressure difference adhesive card early warning device of a petroleum logging instrument, comprising:
[0014] A first processing module is used to collect voltage U0 through ADC;
[0015] The second processing module is used to obtain the card sticking warning voltage divider resistor circuit through self-learning according to the voltage U0 to realize the x Self-learning to obtain the voltage divider resistance R that meets the requirements c .
[0016] As an example, the second processing module is used to x Construct an objective function for the target value, use the particle swarm optimization algorithm to optimize the objective function, and determine the voltage divider resistor R c .
[0017] Preferably, the second processing module uses a particle swarm optimization algorithm to search for an extreme value of the following objective function;
[0018]
[0019] Among them, x1, x2, and x3 are resistance values. The three channels that need to be turned on by the multiplexers are determined by x1, x2, and x3 to achieve the equivalent R c Satisfaction with R x Equal design requirements.
[0020] The self-learning method for obtaining the voltage divider resistance of the present invention effectively solves the problem of the sensor measuring the resistance R x When the voltage divider resistor R c The measured voltage U0 cannot be changed significantly. The particle swarm optimization algorithm is used to optimize the sensor's measured resistance R. x Perform self-learning to find the voltage divider resistor R that meets the design requirements c , so that the voltage divider resistance can be obtained intelligently and efficiently during the logging process. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are merely embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.
[0022] Figure 1 This is the schematic diagram of the original measurement circuit;
[0023] Figure 2 This is a schematic diagram of the voltage conditioning circuit;
[0024] Figure 3 This is a flow chart of the impedance self-matching method of the pressure difference adhesion card early warning device of the petroleum logging instrument according to the embodiment of the present invention;
[0025] Figure 4 Obtain the voltage divider resistor circuit schematic for self-learning;
[0026] Figure 5 This is a diagram of the experimental setup of the overall device; (a) is a schematic diagram of the control system panel, and (b) is a schematic diagram of the logging instrument. DETAILED DESCRIPTION
[0027] The following will clearly and completely describe the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative efforts are within the scope of protection of the present invention.
[0028] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0029] Example 1:
[0030] In practical applications, the card sticking warning method based on the uniformly distributed sensing principle cannot achieve good results. Figure 1 As shown, if the measuring sensor measures the measuring resistance R x When the voltage U0 changes, the voltage divider resistor R c However, in practical applications, it is difficult to replace the voltage divider resistor R c replacement.
[0031] like Figure 2As shown in the figure, in the conditioning circuit, when the sensor medium changes from mud to mud cake, the measured voltage U0 will undergo a slight change recorded as ΔU. After passing through the filter and rectifier circuit, it is collected by the STM32 through the ADC, and the DAC is used to output U0. After passing through the differential circuit, ΔU is retained, and the same-direction amplifier circuit amplifies ΔU. Finally, the addition circuit controls the output voltage KΔU+U1 within a significant change range. During the conditioning process, high precision is required for the output ΔU of the differential circuit. To meet this requirement, the ADC needs to be more convenient and more accurate when collecting U0. Therefore, the question is raised: at what value can the measured voltage U0 meet the requirements? But the root of the problem lies in how to determine the voltage divider resistor R c Therefore, a self-learning voltage divider resistor circuit is designed to solve this problem. The specific design is as follows:
[0032] In the designed measurement circuit, in order to make the voltage value U0 at the measurement point change significantly and to more easily capture its subtle changes in the monitoring window of the human-computer interaction interface, it is necessary to match the voltage divider resistor R c And the resistance to be measured R x According to Ohm's law, the voltage calculation formula at U0 is:
[0033]
[0034] In the actual sticking warning process, the resistance value measured by the sensor in the mud is R x When the medium around the sensor changes to mud cake, its surface resistance will become R x ', let the resistance change when the medium changes from mud to mud cake be ΔR, then when the medium around the sensor changes from mud to mud cake, the voltage value U0 at the measuring point is calculated as follows:
[0035]
[0036] Since the embodiment of the present invention focuses on the impact of the change of ΔR on U0, the derivative of U0 with respect to ΔR in equation (2) is:
[0037]
[0038] To study R c With R x The relationship between , so that ΔR is 0, then:
[0039]
[0040] By the mean inequality Know, when That is R c =R x When Z reaches its maximum value, it means that when R c =R xWhen ΔR changes, U0 will change significantly, so it is necessary to change the voltage divider resistor R c Compared with the R measured by the sensor in the mud medium x Perform equal value matching processing.
[0041] like Figure 3 As shown, an embodiment of the present invention provides an impedance self-matching method for a pressure differential adhesion card warning device of a petroleum logging instrument, comprising:
[0042] Step S1, collecting voltage U0 through ADC;
[0043] Step S2: According to the voltage U0, the card sticking warning voltage divider resistor circuit is obtained through self-learning to realize the different resistances R to be tested. x Self-learning to obtain the required voltage divider R c .
[0044] In order to achieve the display effect of significant changes in measured voltage, such as Figure 4 As shown in the figure, a self-learning voltage-dividing resistor circuit for obtaining card sticking warning is designed. Figure 4 The STM32 is the control system, which collects the voltage U0 through ADC, and can realize the x Self-learning to obtain R that meets the requirements c , and provides selection and activation functions for the three multiplexers TMUX_1, TMUX_2, and TMUX_3; each of the eight input channels of the multiplexer is set with a specific resistor R, such as Figure 4 Middle R 1i ,R 2i ,R 3i (i=1,2,3,4,5,6,7,8) As shown in the figure. Under the control of the main control board, the different channels of a single multiplexer are turned on and output through the D terminal, so that three different resistors are connected in parallel to form a voltage divider resistor R that meets the requirements. c .
[0045] Furthermore, by connecting the positive pole of the excitation signal to the left common end of 24 specific resistors, R 1i Eight resistors (i=1,2,3,4,5,6,7,8) are connected to the eight channels of analog switch TMUX_1 respectively. 2i Eight resistors (i=1,2,3,4,5,6,7,8) are connected to the eight channels of analog switch TMUX_2 respectively. 3iEight resistors (i = 1, 2, 3, 4, 5, 6, 7, 8) are connected to the eight channels of analog switch TMUX_3. The STM32 control system provides 12 output ports, which are respectively fed to TMUX_1's four ports, A1, A2, A3, and EN1. A1, A2, and A3 are used to determine TMUX_1's address bit information, thereby activating one of the eight channels. The excitation signal then passes through the resistor connected to this channel and through TMUX_1's output port, D, to complete the circuit. EN1 is used to enable TMUX_1, activating the analog switch and ensuring that the corresponding channel is activated according to the address bit information. The remaining eight output ports of the STM32 control system are fed to TMUX_2's four ports, A4, A5, A6, and EN2, and TMUX_3's four ports, A7, A8, A9, and EN3. Their specific functions are the same as those of TMUX_1. The output ports D of the three analog switches TMUX_1, TMUX_2, and TMUX_3 are connected to the common terminal on the right side. When only one channel of each analog switch is selected, the three analog switches are equivalent to three resistors in parallel, and the equivalent resistance of the parallel resistors matches the measured resistance. The voltage value at U0 is collected and fed back to the STM32 control system, and R is inversely solved based on the feedback voltage value. x Based on the resistance value, the particle swarm intelligence algorithm is used to deduce how each analog switch selects the channel so that the equivalent resistance of the three analog switches in parallel matches Rx. x To measure the sensor's resistance, connect the common end of the D terminals of the three analog switch output ports to the left end of the measurement sensor. The right end of the measurement sensor is connected to the negative pole of the excitation signal and grounded, thus completing the loop connection of the entire circuit. The matching process of the overall circuit is as follows: the STM32 control system randomly turns on a channel of an analog switch, so that the entire circuit forms a loop, and the other two analog switches do not start working; at this time, under the coordination of the excitation voltage and the resistance of the randomly turned-on channel (the STM32 control system can know which channel is enabled, that is, the matching resistance value is known), the voltage value at the measurement point U0 is fed back to the STM32 control system, and the system reversely solves the resistance R of the measurement sensor based on the voltage feedback value. x , according to R x resistance value, analyze how the three analog switches open the channel so that the equivalent resistance after parallel connection is equal to R x The resistance values are as close as possible, and the corresponding address bits and enable terminal control signals are given to the corresponding analog switches so that the size at the measurement point U0 is half the amplitude of the excitation voltage.
[0046] Based on the designed self-learning circuit, an intelligent optimization algorithm is used to adjust the R xPerform intelligent optimization to determine how to open each channel of the multiplexer. Solve the problem that when the mud medium of the sensor changes, the front-end voltage divider resistor R c Issues that need to be replaced.
[0047] According to the above design, to achieve self-learning to obtain the card sticking warning voltage divider resistor, we must first obtain the unknown resistor R x The size of R x Construct the objective function for the target value, and then use the intelligent optimization algorithm to optimize the objective function, and finally determine the voltage divider resistance R c Therefore, the particle swarm optimization algorithm is used to optimize the constructed objective function.
[0048] The embodiment of the present invention designs a self-learning algorithm for obtaining voltage divider resistors. First, parameter information is adaptively acquired, then the particle swarm optimization algorithm is used for intelligent optimization, and finally the multiplexer channel is opened. The optimization mainly uses the particle swarm optimization algorithm to search for extreme values of the constructed objective function formula (8).
[0049]
[0050] Among them, x1, x2, and x3 are resistance values. The three channels that need to be turned on by x1, x2, and x3 are used to determine the channels that need to be turned on by the three multiplexers, thereby achieving the equivalent R c Satisfaction with R x Equal design requirements.
[0051] The specific process of self-learning the algorithm for obtaining the voltage-dividing resistor for card sticking warning is as follows:
[0052]
[0053] In order to verify the designed self-learning card sticking warning voltage divider resistor circuit, as shown in Figure 5 For the overall experimental device, the STM32 control system provides multiplexer power supply and address bit selection functions, as well as the overall self-learning algorithm function. Each channel of the multiplexer is connected to the measurement short section, and the measurement resistance is measured using a homemade sensor.
[0054] As shown in Table 1, under different target values, the 10 sets of optimization results of the self-learning algorithm for obtaining the sticking card warning voltage divider resistor show that the errors between the optimized values and the target values are all within 10. In the actual sticking card warning process, this error has little effect on the actual situation, so this method is feasible.
[0055] Table 1
[0056] Serial number <![CDATA[x1]]> <![CDATA[x2]]> <![CDATA[x3]]> <![CDATA[y1]]> <![CDATA[y2]]> <![CDATA[y3]]> Optimal value Target value error 1 393.531 205.593 385.364 400 200 400 100 100 0 2 297.905 511.446 270.488 300 500 300 115.4 111 4.4 3 526.836 259.082 421.551 500 300 400 127.7 123 4.7 4 218.945 766.939 650.967 200 800 700 130.2 135 -4.8 5 432.591 554.800 365.609 400 600 400 150 146 4 6 431.165 652.639 403.619 400 700 400 155.6 158 -2.4 7 434.009 765.131 453.948 400 800 500 173.9 172 1.9 8 453.948 450.190 686.791 500 500 700 184.2 194 -9.8 9 770.416 489.592 738.376 800 500 800 222.2 213 9.2 10 624.600 749.110 757.931 600 700 800 240 235 5
[0057] The self-learning method for obtaining the voltage divider resistance of the present invention effectively solves the problem of the sensor measuring the resistance Rx When the voltage divider resistor R c The measured voltage U0 cannot be changed significantly. The particle swarm optimization algorithm is used to optimize the sensor's measured resistance R. x Perform self-learning to find the voltage divider resistor R that meets the design requirements c , so that the voltage divider resistance can be obtained intelligently and efficiently during the logging process.
[0058] Example 2:
[0059] An embodiment of the present invention further provides an impedance self-matching system for a pressure differential adhesion card early warning device of a petroleum logging instrument, comprising:
[0060] A first processing module is used to collect voltage U0 through ADC;
[0061] The second processing module is used to obtain the card sticking warning voltage divider resistor circuit through self-learning according to the voltage U0 to realize the x Self-learning to obtain the voltage divider resistance R that meets the requirements c .
[0062] As an implementation method of the embodiment of the present invention, the second processing module is used to x Construct an objective function for the target value, use the particle swarm optimization algorithm to optimize the objective function, and determine the voltage divider resistor R c .
[0063] As an implementation method of the embodiment of the present invention, the second processing module uses a particle swarm optimization algorithm to search for an extreme value of the following objective function;
[0064]
[0065] Among them, x1, x2, and x3 are resistance values. The three channels that need to be turned on by the multiplexers are determined by x1, x2, and x3 to achieve the equivalent R c Satisfaction with R x Equal design requirements.
[0066] The embodiments described above are merely descriptions of preferred embodiments of the present invention and are not intended to limit the scope of the present invention. Without departing from the spirit of the present invention, various modifications and improvements made to the technical solutions of the present invention by persons skilled in the art should fall within the scope of protection defined by the claims of the present invention.
Claims
1. An impedance self-matching method for a pressure differential adhesive card warning device of a petroleum logging instrument, characterized in that: include: Step S1, collecting voltage U0 through ADC; Step S2: According to the voltage U0, the card sticking warning voltage divider resistor circuit is obtained through self-learning to realize the different resistances R to be tested. x Self-learning to obtain the voltage divider resistance R that meets the requirements c .
2. The impedance self-matching method for the early warning device of the differential pressure adhesive card of the petroleum logging instrument according to claim 1, characterized in that: In step S2, R x Construct an objective function for the target value, use the particle swarm optimization algorithm to optimize the objective function, and determine the voltage divider resistor R c .
3. The impedance self-matching method for the early warning device of the differential pressure adhesive card of the petroleum logging instrument according to claim 2, characterized in that: In step S2, the particle swarm optimization algorithm is used to search for the extreme value of the following objective function; Among them, x1, x2, and x3 are resistance values. The three channels that need to be turned on by the multiplexers are determined by x1, x2, and x3 to achieve the equivalent R c Satisfaction with R x Equal design requirements.
4. An impedance self-matching system for a differential pressure adhesive card warning device of a petroleum logging instrument, characterized in that: include: A first processing module is used to collect voltage U0 through ADC; The second processing module is used to obtain the card sticking warning voltage divider resistor circuit through self-learning according to the voltage U0 to realize the x Self-learning to obtain the voltage divider resistance R that meets the requirements c .
5. The impedance self-matching system for the early warning device of the differential pressure adhesive card of the oil well logging instrument according to claim 4, characterized in that: The second processing module is used to x Construct an objective function for the target value, use the particle swarm optimization algorithm to optimize the objective function, and determine the voltage divider resistor R c .
6. The impedance self-matching system for the early warning device of the differential pressure adhesive card of the petroleum logging instrument according to claim 5, characterized in that: The second processing module uses the particle swarm optimization algorithm to search for extreme values of the following objective function; Among them, x1, x2, and x3 are resistance values. The three channels that need to be turned on by the multiplexers are determined by x1, x2, and x3 to achieve the equivalent R c Satisfaction with R x Equal design requirements.