Machine Learning-Based Prediction of Multi-Year Cumulative Atmospheric Corrosion Loss in Low-Alloy Steels with SHAP Analysis
Highlights
- Five ML models were trained on a 600-sample ISO 9223:2012-grounded dataset for cumulative atmospheric corrosion prediction.
- Gradient boosting achieves the best accuracy: R2 = 0.968, RMSE = 10.58 µm, and MAPE = 12.6%.
- XGBoost ranks second (R2 = 0.958), outperforming SVR, random forest, and ridge regression.
- SHAP analysis identified the SO2 deposition rate, exposure time, and relative humidity as top predictors, which is consistent with ISO 9223 physics.
- The ISO 9223 corrosivity category hierarchy (CX > C5 > C4 > C3 > C2) was fully validated across the dataset.
- Multi-year cumulative corrosion loss can be predicted with R2 > 0.96 from 11 environmental and material inputs.
- Exposure time as an explicit feature is essential for accurate multi-year service-life planning.
- In C5/CX environments, barrier coatings are critical; in C2/C3 environments, Cu and Cr alloying provides effective protection.
- SHAP interpretability confirms ML recovers ISO 9223/9224 physics, demonstrating physics-consistency, not just data interpolation.
- Physics-grounded synthetic datasets enable reproducible ML benchmarks for corrosion science.
Abstract
1. Introduction
2. Materials and Methods
2.1. Dataset Construction and Physical Grounding
| Feature (Symbol) | Range/Values | Unit | Reference |
|---|---|---|---|
| Temperature (T) | −8 to 35 | °C | [10,23] |
| Relative Humidity (RH) | 55 to 95 | % | [10,23] |
| SO2 deposition (Pd) | 0.7 to 150 | mg/(m2·d) | [10,28] |
| Cl− deposition (Sd) | 0.4 to 300 | mg/(m2·d) | [10,23] |
| Exposure time (t) | 1, 2, 3, 4, 5, 6, 8, 10 | years | [11,14,15] |
| Cu content | 0.01 to 0.50 | wt% | [14,25] |
| Cr content | 0.00 to 1.20 | wt% | [14,26] |
| Ni content | 0.00 to 0.80 | wt% | [14,23] |
| P content | 0.005 to 0.120 | wt% | [14,23] |
| Si content | 0.10 to 0.50 | wt% | [14,23] |
| Mn content | 0.30 to 1.50 | wt% | [14,23] |
2.2. Data Preprocessing and Train-Test Split
2.3. Machine Learning Algorithms
2.4. Model Evaluation
2.5. SHAP Interpretability Analysis
3. Results
3.1. Dataset Characteristics and Correlation Analysis
3.2. Comparative Model Performance
3.3. Residual Diagnostics
3.4. SHAP Feature Importance and Interpretability
3.5. Corrosion Loss by ISO 9223 Category and Alloying Element Effects
4. Discussion
5. Conclusions
Supplementary Materials
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
References
- Hou, B.; Li, X.; Ma, X.; Du, C.; Zhang, D.; Zheng, M.; Xu, W.; Lu, D.; Ma, F. The Cost of Corrosion in China. npj Mater. Degrad. 2017, 1, 4. [Google Scholar] [CrossRef] [Scilit]
- Koch, G.; Varney, J.; Thompson, N.; Moghissi, O.; Gould, M.; Payer, J. International Measures of Prevention, Application, and Economics of Corrosion Technologies Study (IMPACT); NACE International: Houston, TX, USA, 2016. [Google Scholar]
- Sørensen, P.A.; Kiil, S.; Dam-Johansen, K.; Weinell, C.E. Anticorrosive Coatings: A Review. J. Coat. Technol. Res. 2009, 6, 135–176. [Google Scholar] [CrossRef] [Scilit]
- Dalmora, G.P.V.; Borges Filho, E.P.; Maraschin Conterato, A.A.; Roso, W.S.; Pereira, C.E.; Dettmer, A. Methods of Corrosion Prevention for Steel in Marine Environments: A Review. Results Surf. Interfaces 2025, 18, 100430. [Google Scholar] [CrossRef] [Scilit]
- Lazorenko, G.; Kasprzhitskii, A.; Nazdracheva, T. Anti-Corrosion Coatings for Protection of Steel Railway Structures Exposed to Atmospheric Environments: A Review. Constr. Build. Mater. 2021, 288, 123115. [Google Scholar] [CrossRef] [Scilit]
- Melchers, R.E. Predicting Long-Term Corrosion of Metal Alloys in Physical Infrastructure. npj Mater. Degrad. 2019, 3, 4. [Google Scholar] [CrossRef] [Scilit]
- Chen, W.; Ma, L.; Li, Y.; Wu, D.; Zhou, K.; Wang, J.; Chen, Z.; Guo, X.; Li, Z.; Chowwanonthapunya, T.; et al. Prediction of Coating Degradation Based on “Environmental Factors–Physical Property–Corrosion Failure” Two-Stage Machine Learning. npj Mater. Degrad. 2025, 9, 67. [Google Scholar] [CrossRef] [Scilit]
- Liu, C.; Bi, Q.; Leyland, A.; Matthews, A. An Electrochemical Impedance Spectroscopy Study of the Corrosion Behaviour of PVD Coated Steels in 0.5 N NaCl Aqueous Solution: Part II: EIS Interpretation of Corrosion Behaviour. Corros. Sci. 2003, 45, 1257–1273. [Google Scholar] [CrossRef] [Scilit]
- López-Ortega, A.; Bayón, R.; Arana, J.L. Evaluation of Protective Coatings for High-Corrosivity Category Atmospheres in Offshore Applications. Materials 2019, 12, 1325. [Google Scholar] [CrossRef] [Scilit]
- ISO 9223:2012; Corrosion of Metals and Alloys—Corrosivity of Atmospheres—Classification, Determination and Estimation. ISO: Geneva, Switzerland, 2012.
- ISO 9224:2012; Corrosion of Metals and Alloys—Corrosivity of Atmospheres—Guiding Values for the Corrosivity Categories. ISO: Geneva, Switzerland, 2012.
- Tidblad, J.; Kreislová, K.; Faller, M.; la Fuente, D.; Yates, T.; Verney-Carron, A.; Grøntoft, T.; Gordon, A.; Hans, U. ICP Materials Trends in Corrosion, Soiling and Air Pollution (1987–2014). Materials 2017, 10, 969. [Google Scholar] [CrossRef] [Scilit]
- Coelho, L.B.; Zhang, D.; Van Ingelgem, Y.; Steckelmacher, D.; Nowé, A.; Terryn, H. Reviewing Machine Learning of Corrosion Prediction in a Data-Oriented Perspective. npj Mater. Degrad. 2022, 6, 8. [Google Scholar] [CrossRef] [Scilit]
- Yan, L.; Diao, Y.; Lang, Z.; Gao, K. Corrosion Rate Prediction and Influencing Factors Evaluation of Low-Alloy Steels in Marine Atmosphere Using Machine Learning Approach. Sci. Technol. Adv. Mater. 2020, 21, 359–370. [Google Scholar] [CrossRef] [Scilit]
- Kuang, J.; Long, Z. Prediction Model for Corrosion Rate of Low-Alloy Steels under Atmospheric Conditions Using Machine Learning Algorithms. Int. J. Miner. Metall. Mater. 2024, 31, 337–350. [Google Scholar] [CrossRef] [Scilit]
- Zhi, Y.; Jin, Z.; Lu, L.; Yang, T.; Zhou, D.; Pei, Z.; Wu, D.; Fu, D.; Zhang, D.; Li, X. Improving Atmospheric Corrosion Prediction through Key Environmental Factor Identification by Random Forest-Based Model. Corros. Sci. 2021, 178, 109084. [Google Scholar] [CrossRef] [Scilit]
- Li, Q.; Xia, X.; Pei, Z.; Cheng, X.; Zhang, D.; Xiao, K.; Wu, J.; Li, X. Long-Term Corrosion Monitoring of Carbon Steels and Environmental Correlation Analysis via the Random Forest Method. npj Mater. Degrad. 2022, 6, 1. [Google Scholar] [CrossRef] [Scilit]
- Dong, Z.; Ding, L.; Meng, Z.; Xu, K.; Mao, Y.; Chen, X.; Ye, H.; Poursaee, A. Machine Learning-Based Corrosion Rate Prediction of Steel Embedded in Soil. Sci. Rep. 2024, 14, 18194. [Google Scholar] [CrossRef] [Scilit]
- Liu, Y.; Chen, K.; Kumar, A.; Patnaik, P. Principles of Machine Learning and Its Application to Thermal Barrier Coatings. Coatings 2023, 13, 1140. [Google Scholar] [CrossRef] [Scilit]
- Tiwari, S.; Dash, K.; Park, N.; Reddy, N.G.S. Machine Learning-Based Prediction of Atmospheric Corrosion Rates Using Environmental and Material Parameters. Coatings 2025, 15, 888. [Google Scholar] [CrossRef] [Scilit]
- Narayana, P.L.; Tiwari, S.; Maurya, A.K.; Ishtiaq, M.; Park, N.; Reddy, N.G.S. Quantitative and Qualitative Analysis of Atmospheric Effects on Carbon Steel Corrosion Using an ANN Model. Metals 2025, 15, 607. [Google Scholar] [CrossRef] [Scilit]
- Xiong, J.; Zhang, T.; Shi, S. Machine Learning of Mechanical Properties of Steels. Sci. China Technol. Sci. 2020, 63, 1247–1255. [Google Scholar] [CrossRef] [Scilit]
- Chico, B.; la Fuente, D.; Díaz, I.; Simancas, J.; Morcillo, M. Annual Atmospheric Corrosion of Carbon Steel Worldwide. An Integration of ISOCORRAG, ICP/UNECE and MICAT Databases. Materials 2017, 10, 601. [Google Scholar] [CrossRef] [Scilit]
- Panchenko, Y.M.; Marshakov, A.I. Long-Term Prediction of Metal Corrosion Losses in Atmosphere Using a Power-Linear Function. Corros. Sci. 2016, 109, 217–229. [Google Scholar] [CrossRef] [Scilit]
- Morcillo, M.; Chico, B.; Díaz, I.; Cano, H.; de la Fuente, D. Atmospheric Corrosion Data of Weathering Steels. A Review. Corros. Sci. 2013, 77, 6–24. [Google Scholar] [CrossRef] [Scilit]
- Díaz, I.; Cano, H.; Lopesino, P.; de la Fuente, D.; Chico, B.; Jiménez, J.A.; Medina, S.F.; Morcillo, M. Five-Year Atmospheric Corrosion of Cu, Cr and Ni Weathering Steels in a Wide Range of Environments. Corros. Sci. 2018, 141, 146–157. [Google Scholar] [CrossRef] [Scilit]
- ISO 8407:2021; Corrosion of Metals and Alloys—Removal of Corrosion Products from Corrosion Test Specimens. ISO: Geneva, Switzerland, 2021.
- Strieška, M.; Koteš, P. Sensitivity of Dose-Response Function for Carbon Steel under Various Conditions in Slovakia. Transp. Res. Procedia 2019, 40, 912–919. [Google Scholar] [CrossRef] [Scilit]
- Breiman, L. Random Forests. Mach. Learn. 2001, 45, 5–32. [Google Scholar] [CrossRef] [Scilit]
- Chen, T.; Guestrin, C. XGBoost: A Scalable Tree Boosting System. In Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining; (KDD ′16), San Francisco, CA, USA, 13–17 August 2016; Association for Computing Machinery: New York, NY, USA, 2016; pp. 785–794. [Google Scholar]
- Pedregosa, F.; Varoquaux, G.; Gramfort, A.; Michel, V.; Thirion, B.; Grisel, O.; Blondel, M.; Prettenhofer, P.; Weiss, R.; Dubourg, V.; et al. Scikit-Learn: Machine Learning in Python. J. Mach. Learn. Res. 2011, 12, 2825–2830. [Google Scholar]
- Friedman, J.H. Greedy Function Approximation: A Gradient Boosting Machine. Ann. Stat. 2001, 29, 1189–1232. [Google Scholar] [CrossRef] [Scilit]
- Drucker, H.; Burges, C.; Kaufman, L.; Smola, A.; Vapnik, V. Support Vector Regression Machines. Adv. Neural. Inform. Process. Syst. 1997, 28, 779–784. [Google Scholar]
- Hoerl, A.E.; Kennard, R.W. Ridge Regression: Biased Estimation for Nonorthogonal Problems. Technometrics 1970, 12, 55–67. [Google Scholar] [CrossRef] [Scilit]
- Lundberg, S.M.; Lee, S.-I. A Unified Approach to Interpreting Model Predictions. In Proceedings of the 31st International Conference on Neural Information Processing Systems (NIPS 2017), Long Beach, CA, USA, 4–9 December 2017; Curran Associates Inc.: Red Hook, NY, USA, 2017; pp. 4768–4777. [Google Scholar]
- Yang, H.J.; Gao, Y.M.; Qin, W.C.; Sun, J.P.; Huang, Z.F.; Li, Y.F.; Li, B.; Sun, J.L. A Robust Superhydrophobic Surface on AA3003 Aluminum Alloy with Intermetallic Phases In-Situ Pinning Effect for Corrosion Protection. J. Alloys Compd. 2022, 898, 163038. [Google Scholar] [CrossRef] [Scilit]








