Microstructure Instance Segmentation from Aluminum Alloy Metallographic Image Using Different Loss Functions

Dali Chen, Dinghao Guo, Shixin Liu, Fang LiuSymmetry 2020

TL;DR

This paper introduces a novel framework for instance segmentation of microstructures in aluminum alloy metallographic images, enabling precise identification and separation of individual microstructural components. By evaluating five different loss functions within the Mask R-CNN architecture, the study demonstrates the framework's effectiveness and provides insights into optimal loss function selection for this specific application.

What Problem Does This Paper Address?

Aluminum alloys are crucial in various industries, and their properties are heavily influenced by their microstructural characteristics. Analyzing these microstructures is vital for quality control and material development. While automatic metallographic image analysis has advanced, accurately segmenting and identifying individual microstructural instances (instance segmentation) in these images remains a challenging task. Existing methods often struggle with distinguishing between different instances of the same microstructure type, especially when they are small or have subtle differences. This paper aims to bridge this gap by developing a robust instance segmentation framework specifically for aluminum alloy metallographic images.

Methods

The core of the proposed method is the Mask R-CNN architecture, a well-established deep learning model for instance segmentation. The authors adapt this framework for metallographic images. The process involves two main stages:

  • Parameter Learning: This stage involves training the Mask R-CNN model on a dataset of metallographic images. To enhance training data quality, several preprocessing steps are applied, including image resizing, flipping, Gaussian smoothing, denoising, and contrast enhancement. The model's parameters are then optimized using stochastic gradient descent (SGD).
  • Instance Segmentation: Once trained, the Mask R-CNN model takes a metallographic image as input and outputs an instance segmentation map, where each pixel is assigned to a specific microstructural instance.

A significant contribution of this work is the investigation of five different loss functions for the Mask R-CNN's mask head. These include:

  • LBCE (Binary Cross-Entropy Loss): A standard loss function.
  • LDICE (Dice Loss): Known to perform well with imbalanced datasets, which is common in metallographic images where microstructures can be small relative to the background.
  • LIOU (Intersection over Union Loss): Another metric designed to handle class imbalance.
  • LTversky (Tversky Loss): A generalized form of Dice and IoU loss that allows for better trade-offs between precision and recall.
  • Lss (Sensitivity and Specificity Loss): A novel loss function combining sensitivity and specificity.

The authors also conducted a thorough analysis of six evaluation metrics (Accuracy, Precision, Sensitivity, Specificity, IOU, and F1-score) to assess the performance of different loss functions and methods, providing recommendations for their suitability in metallographic image analysis.

Datasets

The study utilized a custom-built experimental dataset consisting of 100 five-series aluminum alloy metallographic images. These images were captured using a metallographic microscope and contain three distinct phases: Mg2Si, aluminum, and Fe-containing phase. The dataset was annotated for instance segmentation, with different instances of the same microstructure type being assigned different colors. The authors employed a cross-validation strategy, dividing the dataset into five mutually exclusive subsets.

Key Insights and Ideas

  • Loss Function Matters: The choice of loss function significantly impacts the performance of instance segmentation in metallographic images, particularly due to the inherent data imbalance (small microstructures against a large background).
  • Dice, IoU, Tversky, and SS Losses Excel: These loss functions, designed to handle imbalanced data, generally outperformed the standard Binary Cross-Entropy loss for this specific task.
  • Acc and Specificity are Less Informative: For metallographic images, metrics like Accuracy and Specificity can be misleadingly high due to the large background, making them less suitable for evaluating segmentation performance. Precision, Sensitivity, IOU, and F1-score are more discriminative.
  • Mask R-CNN is a Viable Framework: The Mask R-CNN architecture, with appropriate loss functions, is effective for the challenging task of microstructure instance segmentation in aluminum alloys.
  • Generalizability: The proposed framework's ability to learn features automatically suggests potential applicability to other types of metal alloys.

Key Results

  • The proposed Mask R-CNN framework, when combined with different loss functions, achieved satisfactory instance segmentation results.
  • Quantitative comparisons showed that LDICE, Liou, LTversky, and Lss loss functions generally outperformed LBCE across various metrics like Precision, Sensitivity, IOU, and F1-score. For instance, Precision values reached over 60%, IOU over 53%, and F1-score over 61%.
  • Qualitative results (visualizations) demonstrated the framework's ability to accurately segment and differentiate individual microstructural instances, even for complex regions.
  • The convergence analysis indicated that the SS loss function (f5) exhibited a better convergence speed compared to other loss functions.

Limitations and Future Work

  • Data Imbalance: While addressed by specific loss functions, the inherent data imbalance in metallographic images remains a core challenge.
  • Evaluation Metrics: The authors highlight that Accuracy and Specificity are not ideal for evaluating metallographic image segmentation due to the small target-to-background ratio.
  • Future Work: The authors plan to explore weakly supervised learning methods to address the issue of insufficient high-quality hand-labeled data samples. They also suggest that the framework's performance is influenced by the discriminability of object instances, implying that further improvements could be made by enhancing this aspect.

Summary updated

BibTeX
@article{chen2020microstructure,
  author = {Dali Chen and Dinghao Guo and Shixin Liu and Fang Liu},
  title = {{Microstructure Instance Segmentation from Aluminum Alloy Metallographic Image Using Different Loss Functions}},
  journal = {Symmetry},
  year = {2020},
  doi = {10.3390/sym12040639},
}
Figure