Related Experiment Video
Updated: Jun 22, 2025

Measuring Dissolved Methane in Aquatic Ecosystems Using An Optical Spectroscopy Gas Analyzer
Published on: July 26, 2024
Machine learning prediction of methane, nitrogen, and natural gas mixture viscosities under normal and harsh
Sayed Gomaa1,2, Mohamed Abdalla3,4, Khalaf G Salem5
1Mining and Petroleum Engineering Department, Faculty of Engineering, Al-Azhar University, Cairo, Egypt. ElsayedGomaa.2214@azhar.edu.eg.
Abstract:
The accurate estimation of gas viscosity remains a pivotal concern for petroleum engineers, exerting substantial influence on the modeling efficacy of natural gas operations. Due to their time-consuming and costly nature, experimental measurements of gas viscosity are challenging. Data-based machine learning (ML) techniques afford a resourceful and less exhausting substitution, aiding research and industry at gas modeling that is incredible to reach in the laboratory. Statistical approaches were used to analyze the experimental data before applying machine learning. Seven machine learning techniques specifically Linear Regression, random forest (RF), decision trees, gradient boosting, K-nearest neighbors, Nu support vector regression (NuSVR), and artificial neural network (ANN) were applied for the prediction of methane (CH4), nitrogen (N2), and natural gas mixture viscosities. More than 4304 datasets from real experimental data utilizing pressure, temperature, and gas density were employed for developing ML models. Furthermore, three novel correlations have developed for the viscosity of CH4, N2, and composite gas using ANN. Results revealed that models and anticipated correlations predicted methane, nitrogen, and natural gas mixture viscosities with high precision. Results designated that the ANN, RF, and gradient Boosting models have performed better with a coefficient of determination (R2) of 0.99 for testing data sets of methane, nitrogen, and natural gas mixture viscosities. However, linear regression and NuSVR have performed poorly with a coefficient of determination (R2) of 0.07 and - 0.01 respectively for testing data sets of nitrogen viscosity. Such machine learning models offer the industry and research a cost-effective and fast tool for accurately approximating the viscosities of methane, nitrogen, and gas mixture under normal and harsh conditions.
Related Concept Videos
Viscosity of Fluid
Surface Tension, Capillary Action, and Viscosity
The various IMFs between identical molecules of a substance are examples of cohesive forces. The molecules within a liquid are surrounded by other molecules and are attracted equally in all directions by the cohesive forces within the liquid. However, the molecules on the surface of a liquid are attracted only by about one-half as many molecules. Because of the unbalanced molecular attractions on the surface molecules, liquids contract to form a shape that minimizes the number...
Viscosity
The SI unit of viscosity is...
Real Gases: Effects of Intermolecular Forces and Molecular Volume Deriving Van der Waals Equation
Clausius-Clapeyron Equation
Applications of the Ideal Gas Law: Molar Mass, Density, and Volume

