A comparative analysis of YOLOv8 and U-Net image segmentation approaches for transmission electron micrographs of polycrystalline thin films
Metallic thin films offer a platform to experimentally study the dynamics of microstructural evolution, but the required transmission electron microscopy (TEM)-based imaging generates complex images that are challenging to segment and quantify. This work provides a comparative analysis of a new YOLOv8 model and an established U-Net model for bright-field TEM images of polycrystals, employing a framework leveraging physical observables to evaluate performance against two hand-traced benchmark datasets. This methodology obviates the comparison of large, diversely structured, and manually labeled datasets that are required to assess performance on a per-image/per-pixel basis. It is found that the YOLOv8 model, adapted for real-time instance segmentation, has up to 43× faster inferencing (NVIDIA GeForce RTX 4090) compared to U-Net and reconstructs hand-traced grain size distributions (GSDs) with excellent fidelity, finding mean diameter within 3% for grains near an optimal magnification; for grains that deviate from the optimal pixel-diameter, the size of small- (large)-diameter grains is systematically over- (under)-estimated. This is partially mitigated by including scale-aware augmentations during training. Moreover, when the bias is corrected post-inference by a rigid shift in distribution, the YOLOv8 model reproduces ground truth GSDs with exceptional fidelity, with statistical tests indicating <5% probability that the distributions are distinct. Based on ground truth data, calibration curves pertaining to this shift can be constructed for a given model. This issue is not present in the U-Net model’s results, indicating that for quantitative measurements where the true size of objects is of interest, special procedures must be implemented for YOLO-based models.
Authors
- Kevin G. Field (ORCID: https://orcid.org/0000-0002-3105-076X)
- Matthew J. Patrick (ORCID: https://orcid.org/0000-0001-8354-4270)
- Katayun Barmak (ORCID: https://orcid.org/0000-0003-0070-158X)
- J. M. Rickman (ORCID: https://orcid.org/0000-0002-2318-1639)
- C. R. Field (ORCID: https://orcid.org/0000-0002-3374-3244)
- Lauren H. L. Grae (ORCID: https://orcid.org/0009-0008-1601-7233)
Institutions
- Lehigh University (US)
- University of Michigan (US)
- United States Air Force Office of Scientific Research (US)
- Columbia University (US)
Publication Details
- Journal
- APL Machine Learning
- Published
- 2025-07-24
- DOI
- https://doi.org/10.1063/5.0274266
- Citations
- 3
- Primary Topic
- Electron and X-Ray Spectroscopy Techniques
- Type
- article
- Field-Weighted Citation Impact
- 1.98
Funders
- National Science Foundation
- U.S. Department of Energy