The Hybrid DBSCAN-Transformer Framework for High-Precision Phase Fraction Measurement in Low-Energy Gamma Flowmeter
Abstract
1. Introduction
2. Background of the Multiphase Flow Metering with Low-Energy Gamma Flowmeter
3. Deep Learning Improves the Phase Fractions of Low-Energy Gamma Flowmeter
3.1. The Transformer Regression Model Optimized by DBSCAN
3.2. Improved Transformer Algorithm
3.2.1. Input Series Tokenizer
3.2.2. Multi-Head Attention
3.2.3. Transformer Encoder
3.2.4. Decision Maker
4. Low-Energy Gamma Flowmeter Experiment
4.1. Experimental Setup
4.2. Comparative Experiment
4.3. Key Parameters Influence
4.3.1. The DBSCAN Parameters Influence
4.3.2. The Transformer Parameters Influence
4.4. Case Analysis in Practice
5. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
References
- Agwu, O.E.; Okoro, E.E.; Sanni, S.E. Modelling oil and gas flow rate through chokes: A critical review of extant models. J. Pet. Sci. Eng. 2022, 208, 109775. [Google Scholar] [CrossRef] [Scilit]
- Cai, J.; Jiao, X.; Wang, H.; He, W.; Xia, Y. Multiphase fluid-rock interactions and flow behaviors in shale nanopores: A comprehensive review. Earth-Sci. Rev. 2024, 257, 104884. [Google Scholar] [CrossRef] [Scilit]
- Song, K.; Liu, Y. A compact x-ray system for two-phase flow measurement. Meas. Sci. Technol. 2018, 29, 025305. [Google Scholar] [CrossRef] [Scilit]
- Basahel, A.; Sattari, M.A.; Taylan, O.; Nazemi, E. Application of Feature Extraction and Artificial Intelligence Techniques for Increasing the Accuracy of X-ray Radiation Based Two Phase Flow Meter. Mathematics 2021, 9, 1227. [Google Scholar] [CrossRef] [Scilit]
- Taylan, O.; Sattari, M.A.; Essoussi, I.E.; Nazemi, E. Frequency Domain Feature Extraction Investigation to Increase the Accuracy of an Intelligent Nondestructive System for Volume Fraction and Regime Determination of Gas-Water-Oil Three-Phase Flows. Mathematics 2021, 9, 2091. [Google Scholar] [CrossRef] [Scilit]
- Bilgic, A.M.; Kunze, J.W.; Stegemann, V.; Hogendoorn, J.; Cerioni, L.; Zoeteweij, M. Multiphase flow metering with nuclear magnetic resonance. TM—Tech. Mess. 2015, 82, 539–548. [Google Scholar] [CrossRef] [Scilit]
- Meribout, M. Optimal Design for a Portable NMR- and MRI-Based Multiphase Flow Meter. IEEE Trans. Ind. Electron. 2019, 66, 6354–6361. [Google Scholar] [CrossRef] [Scilit]
- Meribout, M.; Sonowan, S. Optimal Halbach Magnet Array Design for Portable NMR Targeting Multiphase Flow Metering Applications. IEEE Trans. Magn. 2019, 55, 4001207. [Google Scholar] [CrossRef] [Scilit]
- Meribout, M.; Shehzad, F.; Kharoua, N.; Khezzar, L. Gas-liquid two-phase flow measurement by combining a Coriolis flowmeter with a flow conditioner and analytical models. Measurement 2020, 163, 107826. [Google Scholar] [CrossRef] [Scilit]
- Fadaei, M.; Ameli, F.; Hashemabadi, S.H. Investigation on different scenarios of two-phase flow measurement using Orifice and Coriolis flow meters: Experimental and modeling approaches. Measurement 2021, 175, 108986. [Google Scholar] [CrossRef] [Scilit]
- Chowdhury, W.S.; Yan, Y.; Coster-Chevalier, M.A.; Liu, J. Mass Flowrate Measurement of Slurry Using Coriolis Flowmeters and Data Driven Modeling. IEEE Trans. Instrum. Meas. 2024, 73, 7503612. [Google Scholar] [CrossRef] [Scilit]
- Zeeshan, Z.; Zuccarelli, C.E.; Acero, D.O.; Marashdeh, Q.M.; Teixeira, F.L. Enhancing Resolution of Electrical Capacitive Sensors for Multiphase Flows by Fine-Stepped Electronic Scanning of Synthetic Electrodes. IEEE Trans. Instrum. Meas. 2019, 68, 462–473. [Google Scholar] [CrossRef] [Scilit]
- Sun, S.; Lu, X.; Xu, L.; Cao, Z.; Sun, J.; Yang, W. Real-Time 3-D Imaging and Velocity Measurement of Two-Phase Flow Using a Twin-Plane ECT Sensor. IEEE Trans. Instrum. Meas. 2021, 70, 4504210. [Google Scholar] [CrossRef] [Scilit]
- da Mota, F.R.; Pagano, D.J.; Stasiak, M.E. Water Volume Fraction Estimation in Two-Phase Flow Based on Electrical Capacitance Tomometry. IEEE Sens. J. 2018, 18, 6822–6835. [Google Scholar] [CrossRef] [Scilit]
- Bin, X.U.; Chen, J.; Guo, P.; Jingyang, L.I. Device for Measuring Flow Rate of Wet Gas Based on an Exempt Radioactive Source. U.S. Patent Application No. 16/335,263, 20 August 2020. [Google Scholar]
- Luchi, D.; Rodrigues, A.L.; Varejao, F.M. Sampling approaches for applying DBSCAN to large datasets. Pattern Recognit. Lett. 2019, 117, 90–96. [Google Scholar] [CrossRef] [Scilit]
- Vaswani, A.; Shazeer, N.; Parmar, N.; Uszkoreit, J.; Jones, L.; Gomez, A.N.; Kaiser, Ł.; Polosukhin, I. Attention is all you need. In Proceedings of the Advances in Neural Information Processing Systems, Long Beach, CA, USA, 4–9 December 2017. [Google Scholar]
- Zhang, C.; Benz, P.; Argaw, D.M.; Lee, S.; Kim, J.; Rameau, F.; Bazin, J.C.; Kweon, I.S. ResNet or DenseNet? Introducing Dense Shortcuts to ResNet. In Proceedings of the 2021 IEEE Winter Conference on Applications of Computer Vision WACV, Virtual, 5–9 January 2021; pp. 3549–3558. [Google Scholar] [CrossRef] [Scilit]











