Method, device and equipment for measuring gas phase content of returned drilling fluid and medium

The gas phase content of drilling fluid is detected through modulation photoacoustic technology, which solves the problem of low accuracy of gas chromatography measurement, and achieves high-accuracy online measurement of drilling fluid gas phase content, which is suitable for on-site geological exploration.

CN119198569APending Publication Date: 2024-12-27CHINA NAT PETROLEUM CORP +1
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202310750760.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-06-25
Publication Date
2024-12-27

AI Technical Summary

Technical Problem

The existing online gas chromatography measurement methods have low accuracy in measuring the gas phase content of the return drilling fluid, requiring regular carrier gas, and the chromatographic columns and sensors need to be calibrated or replaced regularly, affecting the measurement accuracy.

Method used

Modulated light with continuous change in modulation frequency is used to create pressure-changing sound waves through the photoacoustic cell, and the sound waves are detected by microphones and sparse transformation processing and signal reconstruction to achieve highly accurate measurement of the gas phase content of the drilling fluid.

Benefits of technology

This method improves the accuracy of measuring the gas phase content of the return drilling fluid, has high sensitivity, does not consume carrier gas, is convenient and fast to monitor, and is suitable for on-site online measurement.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119198569A_ABST
    Figure CN119198569A_ABST
Patent Text Reader

Abstract

The invention discloses a method, a device and equipment for measuring the gas phase content of returned drilling fluid and a medium. The method comprises the following steps: producing pressure change sound waves through to-be-measured gas in a photoacoustic cell by using modulation light of which the modulation frequency continuously changes; detecting the pressure change sound wave through a microphone, and obtaining an audio signal according to the pressure change sound wave; performing sparse transformation processing and signal measurement processing on the audio signal; and performing signal reconstruction on the processed audio signal to obtain the gas phase content of the drilling fluid. According to the scheme, the gas phase content of the returned drilling fluid is measured by utilizing a photoacoustic spectrometry method, the sensitivity is high, carrier gas is not consumed, and the monitoring is convenient and rapid; and introducing improved compressed sensing to carry out sparse representation and signal measurement on the electric signal, and then transmitting the electric signal to an on-site upper computer to carry out signal reconstruction and data processing so as to realize online measurement, thereby realizing online measurement of the gas phase content of the returned drilling fluid.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of oil drilling, and in particular to a method, a device, equipment and a medium for measuring the gas phase content of returned drilling fluid. Background Art

[0002] By online measuring the gas content in the drilling fluid returned from the wellhead, oil and gas reservoirs can be discovered, the properties of the formation fluid can be directly determined, and the oil and gas show can be indirectly evaluated. This is an indispensable technical means in on-site geological exploration. Therefore, online measurement of the gas content in the returned drilling fluid provides a reliable technical guarantee for the determination of formation flow properties and safe drilling.

[0003] At present, the gas content of the returned drilling fluid is mainly measured online by gas chromatography. This method requires constant carrier gas and frequent calibration. In addition, the performance of the chromatographic column and sensor changes during long-term operation and needs to be calibrated or replaced regularly. The gas chromatograph equipped on site has lower accuracy than the standard gas chromatograph in the laboratory.

[0004] Based on the low accuracy of the current gas chromatography online measurement method, a method for measuring the gas content of the returned drilling fluid with higher accuracy is needed. Summary of the invention

[0005] The present invention provides a method, device, equipment and medium for measuring the gas phase content of returned drilling fluid, so as to achieve higher accuracy measurement of the gas phase content of returned drilling fluid.

[0006] According to one aspect of the present invention, a method for measuring gas content of returned drilling fluid is provided, comprising:

[0007] Using modulated light with a continuously changing modulation frequency, a pressure-varying sound wave is generated through the gas to be measured in the photoacoustic cell;

[0008] Detecting the pressure change sound wave by a microphone and obtaining an audio signal according to the pressure change sound wave;

[0009] Performing sparse transformation processing and signal measurement processing on the audio signal;

[0010] The processed audio signal is reconstructed to obtain the gas phase content of the drilling fluid.

[0011] Optionally, the step of irradiating the gas to be measured in the photoacoustic cell with modulated light having a continuously changing modulation frequency to produce a pressure-varying acoustic wave comprises:

