Gas logging provides essential compositional data on the gas within the mud (wellhead gas) during drilling operations, enabling the discovery and evaluation of hydrocarbon resources. However, the long analysis period for wellhead gas leads to lagging results and tends to miss thin oil and gas layers.Therefore, Fourier transform infrared (FT-IR) spectroscopy was used in this paper to rapidly analyze seven light alkanes (methane, ethane, propane, n-butane, i-butane, n-pentane, and i-pentane) in wellhead gases.Spectral analysis involves denoising, baseline correction, feature selection, and partial least squares (PLS) modeling to obtain the concentrations of the wellhead gas components. Finally, the efficiency of this method was validated on actual offshore rigs. It is shown that FT-IR has an analysis period of 15 s, is fast enough to recognize thin oil layers, can work at the wellhead, and is easy to operate and equip. This work improves the real-time performance of well logging and provides an application of FT-IR spectroscopy in actual oil and gas exploration sites.
Well logging analyzes the solids, liquids, and gases returned from the wellbore during drilling. It is the key to oil and gas exploration and is known as “the eyes that discover hydrocarbon resources” (1). Gas logging quantitatively analyzes the gases degassed from the drilling fluid at the wellhead (wellhead gases) to evaluate the quality of the reservoir (2). The wellhead gas analyzed mainly consists of seven light alkanes, including CH4, C2H6, C3H8, i-C4H10, n-C4H10, i-C5H12 and n-C5H12. With the development of new types of resources, such as shale gas and shale oil, the increasing speed of oil and gas exploration, rapid gas logging has become more demanding (3–5). If the analysis time lags, thin oil and gas layers may be missed, and the coincidence rate of well logging is reduced. Therefore, rapid analysis of wellhead gases from logging is crucial.
Gas chromatography (GC) (6–8) and mass spectrometry (MS) (9) are mainly used to analyze wellhead gases in oil and gas fields at present. Although they can accurately analyze alkanes in wellhead gases, the analysis speed is slow, with the analysis period normally longer than 120 s. In addition, complex equipment and the risk of gas explosions require analyzers to be located remotely. This standoff distance inherently creates a time lag, making it challenging to obtain the component concentrations of the wellhead gases corresponding to the drilled layer in time. GC is also expensive to operate and difficult to maintain. Raman spectroscopy (10–12) has also been used to analyze gas components in logging muds. However, it is difficult to apply widely due to the weak signal, limited sensitivity, and susceptibility to fluorescence interference.
The target components for gas logging are light alkanes, which are polar molecules, and Fourier transform infrared (FT-IR) spectroscopy responds to them all. In addition, FT-IR has the advantages of being fast, sensitive, and non-destructive. It has been widely used for gas analysis (13–16). Therefore, many infrared (IR) spectral analysis methods have been proposed. Zhang and associates (17) proposed an adaptive iteratively reweighted penalized least squares (airPLS) automatic baseline correction method, which is widely used in spectral preprocessing. On this basis, asymmetric reweighted penalised least squares (arPLS) proposed by Baek and associates (18) and adaptive extended Gaussian peak derivative reweighted penalised least squares (agdPLS) proposed by Li and colleagues (19) can improve the accuracy of baseline estimation at low signal-to-noise (S/N) ratios. Yun and co-authors (20) proposed a method for selecting the feature variables based on the successive contraction of the variable space, which can reduce the data dimensionality and improve the accuracy of the analysis. Tang and associates (21) proposed Tikhonov regularized feature selection to eliminate cross-interference for IR spectral analysis of multi-component gases. In spectral analysis modeling, Partial least squares (PLS) regression is currently the most widely used model for quantitative analysis of spectra (22,23). In recent years, non-linear methods such as artificial neural networks have been used for spectral modeling (24). However, absorption spectra of alkane gases overlap with each other because they have similar molecular structures. It is also challenging to distinguish their IR spectral absorption peaks. Meanwhile, FT-IR spectroscopy tends to be used in the laboratory and less applied to the actual engineering sites.
In this paper, FT-IR spectroscopy is used to analyze seven light alkanes in wellhead gases rapidly, with the analysis period less than 15 s. In addition, the method was applied on rigs in the Bohai Sea, China. Compared with GC and MS, the proposed method has three advantages. Firstly, the real-time analysis is greatly improved. Secondly, it can be placed at the wellhead for online analysis. Finally, it does not require carrier gas, features simpler operation, and facilitates easier maintenance. This work provides an application of FT-IR spectroscopy in oil and gas exploration.
The diagram of the FT-IR wellhead gas rapid analysis system is shown in Figure 1. Wellhead gases from the drilling fluid entered a sample chamber with an optical path length of 80 cm. An FT-IR spectrometer was placed at the wellhead to scan the IR spectra of the wellhead gases and transmit them to a wireless data transmission system. The sensors measured the temperature and pressure of the environment. The controller is used to set the scanning parameters of the spectrometer and control the scanning background or sample. The wavenumbers range from 4000 cm-1 to 500 cm-1 with a resolution of 4 cm-1. The wireless data transmission system transmits the wellhead gas spectra, temperature, and pressure data to the monitoring room 50 m away from the wellhead. The upper computer in the monitoring room is used to analyze the IR spectra and obtain the concentration of each component of the wellhead gases. The wellhead gas spectra, temperature and pressure data are saved in storage. The power supply provides power to the units.
FIGURE 1: Diagram of FT-IR wellhead gas rapid analysis system.
The absorption peaks of the IR spectra contain the concentration information of target gas components, while the position of the absorption peaks is related to the gas component and its intensity is related to the concentration. The basic principle for quantitative analysis of wellhead gas IR spectroscopy is Lambert-Beer law (25,26), as in equation 1:
where T(v) and K(v) denote the transmittance and absorption coefficient at the wavenumber v, respectively. L denotes the optical path in the sample chamber. c denotes the molar concentration of the gas. For a specific gas, K is fixed. The same sample cell has a fixed length L. Therefore, T and c maintain a definite relationship. c can be obtained from T at the absorption.
The IR absorption band positions of gases are related to their chemical bonding patterns, which results in the proximity of absorption peaks for gases with similar molecular structures. IR spectra usually have broad absorption peaks. Alkanes have similar molecular structures, so their IR absorption spectra overlap, leading to severe cross-interference. In addition, the IR spectra obtained by the spectrometer inevitably contain noise and baseline drift, which may reduce the accuracy of analytical results. This noise and baseline drift may be severe when the FT-IR instrument operates in situ and for a long time. Although they can be eliminated partly by subtracting the background, this will introduce additional analysis time. Therefore, it is essential to process wellhead gas IR spectra data, the flow of which is shown in Figure 2.
FIGURE 2: Flow of IR spectral analysis of wellhead gases.
Raw spectra are first pre-processed, including denoising and baseline correction to remove noise and baseline drift. Multiple scans of the spectra and averaging can reduce the noise, but this adds additional time consumption. Therefore, the Savitzky-Golay filter (27) was used to eliminate the noise in this paper. Baseline drift will cause the absorption peaks to be elevated or pulled down, causing additional measurement errors. The baseline is corrected using polynomial fitting to improve the analysis efficiency (28). The polynomial fitting equation is established by equation 2:
where y denotes the spectral vector, X denotes the wavenumber vector, and a denotes the fitting coefficient vector.
Then, the baseline is estimated by equation 3:
where b^ denotes the estimated baseline vector.
Tikhonov regularization (TR) (29) was used to select feature variables in the pre-processed spectra to eliminate cross-interference and improve accuracy and efficiency of regression modeling. The criterion for variable selection was to have higher sensitivity for the measured component and as low cross-sensitivity as possible for the other components. The model established using the TR is shown in equation 4:
where a and b are set to 1, ||×|| denotes the norm calculation, m denotes the regularization weight parameter with a value of 0.5, and L denotes the regularization operator.
Then, the selected feature variables are shown in equation 6:
where fi denotes the feature variable of the ith component, hij denotes the jth coefficient of the ith component, and Tx denotes the xth spectral value.
PLS regression obtains the best model by simultaneously considering the relationship between the spectral and concentration matrices in the decomposition. Therefore, quantitative analysis was modeled by PLS regression (23) using the selected feature variables as inputs.
Finally, the results were calibrated with temperature and pressure to eliminate the effects of environmental variations. Combining the data measured by the temperature and pressure sensors, the measurements were calibrated by equation 7:
where Cc(n) and C0(n) denote the concentration of the nth component after and before calibration, t denotes temperature in K, and p denotes pressure in atm.
The calibrated IR spectra obtained by standard concentration gases (background was nitrogen with 99.999% vol concentration) are shown in Figure 3. The concentration of each component was 0.05% vol. The absorption peaks of the target component in the wellhead gases were located near 3000 cm-1 and 1250 cm-1. The absorption peaks of alkanes overlap with each other at these locations. It is worth mentioning that absorption peaks opposite to the absorption direction occur near 3980 cm-1 to 3340 cm-1, 2040 cm-1 to 1280 cm-1, and 2360 cm-1. Of these, the absorption peak near 2360 cm-1 was from CO2, and the other two ranges were water vapor. An open space was observed between the sample chamber and the FT-IR spectrometer. Water vapor and CO2 variations in this space resulted in the absorption peaks when scanning the background and the sample. These absorption peaks are in the opposite direction from the alkanes, and the percentage transmittance is greater than 100%T since the background contains more water vapor and CO2 than the sample. However, this has little effect on alkane analysis because the interfering absorption peaks overlap less with the alkane peaks.
FIGURE 3: Calibrated IR spectra of wellhead gas components.
The absorption peaks of the calibration spectra ranging from 3200 cm-1 to 2700 cm-1 are shown in Figure 4. The absorption of C2H6 is relatively weak in this range. In addition, the alkane absorption peaks overlap severely. However, the shapes and positions of these absorption peaks are still significantly different. For example, in the range of 3140 cm-1 to 3084 cm-1, a strong absorption of CH4 is observed, while other alkane gases are almost absent.
FIGURE 4: Overlapping absorption peaks of alkanes in wellhead gases.
The FT-IR wellhead gas rapid analysis system was fixed at the wellhead of a rig in the Bohai Sea region of China to analyze the wellhead gas component concentrations. The wellhead gas IR spectra obtained at five different moments (with an interval of 1 hr) are shown in Figure 5. The IR absorption peaks of the wellhead gas show characteristics consistent with alkanes, indicating that alkanes dominate the wellhead gas components.
FIGURE 5: (a) Absorption spectra of actual logging wellhead gases from Well #1 on May 31st; (b) Absorption spectra of actual logging wellhead gases from Well #2 on April 20th.
The absorption peaks around 3000 cm-1 in Figure 5 are like those of methane, but the shapes are different because of the higher methane and superimposed other alkane peaks such as ethane. In addition, five spectra from the two wells each show synchronous variations, indicating that the alkanes in the analyzed formations are synchronous. The absorption peaks in the opposite direction in Figure 5a appear in the ranges of 3980 cm-1 to 3340 cm-1 and 2040 cm-1 to 1280 cm-1, which are related to the water vapor concentrations in the background and samples. The water vapor absorption peak points upward when the background contains more water vapor than the sample and faces downward otherwise (30). The intensities of the absorption peaks are related to the wellhead gas component concentrations. The alkane absorption peaks in Figure 5b are stronger than those in Figure 5a, indicating that Well #2 contains more alkanes than Well #1 at these moments. The strongest alkane absorption peaks at 4:00:00 in Well #1 suggest the formation has a high alkane content. The weakest alkane absorption peaks at 2:00:00 in Well #1 correspond to the formation with fewer alkanes. The alkane absorption peaks in Figure 5b are the strongest at 19:00:00 and close to saturation, indicating that more alkanes are in the formation at this time in Well #2.
The continuous analysis results of the wellhead gas component concentrations for the two wells measured are shown in Figure 6. The analysis lasted 357.75 min for Well #1 and 103 min for Well #2, with 15 s intervals. The overall concentration of CH4 is the highest, with the highest concentration exceeding 3.5% vol in Well #1 and 10% vol in Well #2. This indicates that alkanes are abundant in both wells. As the molecular weight increases, the overall concentration decreases.
FIGURE 6: (a) Analytical results of the wellhead gas concentrations from Well #1 on May 31st; (b) Analytical results of the wellhead gas concentrations from Well #2 on April 20th.
In Figure 6a, the n-C4H10 concentrations are higher than those of i-C4H10, and the n-C5H12 concentrations are higher than i-C5H12. Overall, the C2H6 is less than the C3H8, and show synchronous changes among the components. Meanwhile, the alkane concentrations show box-like changes, indicating uniformity of hydrocarbons. In Figure 6b, the n-C5H12 concentrations are too low and rapidly varying to show synchronization with other alkanes. The alkane concentrations show mountainous variations, indicating that the hydrocarbons are high but not homogeneous.
This work demonstrated the rapid quantification of seven alkane components in wellhead gas using FT-IR spectroscopy during well logging. The novel approach provides a significant advancement for real-time gas analysis at the wellsite, effectively enhancing the timeliness of gas logging. It is relevant to applying IR spectroscopy in oil and gas exploration. The following conclusions can be drawn:
First, a single FT-IR analysis takes less than 15 s, which significantly improves the real-time performance of gas logging. Compared with GC, FT-IR analysis can be carried out at the wellhead, avoiding the data time lag caused by the sample gas transmission in the pipeline.
Second, the seven alkane concentrations were obtained from the in situ spectra of the wellhead gases by spectral analysis. Noise interference was eliminated by SG filtering. The PLS model was established after baseline correction and feature selection, which was able to analyze the wellhead gas component concentrations quantitatively.
Finally, FT-IR was applied to quantitatively analyze actual wellhead gases at offshore oil field sites. Seven component gas concentrations in wellhead gas at the rig site were analyzed. This provides a field application of FT-IR in oil and gas exploration.
Based on the results of this work, future research will focus on adding components for wellhead gas analysis, optimizing background scanning, and conducting application tests at more drilling sites.
This work was supported by the Key Research and Development Projects of Shaanxi Province (Grant number: 2021GXLH-Z-043) and the National Key Research and Development Program of China (Grant number: 2016YFF0102805).
The authors have no relevant financial or non-financial interests to disclose.
Xiaoshan Li, Xiaojun Tang, Houqing Chen, Tong Wu, Zeyu Zhang, Chongzhi Liu, and Youshui Lu are with the State Key Laboratory of Electrical Insulation and Power Equipment of the School of Electrical Engineering at Xi’an Jiaotong University, in Shaanxi, China. Tang and Lu are also with the State Key Laboratory for Manufacturing Systems Engineering of the School of Instrument Science and Technology at Xi’an Jiaotong University, in Shaanxi, China. Zijian Huang is with Panjin Zhonglu Oil and Gas Technology Service Co., Ltd., in Liaoning, China. Liwei Wu and Mingyu Guo are with the Tianjin Branch of the China National Offshore Oil Co., Ltd., in Tianjin, China. Tongrui Anis with King’s College London, in London, United Kingdom. Direct correspondence to Xiaojun Tang at xiaojun_tang@xjtu.edu.cn
New Study Explores Micro-Raman and FT-IR Analysis of Early Human Tools
June 16th 2025Researchers from Ca’ Foscari University of Venice and the University of Padua have uncovered the earliest direct evidence of Upper Palaeolithic humans deliberately processing the non-edible plant Isatis tinctoria, revealing complex behaviors involving medicinal or dye-related plant use over 32,000 years ago.
MIR Spectroscopy Validates Origin of Premium Brazilian Cachaças
June 11th 2025A recent study published in the journal Food Chemistry explored Brazil’s cachaça industry, focusing on a new analytical method that can confirm the geographic origin of cachaças from the Brejo Paraibano region in Brazil.