Development of a Predictive Maintenance Framework For Orifice Gas Metering Systems Using Machine Learning

Isah Abubakar, Gbenga Godwin Oseke

Abstract

Accurate measurement of natural gas flow through orifice meters is essential for gas metering, custody transfer, and financial transparency; however, orifice meters are susceptible to faults such as erosion and particulate accumulation, which can lead to inaccurate readings. This research developed a practical, physics-informed unsupervised learning framework for early problem detection using real field data collected from January through September 2025. It combined three complementary models: Isolation Forest to detect broad outliers, Local Outlier Factor to identify local anomalies, and Exponentially Weighted Moving Average to track gradual shifts over time. These models were applied to the usual SCADA signals: differential pressure (ΔP), static pressure (P), and temperature (T). A single Composite Anomaly Index (CAI) was created to deliver a clear, easy-to-read score for the system's overall health. Of 288 data points, 14 anomalies (just under 5%) were flagged in which the CAI crossed the 0.5 threshold. The anomalies were not scattered randomly but appeared in clear temporal clusters. The strongest peaks occurred between late February and early March, then again from April into May, with CAI values reaching around 0.70–0.75. A milder set was observed in June–July, while August and September remained rock-steady with CAI scores mostly below 0.20. The sharp contrast between those calm periods and the intense spikes showed that the method effectively separated normal operation from real trouble. The integrated framework blended the three models to compensate for their individual weaknesses, capturing both sudden jumps and slow-creeping degradation patterns. Every flagged event aligned with physically expected field mechanisms, such as rising ΔP from fouling or steady baseline drifts from sensor wear. The framework runs entirely on existing SCADA data, with no need for labelled examples, making it cheap and straightforward to roll out at other metering stations.




Keywords


Predictive Maintenance; Anomaly Detection; Gas Metering; Differential Pressure; Flow Monitoring

Full Text:

PDF


References


1. IEA. (2021). World Energy Outlook 2021. Retrieved from https://www.iea.org/reports/world-energy-outlook-2021

2. API. (2018). Manual of Petroleum Measurement Standards (MPMS) (Chapter 14.3). Retrieved from https://www.api.org/~/media/files/publications/2018_catalog/2018_pubs_catalog_final_pm.pdf

3. Miller, R. W. (1989). Flow Measurement Engineering Handbook. McGraw-Hill Inc.

4. Liu, H., Geng, H., Yang, G., Huang, W., Wang, X., & Quan, L. (2025). Research on flow measurement and control integrated strategy based on a flow sensor with active regulation. Measurement, 249, 117055. doi: 10.1016/j.measurement.2025.117055

5. Zhao, X., Li, P., Xiao, K., Meng, X., Han, L., & Yu, C. (2019). Sensor drift compensation based on the improved LSTM and SVM Multi-Class Ensemble learning models. Sensors, 19(18), 3844. doi: 10.3390/s19183844

6. Breunig, M. M., Kriegel, H., Ng, R. T., & Sander, J. (2000b). LOF: Identifying Density-Based Local Outliers. ACM SIGMOD Record, 29(2), 93–104. doi: 10.1145/342009.335388

7. Liu, F. T., Ting, K. M., & Zhou, Z. (2008). Isolation Forest. Eighth IEEE International Conference on Data Mining, 413–422. doi: 10.1109/icdm.2008.17

8. Gao, Y., Yin, X., He, Z., & Wang, X. (2022). A deep learning process anomaly detection approach with representative latent features for low discriminative and insufficient abnormal data. Computers & Industrial Engineering, 176, 108936. doi: 10.1016/j.cie.2022.108936

9. Li, Q., Ji, Y., Sun, L., Zhang, N., & Yang, T. (2026). Anomaly detection for industrial time series in process industry using informed machine learning with graph attention networks. Computers in Industry, 176, 104445. doi: 10.1016/j.compind.2026.104445

10. Aljameel, S. S., Alomari, D. M., Alismail, S., Khawaher, F., Alkhudhair, A. A., Aljubran, F., & Alzannan, R. M. (2022). An anomaly detection model for oil and gas pipelines using machine learning. Computation, 10(8), 138. doi: 10.3390/computation10080138

11. Montgomery, D. C. (2020). Introduction to Statistical Quality Control. John Wiley & Sons.

12. Dai, W., Liu, X., Heller, A., & Nielsen, P. S. (2022). Smart Meter Data Anomaly Detection Using Variational Recurrent Autoencoders with Attention. In Communications in Computer and Information Science (pp. 311–324). doi: 10.1007/978-3-031-10525-8_25

13. Savari, A., Li, Y., Alnefaie, K., & Singh, N. S. S. (2026). State-of-the-art Machine learning Advances in reliability-based design, integrity assessment, inspection and maintenance of pipelines: A Systematic review. Journal of Pipeline Science and Engineering, 100528. doi: 10.1016/j.jpse.2026.100528

14. ISO. (2022). ISO 5167-2:2022. Measurement of fluid flow by means of pressure differential devices inserted in circular cross-section conduits running full – Part 2: Orifice plates. Retrieved from https://www.iso.org/obp/ui/en/#iso:std:iso:5167:-2:ed-2:v1:en

15. Wang, Z., Umer, M. A., Zhang, H., Hassan, N. U., & Ahmed, C. M. (2026). Guardians of ICS: A Comparative Analysis of Anomaly Detection Techniques. IET Cyber-Physical Systems Theory & Applications, 11(1). doi: 10.1049/cps2.70037


Article Metrics

Metrics Loading ...

Metrics powered by PLOS ALM

Refbacks

  • There are currently no refbacks.




Copyright (c) 2026 Isah Abubakar, Gbenga Godwin Oseke

Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License.