{"title":"Machine learning assisted classification and interpretation of EIS data with experimental demonstration for chemical conversion coatings on Mg alloys","authors":"Debasis Saran , Neelam Mishra , Sivaiah Bathula , Kisor Kumar Sahu","doi":"10.1016/j.electacta.2025.146231","DOIUrl":null,"url":null,"abstract":"<div><div>Magnesium and its alloys, promising for structural applications, have significant corrosion concerns. Chemical conversion coating (CCC) is a cost-effective, scalable, and environment-friendly method to address this issue. EIS is a powerful technique frequently used in various applications, including CCCs, to model diverse electrode-electrolyte interface processes through equivalent circuits (EC). The traditional EC approach is tedious, requires human experience and imparts subjectivity. Machine Learning (ML) strategies automate the process of EC classification, identify complex patterns, reduce subjectivity and analysis time. This study focuses on the ML classification of ECs in CCCs, covering almost all realistic coating conditions and processes. We have used both linear (PCA: Principal Component Analysis and LDA: Linear Discriminant Analysis for interpretation and dimensional reductions; Logistic Regression for classification) and non-linear ML models (Naïve Bayes, Random Forest, XG Boost, Gradient Boost and 1D-CNN: all for seven-class EC classification). We observed that PCA reduced 213-dimensional feature space to 8 PCs, retaining 99% variance, whereas ∼89% of the top 10 features in LDA belong to low-frequency regions. The performance of ML models was evaluated by diverse metrics: confusion matrix, F1-score, precision, recall, Shapley Additive Explanations (SHAP), and Area under Receiver Operating Characteristic Curve (AUC). Overall, 1D-CNN model performed the best with an accuracy ∼86%, mean AUC ∼0.98, and top-2 accuracy ∼96%. From SHAP analysis, we found low-frequency phase measurements are critical for the 1D-CNN model's decision-making, signifying the importance of slow electrochemical processes. Finally, we validated best ML model with experimental data and found 1D-CNN classifier has an average R<sup>2</sup>∼0.96.</div></div>","PeriodicalId":305,"journal":{"name":"Electrochimica Acta","volume":"527 ","pages":"Article 146231"},"PeriodicalIF":5.5000,"publicationDate":"2025-04-14","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Electrochimica Acta","FirstCategoryId":"88","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S0013468625005924","RegionNum":3,"RegionCategory":"材料科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"ELECTROCHEMISTRY","Score":null,"Total":0}
引用次数: 0
Abstract
Magnesium and its alloys, promising for structural applications, have significant corrosion concerns. Chemical conversion coating (CCC) is a cost-effective, scalable, and environment-friendly method to address this issue. EIS is a powerful technique frequently used in various applications, including CCCs, to model diverse electrode-electrolyte interface processes through equivalent circuits (EC). The traditional EC approach is tedious, requires human experience and imparts subjectivity. Machine Learning (ML) strategies automate the process of EC classification, identify complex patterns, reduce subjectivity and analysis time. This study focuses on the ML classification of ECs in CCCs, covering almost all realistic coating conditions and processes. We have used both linear (PCA: Principal Component Analysis and LDA: Linear Discriminant Analysis for interpretation and dimensional reductions; Logistic Regression for classification) and non-linear ML models (Naïve Bayes, Random Forest, XG Boost, Gradient Boost and 1D-CNN: all for seven-class EC classification). We observed that PCA reduced 213-dimensional feature space to 8 PCs, retaining 99% variance, whereas ∼89% of the top 10 features in LDA belong to low-frequency regions. The performance of ML models was evaluated by diverse metrics: confusion matrix, F1-score, precision, recall, Shapley Additive Explanations (SHAP), and Area under Receiver Operating Characteristic Curve (AUC). Overall, 1D-CNN model performed the best with an accuracy ∼86%, mean AUC ∼0.98, and top-2 accuracy ∼96%. From SHAP analysis, we found low-frequency phase measurements are critical for the 1D-CNN model's decision-making, signifying the importance of slow electrochemical processes. Finally, we validated best ML model with experimental data and found 1D-CNN classifier has an average R2∼0.96.
期刊介绍:
Electrochimica Acta is an international journal. It is intended for the publication of both original work and reviews in the field of electrochemistry. Electrochemistry should be interpreted to mean any of the research fields covered by the Divisions of the International Society of Electrochemistry listed below, as well as emerging scientific domains covered by ISE New Topics Committee.