Performance-Boosted Interpretable ML via Optuna-SHAP: Uncovering Orientation-Driven Twinning in Mg Alloys
Open Access
Abstract
Machine learning (ML) is highly effective for modeling the complex factors governing twinning in magnesium (Mg) alloys, but it is often limited by challenges in hyperparameter optimization and a lack of interpretability, which reduce predictive accuracy and hinder mechanistic understanding. In this work, we present an enhanced interpretable ML framework that integrates Optuna for automated hyperparameter tuning using tree-structured Parzen estimators and SHapley Additive exPlanations (SHAP) for quantitative feature attribution. This approach delivers significant performance improvements, including F1-score gains of 6.33–11.84% on dataset T and AUC increases of up to 16.31% on dataset Y, outperforming previous benchmarks. When applied to a custom dataset derived from in situ EBSD tensile tests on Mg alloys and complemented by molecular dynamics (MD) simulations, SHAP analysis reveals a previously unrecognized grain shape-orientation effect: elongated grains with long-axis orientations of 20–80° relative to the tensile direction facilitate twinning nucleation, whereas orientations of 0–20° or 80–90° suppress it. Combined EBSD observations and MD simulations indicate that this effect arises from changes in boundary-segment orientation combinations, which regulate local constraint conditions, stress-transfer paths, and effective boundary resistance.Keywords
Funding Information
- Liaoning University of Technology (XB2023018)
- Department of Science and Technology of Liaoning Province (2024-BS-240)
- Liaoning Provincial Science and Technology Plan Joint Program (2024-BSLH-207)
This publication has 36 references indexed in Scilit:
- Machine Learning‐Guided Discovery of Factors Governing Deformation Twinning in Mg–Y AlloysAdvanced Engineering Materials, 2025
- High-Throughput Microstructural Characterization and Process Correlation Using Automated Electron Backscatter DiffractionIntegrating Materials and Manufacturing Innovation, 2024
- Twin variant selection criteria in magnesium alloy: a reviewJournal of Materials Science, 2024
- A survey on multi-objective hyperparameter optimization algorithms for machine learningArtificial Intelligence Review, 2022
- Explanation of machine learning models using shapley additive explanation and application for real data in hospitalComputer Methods and Programs in Biomedicine, 2022
- Hyperparameter optimization in learning systemsJournal of Membrane Computing, 2019
- Predicting Twin Nucleation in a Polycrystalline Mg Alloy Using Machine Learning MethodsMetallurgical and Materials Transactions A, 2019
- Variation in Crystallographic Orientation and Twinning Activation with Size of Individual Grains in Rolled Magnesium AlloyMetals and Materials International, 2019
- Insights into twinning in Mg AZ31: A combined EBSD and machine learning studyComputational Materials Science, 2016
- Fracture behavior of magnesium alloys – Role of tensile twinningActa Materialia, 2015