Machine Learning-Based Pitting Rate Classification and Prediction for 316L Stainless Steel in NaClO3 and NaCl Environment
Abstract
1. Introduction
2. Methodology
2.1. Immersion Test Methods
2.2. Development of ADASYN-FFNN Model
2.3. Model Training
2.4. Other Machine Learning Algorithms
3. Results and Discussion
3.1. Immersion Corrosion Test Results
3.2. Optimal Hyperparameters of the Models
3.3. Predictive Performance of the Models
3.3.1. Evaluation Metrics
3.3.2. Performance Score Comparison
3.3.3. Comparison of Confusion Matrices
4. Conclusions
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
Abbreviations
| ML | Machine Learning |
| ADASYN | Adaptive Synthetic Sampling |
| FFNN | Feedforward Neural Network |
| SVM | Support Vector Machine |
| ANN | Artificial Neural Network |
| SMOTE | Synthetic Minority Over-sampling Technique |
| RF | Random Forest |
| WOA | Whale Optimization Algorithm |
| KNN | K-Nearest Neighbors |
| SEM | Scanning Electron Microscope |
| OM | Optical Microscope |
| RMSProp | Root Mean Square Propagation |
| ReLU | Rectified Linear Unit |
| SGD | Stochastic Gradient Descent |
| RBF | Radial Basis Function |
| TPE | Tree-structured Parzen Estimator |
| ACC | Accuracy |
| PRE | Precision |
| REC | Recall |
| TP | True Positive |
| FP | False Positive |
| FN | False Negative |
References
- Costa, R.D.F.S.; Barbosa, M.L.S.; Silva, F.J.G.; Sousa, S.R.; Sousa, V.F.C.; Ferreira, B.O. Study of the Chlorine Influence on the Corrosion of Three Steels to Be Used in Water Treatment Municipal Facilities. Materials 2023, 16, 2514. [Google Scholar] [CrossRef]
- Xie, J.J.; Ningyu, H.; Sun, X.; Yang Zhan, J. Corrosion Behavior of 316L Stainless Steel under Cl− Corrosion Medium. IOP Conf. Ser. Mater. Sci. Eng. 2020, 711, 012058. [Google Scholar] [CrossRef]
- Malik, A.U.; Mayan Kutty, P.C.; Siddiqi, N.A.; Andijani, I.N.; Ahmed, S. The Influence of pH and Chloride Concentration on the Corrosion Behaviour of AISI 316L Steel in Aqueous Solutions. Corros. Sci. 1992, 33, 1809–1827. [Google Scholar] [CrossRef]
- Akpanyung, K.V.; Loto, R.T. Pitting Corrosion Evaluation: A Review. J. Phys. Conf. Ser. 2019, 1378, 022088. [Google Scholar] [CrossRef]
- Liu, G.; Tong, H.; Li, Y.; Tan, Q.; Zhu, Y. Passivation Behavior of S136H Steel in Neutral Electrolytes Composed of NaClO3 and NaNO3 and Its Influence on Micro Electrochemical Machining Performance. Mater. Today Commun. 2021, 29, 102762. [Google Scholar] [CrossRef]
- Safizadeh, F.; Sorour, N.; Ghali, E.; Houlachi, G. Corrosion Behavior of Fe-Mo and Fe-Mo-P Cathodic Coatings in the Simulated Electrolyte for Sodium Chlorate Production. Electrochim. Acta 2018, 269, 340–349. [Google Scholar] [CrossRef]
- Liu, G.; Shi, J.; Yang, Y.; Gong, Z.; Li, C. Effects of Passivation Behavior on Micro-Electrochemical Machining (ECM) Performance of Stainless Steels with Different Metallographic Phases in NaNO3 and NaClO3 Solutions. Int. J. Adv. Manuf. Technol. 2024, 130, 3867–3876. [Google Scholar] [CrossRef]
- Yao, J.; Zhang, S.; Chen, S.; He, M.; Han, J.; Zhang, Z.; Chen, X. Competitive Adsorption and Unexpected Corrosion Inhibition Effect of 316L Stainless Steel in NaClO3 and NaCl Environment of Chlor-Alkali Industry. Corros. Sci. 2026, 264, 113777. [Google Scholar] [CrossRef]
- Dobosz, L.M. Electrochemical Assessment of Corrosion Behavior of 316 Stainless Steel in Sodium Chlorate Solutions. NACE Int. Corros. Conf. Ser. 2012, 5, 3966–3977. [Google Scholar] [CrossRef]
- ASTM G61; Standard Test Method for Conducting Cyclic Potentiodynamic Polarization Measurements for Localized Corrosion Susceptibility of Iron-, Nickel-, or Cobalt-Based Alloys. ASTM International: West Conshohocken, PA, USA, 2018.
- ASTM G150; Standard Test Method for Electrochemical Critical Pitting Temperature Testing of Stainless Steels and Related Alloys. ASTM International: West Conshohocken, PA, USA, 2018.
- ASTM G48; Standard Test Methods for Pitting and Crevice Corrosion Resistance of Stainless Steels and Related Alloys by Use of Ferric Chloride Solution. ASTM International: West Conshohocken, PA, USA, 2015.
- ASTM G46; Standard Guide for Examination and Evaluation of Pitting Corrosion. ASTM International: West Conshohocken, PA, USA, 2021.
- Jiménez-Come, M.J.; Turias Domínguez, I.J.; Matres, V. Prediction of Pitting Corrosion Status of EN 1.4404 Stainless Steel by Using a 2-Stage Procedure Based on Support Vector Machines. J. Chemom. 2017, 31, e2936. [Google Scholar] [CrossRef]
- Jiménez-Come, M.J.; Turias, I.J.; Ruiz-Aguilar, J.J. Pitting Corrosion Behaviour Modelling of Stainless Steel with Support Vector Machines. Mater. Corros. 2015, 66, 915–924. [Google Scholar] [CrossRef]
- Jiménez-Come, M.J.; de la Luz Martín, M.; Matres, V. A Support Vector Machine-Based Ensemble Algorithm for Pitting Corrosion Modeling of EN 1.4404 Stainless Steel in Sodium Chloride Solutions. Mater. Corros. 2019, 70, 19–27. [Google Scholar] [CrossRef]
- Jafari, E.; Jafari, A.; Hadianfard, M.J. Prediction of Pitting Corrosion of Surface Treated AISI 316L Stainless Steel by Artificial Neural Network. Corros. Eng. Sci. Technol. 2011, 46, 762–766. [Google Scholar] [CrossRef]
- Aghaaminiha, M.; Mehrani, R.; Colahan, M.; Brown, B.; Singer, M.; Nesic, S.; Vargas, S.M.; Sharma, S. Machine Learning Modeling of Time-Dependent Corrosion Rates of Carbon Steel in Presence of Corrosion Inhibitors. Corros. Sci. 2021, 193, 109904. [Google Scholar] [CrossRef]
- Jiménez–Come, M.J.; Turias, I.J.; Trujillo, F.J. An Automatic Pitting Corrosion Detection Approach for 316L Stainless Steel. Mater. Des. (1980-2015) 2014, 56, 642–648. [Google Scholar] [CrossRef]
- Jalili, S.; Jaberi, A.; Mahjani, M.G.; Jafarian, M. Prediction of Lead Corrosion Behavior Using Feed-Forward Artificial Neural Network. J. Iran. Chem. Soc. 2008, 5, 669–676. [Google Scholar] [CrossRef]
- Hu, Q.; Liu, G.; Li, B.; Hu, S.; Chen, J.; Liu, H. Study on Prediction of Soil Corrosion in Power Grounding Based on Artificial Neural Network. In Proceedings of the Second International Conference on Big Data, Computational Intelligence, and Applications (BDCIA 2024), Huanggang, China, 15–17 November 2024; Agaian, S.S., Ed.; SPIE: Bellingham, WA, USA, 2025; p. 143. [Google Scholar]
- Pascal, M. Hybrid Feedforward Neural Network for Pressure Vessel Internal Corrosion Prediction: Integrating Chemical Models with Inspection Data for Structural Integrity Assessment. Fract. Struct. Integr. 2026, 20, 49–66. [Google Scholar] [CrossRef]
- Gosain, A.; Sardana, S. Handling Class Imbalance Problem Using Oversampling Techniques: A Review. In Proceedings of the 2017 International Conference on Advances in Computing, Communications and Informatics (ICACCI), Manipal, India, 13–16 September 2017; pp. 79–85. [Google Scholar]
- Jiang, K.; Lu, J.; Xia, K. A Novel Algorithm for Imbalance Data Classification Based on Genetic Algorithm Improved SMOTE. Arab. J. Sci. Eng. 2016, 41, 3255–3266. [Google Scholar] [CrossRef]
- Swana, E.F.; Doorsamy, W.; Bokoro, P. Tomek Link and SMOTE Approaches for Machine Fault Classification with an Imbalanced Dataset. Sensors 2022, 22, 3246. [Google Scholar] [CrossRef]
- Sutojo, T.; Rustad, S.; Akrom, M.; Syukur, A.; Shidik, G.F.; Dipojono, H.K. A Machine Learning Approach for Corrosion Small Datasets. npj Mater. Degrad. 2023, 7, 18. [Google Scholar] [CrossRef]
- Terrados-Cristos, M.; Diaz-Piloneta, M.; Ortega-Fernández, F.; Martinez-Huerta, G.M.; Alvarez-Cabal, J.V. Corrosion Risk Assessment in Coastal Environments Using Machine Learning-Based Predictive Models. Sensors 2025, 25, 4231. [Google Scholar] [CrossRef]
- Wan, H.; Liu, S.; Song, D.; Cai, W.; Wang, Y.; Geng, L.; Chen, C. Prediction of Industrial Atmospheric Corrosion and Evaluation of Influencing Factors Based on Machine Learning. J. Mater. Eng. Perform. 2025, 34, 24589–24599. [Google Scholar] [CrossRef]
- Patel, P.; Aryai, V.; Arzaghi, E.; Kafian, H.; Abbassi, R.; Garaniya, V. Classification of Pitting Corrosion Damage in Process Facilities Using Supervised Machine Learning. Can. J. Chem. Eng. 2025, 103, 153–169. [Google Scholar] [CrossRef]
- He, H.; Bai, Y.; Garcia, E.A.; Li, S. ADASYN: Adaptive Synthetic Sampling Approach for Imbalanced Learning. In Proceedings of the 2008 IEEE International Joint Conference on Neural Networks (IEEE World Congress on Computational Intelligence), Hong Kong, China, 1–8 June 2008; pp. 1322–1328. [Google Scholar]
- Ahmed, G.; Er, M.J.; Fareed, M.M.S.; Zikria, S.; Mahmood, S.; He, J.; Asad, M.; Jilani, S.F.; Aslam, M. DAD-Net: Classification of Alzheimer’s Disease Using ADASYN Oversampling Technique and Optimized Neural Network. Molecules 2022, 27, 7085. [Google Scholar] [CrossRef]
- Saqib, S.M.; Mazhar, T.; Iqbal, M.; Shahazad, T.; Almogren, A.; Rehman, A.U.; Hamam, H. Enhancing Electricity Theft Detection with ADASYN-Enhanced Machine Learning Models. Electr. Eng. 2025, 107, 10525–10542. [Google Scholar] [CrossRef]
- Zhang, Y.; Qiao, J.; Li, T.; Ma, C.; Zeng, P.; Li, S.; Zou, M.; Zheng, X. An Improved LightGBM Model with ADASYN and Whale Optimization Algorithm for Rockburst Intelligent Prediction. Rock Mech. Rock Eng. 2026. [Google Scholar] [CrossRef]
- SY/T 0087.1-2018; Standard for Corrosion Evaluation of Steel Pipelines and Storage Tanks Part 1: Direct Evaluation of External Corrosion of Buried Steel Pipelines. National Energy Administration of China: Beijing, China, 2018.
- Altabey, W.A. FE and ANN Model of ECS to Simulate the Pipelines Suffer from Internal Corrosion. Struct. Monit. Maint. 2016, 3, 297–314. [Google Scholar] [CrossRef]
- Kubisztal, J.; Kubisztal, M.; Haneczok, G. Corrosion Damage of 316L Steel Surface Examined Using Statistical Methods and Artificial Neural Network. Mater. Corros. 2020, 71, 1842–1855. [Google Scholar] [CrossRef]
- Lo, M.; Vijaya Kumar, S.D.; Karuppanan, S.; Ovinis, M. An Artificial Neural Network-Based Equation for Predicting the Remaining Strength of Mid-to-High Strength Pipelines with a Single Corrosion Defect. Appl. Sci. 2022, 12, 1722. [Google Scholar] [CrossRef]
- Ossai, C.I. A Data-Driven Machine Learning Approach for Corrosion Risk Assessment—A Comparative Study. Big Data Cogn. Comput. 2019, 3, 28. [Google Scholar] [CrossRef]
- Hornik, K.; Stinchcombe, M.; White, H. Multilayer Feedforward Networks Are Universal Approximators. Neural Netw. 1989, 2, 359–366. [Google Scholar] [CrossRef]
- Cybenko, G. Approximation by Superpositions of a Sigmoidal Function. Math. Control Signals Syst. 1989, 2, 303–314. [Google Scholar] [CrossRef]
- Hornik, K. Approximation Capabilities of Multilayer Feedforward Networks. Neural Netw. 1991, 4, 251–257. [Google Scholar] [CrossRef]
- Romanowicz, P.J.; Szybiński, B.; Barski, M.; Stawiarski, A.; Pałac, M. Application of FEM Analyses and Neural Networks Approach in Multi-Stage Optimisation of Notched Steel Structures Subjected to Fatigue Loadings. Appl. Sci. 2025, 15, 11194. [Google Scholar] [CrossRef]
- Santurkar, S.; Tsipras, D.; Ilyas, A.; Madry, A. How Does Batch Normalization Help Optimization? In Proceedings of the Advances in Neural Information Processing Systems, Montreal, QC, Canada, 3–8 December 2018; Curran Associates, Inc.: New York, NY, USA, 2018; Volume 31. [Google Scholar]
- Srivastava, N.; Hinton, G.; Krizhevsky, A.; Sutskever, I.; Salakhutdinov, R. Dropout: A Simple Way to Prevent Neural Networks from Overfitting. J. Mach. Learn. Res. 2014, 15, 1929–1958. [Google Scholar]
- Bishop, C.M. Pattern Recognition and Machine Learning; Springer: New York, NY, USA, 2006. [Google Scholar]
- Kingma, D.P.; Ba, J. Adam: A Method for Stochastic Optimization. arXiv 2017, arXiv:1412.6980. [Google Scholar] [CrossRef]
- Claesen, M.; Moor, B.D. Hyperparameter Search in Machine Learning. arXiv 2015, arXiv:1502.02127. [Google Scholar] [CrossRef]
- Akiba, T.; Sano, S.; Yanase, T.; Ohta, T.; Koyama, M. Optuna: A next-Generation Hyperparameter Optimization Framework. In Proceedings of the 25th ACM SIGKDD International Conference on Knowledge Discovery & Data Mining, Anchorage, AK, USA, 4–8 August 2019; Association for Computing Machinery: New York, NY, USA, 2019; pp. 2623–2631. [Google Scholar]
- Kheradmanda, S.; Nematollahi, O.; Ayoobia, A.R. Clearness Index Predicting Using an Integrated Artificial Neural Network (ANN) Approach. Renew. Sustain. Energy Rev. 2016, 58, 1357–1365. [Google Scholar] [CrossRef]
- Jarren, L.C.; Gazenbiller, E.; Arya, V.; Reitz, R.; Oechsner, M.; Feiler, C.; Zheludkevich, M.L.; Höche, D. Machine Learning–Assisted Risk Assessment of Pitting Corrosion Susceptibility of AA1050 in Ethanol-Containing Fuels. Mater. Corros. 2025, 76, 398–407. [Google Scholar] [CrossRef]
- Al-Zamzami, M.; Al-Gheethi, A.; Alzaeemi, S.A.; Al-Sahari, M.; Al-Maqtari, Q.; Noman, E. Validity of Zinc Oxide Nanoparticles Biosynthesized in Food Wastes Extract in Treating Real Samples of Printing Ink Wastewater; Prediction Models Using Feed-Forward Neural Network (FFNN). Chemosphere 2024, 362, 142793. [Google Scholar] [CrossRef]