[0012] irradiating the gas to be measured in the photoacoustic cell with modulated light and periodically adjusting the radiation wavelength of the modulated light to make the gas to be measured transition to an excited state;

[0013] The gas to be measured is returned to a ground state through radiation or non-radiation transition, and the gas temperature of the gas to be measured fluctuates periodically as the radiation wavelength of the modulated light changes periodically, thereby obtaining the pressure change sound wave.

[0014] Optionally, detecting the pressure change sound wave by a microphone includes:

[0015] The expression of the pressure change sound wave is obtained according to the sound speed, the heat capacity ratio, isobaric heat capacity, isochoric heat capacity, time and thermal power density of the gas to be detected.

[0016] Optionally, obtaining an audio signal based on the pressure change sound wave includes:

[0017] According to the expression of the pressure change sound wave, the mode amplitude expression of the corresponding photoacoustic signal is obtained;

[0018] Obtaining a photoacoustic signal intensity expression according to the mode amplitude expression;

[0019] Obtaining the acoustic field distribution expression of the photoacoustic cell according to the photoacoustic signal intensity expression;

[0020] Determine the photoacoustic cell constant based on the acoustic field distribution expression;

[0021] The electrical signal is obtained according to the sensitivity of the microphone, the incident light power of the modulated light, the photoacoustic cell constant, the concentration of the gas to be measured and the absorption coefficient of the gas to be measured.

[0022] Optionally, the sparse transformation processing includes:

[0023] Divide the audio signal into frames to obtain a pure signal and a noise signal in each frame;

[0024] Performing fast Fourier transform on the clean signal and the noise signal and converting them into polar coordinates;

[0025] Obtaining a pure speech spectrum according to the pure signal and the noise signal in polar coordinate form;

[0026] Performing discrete cosine transform on the clean speech spectrum.

[0027] Optionally, the signal measurement processing includes:

[0028] The measurement value is obtained by performing an inner product between the M×N measurement matrix and the audio signal.

[0029] Optionally, performing signal reconstruction on the processed audio signal to obtain the gas content of the drilling fluid includes:

[0030] Set the input and output of the orthogonal matching pursuit algorithm and initialize it;

[0031] Set the iteration steps and iteration stop conditions of the orthogonal matching pursuit algorithm;

[0032] The iterative steps are executed cyclically until the iteration stop condition is met, thereby obtaining the reconstructed gas phase content of the drilling fluid.

[0033] According to another aspect of the present invention, there is provided a device for measuring gas content of returned drilling fluid, comprising:

[0034] A pressure change acoustic wave production unit, used to produce pressure change acoustic waves through the gas to be measured in the photoacoustic cell by using modulated light with a continuously changing modulation frequency;

[0035] an audio signal acquisition unit, configured to detect the pressure change sound wave through a microphone and obtain an audio signal according to the pressure change sound wave;

[0036] An audio signal processing unit, used for performing sparse transformation processing and signal measurement processing on the audio signal;

[0037] The audio signal reconstruction unit reconstructs the processed audio signal to obtain the gas content of the drilling fluid.

[0038] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:

[0039] At least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the method for measuring the gas content of the returned drilling fluid as described in any embodiment of the present invention.

[0040] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the method for measuring the gas content of returned drilling fluid described in any embodiment of the present invention when executed.

[0041] The technical solution of the embodiment of the present invention uses modulated light with a continuously changing modulation frequency to produce a pressure change sound wave through the gas to be measured in the photoacoustic cell; detects the pressure change sound wave through a microphone and obtains an audio signal based on the pressure change sound wave; performs sparse transformation processing and signal measurement processing on the audio signal; and reconstructs the processed audio signal to obtain the gas phase content of the drilling fluid. The solution of the present invention uses the photoacoustic spectroscopy method to measure the gas phase content of the returned drilling fluid, which has high sensitivity, does not consume carrier gas, and is convenient and fast to monitor; then introduces improved compressed sensing to perform sparse representation and signal measurement of the electrical signal, and then transmits it to the on-site host computer for signal reconstruction and data processing to achieve online measurement, thereby achieving online measurement of the gas phase content of the returned drilling fluid.

[0042] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0044] Figure 1 A flow chart of a method for measuring gas content of returned drilling fluid provided in Example 1 of the present invention;

