Deep Learning-Driven Microstructure Characterization and Vickers Hardness Prediction of Mg-Gd Alloys

Lu Wang, Hongchan Chen, Bing Wang, Qian Li, Qun Luo, Yuexing HanarXiv 2024 · DOI

Abstract

This study presents an automated multimodal deep learning framework for characterizing Mg-Gd (Magnesium-Gadolinium) alloys and predicting their Vickers hardness. By integrating automated grain boundary detection and secondary phase segmentation with elemental composition data, the proposed pipeline achieves a prediction accuracy ($R^2$) of 0.9. The framework utilizes a modified Pidinet architecture for robust edge detection and a Transformer-based regression model for property prediction, offering a significant advancement over traditional manual characterization methods.

Introduction

In materials science, understanding the relationship between a material's composition, internal microstructure, and final mechanical properties is a primary objective. Traditionally, characterizing the microstructure of Mg-Gd alloys—highly valued in automotive and aerospace industries for their lightweight and high-strength properties—is a manual, time-consuming process prone to human error. Existing predictive models often rely solely on chemical composition or expensive simulations, failing to account for the critical impact of grain size and secondary phase distribution (such as $GdH_2$ particles) on hardness. This research addresses the need for an end-to-end, automated pipeline that extracts visual microstructural features to predict material performance.

Methodology

The authors developed a multi-stage pipeline encompassing data collection, image processing, and performance prediction.

Overview of the end-to-end pipeline for Mg-Gd alloy characterization and hardness prediction.

1. Microstructure Extraction

To automate characterization, the framework employs two specialized computer vision models:

  • Grain Boundary Detection: A modified Pidinet architecture was implemented, utilizing "pixel-wise difference convolution" (PDC) instead of standard convolutions. This approach better captures the subtle intensity variations defining grain boundaries in metallographic images. The model also incorporates a Large Kernel Attention (LKA) module within a Multi-Scale Attention Feature Refinement (MSAFR) structure to capture long-range structural features.
  • Second Phase Segmentation: UNet++ was utilized to identify and measure $GdH_2$ particles, which appear as granular dots or elongated shapes.
Detailed architecture of the edge detection model featuring Pixel-wise Difference Convolution (PDC) and Multi-Scale Attention Feature Refinement (MSAFR).

2. Feature Engineering and Prediction

The system automatically calculates four key features: Gd atomic percentage, average grain size, second-phase area fraction, and second-phase particle size. These features are fed into a 3-layer Transformer-based regression model. The self-attention mechanism allows the model to dynamically weight the importance of different features for specific samples.

Results and Discussion

The study utilized a hybrid dataset of 67 original images (expanded to 11,862 via augmentation) from experimental and literature sources. Evaluation was conducted using Leave-One-Out Cross-Validation (LOO-CV).

  • Model Performance: The custom edge detection method achieved an F1-score of 0.7391, significantly outperforming standard models like RCF (0.6422). The UNet++ model achieved an MIOU of 0.9786 for secondary phase segmentation. For hardness prediction, the Transformer model reached an $R^2$ of 0.9, with a Mean Absolute Error (MAE) of 4.94, outperforming ResNet18, XGBoost, and SVR.
  • Interpretability via SHAP: Using Shapley Additive Explanations (SHAP), the authors identified Gd atomic percentage as the most influential factor for Vickers hardness, followed by second-phase characteristics. Notably, a critical threshold of 2.1 at% Gd was identified; above this value, the contribution of Gd to hardness increases significantly.

Conclusion

This multimodal framework demonstrates that quantitative microstructural data is essential for accurate hardness prediction in Mg-Gd alloys. While currently specific to this alloy system and limited by a relatively small dataset of 21 alloy groups, the success of the pixel-wise difference convolution and Transformer-based regression provides a robust foundation for future cross-disciplinary material science applications. Future work will focus on expanding the dataset diversity and applying the framework to other alloy systems.

Summary updated

BibTeX
@misc{wang2024deep,
  author = {Lu Wang and Hongchan Chen and Bing Wang and Qian Li and Qun Luo and Yuexing Han},
  title = {{Deep Learning-Driven Microstructure Characterization and Vickers Hardness Prediction of Mg-Gd Alloys}},
  year = {2024},
  eprint = {2410.20402},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.20402},
}
Figure