journal article·2025-07-15Open access

Corrosion type identification in flanged joints using recurrent neural networks on electrochemical noise measurements

Soroosh Hakimian, Abdel-Hakim Bouzid, Lucas A. Hof

npj Materials Degradation· Volume 9· Issue 1

Abstract

Abstract Bolted flanged joints are essential for connecting piping and process equipment but are vulnerable to localized corrosion that leads to sudden, unpredictable leaks. Electrochemical noise (EN) measurements can detect such corrosion, yet processing EN data is time-consuming and requires expertise. This study applies recurrent neural networks (RNNs) to automate corrosion type identification on flange surfaces using raw EN signals from spontaneous electrochemical reactions. In this work, supervised, hybrid, and unsupervised ML approaches are evaluated using experimentally obtained EN data. Among supervised models, the long short-term memory (LSTM) model achieves 93.62% accuracy. A hybrid method combining LSTM autoencoder features with a random forest classifier improves accuracy to 97.85%. An unsupervised method using LSTM autoencoder, principal component analysis, and k-means clustering also shows strong potential for real-time corrosion monitoring. Automated identification of corrosion types on flanged joints supports more effective material protection strategies, reducing the risk of failure in critical infrastructure.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Structural Integrity and Reliability Analysis · Hydrogen embrittlement and corrosion behaviors in metals · Material Properties and Failure Mechanisms

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

References (69)