[0045] Figure 2 A schematic diagram of error and time of an improved compressed sensing compression and reconstruction signal applicable to an embodiment of the present invention;

[0046] Figure 3 A schematic diagram of the structure of a device for measuring gas content in returned drilling fluid provided in the second embodiment of the present invention;

[0047] Figure 4 It is a structural schematic diagram of an electronic device for implementing the method for measuring the gas phase content of the returned drilling fluid according to an embodiment of the present invention. DETAILED DESCRIPTION

[0048] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. 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 creative work should fall within the scope of protection of the present invention.

[0049] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0050] By online measuring the gas content in the drilling fluid returned from the wellhead, oil and gas reservoirs can be discovered, the properties of the formation fluid can be directly determined, and the oil and gas show can be indirectly evaluated. This is an indispensable technical means in on-site geological exploration. Therefore, online measurement of the gas content in the returned drilling fluid provides a reliable technical guarantee for the determination of formation flow properties and safe drilling.

[0051] At present, the gas content of the returned drilling fluid is mainly measured online by gas chromatography. This method requires constant carrier gas and frequent calibration. In addition, the performance of the chromatographic column and sensor changes during long-term operation and needs to be calibrated or replaced regularly. The accuracy of the gas chromatograph equipped on site is lower than that of the standard gas chromatograph in the laboratory. When directly performing qualitative analysis on the components, the corresponding chromatographic peaks must be compared with known substances or known data to obtain the results. In quantitative analysis, it is often necessary to use known standard samples to calibrate the output signal after monitoring, and the monitoring process is complicated and cumbersome. It is difficult to provide reliable technical guarantees for the judgment of formation flow properties and safe drilling.

[0052] Embodiment 1

[0053] Figure 1 This is a flow chart of a method for measuring the gas content of returned drilling fluid provided in the first embodiment of the present invention. This embodiment is applicable to the case of measuring the meteorological content in the returned drilling fluid from the wellhead. The method can be performed by a device for measuring the gas content of returned drilling fluid. The device for measuring the gas content of returned drilling fluid can be implemented in the form of hardware and / or software. The device for measuring the gas content of returned drilling fluid can be configured in an electronic device. Figure 1 As shown, the method includes:

[0054] S110, using modulated light with a continuously changing modulation frequency to generate pressure change sound waves through the gas to be measured in the photoacoustic cell.

[0055] In an embodiment of the present invention, the method of producing a pressure change sound wave by irradiating a gas to be measured in a photoacoustic cell with modulated light whose modulation frequency continuously changes includes: irradiating the gas to be measured in the photoacoustic cell with modulated light and periodically adjusting the radiation wavelength of the modulated light to make the gas to be measured transition to an excited state; returning the gas to be measured to a ground state through radiation or non-radiative transition, and causing the gas temperature of the gas to be measured to fluctuate periodically as the radiation wavelength of the modulated light periodically changes, thereby obtaining the pressure change sound wave.

[0056] Among them, the gas phase content of the returned drilling fluid is directly monitored without degassing. An appropriate light source is selected to irradiate the gas in the photoacoustic cell, and the radiation wavelength is periodically adjusted. The gas molecules transition to an excited state under the action of incident light of a specific wavelength; then they return to the ground state through radiation or non-radiative transition. In a sealed space, as the modulation frequency of the light source changes, the gas temperature fluctuates periodically, and the resulting pressure changes are sound waves.

[0057] S120, detecting the pressure change sound wave through a microphone and obtaining an audio signal according to the pressure change sound wave.

[0058] Among them, the detection of meteorological content in the embodiment of the present invention is achieved based on a photoacoustic spectroscopy gas monitoring system, which consists of modulated light, a photoacoustic cell, a microphone and data acquisition and transmission. The modulated light is a fiber laser, the photoacoustic cell is a resonant photoacoustic cell, the microphone is a quartz tuning fork, and the data acquisition and transmission uses an improved compressed sensing method for collection and transmission.

[0059] In an embodiment of the present invention, detecting the pressure change sound wave by a microphone includes:

[0060] The expression of the pressure change sound wave is obtained according to the sound speed, the heat capacity ratio, isobaric heat capacity, isochoric heat capacity, time and thermal power density of the gas to be detected.