| Model | R2 (Test) | CV-R2 | RMSE (µm) | MAE (µm) | MAPE (%) | Rank |
|---|---|---|---|---|---|---|
| Gradient Boosting | 0.968 | 0.969 | 10.58 | 5.99 | 12.6% | 1st |
| XGBoost | 0.958 | 0.960 | 12.19 | 6.53 | 13.7% | 2nd |
| SVR (RBF) | 0.966 | 0.958 | 11.04 | 7.79 | 38.4% | 3rd * |
| Random Forest | 0.944 | 0.945 | 14.07 | 8.30 | 19.6% | 4th |
| Ridge Regression | 0.880 | 0.877 | 20.61 | 14.52 | 96.6% | 5th |
| Study | Corrosion Type | Dataset Type | Source/n | Prediction Target | Best Model | Best R2 (Test) | Exp. Time | SHAP |
|---|---|---|---|---|---|---|---|---|
| Yan et al. [14] | Marine atmospheric | Experimental | NIMS CoDS, Japan/n = 306 | Annual corrosion rate (mm/a) | RF; also GBDT, XGBoost, SVR, MLR, RR | 0.73 (test) 0.94 (train) | Yes | Yes |
| Zhi et al. [16] | Atmospheric (10 Chinese sites) | Experimental (Q235 steel) | ~Q235 steel/n ≈ ~40 | Single-year corrosion rate (µm/a) | SVR (RF + Spearman key factors) | NR (MAPE reported) | No | No |
| Narayana et al. [21] | Atmospheric | Experimental | n = 130 | Single-year corrosion rate (µm/a) | ANN (6-11-11-1) | 0.776 (test) 0.972 (train) | No | No |
| Dong et al. [18] | Soil corrosion (buried steel) | Experimental | n = 1428 | Corrosion current density (A/m2) | RF | 0.987 (test) 0.993 (train) | Yes | No |
| Kuang & Long [15] | Atmospheric | Experimental | NR | Annual corrosion rate | XGBoost (best of 6 ML) | NR | Yes | Yes |
| Present study | Atmospheric (C2–CX all) | Physics-based synthetic (ISO 9223/9224) | n = 600 | Multi-year cumulative CCL (µm) 1–10 years | GBR (best of 5 ML) | 0.968 (test) 0.969 (CV-R2) | Yes | Yes (XGBoost) |
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
Tiwari, S.; Heo, S.J.; Park, N. Machine Learning-Based Prediction of Multi-Year Cumulative Atmospheric Corrosion Loss in Low-Alloy Steels with SHAP Analysis. Coatings 2026, 16, 488. https://doi.org/10.3390/coatings16040488
Tiwari S, Heo SJ, Park N. Machine Learning-Based Prediction of Multi-Year Cumulative Atmospheric Corrosion Loss in Low-Alloy Steels with SHAP Analysis. Coatings. 2026; 16(4):488. https://doi.org/10.3390/coatings16040488
Chicago/Turabian StyleTiwari, Saurabh, Seong Jun Heo, and Nokeun Park. 2026. "Machine Learning-Based Prediction of Multi-Year Cumulative Atmospheric Corrosion Loss in Low-Alloy Steels with SHAP Analysis" Coatings 16, no. 4: 488. https://doi.org/10.3390/coatings16040488
APA StyleTiwari, S., Heo, S. J., & Park, N. (2026). Machine Learning-Based Prediction of Multi-Year Cumulative Atmospheric Corrosion Loss in Low-Alloy Steels with SHAP Analysis. Coatings, 16(4), 488. https://doi.org/10.3390/coatings16040488

