Matija Budja: Faculty of Mathematics and Physics, University of Ljubljana, Ljubljana, Slovenia · Anton Gradišek: Jožef Stefan Institute, Ljubljana, Slovenia · Andreja Jelen: Jožef Stefan Institute, Ljubljana, Slovenia
The microstructure of a material holds the key to understanding its properties, performance and failure. Among the many parameters defining this microstructure, grains play a fundamental role. While grains can be characterized using various microscopic techniques—each requiring specific sample preparation—scanning electron microscopy (SEM) utilizing backscattered electron (BSE) imaging offers a significant advantage as BSE imaging completely eliminates the need for chemical etching of the sample. However, identifying individual grains on SEM-BSE images of unconventional metallic alloys, such as high-entropy alloys (HEAs), remains a major challenge. Due to their complex and peculiar microstructure, grains cannot be intuitively distinguished, rendering the microscope’s standard built-in software insufficient for accurate analysis. Therefore, we fine-tuned and evaluated three pre-trained machine learning models (ResNet-UNet, MiT-UNet, and DINOv2 with a linear segmentation head) on an augmented dataset of manually annotated grain boundary images. To further improve boundary detection, we applied watershed segmentation as post-processing to model inferences. After testing, the best model was MiT-UNet trained with a combined Dice and Focal loss, yielding a final mean Intersection over Union (mIoU ) of 50.9% and a grain boundary Intersection over Union of 20.7%. The results at this point are moderately useful for further analysis, however, we identified types of images where additional training will be required to improve performance.