[0061] Among them, the sound wave signal is collected by the microphone to realize the conversion of the sound signal to the electrical signal. When the incident light is periodically modulated, the pressure wave changes periodically, which can be expressed as:

[0062]

[0063]

[0064] In the formula, c is the speed of sound; γ is the heat capacity ratio of the gas; c p is the isobaric heat capacity; c v is the isochoric heat capacity; t is the time; H is the thermal power density generated by the gas absorbing light.

[0065] In an embodiment of the present invention, obtaining an audio signal according to a pressure-varying sound wave includes:

[0066] According to the expression of the pressure change sound wave, the mode amplitude expression of the corresponding photoacoustic signal is obtained;

[0067] Obtaining a photoacoustic signal intensity expression according to the mode amplitude expression;

[0068] Obtaining the acoustic field distribution expression of the photoacoustic cell according to the photoacoustic signal intensity expression;

[0069] Determine the photoacoustic cell constant based on the acoustic field distribution expression;

[0070] The electrical signal is obtained according to the sensitivity of the microphone, the incident light power of the modulated light, the photoacoustic cell constant, the concentration of the gas to be measured and the absorption coefficient of the gas to be measured.

[0071] According to the above formula (1), the mode amplitude of the photoacoustic signal can be obtained as:

[0072]

[0073] I(r,ω)=CP L g(r,ω); (4)

[0074] Where ω j is the resonant angular frequency of normal mode j; P is the laser power; V is the resonant cavity volume; Q j is the quality factor of mode j; α is the absorption coefficient of the gas to be measured; C is the concentration of the gas to be measured; g(r, ω) is the normalized light distribution function; I is the light intensity.

[0075] The photoacoustic signal intensity can be obtained by the following formula:

[0076]

[0077] Where l is the length of the resonant cavity, let:

[0078]

[0079] The acoustic field distribution in a cylindrical photoacoustic cell can be written as:

[0080]

[0081] In actual monitoring, the photoacoustic cell is operated in the normal mode, that is, the sound pressure at the photoacoustic cell is:

[0082]

[0083] In the formula is the photoacoustic cell constant, denoted by Ccell , from (1) to (7), the photoacoustic signal intensity S P It can be written as:

[0084] S P =C cell CαP L ;

[0085] The output signal voltage value X is expressed as:

[0086] X=S m C cell CαP L ;

[0087] Where S m is the microphone sensitivity, P0 is the incident light power, C cell is the photoacoustic cell constant, C is the concentration of the gas to be measured, and α is the absorption coefficient of the gas to be measured.

[0088] S130: Perform sparse transformation processing and signal measurement processing on the audio signal.

[0089] In an embodiment of the present invention, the audio signal is framed to obtain a pure signal and a noise signal in each frame;

[0090] Performing fast Fourier transform on the clean signal and the noise signal and converting them into polar coordinates;

[0091] Obtaining a pure speech spectrum according to the pure signal and the noise signal in polar coordinate form;

[0092] Performing discrete cosine transform on the clean speech spectrum.

[0093] Among them, the signal sparseness is processed by the general subtraction method. The audio signal collected by the microphone is short-term stable. The signal is framed and windowed before processing. The noisy speech y(n) is:

[0094] y(n)=x(n)+d(n);

[0095] The pure speech signal of a certain frame is x(n), the noise signal is d(n), the fast Fourier transform of the noise signal is D(n), and the fast Fourier transform of the noisy speech is Y(n). Y(ω) and D(ω) can be expressed in polar coordinates:

[0096]

[0097]

[0098] where |Y(ω)| is the amplitude spectrum, is the phase spectrum of the noisy signal. The amplitude spectrum of the noise |D(ω)| is unknown and can be estimated by the average amplitude spectrum in the absence of speech. Instead, the f(ω) of the pure speech spectrum obtained after spectral subtraction of noisy speech is estimated as:

[0099]

[0100] Discrete cosine transform of the signal f(ω) subjected to thresholding:

[0101]

[0102]

[0103] F = αf;

[0104] The above formula is the discrete cosine transform of the audio signal in the domain, which is an N×N standard orthogonal basis, and f is the coefficient vector of F expanded on the orthogonal basis.

[0105] In an embodiment of the present invention, the signal measurement process includes:

[0106] The measurement value is obtained by performing an inner product between the M×N measurement matrix and the audio signal.

[0107] Among them, the signal measurement is to do the inner product of the M×N measurement matrix and the signal to obtain the measurement value y. Because M is much smaller than N, the amount of measurement data can be reduced to achieve the purpose of dimensionality reduction. The measurement value y can be written as:

[0108] y = Φαf = Θf;

[0109] Wherein, y is an M×1 column vector, and Θ=Φα is an M×N sensing matrix.

[0110] S140, reconstructing the processed audio signal to obtain the gas content of the drilling fluid.

[0111] In the embodiment of the present invention, the signal reconstruction of the processed audio signal to obtain the gas content of the drilling fluid includes:

[0112] Set the input and output of the orthogonal matching pursuit algorithm and initialize it;

[0113] Set the iteration steps and iteration stop conditions of the orthogonal matching pursuit algorithm;

[0114] The iterative steps are executed cyclically until the iteration stop condition is met, thereby obtaining the reconstructed gas phase content of the drilling fluid.

[0115] Among them, signal reconstruction is converted into an optimization problem under the minimum norm:

[0116] min ||f||₁ s.t ||y - Φf||₂ < ε;

[0117] Then, select the orthogonal matching pursuit algorithm to reconstruct the collected gas phase signal, and the steps are as follows:

[0118] Input: an M×N sensing matrix, an M×1 measurement value y, and the signal sparsity K.

[0119] Output: the sparse representation coefficient b of the signal.

[0120] In the algorithm, use to represent the empty set, to represent the set of indices of the i-th iteration, and to represent the index number of the i-th iteration.

[0121] Initialization: the residual r₀ = y, the index set The iteration number t = 1.

[0122] Loop to execute steps (1) - (5):

[0123] (1) Find the maximum value in the inner product of the residual and the sensing matrix, that is, find the index J t , such that J t = argmax j=1,2,…,n ||<r t-1 , Θ j >||, where Θ j is the j-th column of the sensing matrix;

[0124] (2) Update the index set A t = A t-1 U{J t}, record the set of reconstructed atoms in the found sensing matrix

[0125] (3) Obtain an approximate solution of the signal by the least squares method: b t = argmin ||y - D t b t ||₂;

[0126] (4) Update the residual r t = y - D t b t ;

[0127] (5) Let t = t + 1. If t < K or ||r t ||₂ < e, then return to (1) and perform iterations in sequence. Stop the iteration when the condition is met to obtain the reconstructed data.

[0128] For example, the transmitted signal is:

[0129] y=0.3*cos(2*pi*f1*Ts*ts)+0.6*cos(2*pi*f2*Ts*ts)+0.1*cos(2*pi*f3*Ts*ts)+0.9*cos(2*pi*f4*Ts*ts)

[0130] Among them, signal frequency f1 = 50, signal frequency f2 = 100, signal frequency f3 = 200, signal frequency f4 = 400, sampling frequency fs = 800, sampling interval ts = 1 / fs, sampling sequence Ts = 1: N. The signal is compressed and transmitted in the time domain based on improved compressed sensing, and then the signal is reconstructed using the orthogonal matching pursuit method. Figure 2 A schematic diagram of error and time of an improved compressed sensing compression and reconstruction signal applicable to an embodiment of the present invention is shown in FIG. Figure 2 As shown in the figure, the average error of the reconstructed signal and the compressed reconstruction time after 10 runs are 0.05542s and 4.16597×10-15 respectively. This improved compressed sensing acquisition and reconstruction method based on photoacoustic spectroscopy can realize online detection of gas phase content.

[0131] The present invention provides an online measurement method for the gas phase content of returned drilling fluid based on photoacoustic spectroscopy. The photoacoustic spectroscopy method is used to measure the gas phase content of returned drilling fluid. The method has high sensitivity, does not consume carrier gas, and is convenient and fast to monitor. Then, improved compressed sensing is introduced to perform sparse representation and signal measurement on electrical signals, and then the signals are transmitted to an on-site host computer for signal reconstruction and data processing to realize online measurement, thereby realizing online measurement of the gas phase content of returned drilling fluid.

