Hybrid Mechanistic–Data-Driven Virtual Metering Models and Methodologies for Conventional Gas Fields
Abstract
1. Introduction
1.1. Motivation
1.2. The Literature Review
1.3. Contributions
- (1)
- A hybrid VFM method integrating piecewise linear regression with machine learning based on choke models is proposed. Wellhead metering schemes adaptable to diverse production conditions and data types are developed, addressing limitations of traditional single-system approaches and establishing a scalable VFM architecture.
- (2)
- Performance variation patterns of piecewise linear regression models are revealed, clarifying the advantageous distribution of different models under specific operating conditions. These findings provide empirical evidence and decision support for selecting optimal modeling strategies based on operational characteristics during gas-field production.
- (3)
- SHAP analysis quantifies feature contributions within DAModels, while Monte Carlo random sampling assesses model robustness. This work offers a scientific basis for feature-engineering optimization and model selection, thereby enhancing the interpretability and reliability of data-driven approaches.
1.4. Paper Organization
2. VFM System Architecture and Application
2.1. VFM Technology
2.1.1. MModels
2.1.2. DAModels
2.2. Overall Architecture of the VFM System
2.3. Single-Well Model Allocation and Deployment Strategy
2.4. VFM System Application Scenarios
2.4.1. New Well VFM
2.4.2. Mature Well VFM
2.4.3. VFM for Wells with Rotational Metering Devices
3. Construction of Mechanistic VFM Models
3.1. MModel Selection
3.2. Piecewise Linear Regression Model
3.3. Application Process of MModel-Based VFM
4. Construction of Data-Driven VFM Models
4.1. DAModels
4.2. Data-Driven VFM Application Workflow
5. VFM Model Test Results
5.1. Data Cleaning and Partitioning
5.2. Analysis of VFM Model Test Results Based on MModels
5.2.1. Fitting Function Analysis of Piecewise Linear Regression Models
5.2.2. Fitting Error Analysis of Piecewise Linear Regression Models
5.2.3. Test Result Analysis of Piecewise Linear Models
5.3. VFM Model Test Results Based on Data-Driven Approaches
5.3.1. Feature Contributions
5.3.2. Model Test Result—With Date Feature Included
5.3.3. Model Test Result—Date Feature Removed
5.3.4. Model Robustness Analysis Based on Monte Carlo Sampling
6. Conclusions
- (1)
- Guided by choke valve mechanism principles, four piecewise linear regression models were developed using the valve position indicator, temperature differential, pressure differential, and downstream temperature, respectively. Additionally, six data-driven machine learning models were established via grid search optimization, forming a comprehensive VFM model framework.
- (2)
- The MModel analysis indicates that the temperature-differential piecewise model achieved optimal performance on both training and test sets (R2 = 0.91, mean error 4.59%). Under conditions where valve opening exceeds 100%, the downstream temperature piecewise model yielded lower prediction errors (14.3%). Conversely, when valve opening remains below 100%, the valve-position-indicator piecewise model demonstrated the best fitting accuracy, with a mean error of only 1.35%.
- (3)
- Feature importance analysis reveals that the Date feature contributes most significantly, exceeding 50% in CatBoost and random forest models. The valve position indicator follows, with contributions ranging between 14% and 25%. Time feature contributions remain below 1% across all models, indicating that production date and valve position indicator exert a decisive influence on production prediction.
- (4)
- DAModels exhibit superior overall performance, with all models achieving R2 values above 0.95 and 99% of samples showing prediction errors below 5%. The XGBoost model stands out, with an R2 of 0.979 and a mean error of merely 0.13%. Monte Carlo random sampling validation confirms its minimal performance metric fluctuations, with coefficients of variation for all indicators remaining below 0.1, demonstrating exceptional prediction accuracy and robustness.
- (5)
- Nevertheless, the proposed models still have limitations under changing operating conditions. The current evaluation is based on historical data from a specific gas well and mainly reflects the operating range covered by this dataset. When reservoir pressure, gas composition, choke characteristics, sensor conditions, or flow regimes change significantly, the relationship between input features and flow rate may shift. Under such circumstances, both mechanistic models and data-driven models may suffer from reduced accuracy. Therefore, for long-term field deployment, continuous performance monitoring, periodic model updating, and recalibration using newly collected production data are required to maintain prediction reliability. Future work will focus on adaptive updating strategies and broader validation using data from more wells and more diverse operating conditions.
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
References
- Gong, J.; Kang, Q.; Wu, H.; Li, X.; Shi, B.; Song, S. Application and prospects of multi-phase pipeline simulation technology in empowering the intelligent oil and gas fields. J. Pipeline Sci. Eng. 2023, 3, 100127. [Google Scholar] [CrossRef]
- Rayner, D.; Warda, A.A.B.; Adriana, M.; Afra, A.; Amna, S.A.; Fatima, B.; Azubuike, O.; Steven, H.; Sara, B.; Lukas, B.; et al. Advanced Well Test Advisory System and Virtual Flow Metering to Improve Production Allocation and Well Surveillance. In Proceedings of the Abu Dhabi International Petroleum Exhibition and Conference, Abu Dhabi, United Arab Emirates, 4–7 November 2024. [Google Scholar]
- Ursini, F.; Rossi, R.; Castelnuovo, L.; Perrone, A.; Bendari, A.; Pollero, M. The benefits of virtual meter applications on production monitoring and reservoir management. In Proceedings of the SPE Reservoir Characterisation and Simulation Conference and Exhibition, SPE, Abu Dhabi, United Arab Emirates, 17–19 September 2019. [Google Scholar]
- Cheng, B.; Li, Q.P.; Wang, J.; Qing, W. Virtual subsea flow metering technology for gas condensate fields and its application in offshore China. In International Conference on Offshore Mechanics and Arctic Engineering; American Society of Mechanical Engineers: New York, NY, USA, 2018; Volume 8, p. 51296. [Google Scholar]
- Bikmukhametov, T.; Jäschke, J. First principles and machine learning virtual flow metering: A literature review. J. Pet. Sci. Eng. 2020, 184, 106487. [Google Scholar] [CrossRef]
- Sandnes, A.T.; Grimstad, B.; Kolbjørnsen, O. Multi-task learning for virtual flow metering. Knowl.-Based Syst. 2021, 232, 107458. [Google Scholar] [CrossRef]
- Jadid, K.M. Performance Evaluation of Virtual Flow Metering Models and Its Application to Metering Backup and Production Allocation. Ph.D. Thesis, Louisiana State University and Agricultural & Mechanical College, Baton Rouge, LA, USA, 2017. [Google Scholar]
- Baba, Y.D.; Chat, A.; Aliyu, A.; Okereke, N.N.; Ogunyemi, A.; Owolabi, J.O. Study of High Viscous Multiphase Flow Using OLGA Flow Simulator. J. Eng. Technol. 2019, 4, 8713. [Google Scholar] [CrossRef]
- Zhou, T.; Kabir, C.S.; Hoadley, S.F.; Hasan, A.R. Probing rate estimation methods for multiphase flow through surface chokes. J. Pet. Sci. Eng. 2018, 169, 230–240. [Google Scholar] [CrossRef]
- Nejatian, I.; Kanani, M.; Arabloo, M.; Bahadori, A.; Zendehboudi, S. Prediction of natural gas flow through chokes using support vector machine algorithm. J. Nat. Gas Sci. Eng. 2014, 18, 155–163. [Google Scholar] [CrossRef]
- Kaleem, W.; Tewari, S.; Fogat, M.; Martyushev, D.A. A hybrid machine learning approach based study of production forecasting and factors influencing the multiphase flow through surface chokes. Petroleum 2024, 10, 354–371. [Google Scholar] [CrossRef]
- Convery, O.; Smith, L.; Gal, Y.; Hanuka, A. Uncertainty quantification for virtual diagnostic of particle accelerators. Phys. Rev. Accel. Beams 2021, 24, 074602. [Google Scholar] [CrossRef]
- Mohammadmoradi, P.; Hessam, M.M.; Apostolos, K. Data-driven production forecasting of unconventional wells with apache spark. In Proceedings of the SPE Western Regional Meeting, Garden Grove, CA, USA, 22–26 April 2018. [Google Scholar]
- Hotvedt, M.; Grimstad, B.; Imsland, L. A hybrid data-driven, mechanistic virtual flow meter—A case study. IFAC-PapersOnLine 2020, 53, 11692–11697. [Google Scholar] [CrossRef]
- Li, J.; Lin, Y.; An, C.F.; Li, X.; Xiao, T.H.; Hou, L.Y.; Qi, J.N.; Gong, J. KGPM: A Knowledge-Guided Predictive Model for Virtual Metering in Gas Wells. ACS Omega 2024, 9, 51570–51579. [Google Scholar] [CrossRef] [PubMed]
- Liang, B.; Liu, J.; Kang, L.X.; Jiang, K.; You, J.Y.; Jeong, H.; Meng, Z. A novel framework for predicting non-stationary production time series of shale gas based on BiLSTM-RF-MPA deep fusion model. Pet. Sci. 2024, 21, 3326–3339. [Google Scholar] [CrossRef]
- Hotvedt, M.; Bjarne, A.G.; Lars, S.I. Passive learning to address nonstationarity in virtual flow metering applications. Expert Syst. Appl. 2022, 210, 118382. [Google Scholar] [CrossRef]
- Mishra, S.; Parag, K.; Devina, R. Multiphase Virtual Flow Metering: A Step Change in Production Management. In Proceedings of the Offshore Technology Conference Asia, Kuala Lumpur, Malaysia, 27 February–1 March 2024. [Google Scholar]
- Ghosh, D.; Hermonat, E.; Mhaskar, P.; Snowling, S.; Goel, R. Hybrid modeling approach integrating first-principles models with subspace identification. Ind. Eng. Chem. Res. 2019, 58, 13533–13543. [Google Scholar] [CrossRef]
- Mu, J.C.; Shane, M.A.; Jie, O.Y.; Wu, H.F. Single well virtual metering research and application based on hybrid modeling of machine learning and mechanism model. J. Pipeline Sci. Eng. 2023, 3, 100111. [Google Scholar] [CrossRef]




















