Corrosion Rate Prediction of Buried Oil and Gas Pipelines: A New Deep Learning Method Based on RF and IBWO-Optimized BiLSTM–GRU Combined Model
Abstract
:1. Introduction
2. Preliminaries
2.1. Random Forest (RF)
2.2. Improving the Beluga Whale Optimization Algorithm (IBWO)
2.3. Bidirectional Long Short-Term Memory (BiLSTM)
2.4. Gated Recurrent Unit (GRU)
- (1)
- The mathematical expression for the update gate is the following:
- (2)
- The mathematical expression of the reset gate is the following:
- (3)
- The mathematical expression for the candidate hidden state is as follows:
- (4)
- The mathematical expression for the hidden state is as follows:
3. Examples and Methods
3.1. Study Framework
3.2. Data Source
3.3. Data Preparation
3.4. Pre-Training
3.5. The RF–IBWO-BiLSTM–GRU Combined Model
4. Results and Discussion
4.1. Prediction Results
4.2. Model Comparative Analysis
4.3. Model Application Analysis
4.3.1. Dataset Environmental Representativeness and Model Reliability Analysis
4.3.2. Structural Adaptability of the Predictive Model and Multi-Environment Suitability Analysis
4.3.3. Computational Resource Requirements and Model Interpretability in Practical Applications
5. Conclusions
5.1. Research Conclusions and Contributions
5.2. Future Research Prospects
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
References
- Peng, S.; Zhang, Z.; Liu, E.; Liu, W.; Qiao, W. A new hybrid algorithm model for prediction of internal corrosion rate of multiphase pipeline. J. Nat. Gas Sci. Eng. 2021, 85, 103716. [Google Scholar] [CrossRef]
- Zhao, L.; Luo, Z.; Deng, G.; Shi, V. Prediction of corrosion failure probability of buried oil and gas pipeline based on an RBF neural network. Front. Earth Sci. 2023, 11, 1148407. [Google Scholar] [CrossRef]
- He, T.; Liu, Y.; Liao, K.; Xia, G.; Ye, N.; Lyu, X.; Tang, X. A novel liquid pipeline internal corrosion direct evaluation technology and the application on the water pipeline. Eng. Fail. Anal. 2024, 158, 108053. [Google Scholar] [CrossRef]
- Caleyo, F.; Velázquez, J.C.; Valor, A.; Hallen, J.M. Probability distribution of pitting corrosion depth and rate in underground pipelines: A Monte Carlo study. Corros. Sci. 2009, 51, 1925–1934. [Google Scholar] [CrossRef]
- Ning, J.; Zheng, Y.; Brown, B.; Young, D.; Nešić, S. A thermodynamic model for the prediction of mild steel corrosion products in an aqueous hydrogen sulfide environment. Corros. Sci. 2015, 71, 945–960. [Google Scholar] [CrossRef] [PubMed]
- Heidary, R.; Groth, K.M. A hybrid population-based degradation model for pipeline pitting corrosion. Reliab. Eng. Syst. Saf. 2021, 214, 107740. [Google Scholar] [CrossRef]
- Han, Z.; Li, X.; Chen, G. A stochastic model for RUL prediction of subsea pipeline subject to corrosion-fatigue degradation. Process Saf. Environ. Prot. 2023, 178, 739–747. [Google Scholar] [CrossRef]
- Guang, Y.; Wang, W.; Song, H.; Mi, H.; Tang, J.; Zhao, Z. Prediction of external corrosion rate for buried oil and gas pipelines: A novel deep learning with DNN and attention mechanism method. Int. J. Press. Vessel. Pip. 2024, 209, 105218. [Google Scholar] [CrossRef]
- Hatami, S.; Ghaderi-Ardakani, A.; Niknejad-Khomami, M.; Karimi-Malekabadi, F.; Rasaei, M.R.; Mohammadi, A.H. On the prediction of CO2 corrosion in petroleum industry. J. Supercrit. Fluids 2016, 117, 108–112. [Google Scholar] [CrossRef]
- Abbas, M.H.; Norman, R.; Charles, A. Neural network modelling of high pressure CO2 corrosion in pipeline steels. Process Saf. Environ. Prot. 2018, 119, 36–45. [Google Scholar] [CrossRef]
- Hu, Q.; Liu, Y.; Zhang, T.; Geng, S.; Wang, F. Modeling the corrosion behavior of Ni-Cr-Mo-V high strength steel in the simulated deep sea environments using design of experiment and artificial neural network. J. Mater. Sci. Technol. 2019, 35, 168–175. [Google Scholar] [CrossRef]
- Ossai, C.I. Corrosion defect modelling of aged pipelines with a feed-forward multi-layer neural network for leak and burst failure estimation. Eng. Fail. Anal. 2020, 110, 104397. [Google Scholar] [CrossRef]
- Xie, P.; Liu, H.; Gong, Y.H.; Ni, P.P. Assessment of the residual strength of submarine pipeline external corrosion based on deep learning. Oil Gas Storage Transp. 2021, 40, 651–657. [Google Scholar]
- Du, J.; Zheng, J.; Liang, Y.; Xu, N.; Liao, Q.; Wang, B.; Zhang, H. Deeppipe: Theory-guided prediction method based automatic machine learning for maximum pitting corrosion depth of oil and gas pipeline. Chem. Eng. Sci. 2023, 278, 118927. [Google Scholar] [CrossRef]
- Cao, Y.; Zhao, Q.; Liu, Y. Novel Prediction Model of Tensile Strain Capacity for Pipelines with Corrosion Defects. J. Pipeline Syst. Eng. Pract. 2023, 14, 04023029. [Google Scholar] [CrossRef]
- Wasim, M.; Djukic, M.B. External corrosion of oil and gas pipelines: A review of failure mechanisms and predictive preventions. J. Nat. Gas Sci. Eng. 2022, 100, 104467. [Google Scholar] [CrossRef]
- Luo, Z.S.; Du, D.; Luo, J.H.; Wang, X.W. Study of the efficacy of the combined model on pipeline corrosion rate prediction -CNN and LSTM model based on attention mechanism enhancement. J. Saf. Environ. 2024, 24, 4263–4269. [Google Scholar]
- Graves, A.; Schmidhuber, J. Framewise phoneme classification with bidirectional LSTM and other neural network architectures. Neural Netw. 2005, 18, 602–610. [Google Scholar] [CrossRef]
- Chen, T.; Xu, R.; He, Y.; Wang, X. Improving sentiment analysis via sentence type classification using BiLSTM-CRF and CNN. Expert Syst. Appl. 2017, 72, 221–230. [Google Scholar] [CrossRef]
- Rongbin, C.; Sanming, L. Research on wind power prediction method based on CEEMDAN-SSA-GRU. In Proceedings of the 2021 IEEE International Conference on Electrical Engineering and Mechatronics Technology, Qingdao, China, 2–4 July 2021. [Google Scholar]
- Zhong, C.; Li, G.; Meng, Z. Beluga whale optimization: A novel nature-inspired metaheuristic algorithm. Knowl. Based Syst. 2022, 251, 109215. [Google Scholar] [CrossRef]
- Chen, X.Y.; Zhang, M.J.; Wang, D.G. Improved beluga whale optimization algorithm and application based on Fuch mapping. Comput. Eng. Sci. 2024, 46, 1482. [Google Scholar]
- Yan, S.H.; Shi, W.L.; Wang, Q.Y.; Ren, Y. Research and synchronous application of a new 3 D switching chaotic system. Complex Syst. Complex. Sci. 2022, 94–103. [Google Scholar]
- Gholami, M.; Ebrahimzadeh, M. A hybrid biogeography-based optimization algorithm. Appl. Soft Comput. 2012, 12, 1537–1548. [Google Scholar]
- Zhang, Q.; Zhao, H.L.; Yang, H.Q. Study on fault diagnosis and prediction method of jet oil flow based on CNN-BiLSTM. Intern. Combust. Engine Accessories 2024, 84–87. [Google Scholar]
- Wang, X.L.; Xu, Y.F. Taxi trajectory prediction and conflict identification of aircraft in flight area based on AM-LSTM. Chin. J. Saf. Sci. 2024, 34, 116–124. [Google Scholar]
- Revie, R.W. Corrosion and Corrosion Control: An Introduction to Corrosion Science and Engineering; John Wiley & Sons: Hoboken, NJ, USA, 2008. [Google Scholar]
- Beech, I.B.; Sunner, J. Biocorrosion: Towards understanding interactions between biofilms and metals. Curr. Opin. Biotechnol. 2004, 15, 181–186. [Google Scholar] [CrossRef]
- Videla, H.A.; Herrera, L.K. Microbiologically influenced corrosion: Looking to the future. Int. Microbiol. 2005, 8, 169–180. [Google Scholar]
- Little, B.J.; Lee, J.S. Microbiologically Influenced Corrosion; John Wiley & Sons: Hoboken, NJ, USA, 2007. [Google Scholar]
- Hamilton, W.A. Microbially influenced corrosion as a model system for the study of metal-microbe interactions: A unifying electron transfer hypothesis. Biofouling 2003, 19, 65–76. [Google Scholar] [CrossRef]
- Javaherdashti, R. Microbiologically Influenced Corrosion: An Engineering Insight; Springer Science & Business Media: Berlin/Heidelberg, Germany, 2017. [Google Scholar]
- American Society of Corrosion Engineers (NACE). NACE RP0775-2005: Preparation, Installation, Analysis, and Interpretation of Corrosion Coupons in Oilfield Operations; NACE International: Houston, TX, USA, 2005. [Google Scholar]
- Breiman, L. Random forests. Mach. Learn. 2001, 45, 5–32. [Google Scholar] [CrossRef]
- Zhang, Z.; Gao, Y.; Liu, Y.; Zuo, W. A hybrid biogeography-based optimization algorithm to solve high-dimensional optimization problems and real-world engineering problems. Appl. Soft Comput. 2023, 144, 110514. [Google Scholar] [CrossRef]
- Li, X.; Wang, H.L.; Xiu, P.F.; Zhou, X.Y.; Meng, F.H. Resource usage prediction based on BiLSTM-GRU combination model. In Proceedings of the IEEE International Conference on Joint Cloud Computing (JCC), Fremont, CA, USA, 15–18 August 2022. [Google Scholar]
Pipeline Length | Length of Pipe Section | Grade of Steel | Pipe Diameter | Wall Thickness | Operating Life | Buried Depth Range | Outer Coating |
---|---|---|---|---|---|---|---|
222.5 km | 3.26 km | X80 | 310 mm | 15 mm | 7 year | 0.4–2.5 m | 3PE |
Numeric Value Scope | pH Value | Saltness/% | Water Content/% | Stray Current/(mv·m−1) | Oxidation–Reduction Potential/mV |
Minimum | 0.730 | 0.010 | 1.140 | 0.140 | 36.150 |
Maximum | 9.330 | 0.472 | 45.360 | 1.760 | 520.360 |
Numeric Value Scope | Sulphate Root Content/% | Pipe Ground Potential/mV | Soil Resistivity/(Ω·m) | Potential Gradiant/(mV·m−1) | Chlorine Ion Content/% |
Minimum | 0.001 | 47.450 | 6.580 | 0.220 | 0.003 |
Maximum | 0.151 | 287.150 | 80.230 | 5.010 | 0.162 |
NACE RP 0775-2005 | Classification of This Research | ||
---|---|---|---|
Corrosion Grade | Corrosion Rate (mpy) | Corrosion Grade | Corrosion Rate (mpy) |
Low | <1.0 | Low | <5.0 |
Moderate | 1.0–4.9 | ||
High | 5.0–10 | High | >5.0 |
Severe | >10 |
pH Value | Saltness/% | Water Content/% | Stray Current/(mv·m−1) | Oxidation–Reduction Potential/mV |
0.101 | 0.085 | 0.103 | 0.161 | 0.127 |
Sulphate Root Content/% | Pipe Ground Potential/mV | Soil Resistivity/(Ω·m) | Potential Gradiant/(mV·m−1) | Chlorine Ion Content/% |
0.077 | 0.099 | 0.090 | 0.082 | 0.075 |
pH Value | Saltness/% | Water Content/% | Stray Current/(mv·m−1) | Oxidation–Reduction Potential/mV |
0.187 | 0.093 | 0.117 | 0.105 | 0.071 |
Sulphate Root Content/% | Pipe Ground Potential/mV | Soil Resistivity/(Ω·m) | Potential Gradiant/(mV·m−1) | Chlorine Ion Content/% |
0.063 | 0.090 | 0.103 | 0.100 | 0.069 |
Model | MAE | MSE | RMSE | MAPE | R2 |
---|---|---|---|---|---|
BiLSTM | 0.5996 | 0.6368 | 0.7980 | 12.60% | 0.8409 |
GRU | 0.6607 | 0.8018 | 0.8954 | 26.02% | 0.7996 |
BiLSTM–GRU | 0.3924 | 0.2363 | 0.4861 | 9.50% | 0.9410 |
RF-BiLSTM–GRU | 0.3458 | 0.1617 | 0.4022 | 9.997% | 0.9596 |
RF–IBWO-BiLSTM–GRU | 0.1974 | 0.0498 | 0.2231 | 5.29% | 0.9876 |
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. |
© 2024 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 (https://creativecommons.org/licenses/by/4.0/).
Share and Cite
Wang, J.; Kong, Z.; Shan, J.; Du, C.; Wang, C. Corrosion Rate Prediction of Buried Oil and Gas Pipelines: A New Deep Learning Method Based on RF and IBWO-Optimized BiLSTM–GRU Combined Model. Energies 2024, 17, 5824. https://doi.org/10.3390/en17235824
Wang J, Kong Z, Shan J, Du C, Wang C. Corrosion Rate Prediction of Buried Oil and Gas Pipelines: A New Deep Learning Method Based on RF and IBWO-Optimized BiLSTM–GRU Combined Model. Energies. 2024; 17(23):5824. https://doi.org/10.3390/en17235824
Chicago/Turabian StyleWang, Jiong, Zhi Kong, Jinrong Shan, Chuanjia Du, and Chengjun Wang. 2024. "Corrosion Rate Prediction of Buried Oil and Gas Pipelines: A New Deep Learning Method Based on RF and IBWO-Optimized BiLSTM–GRU Combined Model" Energies 17, no. 23: 5824. https://doi.org/10.3390/en17235824
APA StyleWang, J., Kong, Z., Shan, J., Du, C., & Wang, C. (2024). Corrosion Rate Prediction of Buried Oil and Gas Pipelines: A New Deep Learning Method Based on RF and IBWO-Optimized BiLSTM–GRU Combined Model. Energies, 17(23), 5824. https://doi.org/10.3390/en17235824