| Item | Setting |
|---|---|
| Input variables | 11 |
| Output variables | 3 continuous phase fractions |
| Window length/sliding step | 20/1 |
| DBSCAN / | 0.6/10 |
| Embedding dimension | 32 |
| Positional encoding | Learnable, |
| Attention heads/encoder layers | 8/12 |
| Feed-forward dimension/dropout | 128/0.1 |
| Regression head | ResNet-MLP with compositional Softmax |
| Optimizer/initial learning rate | Adam/ |
| Batch size/maximum epochs | 64/200 |
| Loss function | Mean squared error |
| Early stopping | 20 epochs without validation improvement |
| Hyperparameter criterion | Validation-set mean |
| Data | Records per Fold |
|---|---|
| Total data | 20,000 |
| Training data | Approximately 12,000 |
| Validation data | Approximately 4000 |
| Testing data | 4000 |
| Model | Phase | RMSE | |
|---|---|---|---|
| D-Transformer | Gas | 0.982 | 0.0134 |
| Liquid | 0.985 | 0.0122 | |
| Solid | 0.981 | 0.0138 | |
| No-ResNet | Gas | 0.974 | 0.0161 |
| Liquid | 0.978 | 0.0148 | |
| Solid | 0.971 | 0.0170 | |
| No-DBSCAN | Gas | 0.956 | 0.0208 |
| Liquid | 0.960 | 0.0197 | |
| Solid | 0.954 | 0.0214 | |
| CNN-GRU-Attention | Gas | 0.861 | 0.0373 |
| Liquid | 0.868 | 0.0363 | |
| Solid | 0.864 | 0.0369 | |
| CNN-LSTM | Gas | 0.846 | 0.0396 |
| Liquid | 0.858 | 0.0378 | |
| Solid | 0.848 | 0.0390 | |
| Ridge regression | Gas | 0.792 | 0.0456 |
| Liquid | 0.811 | 0.0433 | |
| Solid | 0.784 | 0.0465 | |
| Uncorrected flowmeter | Gas | 0.623 | 0.0613 |
| Liquid | 0.651 | 0.0589 | |
| Solid | 0.596 | 0.0636 |
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
Huang, Y.; Liu, M.; Fan, L.; Liang, Y.; Lin, Q.; Zhang, S.; Liang, H.; Zhang, L. The Hybrid DBSCAN-Transformer Framework for High-Precision Phase Fraction Measurement in Low-Energy Gamma Flowmeter. Processes 2026, 14, 2644. https://doi.org/10.3390/pr14162644
Huang Y, Liu M, Fan L, Liang Y, Lin Q, Zhang S, Liang H, Zhang L. The Hybrid DBSCAN-Transformer Framework for High-Precision Phase Fraction Measurement in Low-Energy Gamma Flowmeter. Processes. 2026; 14(16):2644. https://doi.org/10.3390/pr14162644
Chicago/Turabian StyleHuang, Yibo, Mingyang Liu, Lijing Fan, Yulin Liang, Qingjing Lin, Shihan Zhang, Haibo Liang, and Lianzheng Zhang. 2026. "The Hybrid DBSCAN-Transformer Framework for High-Precision Phase Fraction Measurement in Low-Energy Gamma Flowmeter" Processes 14, no. 16: 2644. https://doi.org/10.3390/pr14162644
APA StyleHuang, Y., Liu, M., Fan, L., Liang, Y., Lin, Q., Zhang, S., Liang, H., & Zhang, L. (2026). The Hybrid DBSCAN-Transformer Framework for High-Precision Phase Fraction Measurement in Low-Energy Gamma Flowmeter. Processes, 14(16), 2644. https://doi.org/10.3390/pr14162644
