Explainable Deep Learning-Based Characterization and Classification of Metallographic Microstructures Using a Multi-Scale Swin Transformer
Chenwei Shao, Xiangming Kong, Shankun Yu, Huan Liu, Bingshuai Qi, Yongzhi Zhang
Key points
From the paper's conclusion- These results demonstrate that the proposed framework provides an accurate, interpretable, and lightweight approach for automated recognition of complex metallographic microstructures.
Abstract
Automated classification of metallographic microstructures is challenged by subtle inter-class differences, substantial intra-class variations, and sparse discriminative regions. Conventional convolutional neural networks have limited ability to model long-range dependencies and cross-scale microstructural patterns, whereas vision Transformers may inadequately capture local textures and grain-boundary details. To address these limitations, an explainable multi-scale enhanced Swin Transformer is proposed for complex metallographic microstructure classification. A convolutional information enhancement module and an efficient multi-scale attention module are integrated into the backbone to strengthen the representation of local textures, grain boundaries, and multi-scale morphological features. Generalized mean pooling is adopted in the classification head, while multi-view crop augmentation, focal loss, and five-crop inference are used to improve robustness. Channel-contribution analysis is subsequently performed to identify discriminative channels associated with five microstructure classes. Channel-response maps demonstrate correspondence between the regions emphasized by the network and characteristic microstructural morphologies. The identified channels are preserved during structured pruning, while low-contribution channels are removed. The proposed model achieves an accuracy of 98.00%, a precision of 98.01%, and a Cohen’s kappa coefficient of 0.9750. After pruning, the parameter count decreases from 28.096 M to 14.043 M, representing a reduction of approximately 50.0%, while retaining competitive classification performance. These results demonstrate that the proposed framework provides an accurate, interpretable, and lightweight approach for automated recognition of complex metallographic microstructures.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- A Lightweight Classification Method Based on You Only Look Once Version 8 and Convolutional Block Attention for Scanning Electron Microscopy Images of Metal Fracture SurfacesCrystals · 2026
- SH-DETR: Enhancing steel surface defect detection and classification with an improved transformer architecturePLoS ONE · 2025
- Machine learning based microstructure classification using SEM images and morphological featuresMaterials Testing · 2026
- SAMM: A general-purpose segmentation model for material micrographs based on the segment anything model 2Advanced Powder Materials · 2026
- Leakage-Safe Machine Learning for Hydrogen Embrittlement Detection in 316L Stainless Steel: A Region-Held-Out Evaluation of Texture and Deep Features in SEM MicrographsarXiv · 2026
- Implementation of Deep Learning-Based Segmentation for Quantitative Microstructure Analysis and 3D Reconstruction in Aluminum AlloysIntegrating materials and manufacturing innovation · 2026