| Element | C | Cr | Ni | Mo | Si | S | P | Mn | Fe |
|---|---|---|---|---|---|---|---|---|---|
| Content (wt.%) | 0.03 | 16.24 | 11.05 | 2.01 | 0.72 | 0.012 | 0.035 | 1.93 | Bal. |
| SY/T 0087.1 | Low | Moderate | High | Severe |
|---|---|---|---|---|
| Max. pitting rate (mm/a) | <0.305 | 0.305–0.611 | 0.611–2.438 | >2.438 |
| Grade code | I | II | III | IV |
| Temperature (°C) | NaClO3 (g/L) | pH | Immersion Time (day) | Grade Code |
|---|---|---|---|---|
| 90 | 0 | 7 | 7 | I |
| 120 | 0 | 2 | 7 | III |
| … | … | … | … | … |
| 120 | 0 | 2 | 14 | II |
| 120 | 6 | 2 | 21 | III |
| 120 | 20 | 2 | 30 | III |
| 150 | 40 | 2 | 7 | IV |
| 150 | 0 | 2 | 7 | IV |
| 200 | 0 | 7 | 7 | I |
| 200 | 0 | 7 | 14 | I |
| 200 | 0 | 7 | 30 | III |
| Model | Hyperparameter | Search Range [18,49,50,51] |
|---|---|---|
| FFNN | hidden1 layer size: | 5–20 |
| hidden2 layer size: | 5–20 | |
| RandForest | n_estimators: | 50–300 |
| max_depth: | 2–30 | |
| min_samples_leaf: | 2–20 | |
| min_samples_split: | 1–10 | |
| SVM | C: | 10−2–103 |
| γ: | 10−4–101 | |
| KNN | K: | 1–30 |
| weights: | uniform, distance | |
| metric: | euclidean, manhattan, minkowski |
| Model | Hyperparameter | Optimal Value |
|---|---|---|
| FFNN | hidden1 layer size: | 9 |
| hidden2 layer size: | 12 | |
| RandForest | n_estimators: | 221 |
| max_depth: | 25 | |
| min_samples_leaf: | 8 | |
| min_samples_split: | 5 | |
| SVM | C: | 92.705 |
| γ: | 0.876 | |
| KNN | K: | 16 |
| weights: | uniform | |
| metric: | manhattan |
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
Zhang, C.; Yao, J.; Zhang, Z. Machine Learning-Based Pitting Rate Classification and Prediction for 316L Stainless Steel in NaClO3 and NaCl Environment. Materials 2026, 19, 1979. https://doi.org/10.3390/ma19101979
Zhang C, Yao J, Zhang Z. Machine Learning-Based Pitting Rate Classification and Prediction for 316L Stainless Steel in NaClO3 and NaCl Environment. Materials. 2026; 19(10):1979. https://doi.org/10.3390/ma19101979
Chicago/Turabian StyleZhang, Cheng, Jiaxin Yao, and Zhe Zhang. 2026. "Machine Learning-Based Pitting Rate Classification and Prediction for 316L Stainless Steel in NaClO3 and NaCl Environment" Materials 19, no. 10: 1979. https://doi.org/10.3390/ma19101979
APA StyleZhang, C., Yao, J., & Zhang, Z. (2026). Machine Learning-Based Pitting Rate Classification and Prediction for 316L Stainless Steel in NaClO3 and NaCl Environment. Materials, 19(10), 1979. https://doi.org/10.3390/ma19101979

