This application claims priority to and the benefit of European Patent Application No. 23306706.5, titled “Chromatogram Decomposition and Corresponding Calibration,” filed Oct. 4, 2023, the entire disclosure of which is hereby incorporated herein by reference.
Gas chromatography (GC) is a widely used technique for separating and analyzing chemical compounds that can be vaporized, such as organic compounds. Common applications relate to the quantitative and/or qualitative analysis of food composition, natural products, food additives, flavor and aroma components such as essential oils, a variety of transformation products and contaminants, such as pesticides, fumigants, natural toxins, pharmaceuticals, packaging materials and environmental pollutants. GC techniques are also used to evaluate the composition of gases that are liberated during downhole drilling operations, for example, including methane (C1), ethane (C2), propane (C3), butane (C4), pentane (C5) and the like, as well as alkenes and other compounds. Such measurements may provide valuable information to a mud logger and may provide information about the maturity and nature of hydrocarbons in the reservoir, compartmentalization of intervals in the reservoir being drilled, and oil quality, as well as information regarding production zones, lithology changes, history of reservoir accumulation, seal effectiveness, and environmental impact of the drilling operation.
GC measurements are often used to separate and analyze the individual gases in a gas sample (e.g., the liberated gases obtained in a drilling operation). The measurement acquired from GC is referred to as a chromatogram. It may be represented as a univariate function of the detector response against retention time (or elution time) and may be approximated as a mixture of Gaussian functions (Gaussians) for large retention times. One way to characterize the individual gases in a gas sample is through decomposition of the chromatogram using a Gaussian mixture model (GMM). While commonly used, the GMM approximation is generally not sufficient to capture the non-symmetric nature of local maxima of the chromatogram as well as asymptotic temporal decaying behavior and can therefore result in composition errors. There is a need for improved chromatogram decomposition and calibration methods, particularly for use with gas samples liberated during downhole drilling operations.
For a more complete understanding of the disclosed subject matter, and advantages thereof, reference is now made to the following descriptions taken in conjunction with the accompanying drawings, in which:
Embodiments of this disclosure include methods and systems for chromatogram decomposition and calibration. In one example embodiment, a disclosed method for estimating a composition of an unknown gas sample including at least first, second, and third gases includes calibrating a gas chromatography (GC) apparatus using first and second calibration samples in which the first calibration sample includes the first gas and the second calibration sample includes the first, second, and third gases. First and second chromatograms are measured of the corresponding first and second calibration samples using the GC apparatus. The first chromatogram is fit with a basis function derived from a mass balance equation to obtain a first modeled chromatogram. The second chromatogram is fit with first, second, and third affine transformed responses of the first modeled chromatogram to obtain a second modeled chromatogram. A third chromatogram is measured of the unknown gas sample using the GC apparatus. The third chromatogram is decomposed into components corresponding to the first, second, and third gases using the second modeled chromatogram. Concentrations of the first, second, and third gases are estimated from the first, second, and third gas components of the decomposed third chromatogram.
Drilling rig 20 further includes a surface system 50 for controlling the flow of drilling fluid used on the rig (e.g., used in drilling the wellbore 40). In the example rig depicted, drilling fluid 35 is pumped downhole (as depicted at 92), for example, via a conventional mud pump 57. The drilling fluid 35 may be pumped, for example, through a standpipe 58 and mud hose 59 in route to the drill string 30. The drilling fluid 35 typically emerges from the drill string 30 at or near the drill bit 32 and creates an upward flow 94 of mud through the wellbore annulus 42 (the annular space between the drill string and the wellbore wall). The drilling fluid 35 then flows through a return conduit 52 to a mud pit system 56 where may be recirculated. It will be appreciated that the terms drilling fluid and mud are used synonymously herein.
The circulating drilling fluid 35 is intended to perform many functions during a drilling operation, one of which is to carrying drill cuttings 45 to the surface (in upward flow 94). The drill cuttings 45 are commonly removed from the returning mud via a shale shaker 55 (or other similar solids control equipment) in the return conduit (e.g., immediately upstream of the mud pits 56). Formation gases that are released during drilling may also be carried to the surface in the circulating drilling fluid. These gasses are commonly removed from the fluid, for example, via a degasser or gas trap 54 located in or near a header tank 53 that is immediately upstream of the shale shaker 55 in the example depiction. The drill cuttings 45 and gas are commonly examined at the surface to evaluate the formation layers though which the wellbore is drilled.
As is known to those of ordinary skill in the art, the formation gas may be released into the wellbore 40 via the drilling process (e.g., crushing the formation rock by the mechanical action of the drill bit) and may also migrate into the wellbore 40, for example, via fractures in the formation rock. Once in the wellbore, the formation gas may be transported to the surface via the drilling fluid (in the upwardly flowing fluid 94). The formation gas may be in solution in the drilling fluid and/or in the form of bubbles and may be sampled in the surface system, for example, via one or more drilling fluid degassers 54 and/or a head space gas probe. The disclosed embodiments are expressly not limited in regards to how the gas is sampled.
With further reference to
While GC is a powerful chemical analysis technique that enables many (most) chemical species to be separated at the detector, there remains room for improvement. In many gas samples, such as those including light hydrocarbons, certain species can have asymmetric responses in time as well as partially or fully overlapping elution times. This results in overlapping peaks in the chromatogram and tends to complicate quantitative determination of the gas composition. The disclosed embodiments may advantageously provide for improved calibration and decomposition of measured chromatograms and may therefore improve the accuracy the estimated gas composition.
It will of course be appreciated that while
With continued reference to
The first and second gas samples are evaluated with a GC apparatus (e.g., apparatus 100 in
The second chromatogram is fit at 208 using at least first, second, and third affine transformed responses (corresponding to the first gas and the first and second other gases) of the first modeled chromatogram (the basis function and first calibration parameters used to fit the first chromatogram) to obtain a second modeled chromatogram. As described in more detail below, the second modeled chromatogram may be defined by the first modeled chromatogram and a second set of calibration parameters that characterize the responses of each of the gases in the second gas calibration sample.
It will be understood that the material characterization problem in GC requires finding a decomposition {tilde over (ƒ)}(t) of a given chromatogram ƒ(t) for positive times t as a super position of a predefined basis g (t,θm) that is parameterized by θm, for example, as follows:
In the disclosed embodiments, g(t,θm) is a basis function that may be advantageously asymmetric with respect to elution time t and is derived from the solution of a mass balance equation (MBE). In one example embodiment, g(t,θm) may be of the following form:
The maxima tm* of gMBE(t,θm) may satisfy:
Equivalently:
Considering the positive root of the quadratic equation yields:
Conversely, given the maxima tm*, and pm, sm, one can compute tm by
Note that tm is associated with the retention time and may be later than or equal to the maxima location tm*, i.e., tm≥tm*. If tm*>>pmsm>0, then tm*≈tm.
The basis function gMBE(t,θm) may also be dilated with respect to time t with a dilation factor a.
The logarithm of gMBE(t,θm) is as follows:
Since
The integral of gMBE(t,θm) for pm=1 may be obtained using the identity:
The integral of gMBE(t,θm) for pm=3 may be obtained using a similar identity:
It will be appreciated that there isn't a unique solution to the decomposition problem expressed in Eqs. (1) and (2), particularly when evaluating a chromatogram including a combination of gases whose responses partially or fully overlap. As described in more detail below, a satisfactory solution may require additional constraints that may enable interpretation of the underlying physical and operational phenomenon associated with the gas samples of interest and the GC system. One way to achieve such a solution is to measure the responses of the GC system with respect to each of the gases of interest, for example, using calibration samples having known concentrations of the individual gases of interest. Once individual responses are decomposed, the chromatogram may be represented as a combination of these responses. In this case, M represents the number of gases and g(t,θm) denotes an approximation of the response of the GC system to the mth gas. However, one drawback with this approach is that it can require a large number of calibration samples corresponding to the number of expected gases.
Alternative constraints may be considered when there is limited access to calibration samples including only a single gas. For example, in certain embodiments, single gas calibration samples may not be readily available for each of the expected gases in a gas sample. In such instances a calibration may be achieved using calibration bottles including a mixture of the gases. The individual gas responses may be obtained by a linear combination of the corresponding chromatograms, assuming that the GC signal behaves linearly with respect to the gas concentration ranges of interest and the gas concentrations are linearly independent.
One aspect of the disclosed embodiments was the realization that in cases in which the gas concentrations are linearly dependent on one another, it may be further assumed that the response of the system to the particular gases of interest are an affine transformation of each other. Such an assumption may advantageously enable system calibration with a significant reduction in the number of calibration bottles needed and may further advantageously reduce the time required to calibrate the GC system. It will be appreciated that the term “affine transformation” is used herein in the standard mathematical sense of a being a geometric transformation or function that maps an affine space onto itself while preserving both the dimension of any affine subspaces and the ratios of the lengths of parallel line segments. In other words, the affine transformation preserves lines and parallelism but not necessarily Euclidean distances and angles.
Table 1 lists the composition of example gas bottles used in example implementations of the disclosed calibration methodology. The gas bottles GB1, GB2, GB3, GB4, GB5, GB6, and GB7 include mixtures of methane (C1), ethane (C2), propane (C3), isobutane (iC4), butane (nC4), isopentane (iC5), and pentane (nC5). The gas concentrations are listed in units of parts per million (ppm) (where 1 ppm is equal to 0.0001 percent).
In the example gas bottles in Table 1, the gas concentrations are linearly dependent. Specifically, the concentrations of C2 and C3, iC4 and nC4, and iC5 and nC5 are pairwise correlated. In this example, there are seven gas bottles and seven gases of interest, however, isolation of the individual gas responses using a linear inversion is not possible except for C1. In the example embodiments that follow, gas bottles GB1 and GB2 are used to calibrate the GC system. Gas bottles GB3, GB4, GB5, GB6, and GB7 are used to test the calibration.
In the disclosed embodiments, it is assumed that a measured chromatogram may be expressed as a linear combination of individual gas responses, for example, as follows:
With reference again to
With further reference to element 206 of
With continued reference to Eq. (4), the C1 response may be modeled, for example, by fitting the measured histogram ƒ(t) (the measured chromatogram) for calibration sample GB1 via minimization of a cost function/[ϵ1]=(Lp[ϵ1])p for some p≥1. Here Lp is the p-norm of the error ϵ1(t)=ƒ(t)−[{tilde over (g)}C1(t)+a0] that is defined by Lp[ϵ1]=(∫|ϵ1(t)|pdt)p
With further reference to element 208 of
Following Eq. (3), the measured second chromatogram ƒ2(t) may be modeled as {tilde over (ƒ)}2(t), for example, as follows:
With further reference to element 224 of
where {tilde over (g)}Cx represent the responses of the individual component gases Cx, Δt represents a time shift and ƒ0 represents a detector response shift that translate the gas responses together (as a unit), and ƒCx represent the amplitudes of the individual gas responses in the modeled chromatogram {tilde over (ƒ)}3(t). The decomposition may include optimizing {ƒCx}Cx∈G, ƒ0, and Δt, for example, as follows:
With further reference to element 226 of
It will be appreciated that the disclosed embodiments are not limited to embodiments in which the calibration samples include each and every gas in the unknown sample. For example, the in applications in which there is a gas or gases (or gas components) that are not within the calibration, the additional gas component(s) may be detected (and optionally quantified) as contamination that falls outside the estimated response functions.
Let ƒGB(t) be the chromatogram obtained by injecting a gas sample GB into the GC and xCx[ƒGB] be the concentration of the gas Cx in gas sample GB. Given the approximate responses {tilde over (g)}Cx(t), let
Table 2 lists the Pearson correlation coefficients between the concentrations xCx of the calibration samples and the amplitudes aCx* of the corresponding chromatogram decompositions (obtained from chromatograms shown on
Given the decomposition of a chromatogram ƒ(t) corresponding to a gas sample of interest:
A ratio test was used to test the sensitivity of the measurement and decomposition process by injecting calibration sample GB7 into the GC measurement apparatus. As indicated in Table 1, GB7 has high C1 to C2 and C1 to C3 concentration ratios (300:1). It is often desirable to detect low concentrations of C2 and C3 relative to C1 and to provide an estimate of corresponding concentrations within reasonable error bounds. Accurately detecting such low concentrations can be challenging when the peaks of the individual gases are temporally close to each other (have similar elution times) as with C1, C2, and C3. Moreover, it can be particularly challenging when the GC apparatus is adapted for making fast GC measurements, for example, including a shorter GC column or a faster carrier gas flow rate, etc.
It will be understood that the present disclosure includes numerous embodiments. These embodiments include, but are not limited to, the following embodiments.
In a first embodiment, a method for estimating a composition of an unknown gas sample including at least first, second, and third gases includes calibrating a gas chromatography (GC) apparatus using first and second calibration samples in which the first calibration sample includes the first gas and the second calibration sample includes the first, second, and third gases, the calibrating comprising measuring first and second chromatograms of the corresponding first and second calibration samples using the GC apparatus; fitting the first chromatogram with a basis function derived from a mass balance equation to obtain a first modeled chromatogram; and fitting the second chromatogram with first, second, and third affine transformed responses of the first modeled chromatogram to obtain a second modeled chromatogram, the first, second, and third affine transformed responses corresponding to the first, second, and third gases; measuring a third chromatogram of the unknown gas sample using the GC apparatus; decomposing the third chromatogram into components corresponding to the first, second, and third gases using the second modeled chromatogram; and estimating concentrations of the first, second, and third gases from the first, second, and third gas components of the decomposed third chromatogram.
A second embodiment may include the first embodiment, wherein the basis function is asymmetric with respect to retention time.
A third embodiment may include any one of the first through second embodiments, wherein the first calibration sample comprises a negligible concentration of the second and third gases.
A fourth embodiment may include any one of the first through third embodiments, wherein the unknown gas sample comprises at least methane, ethane, propane, butane, and pentane.
A fifth embodiment may include any one of the first through fourth embodiments, wherein the first modeled chromatogram comprises a first set of calibration parameters including a retention time, a spatial diffusion coefficient, and a decay rate of the first gas in the GC apparatus; and the second modeled chromatogram comprises a second set of calibration parameters including a retention time and a spatial diffusion coefficient for each of the first, second, and third gases, and an amplitude for each of the first, second, and third affine transformed responses of the first modeled chromatogram.
A sixth embodiment may include the fifth embodiment, wherein the first chromatogram is fit using the following mathematical equation:
A seventh embodiment may include the sixth embodiment, wherein the second chromatogram is fit using the following mathematical equation:
of the first modeled chromatogram.
An eighth embodiment may include any one of the first through seventh embodiments, wherein the concentrations of the first, second, and third gases are estimated from corresponding amplitudes of the first, second, and third gas components of the decomposed third chromatogram.
A ninth embodiment may include the eighth embodiment, wherein the third chromatogram is decomposed using the following mathematical equation:
A tenth embodiment may include any one of the first through ninth embodiments, wherein the calibrating the gas chromatography (GC) apparatus further comprises generating first, second, and third linear correlations between corresponding amplitudes of the first, second, and third affine transformed responses of the first modeled chromatogram and concentrations of the first, second, and third gases.
In an eleventh embodiment, a system for estimating a composition of an unknown gas sample including at least first, second, and third gases comprises a gas chromatography (GC) apparatus including a sample injection port, a main column, and a GC detector; and a processor configured to fit a first chromatogram with a basis function derived from a mass balance equation to compute a first modeled chromatogram, the first chromatogram measured using a first calibration sample including the first gas; fit a second chromatogram with first, second, and third affine transformed responses of the first modeled chromatogram to compute a second modeled chromatogram, the second chromatogram measured using a second calibration sample including the first, second, and third gases, the first, second, and third affine transformed responses corresponding to the first, second, and third gases; decompose a third chromatogram into first, second, and third gas components using the second modeled chromatogram, the third chromatogram measured using the unknown gas sample; and estimate concentrations of the first, second, and third gases from the first, second, and third gas components of the decomposed third chromatogram.
A twelfth embodiment may include the eleventh embodiment, wherein the first chromatogram is fit using the following mathematical equation:
A thirteenth embodiment may include the twelfth embodiment, wherein the second chromatogram is fit using the following mathematical equation:
of the first modeled chromatogram.
A fourteenth embodiment may include any one of the eleventh through thirteenth embodiments, wherein the concentrations of the first, second, and third gases are estimated from corresponding amplitudes of the first, second, and third gas components of the decomposed third chromatogram.
A fifteenth embodiment may include the fourteenth embodiment, wherein the third chromatogram is decomposed using the following mathematical equation:
In a sixteenth embodiment, a method for calibrating a gas chromatography (GC) apparatus for estimating a composition of an unknown gas sample including at least first, second, and third gases comprises measuring first and second chromatograms of corresponding first and second calibration samples using the GC apparatus, the first calibration sample including the first gas and the second calibration sample including the first, second, and third gases; fitting the first chromatogram with a basis function derived from a mass balance equation to obtain a first modeled chromatogram; fitting the second chromatogram with first, second, and third affine transformed responses of the first modeled chromatogram to obtain a second modeled chromatogram, the first, second, and third affine transformed responses corresponding to the first, second, and third gases; and generating first, second, and third linear correlations between corresponding amplitudes of the first, second, and third affine transformed responses of the first modeled chromatogram and concentrations of the first, second, and third gases.
A seventeenth embodiment may include the sixteenth embodiment, wherein the first calibration sample comprises a negligible concentration of the second and third gases.
An eighteenth embodiment may include any one of the sixteenth through seventeenth embodiments, wherein the first calibration sample comprises methane; and the second calibration sample comprises methane, ethane, propane, butane, and pentane.
A nineteenth embodiment may include any one of the sixteenth through eighteenth embodiments, wherein the first modeled chromatogram comprises a first set of calibration parameters including a retention time, a spatial diffusion coefficient, and a decay rate of the first gas in the GC apparatus; and the second modeled chromatogram comprises a second set of calibration parameters including a retention time and a spatial diffusion coefficient for each of the first, second, and third gases, and an amplitude for each of the first, second, and third affine transformed responses of the first modeled chromatogram.
A twentieth embodiment may include the nineteenth embodiment, wherein the first chromatogram is fit using the following mathematical equation:
Although chromatogram decomposition and corresponding calibration has been described in detail, it should be understood that various changes, substitutions and alternations can be made herein without departing from the spirit and scope of the disclosure as defined by the appended claims.
Number | Date | Country | Kind |
---|---|---|---|
23306706.5 | Oct 2023 | EP | regional |