Short-Term Demand Forecasting and Supply Assurance Evaluation for Natural Gas Pipeline Networks Based on Uncertainty Quantification and Deep Learning
Abstract
1. Introduction
1.1. Background
1.2. The Original Contribution of This Work
- Integrated Framework: Unlike studies that treat forecasting and evaluation separately, this work bridges the gap by using the probabilistic outputs (CDF) of the GCN-BiLSTM model as direct inputs for the line pack evaluation, transforming ‘data uncertainty’ into ‘supply risk’.
- Risk-Informed Evaluation: A dynamic evaluation system is established where line pack capabilities are assessed not just against deterministic demand, but against the full probability distribution of potential demand scenarios. The overall research framework of this study is illustrated in Figure 1.
1.3. Paper Organization
2. Model Development
2.1. Short-Term Demand Forecasting Model for Natural Gas Pipeline Networks Based on Uncertainty Quantification and Deep Learning
- Graph convolutional block. This layer captures network topology and spatial characteristics. An ARMA graph convolutional network (ARMAConv) is adopted in this study. Compared to polynomial filter-based methods like ChebNet or standard GCN, ARMA filters offer a rational spectral response, enabling them to capture global graph structures and long-range spatial dependencies more effectively. This capability is particularly well-suited for natural gas pipeline networks, where pressure and flow perturbations propagate across the entire topology rather than remaining strictly local. The ARMA-based convolution is applied to graph-structured inputs with a configuration of K = 2 parallel stacks and a recursion depth of T = 1. This parameterization ensures a localized first-order approximation similar to GCN but with enhanced flexibility, maintaining a linear computational complexity of O(E) suitable for real-time applications.
- Time-series feature extraction. This layer learns temporal patterns from demand sequences and GCN-BiLSTM is used [26]. It combines forward and backward LSTM passes to extract latent temporal features. The forward LSTM models patterns and trends from historical demand. The backward LSTM models dependencies in the reversed sequence to improve forecasting.
- Prediction layer. This layer estimates predictive uncertainty using Dropout. During training, Dropout randomly deactivates neurons to reduce overfitting and improve generalization. During inference, Monte Carlo Dropout is applied by performing T = 100 stochastic forward passes with the dropout mask active. For a given input, the predictive mean is calculated as the average of these T stochastic outputs, and the uncertainty is quantified by their sample variance. The dropout rate is set to 0.2 to prevent overfitting while maintaining model capacity. These statistics are used to construct the Gaussian Cumulative Distribution Function (CDF) for risk assessment [27].
- Forecasting performance is assessed against three baseline sequence models, including GRU, LSTM, and BiGRU. Their prediction results are compared with those of the proposed model. A unified set of metrics is used to quantify prediction accuracy. To control experimental conditions, all models use the ReLU activation function. To ensure a fair comparison, a unified training protocol was adopted. The Adam optimizer was used with an initial learning rate of 0.0005. The maximum number of training epochs was set to 200, coupled with an Early Stopping mechanism (patience = 20) monitoring the validation loss. The hyperparameters were tuned via grid search on the validation set. The evaluation metrics are as follows:
- Root Mean Squared Error (RMSE)
- II.
- Mean Absolute Percentage Error (MAPE)
- III.
- Mean Absolute Error (MAE)
- IV.
- Coefficient of determination (R2)
where n is the number of prediction samples, yi is the true value for sample i, is the predicted value for sample i, is the mean value for yi. - Forecast horizon strongly affects prediction accuracy. The applicability and stability of the proposed method are tested under three horizons: 24 h, 48 h, and 72 h. Model performance is compared across these time scales.
- To examine performance under different network topologies, Model performance is further examined under different pipeline topologies. In addition to the case study on Dataset A, a second network case (Dataset B) is constructed using the same graph-based modeling approach. Forecasting results are reported for 24 h, 48 h, and 72 h in Dataset B to evaluate the model’s adaptability to topology changes and its generalization capability.
2.2. Supply Capability Evaluation Model for Natural Gas Pipeline Networks Considering Line Pack
- User satisfaction
- 2.
- Available time of line pack
- 3.
- Line pack demand−storage ratio
3. Case Study
3.1. Data Preparation
3.2. Scenario Setup
- To quantify the required line pack and the line pack demand−storage ratio, the demand CDF of each user was first obtained using the forecasting method. Monte Carlo sampling was then used to generate a set of representative demand scenarios. For each scenario, the required line pack and the demand−storage ratio were calculated. The CDFs of these indicators were further derived to provide a probabilistic description of supply assurance margins.
- To examine the dynamic interaction between demand changes and supply capability, three representative scenarios were considered. Under normal operation, the total network demand is 2973.13 × 104 m3/d.
- Scenario A: Total demand of all users is 3049.1 × 104 m3/d. This scenario represents a ‘typical high-load’ condition (approximately μ + 0.5 σ), derived from the forecasted CDF to simulate common seasonal fluctuations where demand rises moderately above the baseline.
- Scenario B: Total demand of all users is 3569.0 × 104 m3/d. This scenario represents a ‘synthetic extreme’ condition determined by the 3-sigma rule (μ + 3 σ) It serves as the statistical upper boundary of probable demand, designed to stress-test the network’s supply assurance limit under rare, severe load surges.
- Scenario C: Pipeline 6 is shut down due to compressor maintenance.
3.3. Results and Discussion
3.3.1. Validation of the Forecasting Model
3.3.2. Supply Capability Evaluation
4. Conclusions
- a novel GCN-BiLSTM model with uncertainty quantification has been developed to capture both the topological dependencies and temporal dynamics of user demand. Empirical validation on real-world datasets demonstrates the model’s superiority over classical baselines, achieving a mean absolute percentage error of less than 1% and an R2 exceeding 0.99. Crucially, beyond deterministic accuracy, the model constructs reliable confidence intervals via the Cumulative Distribution Function, providing a probabilistic basis for risk-informed decision-making.
- Moving beyond static storage metrics, this study establishes a dynamic evaluation system centered on the peak-shaving capability of line pack. By defining quantitative indicators—specifically user satisfaction, the line pack demand−storage ratio, and available response time—the framework effectively identifies vulnerable network nodes and quantifies the operational margins under varying uncertainty levels. This probabilistic approach resolves the difficulty of assessing supply reliability when facing data randomness.
- Scenario analysis reveals the critical role and limitations of line pack. Under normal stochastic fluctuations, line pack acts as an effective short-term buffer, maintaining high user satisfaction. However, under extreme scenarios, the analysis identifies clear “capability boundaries” where line pack alone is insufficient, particularly for structurally disadvantaged end-users. These findings suggest a hierarchical scheduling strategy: utilizing line pack for high-frequency, low-amplitude fluctuations, while reserving external resources for low-frequency, high-impact events.
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
Nomenclature
| x | any real number |
| X | random variable for user demand |
| k | index of a pipeline |
| n | number of prediction samples |
| yi | true value for sample i |
| mean value for yi | |
| i | node i |
| j | node j |
| Qij | volumetric flow rate from node i to node j |
| Si | satisfaction of user i |
| Qsi | actual supplied gas to user i |
| Qdi | demand of user i |
| Vsto,i | line pack of pipeline i |
| ΔQdi | demand increment of user i |
| SLPk | required line pack of pipeline k |
| SLPmaxk | maximum available line pack of pipeline k |
| F(x) | cumulative distribution function value at x |
References
- He, Y.; Xiao, J.; An, X.; Cao, C.; Xiao, J. Short-term power load probability density forecasting based on GLRQ-Stacking ensemble learning method. Int. J. Electr. Power Energy Syst. 2022, 142, 108243. [Google Scholar] [CrossRef]
- Soldo, B. Forecasting natural gas consumption. Appl. Energy 2012, 92, 26–37. [Google Scholar] [CrossRef]
- Szoplik, J. Forecasting of natural gas consumption with artificial neural networks. Energy 2015, 85, 208–220. [Google Scholar] [CrossRef]
- Zhang, W.; Yang, J. Forecasting natural gas consumption in China by Bayesian model averaging. Energy Sci. Res. 2016, 1, 216–220. [Google Scholar] [CrossRef]
- Panapakidis, I.P.; Dagoumas, A.S. Day-ahead natural gas demand forecasting based on the combination of wavelet transform and ANFIS/genetic algorithm/neural network model. Energy 2017, 118, 231–245. [Google Scholar] [CrossRef]
- Wang, P.; Gurmani, S.H.; Tao, Z.; Liu, J.; Chen, H. Interval time series forecasting: A systematic literature review. J. Forecast. 2024, 43, 249–285. [Google Scholar] [CrossRef]
- Hong, T.; Pinson, P.; Wang, Y.; Weron, R.; Yang, D.; Zareipour, H. Energy forecasting: A review and outlook. IEEE Open Access J. Power Energy 2020, 7, 376–388. [Google Scholar] [CrossRef]
- Liu, Z.; Zhu, Z.; Gao, J.; Xu, C. Forecast methods for time series data: A survey. IEEE Access 2021, 9, 91896–91912. [Google Scholar] [CrossRef]
- Guo, Z.; Zhou, K.; Zhang, X.; Yang, S. A deep learning model for short-term power load and probability density forecasting. Energy 2018, 160, 1186–1200. [Google Scholar] [CrossRef]
- Ding, L.; Zhao, Z.; Wang, L. Probability density forecasts for natural gas demand in China: Do mixed-frequency dynamic factors matter? Appl. Energy 2022, 312, 118756. [Google Scholar] [CrossRef]
- Li, Y.; Yu, R.; Shahabi, C.; Liu, Y. Diffusion convolutional recurrent neural network: Data-driven traffic forecasting. In Proceedings of the 6th International Conference on Learning Representations 2017, Toulon, France, 24–26 April 2017. [Google Scholar]
- Qian, L.; Bai, Y.; Wang, W.; Meng, F.; Chen, Z. Natural gas crisis, system resilience and emergency responses: A China case. Energy 2023, 276, 127500. [Google Scholar] [CrossRef]
- Zeniewski, P.; Bolado-Lavin, R. A review of national gas emergency plans in the European Union. Energy Policy 2012, 49, 652–662. [Google Scholar] [CrossRef]
- Lu, W.; Su, M.; Fath, B.D.; Zhang, M.; Hao, Y. A systematic method of evaluation of the Chinese natural gas supply security. Appl. Energy 2016, 165, 858–867. [Google Scholar] [CrossRef]
- Biresselioglu, M.E.; Yelkenci, T.; Oz, I.O. Investigating the natural gas supply security: A new perspective. Energy 2015, 80, 168–176. [Google Scholar] [CrossRef]
- Monforti, F.; Szikszai, A. A MonteCarlo approach for assessing the adequacy of the European gas transmission system under supply crisis conditions. Energy Policy 2010, 38, 2486–2498. [Google Scholar] [CrossRef]
- Holz, F.; Von Hirschhausen, C.; Kemfert, C. A strategic model of European gas supply (GASMOD). Energy Econ. 2008, 30, 766–788. [Google Scholar] [CrossRef]
- Lise, W.; Hobbs, B.F.; Van Oostvoorn, F. Natural gas corridors between the EU and its main suppliers: Simulation results with the dynamic GASTALE model. Energy Policy 2008, 36, 1890–1906. [Google Scholar] [CrossRef]
- Yang, Y.; Li, S.; Li, W.; Qu, M. Power load probability density forecasting using Gaussian process quantile regression. Appl. Energy 2018, 213, 499–509. [Google Scholar] [CrossRef]
- Guo, G.; Liu, S.; Wu, Y.; Li, J.; Zhou, R.; Zhu, X. Short-term water demand forecast based on deep learning method. J. Water Resour. Plan. Manag. 2018, 144, 4018076. [Google Scholar] [CrossRef]
- Pambour, K.A.; Bolado-Lavin, R.; Dijkema, G.P.J. An integrated transient model for simulating the operation of natural gas transport systems. J. Nat. Gas Sci. Eng. 2016, 28, 672–690. [Google Scholar] [CrossRef]
- Mi, J.; Khodayar, M.E. Operation of natural gas and electricity networks with line pack. J. Mod. Power Syst. Clean Energy 2019, 7, 1056–1070. [Google Scholar] [CrossRef]
- Quan, H.; Srinivasan, D.; Khosravi, A. Uncertainty handling using neural network-based prediction intervals for electrical load forecasting. Energy 2014, 73, 916–925. [Google Scholar] [CrossRef]
- He, Y.; Li, H. Probability density forecasting of wind power using quantile regression neural network and kernel density estimation. Energy Convers. Manag. 2018, 164, 374–384. [Google Scholar] [CrossRef]
- Fischer, A.; Gaunt, R.E.; Sarantsev, A. The variance-gamma distribution: A review. Stat. Sci. 2025, 40, 235–258. [Google Scholar] [CrossRef]
- Jailani, N.L.M.; Dhanasegaran, J.K.; Alkawsi, G.; Alkahtani, A.A.; Phing, C.C.; Baashar, Y.; Capretz, L.F.; Al-Shetwi, A.Q.; Tiong, S.K. Investigating the power of LSTM-based models in solar energy forecasting. Processes 2023, 11, 1382. [Google Scholar] [CrossRef]
- Gal, Y.; Ghahramani, Z. Dropout as a bayesian approximation: Representing model uncertainty in deep learning. In Proceedings of the International Conference on Machine Learning PMLR, New York, NY, USA, 20–22 June 2016; pp. 1050–1059. [Google Scholar]
- Jiang, W. Graph-based deep learning for communication networks: A survey. Comput. Commun. 2022, 185, 40–54. [Google Scholar] [CrossRef]
- Patel, A.C.; Sinha, S.; Palermo, G. Graph theory approaches for molecular dynamics simulations. Q. Rev. Biophys. 2024, 57, e15. [Google Scholar] [CrossRef] [PubMed]
- Said, B.; Lathamaheswari, M.; Singh, P.K.; Ouallane, A.A.; Bakhouyi, A.; Bakali, A.; Talea, M.; Dhital, A.; Deivanayagampillai, N. An intelligent traffic control system using neutrosophic sets, rough sets, graph theory, fuzzy sets and its extended approach: A literature review. Neutrosophic Sets Syst. 2022, 50, 2. [Google Scholar]
- Yang, Z.; Xiang, Q.; He, Y.; Peng, S.; Faber, M.H.; Zio, E.; Zuo, L.; Su, H.; Zhang, J. Resilience of natural gas pipeline system: A review and outlook. Energies 2023, 16, 6237. [Google Scholar] [CrossRef]
















