Accelerating domain-aware electron microscopy analysis using deep learning models with synthetic data and image-wide confidence scoring
간접 관련 엔지니어링 플라스틱 · (23) 컴파운드 (21) 에폭시수지(10) 아라미드
기본 정보
- 저자
- DOI
- 10.1038/s41524-025-01756-6
- 저널
- npj Computational Materials
- 발행년도
- 2025
- 발행기관
- Nature Portfolio
- 피인용수
- 1
- 라이선스
- cc-by-nc-nd
- 논문 유형
- –
- 언어
- –
- 원문 페이지
- https://doi.org/10.1038/s41524-025-01756-6
- 토픽
- Electron and X-Ray Spectroscopy Techniques
- OpenAlex ID
- W4413128637
평가 내용
- 관련도
- 간접 관련
- 사업분야
- 엔지니어링 플라스틱 · (23) 컴파운드
- 부 분야
- (21) 에폭시수지, (10) 아라미드
- R&D 측면
- 분석·모델링
- 확신도
- 0.70
- 근거 용어
- electron microscopy, deep learning, synthetic data, microstructural analysis, material swelling
- 판단 근거
- 본 논문은 전자현미경(TEM) 이미지를 활용하여 재료의 미세구조(cavity 등)를 분석하는 딥러닝 모델 및 합성 데이터 생성 기술을 다룹니다. 이는 코오롱인더스트리의 고분자/엔지니어링 플라스틱 및 아라미드 등 고기능성 소재의 미세구조 분석 및 물성 예측 R&D에 공정 분석 기법으로서 응용 가능합니다.
- R&D 활용 포인트
- 고분자 필름, 아라미드, 엔지니어링 플라스틱 소재의 미세구조(결함, 결정성 등)를 자동 분석하고 물성을 예측하는 AI 기반 품질 관리 및 R&D 분석 효율화에 활용 가능함.
- 평가 입력
- 본문 74,878자 중 30,032자 발췌
초록
초록이 없습니다.
본문 74,878자
본문 펼치기
섹션 본문 63문단 · 52,254자
(제목 없음)
1The integration of machine learning (ML) models enhances the efficiency, affordability, and reliability of feature detection in microscopy, yet their development and applicability are hindered by the dependency on scarce and often flawed manually labeled datasets and a lack of domain awareness.We addressed these challenges by creating a physics-based synthetic image and data generator, resulting in a machine learning model that achieves comparable precision (0.86), recall (0.63), F1 scores (0.71), and engineering property predictions (R 2 =0.82) to a model trained on human-labeled data.We enhanced both models by using feature prediction confidence scores to derive an image-wide confidence metric, enabling simple thresholding to eliminate ambiguous and out-of-domain images resulting in performance boosts of 5-30% with a filtering-out rate of 25%.Our study demonstrates that synthetic data can eliminate human reliance in ML and provides a means for domain awareness in cases where many feature detections per image are needed.
Introduction
2The development of accurate and practically useful supervised machine learning (ML) models such as deep neural networks (NN) for object detection primarily hinges on the availability of accurately labeled training data.However, obtaining such data is often resource-intensive, requiring considerable time and financial investment.In particular, in microscopy, obtaining a high-quality database of images of widely varying materials and/or imaging conditions can easily require hundreds or more of laboratory hours, that includes sample preparation, sample stimulus (e.g., heating, irradiation, corrosive media exposure, etc.), imaging, and post-processing and labeling.Thus, image set data generation could easily represent multiple person-years with research expenditures exceeding millions of dollars in some fields, e.g., nuclear materials.Furthermore, production of labeled data via traditional human-based methods are susceptible to human bias and error [1], [2], [3], [4], [5], which leads to wide variability within human-derived image datasets.Human-based inconsistencies can only be reduced, but not eliminated by resourceintensive manual reviews.One emerging method to account for the intrinsic challenges with human labeling has been the use of consensus crowdsourcing [6], [7], [8] to build databases.While these procedures excel at using probabilistic models to acquire agreement on features with relatively small levels of ambiguity, challenges remain when analyzing rare or highly ambiguous features.These challenges are exacerbated when using any human-involved system (and especially when performing consensus crowdsourcing of nonexperts), as even experts in a field can disagree on feature presence, precise location, and exact feature size and morphology.The issues around traditionally labeled datasets are only exacerbated with large datasets of a thousand or more features and features within complex, microscopy-derived images.Such datasets often employ multiple labelers, each with subtly different explicit or implicit feature identification criteria and previous labeling experience, resulting in an intrinsic quality variance for these large or complex datasets.Finally, while some features may exhibit similar visual properties (such as dislocation loops and helium bubbles), models trained to identify a single feature type often struggle on a nearsimilar feature type [9], resulting in limited transferability of datasets between feature types, which leads to the creation of highly specific datasets on a per feature or group of features foundation.
3Synthetic data have been widely discussed as a potential method to generate scalable and domain-specific, bias-free datasets and have been shown to have utility in non-electron [10], [11] and electron microscopy settings [12], [13].'Synthetic' data generally refers to data that is synthesized, i.e., created by some alternative means that differs from the typical 'natural' source of such data.Here, the synthetic approach is from a physics-based computational model, so we will also refer to synthetic data as 'simulated' and natural data as 'experimental'.In this work, our synthetic data consists of three key components: (a) an experimentally obtained electron microscopy-based phase contrast image with no features of interest present (i.e., 'clean' experimental background images); (b) computationally simulated features derived from physicsbased models that have been added to the clean background image, mimicking a natural experimental image feature with known physical parameters; and (c) automatically generated, pixel-precise labels of the added features, eliminating the need for manual labeling and its associated complexities (e.g., human bias).The 'clean' experimental background images can be sourced from literature or manually collected.Formation of our synthetic images takes significantly less time than collecting images containing specific features, as they require no lengthy post-collection processing (e.g., feature labeling), and they can be reused in different synthetic databases.
4In addition to addressing the challenge of data generation, this work also addresses the problem of determining a model's domain of applicability for optimal performance.A major challenge for ML-based computer vision (CV) models is the awareness of domain boundaries and identifying when a prediction is being made on features outside the model's realm of applicability.This challenge is not unique to detecting features in microscopy images and occurs in general computer vision and regression-and classification-based ML models [14].Many convolutional-NNs (such as those used here) are often considered black boxes, with minimal understanding of the specific underlying procedure or physics of the imaged system.This apparent opaqueness creates challenges in identifying model domain limits and hinders assigning a specific cause when model performance is found to be lacking.As there is no common mechanism to tell when new test data is inside or outside a model domain, any procedure that enables establishment of performance guardrails, and thus allows a model to 'self-regulate' within its application domain, would be broadly applicable and highly valuable.This is especially true in scientific and engineering applications where safety factors and other decision points could be derived from ML-based inferences.In this work, we use a post-inference evaluation method based on a model's object prediction confidence to roughly determine our trained models' domain boundaries, providing desirable 'guard rails' that can improve the inference performance and consistency.
5Our overall framework is shown in Fig. 1 and integrates SIGMA-ML (Synthetic Image Generation for Microstructural Analysis with Machine Learning), a fully autonomous pipeline capable of generating synthetic, ready-to-train datasets for feature detection in electron microscopy images with an integrated self-regulation post-inference workflow.We then use a conventionally trained NN to produce object detection models (here, we use You Only Look Once (YOLO) model architectures) that are coupled to our self-regulation technique which is shown within the workflow of Fig. 1.The workflow culminates into a final whole image threshold to provide high quality, indomain model predictions.
6We present results using the framework in Fig. 1 for radiation-induced cavities as an example feature type.Cavities were selected for three reasons.First, our team's expertise with the collection and analysis of cavity micrographs significantly aided our evaluation of the quality and realism of the synthetic images.Second, cavities are the central feature of interest in studying swelling in nuclear materials where the size and number density of cavities directly correlates to macroscale volumetric change (i.e., swelling) of a component while in service.Swelling is a key degradation process for nuclear materials and thus a wide body of work using both human-based analysis [15], [16], [17], [18], [19] and CV-based analysis [20], [21], [22] already existed at the time of this study for use in benchmarking our results.Lastly, the relative size and apparent contrast of cavities in transmission electron microscopy images have similar length scales to other distracting features (see Fig. 2 for examples), creating situations of feature ambiguity.With human-based labeling, feature ambiguity results in no universally agreed upon ground truthas we will demonstrate later.
7We show that ML models trained using the SIGMA-ML approach for generation of synthetic bright-field (BF) transmission electron microscopy (TEM) images of irradiation-induced cavities in metal alloys, Fig. 1, outperform or match the performance of models trained on manually labeled, experimentally-derived data of the same domain used in Jacobs et al. [21].We evaluate performance both using traditional and canonical computer vision (CV) metrics like an F1 score (e.g., pixel-based, object-based, etc.) and engineering metrics such as feature size, number density, etc. used in the general physical sciences fields.Additionally, we demonstrate that a simple approach for model self-regulation is achievable based on aggregated single feature confidence scores, providing a powerful means for filtering out-of-domain images and ambiguous feature sets in any ML inference pipeline.
Results & Discussion
82.1: Comparison of Synthetically and Experimentally trained models.The performance of our trained Synthetic and Experimental models (see Methods section for details) were both evaluated using the same test set of 20 randomly selected experimental images containing a total of 1108 radiation-induced cavities across all images in the under-focused BF condition.The results of the Experimental and Synthetic models are quantified in Table 1 and select images from the test dataset with model predictions are shown in Fig 2 .A detailed description of the experimental database, including its general domain, is provided in Jacobs et al. [21].The work of Jacobs et al.
9[21] also includes our previous best efforts using a Mask R-CNN (R-CNN = Regional Convolutional Neural Network) experimental-ML model for automated cavity detection and quantification of swelling.
10Both models exhibited their best performance on the test dataset at approximately the 700 th epoch.To ensure this performance is not an anomaly derived from the training process, both models were also evaluated over a range of epochs.This range included epochs 400 to 1000, in increments of 100 epochs.The performance of both models at each of these seven epochs was averaged together to further demonstrate the equivalency in training and final capability of our Experimental and Synthetic training data.The values at both the 700 th and averaged epoch conditions are reported in Table 1.As all values of the 700 th epoch were found to be within 2σ of the averaged epoch conditions, as given in Table 1, the remainder of the discussion will solely focus on the model assessments from the 700 th epoch.
11The Experimental and Synthetic models exhibited near identical performance with each other across all evaluation metrics, regardless of if our proposed self-regulation technique was used.Both models consistently exhibited higher precision than recall, resulting in a F1-score strongly weighted down by the lower recall performance.However, both models still had overall strong performance for cavity feature detection tasks, with both having an F1 of 0.71 when selfregulation was not applied.An F1 score of 0.71 is comparable to other reported models on similar tasks (discussed later), and effectively identical to the F1 of 0.70 found in our previous work, Jacobs et al. [21].Application of our self-regulation method produces two major results.The first result is a noticeable improvement across all models studied in terms of both CV and engineering metrics as shown in Table 1.This improvement underlines the effectiveness of our method in consistently improving model performance on a given dataset.Note, self-regulation had the ability to automatically assess and establish model domain boundaries without access to the ground truth, affirming the utility of our method.The second result of the self-regulation method is that the Synthetic model had a higher average filtering rate of 25% than the Experimental model, with an average filtering rate of 15% (Table 2).A likely cause of this difference in filtering rate is the synthetic data image domain does not have exact agreement with the experimental training set and test image set domain.This disparity can be due to differences in individual defect characteristics (such as real/apparent size or morphology), as well as image-wide characteristics (such as imaging conditions, background contrast, and/or background noise).In our case, the precision of SIGMA-ML enabled the variance in defect characteristics to be minimized, but image-wide characteristics could not be highly controlled due to the random selection of cavity-less background images and the stochastic nature of the background contrast within those images.Here, we assume a leading factor in the difference of the filtering rate is attributed to image-wide characteristics, but this assumption is difficult to accurately test since removal of backgrounds from experimental images would create further complexities and no test sets that fully deconvoluted defect and image-wide approach for both models.One factor contributing to the poor performance of both models on
12Image 18 is what we believe to be significant errors in the original ground truth annotations used within Ref. [21], where extensive over-labeling is observed.Note, this issue was only observed after analysis in this work and not our original efforts within Ref. [18].The role and limitations of human labeling are discussed in Section 2.2.
13Ground truth labeling errors cannot be the only cause of poor performance for Image 18 and similar images in the test set because the domain filter functions without any awareness of the ground truth annotations.Another likely factor limiting model performance is the apparent size of features in each image.Previous works have demonstrated the challenges for both humans [1], [2] and NN-based ML models [23] in labeling small features, especially for ambiguous features such as cavities [21], [24].Therefore, this is a current limitation with existing NN-based ML algorithms, including the YOLOv7 model used here.For example, the test set consists of images with an average apparent feature size ranging from 2.0% to 9.8% of the total image size and a median value of 3.4%.These values are calculated as the mean of the width and height of each prediction bounding box, as a fraction of the total width and height of the image.Image 16 has an average relative feature size of 5.0%, while Image 18 has an average relative feature size of 2.9%.In fact, all the images selected by the domain filter had an average relative feature size below 3.0%,
14showing that these small-feature-dominated images are exclusively where both models struggle and suggests the self-regulation approach used provides some flagging characteristic for images containing ambiguous and difficult-to-detect features.Care was taken to ensure that both synthetic and experimental training sets had similar distributions of apparent feature size, see the supplemental information (SI.1) for details.2.2 Quantification of human performance and assessment against ML models.The results in the previous section suggested that overall performance could be impacted by the human-based selection of features comprising the ground truth labels.To evaluate the performance of our models against human-based labeling, a labeling survey among six human experts and both ML models on an additional five test images not previously used were performeddetails on how this was conducted are in the Methods section.The results are shown in Fig. 3, where a normalized swelling value is used to better visualize deviations across the labeling survey image set.From Fig. 3a, experts often deviated from the designated ground truth, but more importantly, our models consistently performed within these deviations, making them indistinguishable from human expert labeling if the a priori knowledge of who/what performed the labeling was unknown.
15The statistically indistinguishable nature of our models to human labeling is further supported in Fig. 3b, where the normalized swelling distribution of the twenty test images and five labeling survey images shows that all three methods had very similar mean absolute error of The findings of the labeling survey (Fig 3a) were further validated using each of the six human expert label sets as the acting ground truth.These seven iterations of analysis found an expected minimum mean error of ~20%, see SI.2 for details.This is consistent with the collective experiences of the authors regarding challenges reaching a precise and universally agreed-upon swelling value.Findings were also reviewed as a function of absolute swelling and no significant correlation was found, e.g., high/low swelling images did not have more or less expected error in predicted swelling.for both model types.The optimum value for an image confidence score threshold is one that simultaneously maximizes prediction performance and image inclusivity.This balance was found to be at an image confidence score of 0.7.This value is not universally applicable to all model scenarios and in this case was selected after an in-depth sensitivity analysis was completed, as detailed in SI.4.Future uses of this approach would likely need to undergo a similar sensitivity analysis to best calibrate both thresholds for a specific application.This customization enables users to decide how selective they want their analysis to be, for example, decreasing the objectwise prediction threshold while increasing the image-wise threshold generally results in increasing prediction performance but decreasing image inclusivity.From carefully observing the excluded images, we believe that this method for identifying out-of-domain images identifies images that are both out of the scientific imaging domain of the model (e.g., different features, imaging conditions, etc.) and images that contain highly ambiguous or complex features due to either background noise, poor image quality, or both.The correlation between F1 and image confidence substantiates our ability to use the image confidence score as a general model performance predictor, thereby aiding in defining model domain boundaries.Similar results as shown in Fig. 4 were observed when comparing image confidence with the previously discussed engineering evaluation metric (material swelling), see SI.5 for details.
16Efforts were made to utilize published cavity data from Chen et al. [24] to further evaluate the domain-awareness of the image confidence score filtering method on generally in-domain images.A portion of the Chen data included cropped sections of larger TEM cavity images, drastically increasing the apparent diameter of the cavities to 10-30% of the image size.As our model trained on synthetic data was trained on standard full-size images, where features are <10% of the image size, this difference in feature size created a significant mismatch between these two image domains.Our image confidence score filter was successful in removing most of the Chen images containing large apparent cavities, further demonstrating its utility.See SI.6 for a detailed comparison of database feature sizes.Note, due to the test dataset used in Chen et al. [24] being unavailable to the authors, a direct comparison of our models against their model CV and engineering metric performance was not possible.We further validated the application of our self-regulation approach by performing inference and evaluating the model filtering rate on increasingly out-of-domain image sets, summarized in Table 2.A dataset of electron microscopy images of radiation-induced dislocation loops from Jacobs et al. [25] A 128-image subset [28] of the larger COCO [29] database of common objects was used as an example of a completely 'out-of-domain' test set to evaluate how self-regulation worked on non-electron microscopy images that exhibited minimal similarities to the trained feature type or imaging conditions.A filtering rate of 88% was found using the standard threshold values, and 95% when using the more selective values.Of the few unfiltered images, common traits such as large round features with significant contrast change (e.g., large white letters on a black background) were often found.These features roughly mimic common visual characteristics of cavities and had an average size of 9.2% of the total image.These two factors lead to high individual feature confidence scores, and with our feature size weighting on image confidence, a correspondingly high image score resulting in being above the set threshold marks.Table 2 further shows capability of domain awareness, as when even image inclusivity was set to be maximal, the two more similar datasets (Expanded Cavity & Loops) had minimal filtering rates, while the COCO 'out-of-domain' set still had a significant filtering rate of 72%.The variance based on the adjusted thresholds highlights how this method can be tailored for a project or specific application, preferring either image inclusivity or confidence in prediction performance.Loops Set [25] 107 24% 60% 91%
17COCO 128 [28] 128 72% 88% 95%
18As absolute swelling can vary significantly between images, a normalized swelling value is useful for comparison of performance between images and can further provide insight on selfregulation.Fig 5a compares the predicted normalized swelling value of each image across the Cavity Test Set.There is high agreement between the two models, when a predicted image passes both filters, with a median difference between the Synthetic & Experimental model being 0.086 (normalized units).Both models tend to underpredict the image swelling values with respect to the ground truth, with an average difference from the normalized predicted swelling of 0.18 and 0.21, respectively for the Experimental and Synthetic models when using the image domain filter method.This difference is likely caused by two effects, the first being the models underestimating the number of features and the second being the previously mentioned issues with over labeling in the ground truth, as demonstrated for Image 18 in Fig. 2. The under-labeling of features could be due to either errors in its training data labels or a slight domain mismatch between the synthetic images generated by SIGMA-ML and the test domain.It is believed the former is more relevant in the case of the Experimental model whereas the latter explanation is more likely impacting the Synthetic model.The ground truth over labeling issue likely has a higher impact, as revealed by the Recall scores of 0.73 and 0.72 for the Experimental and Synthetic models in Table 1 indicating that both models are not finding all ground truth features that would be used within the normalized swelling calculations for Fig. 5. defect-contrast image formation [30] or other image contrast models [31], additional synthetically generated features or datasets can be produced and then fed into the remaining SIGMA-ML pipeline.Similarly, our self-regulation procedure is a novel but simple approach that could be easily adapted to other ML approaches in electron microscopy and beyond.Only individual prediction coordinates and confidence values are needed, which are very common in most machine vision workflows.As we found model performance improvement of 5%-30% on various evaluation criteria (regardless of model training data), this suggests similar boosts in performance could be gained on previously reported models with minimal effort.
19Moreover, the flexibility of SIGMA-ML synergizes with our self-regulating procedure, enabling a "smart" and iterative approach to synthetic model development (Fig 1 .),similar to the "ensemble learning-iterative training" (ELIT) method that has been previously discussed [32].
20This process would begin by compiling a diverse experimental test dataset, with high-quality human labels.Then, an initial standard synthetic dataset is generated, and model training is executed.The performance of the synthetic model on the high-quality experimental test set is then categorized into two main bins, high prediction quality (in-domain images), and low prediction quality (out-of-domain images).Human experts then review the out-of-domain images for key criteria (feature sizes, background contrast, etc.) and use these domain descriptors to inform SIGMA-ML in generating updated synthetic training datasets.This ensures abundant data in areas where the model showed domain uncertainty.The cyclical process could be done iteratively, until model performance is saturated.
Evaluation of synthetic data workflows against published ML models.
21In this section, we compare our results with other studies of deep learning-based microstructural feature detections from the literature [21], [24], [33], [34], [35].As shown in Fig. 6, it is evident that both our Experimental and Synthetic model exhibit F1 performances similar to those of other experimentally trained models, and that all ML models are performing near, or above average human expert performance range as determined by our human labeling survey.Analysis of the survey results determined a mean Expert F1 of 0.75 with a standard deviation of 0.13.Dashed lines in Fig. 6 show this range of average performance, wherein 70% of all Expert F1 scores lie.
22The models reported herein demonstrated significantly greater (+37%) Precision than Recall, while most previously reported models have these two metrics much closer in value.The use of our domain filter had a larger impact on improving Recall (+14%) compared to Precision (+6%) but a significant difference (+25%) between the two terms still exists.One cause of this imbalance in Precision and Recall is the aforementioned issues with the ground truth, where overlabeling can produce erroneous false negatives which only impact Recall.Even with perfect ground truth files, models would likely still exhibit issues with detecting small features.It is likely that future developments will improve this small feature detection problem.For example, one method to overcome this issue of inability to detect small features was given in Chen et al. [24],
23where a novel image rescaling technique was used.However, this method is not always applicable, and issues were still found when features were <5 pixels in size (<1% image size).Here, we focused on demonstrating the utility of our synthetic data, rather than the pursuit of maximum model performance.
24It should be noted that the model type/architecture, testing set, and training parameters varies widely between all results shown in Fig. 6, so this direct comparison is very qualitative.For example, the highest performing model (Roberts [34]), has an architecture inspired by U-Net [36] and DenseNet [37], and the reported values are from predictions on a test set of a single image cropped out of a training set image.Also, some of these findings are for labeling tasks on other defect structures (faceted voids, loops, black dots).The success of ML methods across these many defect types suggests that future work to expand the capabilities of synthetic defect structures to include these other defects will also yield successful models.Despite these many details we wish to stress that our models, and importantly the Synthetic model, appear to be essentially equivalent to other similar works and expert performance when comparing overall F1 score and engineering metrics alone.Expert bounds are calculated from our round robin results.Helps differentiate between visually identical data.For Chen [24], * denotes the performance using the image rescaling technique.For Shen [35], * denotes loops of the type a/2⟨111⟩, while the other is loops of the type a⟨100⟩.
Summary and Conclusions.
25In summary, we have provided substantial evidence suggesting that a synthetic data derived model trained with the YOLO object detection framework demonstrates an almost identical statistical performance as an experimentally derived YOLO-based model across all evaluated metrics for a test case within the field of electron microscopy.Moreover, the introduction of selfregulation via image confidence score filtering led to an enhanced performance observed in all models, emphasizing the power of this simple and flexible method.The schema presented within demonstrates the potential for integrating domain awareness and tailored synthetic data generation by SIGMA-ML to address new and/or out-of-domain gaps with ML-based electron microscopy object detection and quantification tasks.The disparity in the filtering rates when using selfregulation, where the Synthetic model had a higher filtering rate, could be associated with variations among synthetic training data domains, experimental data, and the testing data domain used within this study.This evidence provides a general conclusion that further optimization could be completed either through revision of the experimental data used within, such as culling spurious ground truth labels, and/or through expansion of the synthetic image domain.Domain expansion using SIGMA-ML is only restricted by governing physical equations used for geometry of the cavity and the computational time to generate an increased simulated dataset.
26A significant correlation was observed between image confidence score and the calculated F1 for both the Synthetic and Experimental models, highlighting the capacity of an image confidence score as a predictive measure of model performance and means to integrate selfregulation.This lessens the complexity of defining model domain boundaries.Additionally, in comparison to human experts, the ML models maintained a competitive performance level in terms of normalized swelling predictionthe key engineering metric reference in this work, although both tended to underpredict the swelling values compared to the ground truth derived swelling values.This alignment in the performance of both models, coupled with the elimination of humanbias within the inference steps, further strengthens the validity of using ML models for this type of microstructural analysis, even though challenges in labeling small features and errors in ground truth annotations is a remaining limitation for their performance.Within the area of defect detection, our comprehensive procedure effectively confronts the critical challenges around training data quality and domain boundary identification/disparity that are intrinsic to machine learning models.In doing so, our approach unlocks the potential for creating ML models for defect detection that are substantially easier to generate, devoid of human bias, and domain targeted, all while exhibiting performance at or above human levels.
Methods
27Collection and Labeling of Experimental-ML Data.Experimental BF TEM images of irradiation-induced cavities in metal alloys were obtained from a variety of sources including the authors, their collaborators, and professional colleagues.A detailed description of the database, including previous work implementing a Mask R-CNN Experimental-ML model, is provided in Jacobs et al. [21].Here, details are reproduced in brevity for completeness.The database of 300+ images were labeled by a domain expert and subsequently corrected by a second expert; this twostep process established the ground truth for all our experimental data.The database contains a wide range of materials such as austenitic and ferritic steels irradiated using both ions and neutrons, additional details on the data domains are provided in our previous work [21].In this work, we exclusively focus on under focused cavity images within the dataset as that is the most common imaging domain in experimental work and eliminates unwanted complexity in the results due to class imbalances in the training data.A division of all datasets is given in Table 3.Generation of Synthetic Data.Experimental TEM images of unirradiated microstructures were obtained from the sources described above and thus encompass the same range of material systems as the irradiated materials database.These images serve as our "clean backgrounds" for the generation of synthetic data.A synthetic database of BF TEM images, containing underfocused cavities was generated using a novel multi-step procedure (Fig. 1, top), termed SIGMA-ML.The SIGMA-ML procedure leverages the simplified defocused contrast theory of Rűhle and Wilkens [38] and mathematical implementation of Foreman et al. [39] to generate the final synthetic images.The full procedure is outlined in Fig. 1 and summarized below.
281.) Simulate: The 1D contrast variation from the center to the out radius of cavity as [39]:
29(1)
30where represent the wavefunction of the electron, is a quantity relating the defocused condition, electron wavevector, and physical cavity radius, is reduced radial distance, is a complex quantity relating the size/geometry of the cavity and material properties, and its center, forming a 2D array that can be directly translated to a grayscale image at the appropriate resolution, where the resolution is defined by the background image.
3.) Warp:
31The cavity is then classified as one of three sizes (small, medium, or large) based off the physical radius used in the simulation of step 1.Its symmetrical geometry is randomly warped in all directions based off its size, where large cavities have a higher potential degree of warping.Care was taken to ensure key cavity features, such as the first Fresnel fringe, still appear after warping.
324.) Label: Using a modified watershed algorithm, a per-pixel label mask is generated.The edge of the cavity label in the mask is set to be in the center of the darkest outer fringe of the cavity.Rigorous testing on individual synthetic defects showed ~99% success rate in full pixel accuracy of these labels using high resolution visual inspection and mathematical analysis of pixel intensity values.For the ~1% of mislabeled features, they are typically very small features (< ~8 pixel radius) where there are not enough pixels to draw a detailed mask, in this instance the labeling algorithm defaults to square labels ~1.5× larger than the true cavity size.
335.) Enhance: Higher-order transmitted electron beam-detector (CCD) physical considerations are then modeled, such as the detector quantum efficiency (DQE) informed by the findings in McMullan et al. [40] and a modular transform functions (MTF) modeled by Van den Broek et al. [41] to help improve physical fidelity by increasing the common stochastic noise apparent in experimental images directly within the simulated cavity image.
346.) Blend: Each single cavity is blended into the "clean background" image using a normalization technique with a specific order of operations and the seamlessClone function in the OpenCV2 Python package [42].The process is repeated for each additional feature until a single image is populated with the targeted density and size(s) of cavities.The image scale (nm/pixel) of the "clean background" image is used to ensure cavities are appropriately sized with respect to background features.Note, in this initial study the overlap of cavities is not considered in our synthetic images due to the observed rarity in the experimental database and the additional complexities in simulated cavity stacks [43] The size distribution and density of synthetic cavities was chosen to match, on average, that of the experimental image database from Jacobs et al. [21].Images ranged from 0.079 to 0.11 nm/pixel in scale, and 10241024 to 40964096 pixels in absolute size, note all images are rescaled to the same size during ML model training.
35Training of ML models.Both model types (Experimental and Synthetic) were trained with minimal augmentation using 'Version 7' of the You Only Look Once (YOLO) algorithm [44] which is derived from the well-established Version 5 of YOLO curated by Ultralytics [45].The training datasets for both models were developed to approximate the same number of cavities within each dataset with similar pixel-size distributions.Models' performances after training were evaluated using both traditional ML metrics such as pixel-wise Precision, Recall, and F1-score, as well as more experimentally relevant, defect-specific metrics such as percent swelling in our example case of radiation-induced cavities.As noted in Table 3, the synthetic training data consisted of ~3 fewer images than the experimental training set.This reduction in synthetic image count is due to many experimental images having a very low feature density (< 25 per image).
36Preliminary testing showed changing the feature density in the synthetic dataset and thus the image count had no statistically significant impact on model performance as evaluated using common ML metrics.However, fewer total images resulted in faster training times using YOLOv7.
37Identical training parameters were used throughout this work and a constant image resolution of 12801280 pixels was selected to optimize model detection performance in accordance with the YOLOv7 documentation [44].The constant image resolution of 12801280 pixels results in YOLOv7 up/downscaling most images and using letter boxing methods for non-square images.
38Trainings were done without a cross-validation dataset.Instead, they were trained to 4000 epochs each, saving weights every 100 epochs.This overtraining is far beyond typical for YOLO models but was done to ensure no local maxima in performance were found and thus reported.Every 100 epoch was benchmarked against the test dataset, and both model types were found to have peak performance at epoch 700.The average of 7 evenly spaced epoch performances is also reported to demonstrate that any model trained to approximately the same range (700 ±300 epochs) would have similar performance.
39All trainings were done on an in-house graphical processing unit (GPU) cluster running Ubuntu 20.04 with 4 NVIDIA RTX A5000 GPUs.No transfer learning was used, and the large p6 architecture of YOLOv7 [19] was used, and the only image augmentation operation used was mosaic (no "mixup", as this results in blending of images and overlapping of features), the native YOLOv7 augmentation.Limited augmentation was applied due to the feature per image disparity between the experimental and synthetically generated image sets.
40Performance evaluation.Here, ML models and human performance is evaluated using classification-centric and materials property-centric metrics.Our key classification-centric metrics are Precision, Recall, and F1 score.For our materials property-centric metrics, we focus primarily on calculated image swelling, as it is a single term that weighs both cavity density and size distributions.Here, we report pixel-wise metrics, as opposed to object-wise, as done in [34].
41However, the same overall trends are observed with both methods.Evaluation masks are made for each image in which every pixel is assigned one of four categories, true positive (TP), true negative (TN), false positive (FP), and false negative (FN).The total count of each category is summed, and the classification metrics are calculated with the following equations:
42Precision (P) is the proportion of predicted feature pixels that are correct.Recall (R) is the proportion of feature pixels in the ground truth that were correctly predicted.F1 is the harmonic mean of P and R, and therefore is weighed more by the lower metric.Perfect labeling with respect to the ground truth occurs when P=R=F1=1.Model inference was done at the default YOLOv7 image resolution of 640x640 pixels, with YOLOv7 handling all image rescaling.This resolution was found to have optimal performance for all model tests, likely due to minimizing image rescaling effects when having to upscale images.
43Our materials property metric, image swelling, is given in Eqn. 5.In Eqn. 5, S is the physical area of the image, δ is the sample thickness, dn is the cavity diameter which is taken as the average between perpendicular side lengths of the object detection box, and N is the total number of cavities in the image.As TEM sample thickness is often inaccurate or not recorded, we use a constant thickness of 100 nm in all of our swelling calculations which is aligned with our previous calculations [21].The choice of a constant image thickness means our swelling calculations are areal swelling, which has no impact on the comparison of our results with each other as the calculation still maintains the size and density dependencies for swelling.Once evaluation metrics are found they are compared with those calculated from the ground truth using standard error analysis techniques, R 2 (coefficient of determination) and root mean squared error (RMSE).Equations for these terms are widely available and not produced within.
Self-Regulation via Image Domain Filtering. Individual YOLO model predictions contain five
44values, where the first four give the location and size of the bounding box, and the last predicted value is object prediction confidence (sometimes called objectness), which ranges from 0 to 1 (low to high).The object confidence is calculated from a linear combination of the conditional class probabilities Pr(Classi | Object), the object probability Pr(Object), and the predicted intersection over union with the ground truth ( ℎ ) [45].Due to the aggregation of both class and location confidence, this single value is highly useful as a method of filtering prediction results.The capability to filter predictions by confidence is built into YOLOv7 (and most ML algorithms) by ways of a simple confidence threshold, where only individual predictions above a given value are reported in the final prediction dataset.Here, an individual confidence threshold of 0.4 is used for all analysis, as this value resulted in models with maximum F1 scores.This was selected since high F1 scores correlate to nearly equivalent swelling RMSE values, while the reverse is not necessarily true.
45We have further expanded the role of confidence filtering by making two key observations.First, a narrow domain of test images resulted in significantly greater error (with regards to predicted swelling), than most other images.Second, these high error images contained a large amount of low confidence predictions (≲0.6) when compared to other images.We hypothesized that while these low confidence predictions were easily filtered out, their overabundance could be indicative of an image that is outside the domain of the trained model.This hypothesis led to the development of a novel image confidence score, in which an overall individual image confidence score was calculated using Equation 7, which weighs both the apparent size of each feature as well as its confidence.
46This image confidence score is used as an equivalent method to the individual prediction confidence.When a constant threshold filter is applied, only images with an image confidence value above this threshold are reported.Herein, an image confidence threshold of 0. 3) was submitted to six early career researchers highly familiar with cavity labeling, e.g., cavity labeling is or has been a significant fraction of their research labor expenditures.The researchers' experience ranged from several years into graduate studies in a relevant field, to early career researchers at a government-sponsored national laboratory.Three of the six have first author publications in which cavity labeling is a key analytical technique (their citations are hidden to maintain anonymity in the results).These researchers learned electron microscopy and data labeling techniques from four different research groups at three major universities, ensuring a variety of methodologies.Identical instructions and labeling tools were submitted to each expert.
Figure 1 :
47Figure 1: Overview of our procedure for generating synthetic databases with SIGMA-ML (top -green box).The first few steps (a) are feature-specific and are shown using radiation induced cavities here, however different features of interest could be used with only slight modifications to the initial steps.The remaining steps (b), provide the pixel-precise feature labels and realistic synthetic images used in model training.Our model-self regulation schema (bottom -blue box) shows how image predictions are used to calculate an image confidence score for each
48could be created within the scope of the present work.The visualization of the ground truth annotations and the predictions of both models on a high and low performing image from the test set are shown in Fig 2. Both Experimental and Synthetic model predictions for Image 16, Fig. 2top, were nearly identical with each other and the ground truth, with an F1 score of 0.92 and 0.90 respectively.Image 18, shown in Fig. 2bottom, was one of the worst evaluated images in the test set with F1 scores of 0.51 for the Synthetic model and 0.57 for the Experimental model, however Image 18 was flagged and automatically filtered out by our self-regulation
Figure 2 :
49Figure 2: TEM BF images and prediction visualizations for a high (top) and low (bottom) performing image.Image 16 (top) & 18 (bottom) from the test dataset.The Experimental-ML model had a pixel-wise F1 score on Image 16 (top) of 0.92 while the Synthetic-ML model had a score of 0.90.On Image 18(bottom) the models had pixel-wise F1 scores of 0.51 (Experimental) and 0.57 (Synthetic).In both images, models have similar performance variance characteristics for evaluated engineering performance metrics.Image 18 also shows an author-perceived over labeling issue present in the datasets obtained from[21].
Figure 3 :
50Figure 3: ML models predict image swelling within the range of human performance.(a) Per image results from the labeling survey that demonstrate both ML models consistently predict image swelling within the range generated by six human experts.Horizontal jitter of Expert results (red triangles) is artificial, and to prevent data overlap.(b) Distributions of the predicted normalized swelling values from the human expert labeling survey, and both ML models on the Test set & Survey set.Image confidence filtering was used for both ML models.Experimental-ML: n =21, Synthetic-ML: n = 20, Human Experts: n = 30 (6 experts x 5 images each = 30).
2. 3 :
51The effectiveness of self-regulation through image confidence score filtering.Fig 4 shows the impact of our self-regulation approach using our image confidence score filter method.See SI.3 for examples of the prediction size-confidence relationship and calculation of image-wide confidence.A notable correlation exists between the image confidence score and the computed F1
Figure 4 :
52Figure 4: Image confidence score is a good indicator of F1 performance.Both models were evaluated using the Test image set (n=20) and had the same self-regulation process applied.Individual points represent the image confidence (calculated using the predictions of the model), and the calculated F1 score.
Figure 5 : 2 . 4
53Figure 5: Normalized predicted swelling values from ML models & Experts.Each image ground truth swelling is set to be 1.0, unfilled symbols denote images that fail the image confidence score filtering.Predictions are on the 20 image Cavity Test Set.
Figure 6 :
54Figure 6: Comparison of different model performances in irradiated materials electron microscopy.Our findings reported here are displayed with those reported in literature on various different defect structures (cavities, loops, blacks dots), with varying model types, training parameters, and evaluation techniques.Expert bounds are calculated from our round robin results.Helps differentiate between visually identical data.For Chen[24], * denotes the performance using the image rescaling technique.For Shen[35], * denotes loops of the type a/2⟨111⟩, while the other is loops of the type a⟨100⟩.
557 is used for all analysis.The use of image confidence provides a simple means to assess model domain and flag potentially problematic images to quantify.Domain Expert Labeling Survey.The labeling survey image set (5 experimental images not used in other training, validation or test, Table
Training Data Domain filtering Selected Weights (Epoch Number) Unfiltered Images CV Metrics Engineering Metrics (Swelling)
56While still reasonably close to the model performance on the Test dataset with an F1 score of 0.80 with self-regulation, this 11% decrease in F1 is primarily caused by a significant decrease of Recall from 0.72 to 0.63.We hypothesize the drop in performance is likely an effect of errors in the ground truth labels, discussed in Section 2.2.Our hypothesis is supported by the observation that enhancing model selectivityby modifying feature and image confidence thresholds, as detailed in Table2resulted in minimal changes on model performance.
57To inspect the influence of our test dataset selection, we evaluated our Synthetic model on the full Experimental dataset, which contains 13,956 under-focused cavities from 175 experimental images available in this study.This could not be done with our Experimental model as many of these images were used in training the Experimental model.Testing on this expanded dataset with our 700 epoch Synthetic model with self-regulation achieved an F1 score of 0.71 and an image filtering-out rate of ~40% was found, where without self-regulation a lower F1 of 0.62 was achieved.
58, respectively, while Image A had higher consensus with a much smaller standard deviation of 0.08.This finding reflects the inherent challenges of consistently labeling images with fine details.Nevertheless, the tendency of ML models to underpredict normalized swelling was consistent, potentially attributed to the previously discussed reasons of errors in the ground truth and known challenges in small object detection for CV models.Importantly, the underprediction of swelling of the ML models shown in Fig3aremained within the inherent scatter of human
59images dominated by small features.For example, Image B & E proved particularly challenging for the experts to have consensus on, with a standard deviation in normalized swelling of 0.17 and 0.44labeling efforts on the same Image, again suggesting indistinguishable performance for the Synthetic model to either the Experiment model as shown in Table1or human-based labeling methods.
60[27]used as an example of images that are 'near domain' and for which we here refer to as the 'Loops' dataset.While these images were collected under different imaging conditions (on-zone bright field scanning transmission electron microscopy) and are of different feature types, they still exhibit somewhat similar visual characteristics with our cavity test dataset, such as general background appearance/noise and approximately round features with a dark outer ring.Similarity is expected in this case as transmission electron microscopy and scanning transmission electron microscopy are also reciprocal images when properly configured, providing images of similar visual parity[26],[27].Nevertheless, our Synthetic model flagged 60% of these images as out of domain using the same thresholds as with our cavity inference.With only slight adjustments of the threshold (0.35 for individual features, and 0.75 for images), this filtering rate rose to 91% on this Loops dataset.The same adjusted thresholds only changed the filtering rate on the Cavity Test Set from 25% to 35%.
Table 2 : Quantification of Self-regulation on In-Domain and Out-of-Domain Datasets
61. The highly sensitive nature of both filtering thresholds is apparent by the significant changes in filtering rates with only minor threshold adjustments.The same Synthetic model was used in all evaluations.
Table 3 :
62Divisions of different datasets."Data Type" indicates whether the images comprising a given set are experimental or synthetic images, and "Set Name" represents a dataset naming shorthand for convenient referencing throughout this work.For example, "Test" refers to the test dataset consisting of 20 experimental images which is used to evaluate both the Experimental and Synthetic models.*Validation sets were not ultimately used in any of the models report herein, see Section 'Training of ML models' for details
630 is the Bessel function of the first order.Using Eqn. 1, thousands of smooth 1D radial
참고문헌 46건
- Void-swelling in irons and ferritic steels Journal of Nuclear Materials · Elsevier BV · 1979 10.1016/0022-3115(79)90123-5
- Microsoft COCO: Common Objects in Context Lecture notes in computer science · Springer Science+Business Media · 2014 10.1007/978-3-319-10602-1_48
- U-Net: Convolutional Networks for Biomedical Image Segmentation Lecture notes in computer science · Springer Science+Business Media · 2015 10.1007/978-3-319-24574-4_28
- Detective quantum efficiency of electron area detectors in electron microscopy Ultramicroscopy · Elsevier BV · 2009 10.1016/j.ultramic.2009.04.002
- Application of STEM characterization for investigating radiation effects in BCC Fe-based alloys Journal of materials research/Pratt's guide to venture capital sources · Springer Nature · 2015 10.1557/jmr.2015.32
- The TEM contrast of faceted voids Philosophical Magazine A · Taylor & Francis · 1982 10.1080/01418618208236194
- Defocussed TEM contrast from small helium bubbles in copper Journal of Nuclear Materials · Elsevier BV · 1997 10.1016/s0022-3115(97)00089-5
- Phase-contrast imaging in aberration-corrected scanning transmission electron microscopy Micron · Elsevier BV · 2013 10.1016/j.micron.2013.03.006
- Void Swelling in Metals and Alloys Under Irradiation: An Assessment of the Theory Nuclear Technology · Taylor & Francis · 1978 10.13182/nt78-2
- Issues associated with the analysis and acquisition of thin-film grain size data Materials Letters · Elsevier BV · 1999 10.1016/s0167-577x(99)00146-9
- Multislice simulation of transmission electron microscopy imaging of helium bubbles in Fe Journal of Electron Microscopy · Oxford University Press · 2012 10.1093/jmicro/dfs065
- TRANSMISSION ELECTRON MICROSCOPY OF RADIATION-INDUCED DEFECTS. 1971 10.2172/4027809
- Fully Automated Measurement of the Modulation Transfer Function of Charge-Coupled Devices above the Nyquist Frequency Microscopy and Microanalysis · Oxford University Press · 2012 10.1017/s1431927611012633
- Crowdsourced Data Management 2017 10.1145/3035918.3054776
- Enhancing The Reliability of Out-of-distribution Image Detection in Neural Networks arXiv (Cornell University) · Cornell University · 2017 10.48550/arxiv.1706.02690
- Automated defect analysis in electron microscopic images npj Computational Materials · Nature Portfolio · 2018 10.1038/s41524-018-0093-8
- Nuclei counting in microscopy images with three dimensional generative adversarial networks Medical Imaging 2022: Image Processing · 2019 10.1117/12.2512591
- Crowdsourcing image analysis for plant phenomics to generate ground truth data for machine learning PLoS Computational Biology · Public Library of Science · 2018 10.1371/journal.pcbi.1006337
- Simulated Plant Images Improve Maize Leaf Counting Accuracy bioRxiv (Cold Spring Harbor Laboratory) · Cold Spring Harbor Laboratory · 2019 10.1101/706994
- Densely Connected Convolutional Networks 2017 10.1109/cvpr.2017.243
- Deep Learning for Semantic Segmentation of Defects in Advanced STEM Images of Steels Scientific Reports · Nature Portfolio · 2019 10.1038/s41598-019-49105-0
- Emulation of fast reactor irradiated T91 using dual ion beam irradiation Journal of Nuclear Materials · Elsevier BV · 2019 10.1016/j.jnucmat.2019.151831
- An Evaluation of Deep Learning Methods for Small Object Detection Journal of Electrical and Computer Engineering · Hindawi Publishing Corporation · 2020 10.1155/2020/3189691
- Automated Detection of Helium Bubbles in Irradiated X-750 Ultramicroscopy · Elsevier BV · 2020 10.1016/j.ultramic.2020.113068
- Temperature-dependent cavity swelling in dual-ion irradiated Fe and Fe-Cr ferritic alloys Acta Materialia · Elsevier BV · 2021 10.1016/j.actamat.2021.116660
- A deep learning approach using synthetic images for segmenting and estimating 3D orientation of nanoparticles in EM images Computer Methods and Programs in Biomedicine · Elsevier BV · 2021 10.1016/j.cmpb.2021.105958
- Synthetic Image Rendering Solves Annotation Problem in Deep Learning Nanoparticle Segmentation Small Methods · Wiley · 2021 10.1002/smtd.202100223
- Ensemble learning-iterative training machine learning for uncertainty quantification and automated experiment in atom-resolved microscopy npj Computational Materials · Nature Portfolio · 2021 10.1038/s41524-021-00569-7
- Multi defect detection and analysis of electron microscopy images with deep learning Computational Materials Science · Elsevier BV · 2021 10.1016/j.commatsci.2021.110576
- Performance and limitations of deep learning semantic segmentation of multiple defects in transmission electron micrographs Cell Reports Physical Science · Elsevier BV · 2022 10.1016/j.xcrp.2022.100876
- Microstructure response of ferritic/martensitic steel HT9 after neutron irradiation: Effect of temperature Journal of Nuclear Materials · Elsevier BV · 2019 10.1016/j.jnucmat.2019.151845
- Deep learning object detection in materials science: Current state and future directions Computational Materials Science · Elsevier BV · 2022 10.1016/j.commatsci.2022.111527
- Materials Swelling Revealed Through Automated Semantic Segmentation of Cavities in Electron Microscopy Images arXiv (Cornell University) · Cornell University · 2022 10.48550/arxiv.2208.01460
- AtomAI framework for deep learning analysis of image and spectroscopy data in electron and scanning probe microscopy Nature Machine Intelligence · Nature Portfolio · 2022 10.1038/s42256-022-00555-8
- YOLOv7: Trainable bag-of-freebies sets new state-of-the-art for real-time object detectors arXiv (Cornell University) · Cornell University · 2022 10.48550/arxiv.2207.02696
- A deep learning model for automatic analysis of cavities in irradiated materials Computational Materials Science · Elsevier BV · 2023 10.1016/j.commatsci.2023.112073
- Editorial: Human-centered AI: Crowd computing Frontiers in Artificial Intelligence · Frontiers Media · 2023 10.3389/frai.2023.1161006
- Synthetic data accelerates the development of generalizable learning-based algorithms for X-ray image analysis Nature Machine Intelligence · Nature Portfolio · 2023 10.1038/s42256-023-00629-1
- Materials swelling revealed through automated semantic segmentation of cavities in electron microscopy images Scientific Reports · Nature Portfolio · 2023 10.1038/s41598-023-32454-2
- In-situ TEM investigation of void swelling in nickel under irradiation with analysis aided by computer vision Acta Materialia · Elsevier BV · 2023 10.1016/j.actamat.2023.119013
- The “Problem” of Human Label Variation: On Ground Truth in Data, Modeling and Evaluation Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing · 2022 10.18653/v1/2022.emnlp-main.731
- Simulated TEM imaging of a heavily irradiated metal Acta Materialia · Elsevier BV · 2024 10.1016/j.actamat.2024.120162
- Deep learning-enabled probing of irradiation-induced defects in time-series micrographs APL Machine Learning · American Institute of Physics · 2024 10.1063/5.0186046
- Predicting performance of object detection models in electron microscopy using random forests Digital Discovery · Royal Society of Chemistry · 2025 10.1039/d4dd00351a
- Performance Evaluation of Image Super-Resolution for Cavity Detection in Irradiated Materials IEEE Access · Institute of Electrical and Electronics Engineers · 2025 10.1109/access.2025.3559443
- ultralytics/yolov5: v7.0 - YOLOv5 SOTA Realtime Instance Segmentation Zenodo (CERN European Organization for Nuclear Research) · European Organization for Nuclear Research · 2022 10.5281/zenodo.7347926