Show source-provided references
1. Nechache, A. & Bouzid, A. H. Creep analysis of bolted flange joints. Int. J. Press. Vessels Pip. 84, 185–194 (2007).10.1016/j.ijpvp.2006.06.004 ↗
2. Kölblinger, A. P., Tavares, S. S. M., Della Rovere, C. A. & Pimenta, A. R. Failure analysis of a flange of superduplex stainless steel by preferential corrosion of ferrite phase. Eng. Fail Anal. 134, 106098, https://doi.org/10.1016/J.ENGFAILANAL.2022.106098 (2022).10.1016/J.ENGFAILANAL.2022.106098 ↗
3. Nechache, A. & Bouzid, A. H. On the use of plate theory to evaluate the load relaxation in bolted flanged joints subjected to creep. Int. J. Press. Vessels Pip. 85, 486–497 (2008).10.1016/j.ijpvp.2008.01.005 ↗
4. Bouzid, A., Chaaban, A. & Bazergui, A. The Effect of Gasket Creep-Relaxation on the Leakage Tightness of Bolted Flanged Joints. J. Press Vessel Technol. 117, 71–78 (1995).10.1115/1.2842093 ↗
5. Bouzid, H., Derenne, M. & El-Rich, M. Effect of flange rotation and gasket width on leakage behavior of bolted flanged joints. (2004).
6. Bouzid, A., Chaaban, A. & Bazergui, A. The influence of the flange rotation on the leakage performance of bolted flanged joints. (1994).10.1115/1.2842093 ↗
7. Worden, K. Flange corrosion: Prevention and mitigation through better gasketing, Fuels and Petrochemicals Division 2014 - Core Programming Area at the 2014. AIChE Spring Meet. 10th Glob. Congr. Process Saf. 2, 1000–1008 (2014).
8. Kain, R. M. Gasket Materials and Other Factors Influencing the Crevice Corrosion Resistance of Stainless Steel Flanges, (1998). (accessed August 10, 2023).10.5006/C1998-98702 ↗
9. Farfan-Cabrera, L. I. et al. A crevice corrosion assessment method for joints of mechanical components sealed with composite structure gaskets – The case of the engine cylinder head/mono-block joint. Eng. Fail. Anal. 119 https://doi.org/10.1016/j.engfailanal.2020.104981 (2021).10.1016/j.engfailanal.2020.104981 ↗
10. Hakimian, S., Bouzid, A.-H. & Hof, L. A. Corrosion failures of flanged gasketed joints: A review. J. Adv. Join. Process. 9, 100200 (2024).10.1016/j.jajp.2024.100200 ↗
11. Hakimian, S., Bouzid, A.-H. & Hof, L. A. Effect of gap size on flange face corrosion. Mater. Corros. https://doi.org/10.1002/MACO.202414367 (2024).10.1002/MACO.202414367 ↗
12. Nyby, C. et al. Electrochemical metrics for corrosion resistant alloys. Sci. Data 8, 58 (2021).10.1038/s41597-021-00840-y ↗
13. Kearns, J. R., Scully, J. R., Roberge, P. R., Reichert, D. L. & Dawson, J. L. The identification of pitting and crevice corrosion spectra in electrochemical noise using an artificial neural network. Electrochem. Noise Meas. Corros. Appl. 1277, 157 (1996).
14. Nazarnezhad-Bajestani, M., Neshati, J. & Siadati, M. H. Determination of SS321 pitting stage in FeCl3 solution based on electrochemical noise measurement data using artificial neural network. J. Electroanalytical Chem. 845, 31–38 (2019).10.1016/j.jelechem.2019.05.036 ↗
15. Homborg, A. M. et al. A Critical Appraisal of the Interpretation of Electrochemical Noise for Corrosion Studies. Corrosion 70, 971–987 (2014).10.5006/1277 ↗
16. Al-Mazeedi, H. A. A. & Cottis, R. A. A practical evaluation of electrochemical noise parameters as indicators of corrosion type. Electrochim. Acta 49, 2787–2793 (2004).10.1016/j.electacta.2004.01.040 ↗
17. Xia, D. H. & Behnamian, Y. Electrochemical noise: a review of experimental setup, instrumentation and DC removal. Russian J. Electrochem. 51, 593–601 (2015).10.1134/S1023193515070071 ↗
18. Hladky, K. & Dawson, J. L. The measurement of localized corrosion using electrochemical noise. Corros. Sci. 21, 317–322 (1981).10.1016/0010-938X(81)90006-8 ↗
19. Xia, D. H., Song, S. Z. & Behnamian, Y. Detection of corrosion degradation using electrochemical noise (EN): review of signal processing methods for identifying corrosion forms. Corros. Eng. Sci. Technol. 51, 527–544 (2016).
20. Jamali, S. S., Wu, Y., Homborg, A. M., Lemay, S. G. & Gooding, J. J. Interpretation of stochastic electrochemical data. Curr. Opin. Electrochem 46, 101505 (2024).10.1016/j.coelec.2024.101505 ↗
21. Homborg, A. M. et al. Application of transient analysis using Hilbert spectra of electrochemical noise to the identification of corrosion inhibition. Electrochim. Acta 116, 355–365 (2014).10.1016/j.electacta.2013.11.084 ↗
22. Xia, D.-H. et al. Review—Electrochemical Noise Applied in Corrosion Science: Theoretical and Mathematical Models towards Quantitative Analysis. J. Electrochem Soc. 167, 081507 (2020).10.1149/1945-7111/ab8de3 ↗
23. Ramírez-Platas, M., Morales-Cabrera, M. A., Rivera, V. M., Morales-Zarate, E. & Hernandez-Martinez, E. Fractal and multifractal analysis of electrochemical noise to corrosion evaluation in A36 steel and AISI 304 stainless steel exposed to MEA-CO2 aqueous solutions. Chaos Solitons Fractals 145, 110802, https://doi.org/10.1016/J.CHAOS.2021.110802 (2021).10.1016/J.CHAOS.2021.110802 ↗
24. Homborg, A. M. et al. Novel time–frequency characterization of electrochemical noise data in corrosion studies using Hilbert spectra. Corros. Sci. 66, 97–110 (2013).10.1016/j.corsci.2012.09.007 ↗
25. Abdulmutaali, A., Hou, Y., Aldrich, C. & Lepkova, K. An Online Monitoring Approach of Carbon Steel Corrosion via the Use of Electrochemical Noise and Wavelet Analysis. Metals 2024 14, 66 (2024).
26. Xia, D. H. et al. Assessing atmospheric corrosion of metals by a novel electrochemical sensor combining with a thin insulating net using electrochemical noise technique. Sens Actuators B Chem. 252, 353–358 (2017).10.1016/j.snb.2017.05.179 ↗
27. Xia, D. H. et al. On the localized corrosion of AA5083 in a simulated dynamic seawater/air interface—Part 1: Corrosion initiation mechanism, Corros Sci 213 https://doi.org/10.1016/j.corsci.2023.110985 (2023).10.1016/j.corsci.2023.110985 ↗
28. Zhao, R., Xia, D. H., Song, S. Z. & Hu, W. Detection of SCC on 304 stainless steel in neutral thiosulfate solutions using electrochemical noise based on chaos theory. Anti-Corros. Methods Mater. 64, 241–251 (2017).10.1108/ACMM-10-2015-1581 ↗
29. Homborg, A., Mol, A. & Tinga, T. Corrosion classification through deep learning of electrochemical noise time-frequency transient information. Eng. Appl Artif. Intell. 133, 108044 (2024).10.1016/j.engappai.2024.108044 ↗
30. Hou, Y., Aldrich, C., Lepkova, K., Machuca, L. L. & Kinsella, B. Analysis of electrochemical noise data by use of recurrence quantification analysis and machine learning methods. Electrochim. Acta 256, 337–347 (2017).10.1016/j.electacta.2017.09.169 ↗
31. Nazarnezhad-Bajestani, M.… J.N.-J. of, undefined 2019, Determination of SS321 pitting stage in FeCl3 solution based on electrochemical noise measurement data using artificial neural network, Elsevier (n.d.). https://www.sciencedirect.com/science/article/pii/S1572665719303935 (accessed June 25, 2024).10.1016/j.jelechem.2019.05.036 ↗
32. Alves, L. M. et al. Identification of Corrosive Substances and Types of Corrosion Through Electrochemical Noise Using Signal Processing and Machine Learning. J. Control, Autom. Electr. Syst. 30, 16–26 (2019).10.1007/s40313-018-00423-0 ↗
33. Abdulmutaali, A., Aldrich, C., Lepkova, K. Unsupervised process monitoring of corrosion based on electrochemical noise and multivariate image analysis. Npj Mater Degrad. 9 https://doi.org/10.1038/s41529-025-00585-8 (2025).10.1038/s41529-025-00585-8 ↗
34. Jian, L. et al. Determination of Corrosion Types from Electrochemical Noise by Artificial Neural Networks. Int J. Electrochem Sci. 8, 2365–2377 (2013).10.1016/S1452-3981(23)14315-X ↗
35. Durstewitz, D., Koppe, G. & Thurm, M. I. Reconstructing computational system dynamics from neural data with recurrent neural networks. Nat. Rev. Neurosci. 24, 693–710 (2023).10.1038/s41583-023-00740-7 ↗
36. Mienye, I. D., Swart, T. G. & Obaido, G. Recurrent Neural Networks: A Comprehensive Review of Architectures, Variants, and Applications. Information 2024 15, 517 (2024).
37. Graves, A., Mohamed, A. R., Hinton, G. Speech recognition with deep recurrent neural networks, ICASSP, IEEE International Conference on Acoustics, Speech and Signal Processing - Proceedings 6645–6649. (2013)10.1109/ICASSP.2013.6638947 ↗
38. Yin, W., Kann, K., Yu, M., SchützeSch, H. & Munich, L. Comparative Study of CNN and RNN for Natural Language Processing, (2017). https://arxiv.org/abs/1702.01923v1 (accessed October 21, 2024).
39. Hakimian, S., Bouzid, A. H., Hof, L. A. An Improved Fixture to Quantify Corrosion in Bolted Flanged Gasketed Joints, Journal of Pressure Vessel Technology, Transactions of the ASME 146 https://doi.org/10.1115/1.4063975/1169913. (2024).10.1115/1.4063975/1169913 ↗
40. Homborg, A. M., Oonincx, P. J. & Mol, J. M. C. Wavelet Transform Modulus Maxima and Holder Exponents Combined with Transient Detection for the Differentiation of Pitting Corrosion Using Electrochemical Noise. Corrosion 74, 1001–1010 (2018).10.5006/2788 ↗
41. Hu, Q., Qiu, Y. B., Guo, X. P. & Huang, J. Y. Crevice corrosion of Q235 carbon steels in a solution of NaHCO3 and NaCl. Corros. Sci. 52, 1205–1212 (2010).10.1016/j.corsci.2010.01.006 ↗
42. Hakimian, S., Bouzid, A.-H. & Hof, L. A. Effect of gasket material on flange face corrosion. Int. J. Press. Vessels Pip. 209, 105207 (2024).10.1016/j.ijpvp.2024.105207 ↗
43. Hou, Y., Aldrich, C., Lepkova, K., Machuca, L. L. & Kinsella, B. Monitoring of carbon steel corrosion by use of electrochemical noise and recurrence quantification analysis. Corros. Sci. 112, 63–72 (2016).10.1016/j.corsci.2016.07.009 ↗
44. ASME B16.21, Nonmetallic Flat Gaskets for Pipe Flanges, ASME International (2022). https://www.asme.org/codes-standards/find-codes-standards/b16-21-nonmetallic-flat-gaskets-pipe-flanges (accessed March 25, 2024).
45. Pourrahimi, S., Hof, L. A. On the Post-Processing of Complex Additive Manufactured Metallic Parts: A Review, Adv Eng Mater 2301511. https://doi.org/10.1002/ADEM.202301511 (2024).10.1002/ADEM.202301511 ↗
46. Murali Krishna, M., Shunmugam, M. S. & Siva Prasad, N. A study on the sealing performance of bolted flange joints with gaskets using finite element analysis. Int. J. Press. Vessels Pip. 84, 349–357 (2007).10.1016/j.ijpvp.2007.02.001 ↗
47. scikit-learn: machine learning in Python — scikit-learn 1.0.1 documentation, (n.d.). https://scikit-learn.org/stable/ (accessed November 17, 2021).
48. Virtanen, P., Gommers, R. & Oliphant, T. E. SciPy 1.0: fundamental algorithms for scientific computing in Python. Nat. Methods 17, 261–272 (2020).10.1038/s41592-019-0686-2 ↗
49. Schmidt, R. M. Recurrent Neural Networks (RNNs): A gentle Introduction and Overview. (2019). https://arxiv.org/abs/1912.05911v1 (accessed October 22, 2024).
50. Salehinejad, H., Sankar, S., Barfett, J., Colak, E. & Valaee, S. Recent Advances in Recurrent Neural Networks. (2017). https://arxiv.org/abs/1801.01078v3 (accessed October 22, 2024).
51. Jun, K., Lee, D. W., Lee, K., Lee, S. & Kim, M. S. Feature Extraction Using an RNN Autoencoder for Skeleton-Based Abnormal Gait Recognition. IEEE Access 8, 19196–19207 (2020).10.1109/ACCESS.2020.2967845 ↗
52. Pascanu, R., Mikolov, T. & Bengio, Y. On the difficulty of training Recurrent Neural Networks. 30th Int. Conf. Mach. Learn., ICML 2013, 2347–2355 (2012). https://arxiv.org/abs/1211.5063v2 (accessed October 22, 2024)...
53. Yu, Y., Si, X., Hu, C. & Zhang, J. A Review of Recurrent Neural Networks: LSTM Cells and Network Architectures. Neural Comput 31, 1235–1270 (2019).10.1162/neco_a_01199 ↗
54. Dey, R. & Salemt, F. M. Gate-variants of Gated Recurrent Unit (GRU) neural networks, Midwest Symposium on Circuits and Systems 2017-August 1597–1600. (2017).10.1109/MWSCAS.2017.8053243 ↗
55. Abadi, M. et al. Research, TensorFlow: Large-Scale Machine Learning on Heterogeneous Distributed Systems, (n.d.). www.tensorflow.org. (accessed October 22, 2024).
56. Sak, H. H., Senior, A. & Google, B. Long Short-Term Memory Recurrent Neural Network Architectures for Large Scale Acoustic Modeling, https://doi.org/10.21437/Interspeech.2014-80 (2014).10.21437/Interspeech.2014-80 ↗
57. GRU — PyTorch 2.5 documentation, (n.d.). https://pytorch.org/docs/stable/generated/torch.nn.GRU.html# (accessed October 22, 2024).
58. Nguyen, H. D., Tran, K. P., Thomassey, S. & Hamad, M. Forecasting and Anomaly Detection approaches using LSTM and LSTM Autoencoder techniques with the applications in supply chain management. Int J. Inf. Manag. 57, 102282 (2021).
59. Speiser, J. L., Miller, M. E., Tooze, J. & Ip, E. A comparison of random forest variable selection methods for classification prediction modeling. Expert Syst. Appl 134, 93–101 (2019).10.1016/j.eswa.2019.05.028 ↗
60. Shi, N., Liu, X. & Guan, Y. Research on k-means clustering algorithm: An improved k-means clustering algorithm, 3rd International Symposium on Intelligent Information Technology and Security Informatics. IITSI 2010 63–67. (2010).10.1109/IITSI.2010.74 ↗
61. Likas, A., Vlassis, N. & J. Verbeek, J. The global k-means clustering algorithm. Pattern Recognit. 36, 451–461 (2003).10.1016/S0031-3203(02)00060-2 ↗
62. Yu, T. & Zhu, H. Hyper-Parameter Optimization: A Review of Algorithms and Applications. (2020). https://arxiv.org/abs/2003.05689v1 (accessed October 22, 2024).
63. Liashchynskyi, P. & Liashchynskyi, P. Grid Search, Random Search, Genetic Algorithm: A Big Comparison for NAS. (2019). https://arxiv.org/abs/1912.06059v1 (accessed November 13, 2024).
64. Victoria, A. H. & Maragatham, G. Automatic tuning of hyperparameters using Bayesian optimization. Evol. Syst. 12, 217–223 (2021).10.1007/s12530-020-09345-2 ↗
65. Wu, J. et al. Hyperparameter Optimization for Machine Learning Models Based on Bayesian Optimization. J. Electron. Sci. Technol. 17, 26–40 (2019).
66. Wong, T. T. & Yeh, P. Y. Reliable Accuracy Estimates from k-Fold Cross Validation. IEEE Trans. Knowl. Data Eng. 32, 1586–1594 (2020).10.1109/TKDE.2019.2912815 ↗
67. D.M.W. Powers, Ailab, Evaluation: from precision, recall and F-measure to ROC, informedness, markedness and correlation. (2020). https://arxiv.org/abs/2010.16061v1 (accessed October 22, 2024).
68. Chicco, D. & Jurman, G. The advantages of the Matthews correlation coefficient (MCC) over F1 score and accuracy in binary classification evaluation. BMC Genomics 21, 1–13 (2020).10.1186/s12864-019-6413-7 ↗
69. Deng, X., Liu, Q., Deng, Y. & Mahadevan, S. An improved method to construct basic probability assignment based on the confusion matrix for classification problem. Inf. Sci. (N. Y) 340–341, 250–261 (2016).10.1016/j.ins.2016.01.033 ↗