Machine learning with local outlier factor for predicting the electrochemical corrosion behavior of rare-earth-doped Mg alloys in chloride ions
摘要
Rare earth-containing magnesium alloys are critical materials in biomedical applications, yet their corrosion performance directly determines service safety. To overcome the time-consuming limitations of traditional experiments and the difficulty in quantifying complex corrosion mechanisms, this study established a machine learning prediction framework using literature-derived alloy compositions and environmental data. Six algorithms, including Random Forest Regressor, Extreme Gradient Boosting, and Support Vector Machine, were rigorously evaluated. Beyond standard grid search, an advanced optimization strategy integrating the Local Outlier Factor method for noise reduction and learning curve analysis was employed to effectively mitigate overfitting. The results indicate that the optimized Random Forest Regressor model achieved the highest accuracy for corrosion potential prediction (coefficient of determination