[0132] The present invention can effectively realize online measurement of the gas content in the drilling fluid returned from the wellhead, which is of great significance for discovering oil and gas reservoirs, directly judging the properties of formation fluids, and indirectly evaluating oil and gas displays, and is of great significance for safe drilling. Its advantages are: utilizing the advantages of good real-time performance of photoacoustic spectroscopy, and combining with improved compressed sensing methods to quickly compress, collect and transmit the collected data, so as to realize online measurement of the gas content in the returned drilling fluid.

[0133] Embodiment 2

[0134] Figure 3 This is a schematic diagram of the structure of a device for measuring the gas content of the return drilling fluid provided in the second embodiment of the present invention. Figure 3 As shown, the device comprises:

[0135] The pressure change acoustic wave production unit 310 is used to produce pressure change acoustic waves through the gas to be measured in the photoacoustic cell by using modulated light with a continuously changing modulation frequency;

[0136] An audio signal acquisition unit 320, configured to detect the pressure change sound wave through a microphone and obtain an audio signal according to the pressure change sound wave;

[0137] An audio signal processing unit 330, configured to perform sparse transformation processing and signal measurement processing on the audio signal;

[0138] The audio signal reconstruction unit 340 performs signal reconstruction on the processed audio signal to obtain the gas content of the drilling fluid.

[0139] Optionally, the pressure change sound wave manufacturing unit 310 is used to perform:

[0140] irradiating the gas to be measured in the photoacoustic cell with modulated light and periodically adjusting the radiation wavelength of the modulated light to make the gas to be measured transition to an excited state;

[0141] The gas to be measured is returned to the ground state through radiation or non-radiation transition, and the gas temperature of the gas to be measured fluctuates periodically as the radiation wavelength of the modulated light changes periodically, thereby obtaining the pressure change sound wave.

[0142] Optionally, the audio signal acquisition unit 320, when executing the step of detecting the pressure change sound wave through the microphone, specifically performs:

[0143] The expression of the pressure change sound wave is obtained according to the sound speed, the heat capacity ratio, isobaric heat capacity, isochoric heat capacity, time and thermal power density of the gas to be detected.

[0144] Optionally, when the audio signal acquisition unit 320 obtains the audio signal according to the pressure change sound wave, it specifically performs:

[0145] According to the expression of the pressure change sound wave, the mode amplitude expression of the corresponding photoacoustic signal is obtained;

[0146] Obtaining a photoacoustic signal intensity expression according to the mode amplitude expression;

[0147] Obtaining the acoustic field distribution expression of the photoacoustic cell according to the photoacoustic signal intensity expression;

[0148] Determine the photoacoustic cell constant based on the acoustic field distribution expression;

[0149] The electrical signal is obtained according to the sensitivity of the microphone, the incident light power of the modulated light, the photoacoustic cell constant, the concentration of the gas to be measured and the absorption coefficient of the gas to be measured.

[0150] Optionally, the audio signal processing unit 330, when performing the sparse transformation process, specifically performs:

[0151] Divide the audio signal into frames to obtain a pure signal and a noise signal in each frame;

[0152] Performing fast Fourier transform on the clean signal and the noise signal and converting them into polar coordinates;

[0153] Obtaining a pure speech spectrum according to the pure signal and the noise signal in polar coordinate form;

[0154] Performing discrete cosine transform on the clean speech spectrum.

[0155] Optionally, the audio signal processing unit 330, when performing the signal measurement process, specifically performs:

[0156] The measurement value is obtained by performing an inner product between the M×N measurement matrix and the audio signal.

[0157] Optionally, the audio signal reconstruction unit 340 is configured to perform:

[0158] Set the input and output of the orthogonal matching pursuit algorithm and initialize it;

[0159] Set the iteration steps and iteration stop conditions of the orthogonal matching pursuit algorithm;

[0160] The iterative steps are executed cyclically until the iteration stop condition is met, thereby obtaining the reconstructed gas phase content of the drilling fluid.

[0161] The device for measuring the gas content of the returned drilling fluid provided in the embodiment of the present invention can execute the method for measuring the gas content of the returned drilling fluid provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0162] Embodiment 3

[0163] Figure 4 A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0164] like Figure 4As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, ROM 12 and RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0165] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0166] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a method for measuring the gas content of the returned drilling fluid.