| Formula | Upstream Pressure | Downstream Pressure | Upstream Temperature | Gas Specific Gravity | Valve Size | CV | Gas–Liquid Ratio | Condensate–Gas Ratio |
|---|---|---|---|---|---|---|---|---|
| Valve Sizing | ● | ● | ● | ● | ● | |||
| H. Al-Attar | ● | ● | ● | ● | ||||
| Nasriani/Kalantari Asl | ● | ● | ● | ● | ||||
| Seidi and Sayahi | ● | ● | ● | ● | ||||
| Bokhamseen | ● | ● | ● | |||||
| Nasriani | ● | ● | ● | ● |
| Model | Hyperparameter Categories |
|---|---|
| LightGBM | Number of trees, number of leaves, minimum samples per leaf, learning rate, maximum bins, feature sampling ratio, L1 regularization coefficient, L2 regularization coefficient |
| XGBoost | Number of trees, maximum number of leaves, minimum sum of instance weights in child node, learning rate, sample sampling ratio, feature sampling ratio per level, feature sampling ratio per tree, L1 regularization coefficient, L2 regularization coefficient |
| Extra trees | Number of trees, maximum number of features, maximum number of leaves |
| Random forest | Number of trees, maximum number of features, maximum number of leaves |
| CatBoost | Early stopping rounds, learning rate, number of trees |
| XGBoost-limitdepth | Number of trees, maximum tree depth, minimum sum of instance weights in child node, learning rate, sample sampling ratio, feature sampling ratio per level, feature sampling ratio per tree, L1 regularization coefficient, L2 regularization coefficient |
| Label | Name | Symbol | Unit | Range | Mean |
|---|---|---|---|---|---|
| Date | / | 1/12/2024–9/3/2025 | / | ||
| Time | / | 0:00:00–23:54:00 | / | ||
| Wellhead tubing pressure | W | Mpa | 7.61–23.17 | 12.44 | |
| Upstream pressure | P1 | Mpa | 7.52–23.17 | 12.39 | |
| Upstream temperature | T1 | °C | 10.83–41.74 | 36.16 | |
| Valve position indicator | CV | / | 3.69–100 | 72 | |
| Downstream pressure | P2 | Mpa | 7.32–14.24 | 10.27 | |
| Downstream temperature | T2 | °C | 0.28–32.95 | 28.54 | |
| Pressure differential | ΔP | Mpa | 0.01–12.45 | 2.17 | |
| Temperature differential | ΔT | °C | 2.17–25.28 | 7.61 | |
| Instantaneous flow rate | F | m3/d | 36,497.79–1,481,612.25 | 1,109,911.08 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Wang, M.; Wang, Z.; Chen, G.; Zhou, J.; Luo, J.; Qin, F.; Wu, Y.; Zhou, P.; Lin, C. Hybrid Mechanistic–Data-Driven Virtual Metering Models and Methodologies for Conventional Gas Fields. Modelling 2026, 7, 99. https://doi.org/10.3390/modelling7030099
Wang M, Wang Z, Chen G, Zhou J, Luo J, Qin F, Wu Y, Zhou P, Lin C. Hybrid Mechanistic–Data-Driven Virtual Metering Models and Methodologies for Conventional Gas Fields. Modelling. 2026; 7(3):99. https://doi.org/10.3390/modelling7030099
Chicago/Turabian StyleWang, Minhao, Zhenjia Wang, Gangping Chen, Jun Zhou, Jian Luo, Fang Qin, Yue Wu, Pan Zhou, and Chuqi Lin. 2026. "Hybrid Mechanistic–Data-Driven Virtual Metering Models and Methodologies for Conventional Gas Fields" Modelling 7, no. 3: 99. https://doi.org/10.3390/modelling7030099
APA StyleWang, M., Wang, Z., Chen, G., Zhou, J., Luo, J., Qin, F., Wu, Y., Zhou, P., & Lin, C. (2026). Hybrid Mechanistic–Data-Driven Virtual Metering Models and Methodologies for Conventional Gas Fields. Modelling, 7(3), 99. https://doi.org/10.3390/modelling7030099