| Item | Value | Unit |
|---|---|---|
| Sampling interval | 1 | h |
| Data duration | 5 | years |
| Number of rows | 35,000 | – |
| Number of columns | 28 | – |
| Number of users | 27 | – |
| Number of sources | 1 | – |
| Item ID | Supply/Capacity (×104 m3/d) |
|---|---|
| gas source 1 | - |
| user 1 | 192.44 |
| user 2 | 273.10 |
| user 3 | 242.48 |
| user 4 | 223.81 |
| user 5 | 161.84 |
| user 6 | 161.84 |
| user 7 | 148.13 |
| user 8 | 261.26 |
| user 9 | 224.16 |
| user 10 | 239.13 |
| user 11 | 142.88 |
| user 12 | 275.79 |
| user 13 | 256.54 |
| user 14 | 169.73 |
| pipeline 1 | 4857.14 |
| pipeline 2 | 1200 |
| pipeline 3 | 1200 |
| pipeline 4 | 1200 |
| pipeline 5 | 1200 |
| Pipeline 6 | 4857.14 |
| pipeline 7 | 1200 |
| Pipeline 8 | 1200 |
| pipeline 9 | 4857.14 |
| pipeline 10 | 4857.14 |
| pipeline 11 | 4857.14 |
| pipeline 12 | 1200 |
| pipeline 13 | 2685.71 |
| pipeline 14 | 2685.71 |
| Model | MAPE (%) | RMSE | MAE | R2 |
|---|---|---|---|---|
| GCN−GRU | 1.5100 | 0.0075 | 18.3131 | 0.9972 |
| GCN−LSTM | 1.1095 | 0.0058 | 14.0956 | 0.9983 |
| GCN−BiGRU | 1.942 | 0.0089 | 16.2506 | 0.9976 |
| GCN−BiLSTM | 0.9739 | 0.0050 | 11.1479 | 0.9988 |
| Scenario | Pipeline Number | The Available Time of Line Pack/h |
|---|---|---|
| A | 11 | 65.8 |
| B | 5 | 8.4 |
| B | 8 | 1.2 |
| B | 11 | 27.5 |
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
Chen, J.; He, Y.; Xiang, Q.; You, H.; Wang, W.; Li, P.; Zhao, Z.; Yang, Z.; Su, H.; Zhang, J. Short-Term Demand Forecasting and Supply Assurance Evaluation for Natural Gas Pipeline Networks Based on Uncertainty Quantification and Deep Learning. Energies 2026, 19, 1101. https://doi.org/10.3390/en19041101
Chen J, He Y, Xiang Q, You H, Wang W, Li P, Zhao Z, Yang Z, Su H, Zhang J. Short-Term Demand Forecasting and Supply Assurance Evaluation for Natural Gas Pipeline Networks Based on Uncertainty Quantification and Deep Learning. Energies. 2026; 19(4):1101. https://doi.org/10.3390/en19041101
Chicago/Turabian StyleChen, Jinghua, Yuxuan He, Qi Xiang, Haiyang You, Weican Wang, Pengcheng Li, Zhiwei Zhao, Zhaoming Yang, Huai Su, and Jinjun Zhang. 2026. "Short-Term Demand Forecasting and Supply Assurance Evaluation for Natural Gas Pipeline Networks Based on Uncertainty Quantification and Deep Learning" Energies 19, no. 4: 1101. https://doi.org/10.3390/en19041101
APA StyleChen, J., He, Y., Xiang, Q., You, H., Wang, W., Li, P., Zhao, Z., Yang, Z., Su, H., & Zhang, J. (2026). Short-Term Demand Forecasting and Supply Assurance Evaluation for Natural Gas Pipeline Networks Based on Uncertainty Quantification and Deep Learning. Energies, 19(4), 1101. https://doi.org/10.3390/en19041101