[0167] In some embodiments, the method for measuring the gas content of the returned drilling fluid can be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program can be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the method for measuring the gas content of the returned drilling fluid described above can be performed. Alternatively, in other embodiments, the processor 11 can be configured to execute the method for measuring the gas content of the returned drilling fluid in any other appropriate manner (for example, by means of firmware).

[0168] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0169] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0170] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0171] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0172] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0173] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0174] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0175] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for measuring the gas content of returned drilling fluid, characterized in that: include: Using modulated light with a continuously changing modulation frequency, a pressure-varying sound wave is generated through the gas to be measured in the photoacoustic cell; Detecting the pressure change sound wave by a microphone and obtaining an audio signal according to the pressure change sound wave; Performing sparse transformation processing and signal measurement processing on the audio signal; The processed audio signal is reconstructed to obtain the gas phase content of the drilling fluid.

2. The method according to claim 1, characterized in that The method of irradiating the gas to be measured in the photoacoustic cell with modulated light having a continuously changing modulation frequency to produce a pressure-varying acoustic wave comprises: irradiating the gas to be measured in the photoacoustic cell with modulated light and periodically adjusting the radiation wavelength of the modulated light to make the gas to be measured transition to an excited state; The gas to be measured is returned to the ground state through radiation or non-radiation transition, and the gas temperature of the gas to be measured fluctuates periodically as the radiation wavelength of the modulated light changes periodically, thereby obtaining the pressure change sound wave.

3. The method according to claim 2, characterized in that The detecting the pressure change sound wave by a microphone comprises: The expression of the pressure change sound wave is obtained according to the sound speed, the heat capacity ratio, isobaric heat capacity, isochoric heat capacity, time and thermal power density of the gas to be detected.

4. The method according to claim 3, characterized in that The audio signal is obtained according to the pressure change sound wave, including: According to the expression of the pressure change sound wave, the mode amplitude expression of the corresponding photoacoustic signal is obtained; Obtaining a photoacoustic signal intensity expression according to the mode amplitude expression; Obtaining the acoustic field distribution expression of the photoacoustic cell according to the photoacoustic signal intensity expression; Determine the photoacoustic cell constant based on the acoustic field distribution expression; The electrical signal is obtained according to the sensitivity of the microphone, the incident light power of the modulated light, the photoacoustic cell constant, the concentration of the gas to be measured and the absorption coefficient of the gas to be measured.

5. The method according to claim 1, characterized in that The sparse transformation process comprises: Divide the audio signal into frames to obtain a pure signal and a noise signal in each frame; Performing fast Fourier transform on the clean signal and the noise signal and converting them into polar coordinates; Obtaining a pure speech spectrum according to the pure signal and the noise signal in polar coordinate form; Performing discrete cosine transform on the clean speech spectrum.

6. The method according to claim 1, characterized in that The signal measurement process comprises: The measurement value is obtained by performing an inner product between the M×N measurement matrix and the audio signal.

7. The method according to claim 5, characterized in that The signal reconstruction of the processed audio signal to obtain the gas content of the drilling fluid includes: Set the input and output of the orthogonal matching pursuit algorithm and initialize it; Set the iteration steps and iteration stop conditions of the orthogonal matching pursuit algorithm; The iterative steps are executed cyclically until the iteration stop condition is met, thereby obtaining the reconstructed gas phase content of the drilling fluid.

8. A device for measuring gas content of returned drilling fluid, characterized in that: include: A pressure change acoustic wave production unit, used to produce pressure change acoustic waves through the gas to be measured in the photoacoustic cell by using modulated light with a continuously changing modulation frequency; an audio signal acquisition unit, configured to detect the pressure change sound wave through a microphone and obtain an audio signal according to the pressure change sound wave; An audio signal processing unit, used for performing sparse transformation processing and signal measurement processing on the audio signal; The audio signal reconstruction unit reconstructs the processed audio signal to obtain the gas content of the drilling fluid.

9. An electronic device, characterized in that: The electronic device comprises: At least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the method for measuring the gas content of the returned drilling fluid according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the method for measuring the gas content of the returned drilling fluid according to any one of claims 1-7 when executed.

Citation Information

Cited By

  • Online measurement method and system for gas phase content of returned drilling fluid

    CN117825283A