Automatic identification of crystal structures and interfaces via artificial-intelligence-based electron microscopy
간접 관련 화학·수지 · (21) 에폭시수지 (6) PEM(고분자전해질막)(7) MEA(막전극접합체)(15) 디스플레이 패널재료
기본 정보
- 저자
- DOI
- 10.1038/s41524-023-01133-1
- 저널
- npj Computational Materials
- 발행년도
- 2023
- 발행기관
- Nature Portfolio
- 피인용수
- 28
- 라이선스
- cc-by
- 논문 유형
- –
- 언어
- –
- 원문 페이지
- https://doi.org/10.1038/s41524-023-01133-1
- 토픽
- Electron and X-Ray Spectroscopy Techniques
- OpenAlex ID
- W4387261002
평가 내용
- 관련도
- 간접 관련
- 사업분야
- 화학·수지 · (21) 에폭시수지
- 부 분야
- (6) PEM(고분자전해질막), (7) MEA(막전극접합체), (15) 디스플레이 패널재료
- R&D 측면
- 분석·모델링
- 확신도
- 0.80
- 근거 용어
- atomic-resolution, scanning transmission electron microscopy, crystal structures, interfaces, Bayesian convolutional neural network
- 판단 근거
- 본 논문은 AI를 활용하여 원자 수준의 결정 구조와 계면(interface)을 자동으로 식별하는 분석 방법론을 다룹니다. 이는 코오롱인더스트리의 고분자 전해질막(PEM), MEA, 또는 디스플레이 소재의 미세 구조 및 결함 분석 공정에 응용 가능한 기술입니다.
- R&D 활용 포인트
- 고분자 전해질막(PEM)의 이온 전도 경로 분석이나 필름/전자재료의 미세 구조 결함 분석 시, AI 기반의 자동화된 전자현미경 분석 기법을 도입하여 물성 평가 효율을 높일 수 있습니다.
- 평가 입력
- 본문 70,900자 중 30,032자 발췌
초록
본문 70,900자
본문 펼치기
섹션 본문 61문단 · 44,952자
(제목 없음)
1Characterizing crystal structures and interfaces down to the atomic level is an important step for designing advanced materials.Modern electron microscopy routinely achieves atomic resolution and is capable to resolve complex arrangements of atoms with picometer precision. Here, we present AI-STEM, an automatic, artificial-intelligence based method, for accurately identifying key characteristics from atomic-resolution scanning transmission electron microscopy (STEM) images of polycrystalline materials.The method is based on a Bayesian convolutional neural network (BNN) that is trained only on simulated images. AI-STEM automatically and accurately identifies crystal structure, lattice orientation, and location of interface regions in synthetic and experimental images. The model is trained on cubic and hexagonal crystal structures, yielding classifications and uncertainty estimates, while no explicit information on structural patterns at the interfaces is included during training. This work combines principles from probabilistic modeling, deep learning, and information theory, enabling automatic analysis of experimental, atomic-resolution images.acknowledge the Max Planck Computing and Data facility (MPCDF) for computational resources and support, which enabled neural-network training on 1 GPU (Tesla Volta V100 32GB) on the Talos machine learning cluster. B.C.Y. acknowledges
Introduction
2Distinct crystal structures, surfaces, and interfaces in bulk as well as nanomaterials play a key role in tailoring desirable properties in many applications, e.g., catalysis or energy conversion and storage [1][2][3] . In particular, exposed surface structures in catalysts determine catalytic performances comprising activity and selectivity 4 . Furthermore, interfaces such as grain boundaries or stacking faults can largely affect the transport properties in energy storage or conversion devices [5][6][7][8][9][10] . For example, grain boundaries serve as ion migration paths in batteries 6,7 , act as scattering sites for phonons in thermoelectric devices 5,8 , and could degrade electronic conductivity in solar cells 9,10 . To engineer advanced materials for such applications, it is necessary to characterize their crystalline structure down to the atomic level, including defects or interfaces, local lattice orientations, and distortions [11][12][13] . Currently, the ultimate tool to probe imperfections in crystalline materials is electron microscopy.
3To date, electron microscopy techniques with aberration correction have been developed for investigating microstructures of materials with atomic spatial resolution. In particular, scanning transmission electron microscopy (STEM) images are more readily interpretable than images obtained via high resolution transmission electron microscopy (HR-TEM), due to direct correlation between image contrast and the atomic number Z of the observed species 14 . In STEM, a focused, high-energy electron beam passes through an electron transparent and hence thin sample. The electrons interact with the atoms in the sample and get both scattered elastically and inelastically, enabling to image the sample through various detector geometries (e.g., bright field (BF), dark field (DF), angular dark field (ADF), as well as high-angle annular dark field (HAADF)) and probe it through spectroscopic techniques (e.g., electron energy-loss spectroscopy (EELS) and energy-dispersive X-ray spectroscopy (EDS)) [15][16][17][18] . The most commonly employed technique to image atomic structures and crystalline defects is HAADF-STEM, where electrons scattered to large angles are collected by an annular detector forming an incoherent image. Moreover, a variety of data channels can be collected simultaneously with high-speed detectors, but as of today the wealth of information available in STEM is not fully exploited, due to the lack of versatile, automatic analysis tools 19,20 .
4Big-data analytics and artificial-intelligence have great potential for analyzing large electron-microscopy data, with several applications to various datasets being reported [20][21][22][23][24][25][26] . Such methods are introduced to uncover overlooked characteristics and this way drive a paradigm shift in image analysis and design of descriptors of atomic-resolution data. To provide a few examples, space-group classification was proposed based on electron imaging and diffraction datasets 21 . Also, multivariate statistical techniques were employed to extract structural information such as the crystal structure and orientation of a small sample region from complex four-dimensional STEM datasets 24 . Detection and assignment of microstructural characteristic that differ from the vast majority of crystalline regions and phases in STEM datasets has been performed, e.g., the identification of the local dopant distribution in graphene 22,25 , or monitoring of electron-beam induced phase transformations 23 . One can also train AI methods to assign two-dimensional (2D) Bravais lattices to STEM or scanning tunneling microscopy (STM) images 23,27 . A further approach is to reconstruct the real-space lattice from atomic-resolution images 25,28,29 , providing real-space information that can be analyzed with structure-identification methods that are based, for instance, on graphs 25 or structural descriptors 30 . Unsupervised learning for defect detection or chemical-species classification is reported, for instance, 2/32 in 31,32 . The above approaches rely heavily on recent developments in deep learning 33 . Properly trained neural networks (NNs) such as convolutional neural networks (CNNs) have been shown to solve image classification problems more accurately than other machine-learning methods and in particular, more efficiently than humans, especially in high-throughput tasks.
5Here, we propose AI-STEM, which stands for Artificial-Intelligence Scanning Transmission Electron Microscopy. AI-STEM automatically identifies projected crystal symmetry and lattice orientation as well as the location of defects such as grain boundaries in STEM images. Both synthetic and experimental images can be processed directly and in automatic fashion, no reconstruction of real-space lattices is required. We employ a Fourier-space descriptor, termed FFT-HAADF (FFT: Fast Fourier Transform), as input for a CNN. The deep-learning model classifies a given image into a selection of crystalline regions that differ not only by crystal symmetry but also orientation. This provides additional information compared to, for instance, the classification of a given image into the five Bravais lattices that exist in two dimensions. In particular, we propose an efficient training scheme that enables fast retraining and extension of the method. The model is trained on simulated images only, achieving near-perfect accuracy on both training and test data (in total 31 470 data points, see Methods). The training data contains typical noise sources that are encountered in experiment. Notably, we adopt the Bayesian neural-network (BNN) approach, employing the Monte Carlo dropout framework that was originally developed by Gal and Ghahramani 34 . BNNs do not only classify a given input but also provide uncertainty estimates. We exploit this additional information that is absent in standard deep-learning models to locate bulk regions as areas of low and interfaces as areas of high model uncertainty.
6This way, AI-STEM can identify defects without being explicitly informed about them during training. The identification of bulk and interface regions is related to semantic segmentation, a popular computer-vision task in which each image pixel is classified in order to locate individual objects 35 . Based on AI-STEM's bulk-versus-interface segmentation, further analysis can be conducted where it is meaningful -according to the model: for instance, we demonstrate how the local lattice rotation can be calculated in the detected bulk regions. Finally, we employ unsupervised learning to visualize the high-dimensional NN representations in an interpretable, two-dimensional map. This reveals that the model separates not only crystalline grains with different symmetry but also different types of interfaces -despite never being explicitly instructed to do so. All code and data is made publicly available.
Development of an automated classification procedure
7Our goal is to develop an automatic framework for analyzing experimental HAADF-STEM images of bulk materials such as shown in Fig. 1a: in this image, the bulk crystalline regions are separated by a grain boundary (the interface region). The final prediction as shown in Fig. 1f should classify the image into bulk and interface regions, while also obtaining information about the bulk symmetry and lattice orientation. Here, the bulk region should be labeled as "fcc 111", i.e., face-centered cubic symmetry in [111] orientation, since both grains are viewed along their common [111] zone axis corresponding to the tilt axis of the grain boundary. Finally, AI-STEM's predictions can be used to automatically identify where to calculate additional
3/32
8properties that provide further characterization, for instance, of the bulk regions and their local lattice rotation (cf. Fig. 1g). In the following, we explain the intermediate steps that are required to map image input (Fig. 1a) to a characterization such as shown in Fig. 1f.
Fourier-space representation of atomic-resolution images
9To achieve sensitivity to the substructure in an image such as shown in Fig. 1a, we divide it into local fragments (cf. Fig. 1b).
10Specifically, a sliding window of predefined size is scanned over the whole image and local patches are extracted for each stride.
11This allows to investigate structural transitions, e.g., between bulk and interface regions, in a smooth fashion. The selection of stride and window size is discussed in the Methods section. Each of the local patches is then transformed into reciprocal space by computing a Fourier-space descriptor (cf. Fig. 1c). Essentially, the fast Fourier transform (FFT) is calculated with additional pre-and post-processing steps (see Methods). We term this descriptor FFT-HAADF and use it as input for the machine-learning classification model. By calculating the Fourier transform, information on the lattice periodicity is enhanced, thus providing a starting point for a machine-learning model, which can be generalized to imaging modalities that provide atomic resolution information, such as HR-TEM or STM. In addition, translational invariance is introduced already at the level of the representation. The descriptor is not rotationally invariant, which is why we employ data augmentation, as we will explain in the section "Training data generation".
The Bayesian classification model
12To define the classification task, we need to specify the target labels as well as the model that maps the FFT-HAADF descriptor to the corresponding target labels. As classification model, we employ a CNN. This machine-learning method is well-known for its record-breaking performance in image classification 36,37 and is thus a perfect fit for our problem setting. The model receives the FFT-HAADF image descriptor as input and assigns the symmetry (e.g., face-centered cubic) and lattice orientation (e.g.,
13[111], cf. Fig. 1d, e). We select in total 10 different crystalline surface structures into which a given image is classified (cf. Fig. 2a). This includes the most common crystal structures appearing in metals, comprising face-centered cubic (fcc), body-centered cubic (bcc), and hexagonal close-packed (hcp) structures. We focus on low-index crystallographic orientations, which can be resolved at atomic resolution, as the projected interatomic distances are well within the resolution limit. The selected orientations are also based on mono-species metal systems for each of the crystal structures considered here: copper (Cu) for fcc, iron (Fe) for bcc, and titanium (Ti) for the hcp structure, respectively. The CNN consists of a sequence of convolutional, pooling, and fully connected layers (cf. Fig. 2b). The last layer is composed by 10 neurons, each corresponding to one of the surface classes. In particular, the output neurons are normalized such that each represents the classification probability for one of the 10 surface structures. For a given image, the most likely class corresponds to the predicted label. In the complete AI-STEM workflow, the CNN is applied to each local window, providing a classification for each local segment (Fig. 1e).
14In general, beyond classification, it is desirable to estimate the model uncertainty. This allows to assess how much one can trust a specific prediction, especially in situations that are different to the training set. This can be useful in various scenarios, 4/32 e.g., for autonomous driving 38 or medical diagnosis 39 . In our case, we train the model only on perfect crystal structures with periodic arrangements of atomic columns and use the uncertainty in the classification to identify the presence of structural defects. Given the large number of degrees of freedom for any defect, creating a library of potentially interesting defects for training is challenging -which is why we take a different approach: we use a Bayesian neural network 34, 40 which does not only classify a given (local) HAADF-STEM image, but also provides uncertainty estimates of the classification. If the uncertainty is high (low), the image is likely (unlikely) to deviate from the perfect crystal structure (on which the model is trained) and could contain a crystal defect, secondary phase with different crystal symmetry or even amorphous regions. This way, we can identify the host crystal structure and orientation at the same time and can locate regions in the image that differ from any of the training classes, where in this work, we consider grain boundaries as an example. One may be tempted to interpret the classification probabilities from the last CNN layer as being informative about model uncertainty. However, high classification probability does not always correlate with low uncertainty. In particular, standard NNs are known for overconfident extrapolations -even for points that are far outside the training set 34,40 . Modelling of predictive uncertainty can be improved by constructing a probabilistic model that provides a distribution of predictions rather than a single, deterministic one.
15In order to estimate uncertainty in deep learning models, distributions are placed over the NN weights -resulting in probabilistic outputs -instead of considering a single set of NN parameters as done in the standard approach -resulting in deterministic predictions. More formally, a standard NN is a non-linear function f ω : X → Y , i.e., a mapping from input to output space that is parametrized by parameters ω (a set of weights and biases ω :
16In this expression, p(ω|D train ) denotes the posterior that indicates how likely a set of parameters is given training data D train .
17Moreover, the likelihood p(y|x, ω) corresponds to the softmax activation function -a standard approach to normalize the output layer such that they can be interpreted as classification probabilities:
18.
19(
20where [ f ω (x)] c is the output value of the NN for the class c. We see in Eq. 1 that instead of a single hypothesis, all parameter settings weighted by their posterior probabilities are included during inference. The standard approach would correspond to choosing the posterior as a delta distribution over a specific parameter setting -resulting in the above-mentioned overconfident predictions in out-of-distribution scenarios. Evaluating integrals over the whole parameter space, as appearing in Eq. 1, is
5/32
21practically impossible -especially for large deep learning models. Fortunately, approximating tools for evaluating Eq. 1 are available.
22One way to approximate Bayesian inference in deep learning models (i.e., Eq. 1) is Monte Carlo (MC) dropout 34,40 . This approach is principled in the sense that the uncertainty estimates from MC dropout approximate those of a Gaussian process 40 .
23In more detail, dropout 41, 42 is employed -a regularization technique that is usually used to avoid overfitting by dropping individual neurons during training. This way, the model has to compensate the loss of individual neurons, avoiding that the neural activation concentrates to local parts of the network. It has been shown that powerful uncertainty estimates can be obtained by using dropout not only during training but also at test time 34 . Specifically, for a given input, the output layer is sampled for a certain number of iterations T , where each sample is calculated from different networks that are perturbed according to the dropout algorithm. To obtain a Bayesian CNN, dropout is applied after each convolutional and fully connected layer (see the yellow blocks in 2b). Classification can then be performed by calculating a simple average, i.e., the probability of class c given input x and training data D train (whose general expression is shown in Eq. 1) can be approximated as
24Here, p(y = c|x, ω t ) (defined in Eq. 2) denotes the classification probability of class c given input x and parameter configuration ω t that is obtained by random removal of neurons (defined according to the dropout algorithm). Modest number of samples typically suffice 40 , where in this work, we employ T = 100 samples. Notably, this process is in principle trivial to parallelize.
25We discuss more details on computation time and choice of T in the Supplementary Information (cf. Supplementary Fig. 4). Beyond the simple average in Eq. 1, additional information about the model confidence is contained in the collection of samples p(y = c|x, ω t ). For this, we invoke information theory, specifically mutual information. This (scalar) quantity provides a means to quantify the uncertainty, which has been employed in different settings including self-driving cars 43 as well as crystal-structure identification 30 . The mutual information is defined between predictive and posterior distribution and is denoted as I(ω, y|D train , x) (see Methods for exact definition). Intuitively, it can be understood as the information gained about the model parameters ω if one would receive the label y for a new point x. Thus, if the mutual information is high for a given data point, one would gain information once the label is specified -corresponding to high predictive uncertainty. Similar to Eq. 1, integrals over the whole parameter space appear, which are computationally intractable. However, using MC dropout, one can find a tractable expression that only involves summations over all classes and samples 34 (Methods).
Training data generation
26To train the classification model for crystal-structure identification in atomic-resolution images, a suitable training dataset has to be generated. Notably, we refrain from training on experimental images which may contain unknown artefacts, such as noise, distortions or defects. Furthermore, acquiring and curating an experimental database of images of pristine crystal structures 6/32
27imaged at different orientations with atomic resolution is an elaborate task. Instead, we train only on simulated images, where we have exact control over imaging conditions and noise sources, allowing us to create a dataset with known labels.
28Obtaining such reliable training data is essential to achieve trustable labeling output of the CNN. One may criticize simulations for potentially missing crucial features that are present in experiment. However, with the advent of aberration-correction in STEM 14 , the direct comparison of experimental and simulated images at atomic resolution became accessible also on a quantitative basis 44 . It has even been shown that it is possible to determine the number of atoms in an atomic column or to retrieve the 3D atomic structure of nano-objects by combining experimental and simulated images 45,46 . Recently developed efficient implementations of the multislice algorithm enable to simulate STEM images similar to experimental conditions 47,48 .
29Using high-performance computing, realistic simulations of images can be conducted, achieving computation times of a few hours to days for 10-100 images. In this work, we provide additional speed-up by using a convolution-based approach, reducing the computation time from days to minutes for an entire training dataset (see Methods). Using this efficient simulation scheme, we obtain images for each of the 10 classes for different lattice constants. Additionally, we include data augmentation steps to consider a range of lattice rotations and noise sources that are resembling typical experimental conditions (Methods). In this work, we include lattice shear, blurring, as well as Gaussian and Poisson noise -resulting in 31 470 data points. We want to emphasize that even though the model is trained on synthetic data, we apply it to classify experimental atomic resolution STEM images as shown in the Results section (see Fig. 4).
Neural-network training procedure
30For training, the 31 470 data points are split, where 80% is used for training and 20% for validation. Based on the performance on the validation set, we optimize hyperparameters such as the filter size in the convolutional layers and dropout ratio (the number of neurons dropped). Specifically, we employ Bayesian optimization, which is a general approach for global optimization of black-box functions that are computationally expensive to evaluate 49 . This makes Bayesian optimization a perfect fit for optimizing NNs, where exploring different architectures and optimization parameters is typically accompanied with high computational cost. Here, the black-box function to be optimized is the validation loss, and the optimization protocol we invoke 50 provides us with a list of candidate models, all with near-perfect accuracy (see Methods). Their uncertainty estimates, however, are different, as we will highlight via the following model selection procedure.
31To find the model that shows strongest performance in both classification and detection of out-of-training-distribution regions, we analyze the simulated test image in are applied to this image. Given their near-perfect accuracy during training, they all can recognize the crystalline parts of the image, while their assignments in the amorphous region differ. We can now also analyze the corresponding uncertainties, which provide an estimate of the reliability of the classifications (cf. Fig. 3b). We select the model with the highest uncertainty, as quantified by the mutual information (cf. Eq. 6), in the amorphous region. For this model, the classification results are shown in Fig. 3c, where one can see that the correct crystal symmetries are assigned in the expected regions, while in the amorphous part, several different phases are assigned. The mutual information shown in Fig. 3d increases at the interfaces between the four different crystalline regions, as well as in the amorphous part. The detailed architecture is specified in Table 1.
Application to experimental STEM data
32Now we turn to applying AI-STEM to experimental data. In the following, we challenge the model with several HAADF-STEM images, demonstrating the practical applicability of AI-STEM. In particular, we show that the model can classify crystalline regions in experimental images and how the bulk-versus-interface segmentation can be inferred and employed for further analysis -here, for determining the local lattice orientation in the bulk regions.
33First, a HAADF image of elemental Cu shown in Fig. 4a is analyzed. The image contains a horizontally aligned grain boundary separating two misoriented single crystals with a [111] orientation in the upper and lower grain, respectively. As shown in Fig. 4b, the model classifies the grain regions correctly as fcc [111]. At the interface, the same label is assigned, but with increased uncertainty (as quantified by mutual information), allowing to detect the interface region (cf. Fig 4c).
34The segmentation obtained via AI-STEM's predictions can now be used to conduct further analysis of the local lattice structure. Practically, to separate the image into bulk and interface regions, we fix a mutual-information threshold of 0.1, interpreting all local windows above this value as interface and the remaining ones as bulk. Depending on the type of region,
35i.e., interface or bulk, different quantities are suited. As an example, we calculate here the local lattice orientation, a quantity that is only reasonable to compute in the bulk regions. Specifically, for each local window, we reconstruct 52 the real-space lattice from the atomic columns and determine 53, 54 the angle of misalignment with respect to a reference training image or rather its reconstructed atomic columns (cf. Supplementary Methods for more details). Note that this way, information from the training data is entering this analysis. Also note that the reference lattice is not required as input but determined based on the NN assignments -making this procedure fully automatic and extendable (in case of retraining and new classes being added to the training set). The calculated angle is termed lattice mismatch and the results for the Cu grain boundary are shown in Fig. 4d.
36The reference images are shown below the heatmaps. For the interface region, depicted in gray in Fig. 4d, no calculation is performed. The expected misorientations are exemplarily indicated in Fig. 4a, which closely match the calculated values of Fig. 4d.
37Next, we consider a HAADF image of Fe 55 containing a grain boundary that is horizontally aligned and separates two crystalline grains with [100] orientation (cf. Fig. 4e). Compared to the previous example, this image contains intensity variation of the background but also the atomic columns, which is more pronounced, for instance, in the upper left part compared to the lower part of the image. Such variations are common in experimental images and may stem from surface damage induced
8/32
38during sample preparation or surface oxide formation. However, AI-STEM correctly classifies the bulk regions as bcc [100] (cf. Fig. 4f), while the assignment changes at the grain boundary, but with increased uncertainty (cf. Fig. 4g). In the upper left in more noisy parts of the image, the uncertainty also increases. The obtained mismatch angles are shown in Fig. 4h and also here calculated and expected angles (again indicated in the original image in Fig. 4e) are in agreement.
39Finally, we investigate a low-angle [0001] tilt grain boundary in Ti (cf. 4i), which consists of a periodic array of dislocations with a line direction perpendicular to [0001]. Hence, the interface structure is qualitatively different compared to the previously shown high angle grain boundaries for Cu and Fe. In particular, the smaller misorientation angle between both grains in the Ti image leads to regions within the interface where the atomic lattices of the two grains are still connected with each other.
40AI-STEM correctly assigns hcp [0001] (cf. Fig. 4j), with only few outliers in the classification at the grain boundary, which is again revealed via the mutual information (cf. Fig. 4k). One can observe that the mutual information is decreasing in the regions in between the grain boundary dislocations, where the lattice resembles that of undisturbed Ti [0001] and is increasing in the locations of the dislocation cores at the interface. This shows that the uncertainty estimate of the predictions can even be used to locate more confined lattice defects such as individual dislocations. Similar to the previous two examples, we obtain the local lattice mismatch (cf. Fig. 4l) that matches the expectations (cf. Fig. 4i) with a margin of few degrees.
Analyzing AI-STEM's internal representations via unsupervised analysis
41So far, we have demonstrated how AI-STEM can be used to classify lattice symmetry and orientation and is capable of detecting interfaces and even individual dislocations within an interface. To understand how the model interprets crystalline grains and interface regions, we apply unsupervised learning to the internal NN representations. Specifically, we employ manifold learning to embed the high-dimensional NN representations into two-dimensional, readily interpretable maps. We employ Uniform Manifold Approximation and Projection (UMAP) 56 , which approximates the manifold that underlies a given dataset, and allows to construct low-dimensional embeddings that can capture both global and local relationships among the original, high-dimensional data points. We consider the experimental images shown in Fig. 4a, e, i, and compute the NN representations for each of the local windows, as determined within the AI-STEM workflow (cf. Fig. 1b). Superficially, we inspect the last, fully connected layer before the output layer, i.e., before the classification is conducted (cf. Fig. 2b). The two-dimensional UMAP embedding is shown in Fig. 5a, where the color scale corresponds to the NN assignments. Despite the high level of compression, from 128 to 2 dimensions, all three images are well separated. For each image, two sub-clusters can be observed that correspond to the two bulk grains (cf. Fig. 5a). These are joined by contiguous strings that correspond to the interface regions, respectively. This is also visualized by using the mutual information as a color scale (cf. Fig. 5b), where along the strings, increased uncertainty can be observed (which indicates the presence of the defects). Notably, the different grain boundary types (e.g. high angle vs. low angle) are also mapped to different regions in the map. This demonstrates the capability of AI-STEM to not only recognize bulk symmetry and orientation but also to distinguish different interface types -even though it has never been provided with explicit examples for such a task during training.
Discussion
42In this work, we propose AI-STEM which automatically characterizes crystal structure and interfaces in simulated and experimental atomic-resolution STEM datasets. This is enabled by adapting several techniques: we employ signal-processing tools to represent imaging data, deep learning to identify crystal symmetry and orientation, and Bayesian modeling in combination with information theory to estimate model uncertainty as well as to optimize NN hyperparameters. At the core of AI-STEM is a Bayesian convolutional neural network, which goes beyond standard NN models, providing classifications and principled uncertainty estimates. The former allow identification of lattice symmetry and crystal orientation while the latter are we show that a fast convolution approach can be employed. In order to verify the applicability of the labeling procedure, a diverse set of simulated images of typical monocrystalline structures is generated, serving as reliable ground truth. Based on the segmentation provided by AI-STEM's prediction, one can conduct augmenting analysis that reveals additional characteristics of the identified regions. Here, we determine the local lattice rotation in the crystalline grains. Using unsupervised learning, we demonstrate that different types of interfaces appear separated in the internal NN space, despite no explicit information on any interface pattern is being provided during training. This analysis also shows how unsupervised learning can be used to explain a black-box model, in post-hoc fashion [57][58][59] . Moreover, on-line data processing is feasible with the proposed approach since the method is easy to parallelize and already using a single GPU we are within the range of typical acquisition times (cf. Supplementary Fig. 4).
43Furthermore, note that the presented experimental images in Fig. 4 have near to perfect zone axis orientation within the experimental limit, since the aim is to resolve the atomic structure of the interfaces with highest possible precision. While this might be considered an idealized scenario, the results of Fig. 4 should at least constitute a test for small deviations in crystal tilts, which are typically present in experimental images. Since we did not include any information on this in the training data set, the model already at that level shows to be robust. Supplementary Figure 6).
44In the future, it would be interesting to provide not only a bulk-versus-interface segmentation but also predict additional details automatically, e.g., how the crystalline grains differ. Currently, this can only be done by additional analysis, e.g., based on reconstructing the (projected) real-space lattice. However, one can see from the latent space visualization in Fig. 5 that grains with different orientation are separated. In principle, a clustering algorithm may be employed to separate the grains, while this can be challenging to automate as clustering typically involves several parameter choices that are not guaranteed to generalize well. Alternatively, one may consider a multi-label classification problem or construct a separate machine-learning model to predict the (local) lattice rotation automatically.
45In conclusion, our method shows great potential to automatically analyze and classify crystallographic attributes in STEM datasets without human intervention. In electron-microscopy research, the development of a "self-driving" microscope appears on the horizon due to rapid advances in artificial intelligence 60,61 . While we focus on mono-species systems as a proof of concept, this work paves the way to autonomous investigations of complex nanostructures at the atomic level. To match both resolutions to the training range, we decrease the box size to 136 pixels for Cu (as it is measured at higher resolution, i.e., we need to increase the box size to obtain a number of atomic columns that is comparable to the training set), and 96 for the other two images (as it is recorded at lower resolution, i.e., we smaller windows are required to obtain a number of atomic columns that is comparable to the training set). In principle, our data-generation method also allows to vary the resolution, such that retraining with various resolutions could be done as well. For the stride, we use values on the order of 1Å, to demonstrate the high-resolution capabilities of the approach. Smaller strides can suffice to reveal the main characteristics, cf.
AI-STEM parameters
46Supplementary Fig. 3 (in particular, it is possible to separate an image into bulk and interface regions). For the synthetic image in Fig. 3, we employ a stride of 12 pixels, corresponding to ∼ 1.4Å. The same settings were used for the experimental images of Ti and Cu (Fig. 4a, c). For Fe (Fig. 4b), the stride was halved as this image is smaller (about half of the size of Ti, and two third of Cu), enabling comparable number of local fragments.
47FFT-HAADF descriptor We start from the periodic arrangement of atomic columns in HAADF-STEM images. These are acquired in low-index crystallographic orientations, which directly represent the underlying projected crystal symmetry.
48In the AI-STEM workflow, an input image corresponds to a local fragment or window, extracted from a larger image. The
11/32
49cutting procedure may lead to to boundary effects, e.g., truncated atomic columns. This can lead to spurious patterns in the FFT, which is why we apply a window function to the STEM HAADF image before calculating the FFT -a standard practice in signal processing 62 . Here, we use the Hann window that provides a smooth decay at the image boundaries. Then, the FFT is calculated, resulting in spectra which have a dominant central peak, suppressing possibly valuable information at higher frequencies. Thus, we apply a thresholding scheme: the FFTs are normalized to the range [0, 1] and then all values above 0.1 are set to 1.0. This provides visible enhancement of peak patterns around the central peak, which is visualized for all classes in this work in Supplementary Fig. 1.
Neural network training
50The CNN is trained on 31 470 64 × 64 pixel images (the FFT-HAADF descriptor of the STEM HAADF images). A split of this dataset into training and test is performed in stratified fashion (via scikit-learn, using a random state of 42; see Data availability for the dataset link). Adam optimization is employed for training 63 . The CNN is implemented using Tensorflow 64 . Hyperparameters are optimized using Bayesian optimization, specifically the Tree-structured Parzen estimator (TPE) algorithm as provided by the python library hyperopt 50 . We experimented with minimizing either validation loss or accuracy, while no significant difference could be found, in terms of classification accuracy. We chose the validation loss as objective function to be minimized. We tested different configuration spaces for the network architecture and optimization parameters, including number of layers, number of filters, filter size, dropout ratio as well as batch sizes (example notebooks are provided, cf. "Data availability"). The models typically converge to near-perfect accuracy in few epochs and we find that we can restrict to smaller configuration spaces, reducing the computational cost. We fix the architecture to 6 layers (number of filters: 32,32,16,16,8,8) and focus on the search for the right kernel size ( 3 × 3, 5 × 5, 7 × 7) as well as the dropout ratio (values between 2 and 10 percent, step size 1 percent). In particular, the choice of dropout ratio is known to be important for the quality of the uncertainty estimates 40 . We run the TPE algorithm for 25 iterations. Each model is optimized for 25 epochs, saving only the model with best validation accuracy. These models achieve all near-perfect accuracy (99,9 % classification accuracy on both training and validation set), but their uncertainty estimates differ. We thus select the model that has the highest median uncertainty in the amorphous region in the synthetic polycrystal example (Fig. 3), where we expect a low degree of crystallinity. The model chosen in this fashion is reported in Table 1.
51Uncertainty quantification Given the test point x, the mutual information between the predictions and the model posterior
52The first term on the r.h.s. is termed predictive entropy 40
53The second term on the r.h.s. of Eq. 4 is defined as
54One may refer to this as expected entropy as it averages the entropy of the predictions given the parameters ω that are distributed according to the posterior distribution 66 . Using Monte Carlo dropout, one can approximate the mutual information as 34
55Details on training data generation For each of the 10 surface classes, we consider a small interval of ±0.1Å around their respective experimental lattice parameters. This is due to the fact that some of the classes can be similar (a consequence of the 2D projection provided by STEM images), for instance fcc100 and bcc100 (cf. Fig. 2a). The lattice parameters are the following: for all Cu fcc single crystals, the lattice constant a is 3.63Å; for all Fe bcc single crystals, the lattice constant a is 2.87Å; for all Ti hcp single crystals, the lattice constants a and c are 2.95Å and 4.68Å, respectively (c/a ∼ 1.587). For each of these classes, we include a range of rotations (0-90 degrees, step size 5 degrees, using the Python package scipy 67 ).
56Then, different noise sources are applied, as implemented in the Python package scikit-image 68 To speed up the training dataset generation, we also employed a simple convolution approach where the probe wave function generated in abTEM 47 was convolved with the summed projected potentials for each cell. This reduces the total calculation time for each class to several minutes. We employ this approach for training the CNN model, demonstrating that this computationally efficient approach can yield strong performance on experimental images (cf. Fig. 4).
57Scanning transmission electron microscopy (STEM) experiment All experimental STEM data were acquired using a probe
Data availability statement
58All relevant data (training and test set, experimental and synthetic images, as well as neural-network models) are available at https://doi.org/10.5281/zenodo.7756516. STEM image (a) that here contains two different crystalline regions and one grain boundary (interface). A local window is scanned over the image with a certain stride to fragment the input into local windows (b). Three different local windows are indicated in a, corresponding to regions in the bulk (red, blue) and the boundary (yellow). The local windows are then represented using a fast Fourier transform (FFT) HAADF descriptor (c, normalized between 0 and 1), where typically, a pronounced central peak can be observed. To enhance the neighboring peaks, the maximum value in the color scale is set to 0.1. This Fourier space descriptor is used as input for a Bayesian convolutional neural network (d) that provides a classification of crystal structure and lattice plane as well as uncertainty estimates (e). The former can be used to detect the bulk regions and the latter reveal the interface and in general, regions with crystal defects (f). On top of this segmentation, additional analysis, e.g. the determination of the local lattice orientation can be performed (g). The scale bar is 1 nm in a. One can see from the classification maps (b, f, j) that the expected bulk symmetries are correctly assigned. In the color scale, only the most frequent assignments are labeled, the full color scale (indicating the other assignments, e.g., in f at the interface) is shown in Fig. 3c. The uncertainty, as quantified by the mutual information (c, g, k), indicates the grain-boundary regions.
Code availability statement
59Combining these two pieces of information allows to identify the bulk and boundary regions. For the bulk regions, one can conduct further analysis: as an example, in d, h, l, we determine for each local window the local lattice mismatch, which is defined as the mismatch angle between the real-space lattices reconstructed from local window and reference image (shown below the heatmaps in d, h, l). This analysis is only conducted where it is meaningful, i.e., in bulk regions, in particular excluding high-uncertainty regions that are indicated by gray areas in d, h, l. The scale bar is 1 nm in a, e and 2 nm in i. Fig. 4, we apply the fragmentation procedure of AI-STEM (cf. Fig. 1b), and extract the neural-network representations of these local windows (for the last fully connected layer before the classification, cf. Fig. 2b). The dimension-reduction (via Uniform Manifold Approximation and Projection, short UMAP) of these high-dimensional NN representation is shown in Fig. a and b, where in a the color scale corresponds to the AI-STEM assignments, and in b the color scale corresponds to the mutual information that quantifies model uncertainty. All images are separated into three connected regions. In each of these, two connected clusters can be seen that correspond to the crystalline grains, while the connections indicate the grain boundary region. Notably, the boundary regions, which correspond to distinct interface types and are of critical importance for the material properties, do not intersect and are thus not confused by AI-STEM.
24/32
60Layer type
Supplementary Methods
61To calculate the mismatch angle, the real-space lattices for both experimental images and reference image (taken from the training set) is reconstructed via atomap 52 . The real-space lattice for the experimental data is extracted from the whole image, not for each local segment, which saves computation time. The local lattices that correspond to the local image patches from AI-STEM are extracted in a second step. For each of the local lattices, the rotation angle is determined that would align local and reference lattices. To determine this angle, point set registration is used. Specifically, the coherent point drift algorithm 53 as implemented in the python package pycpd 54 is employed, where we use the rigid registration routine determining the amount of scaling, rotation and translation that is required to match two lattices. When comparing the lattices, to reduce the effects of boundary effects introduced by the fragmentation, we only use a small, spherical local region around the respective center (decreasing the radius until less than 20 atoms are contained, which corresponds to only few nearest neighbors, depending on the lattice symmetry). Depending on the initial relative lattice orientations, the algorithm may either perform a clockwise or counter-clockwise rotation to match the lattices, leading to jumps in the calculated angles and checkerboard-type heatmaps. To solve this, we determine the minimal rotation that is required to match two lattices: the lattice symmetry provides bounds for the maximum mismatch angle. For instance, hcp has a 60 degrees rotational symmetry and a reference lattice can be rotated by a maximum of 30 degrees to match the hexagonal lattice. If the rotation angle determined via point set registration is larger than 30 degrees, we subtract 30 degrees and take the absolute value. The angle calculated in this fashion corresponds to the minimum amount of rotation to match two lattices. These values are reported in Fig. 4d
참고문헌 62건
- The rapidly changing face of electron microscopy Chemical Physics Letters · Elsevier BV · 2015 10.1016/j.cplett.2015.04.048
- Probabilistic machine learning and artificial intelligence Nature · Nature Portfolio · 2015 10.1038/nature14541
- Proceedings of the 24th international conference on Machine learning 2007 10.1145/1273496
- Fully convolutional networks for semantic segmentation 2015 10.1109/cvpr.2015.7298965
- Advances in neural information processing systems 7 Neurocomputing · Elsevier BV · 1997 10.1016/s0925-2312(97)90018-7
- Standardless Atom Counting in Scanning Transmission Electron Microscopy Nano Letters · American Chemical Society · 2010 10.1021/nl102025s
- Debye–Waller Factors and Absorptive Scattering Factors of Elemental Crystals Acta Crystallographica Section A Foundations of Crystallography · Wiley · 1996 10.1107/s010876739600089x
- scikit-image: image processing in Python PeerJ · PeerJ, Inc. · 2014 10.7717/peerj.453
- Quantitative Atomic Resolution Scanning Transmission Electron Microscopy Physical Review Letters · American Physical Society · 2008 10.1103/physrevlett.100.206101
- The Phase Behavior of Interfaces Science · American Association for the Advancement of Science · 2011 10.1126/science.1204204
- On the use of windows for harmonic analysis with the discrete Fourier transform Proceedings of the IEEE · Institute of Electrical and Electronics Engineers · 1978 10.1109/proc.1978.10837
- Explanation of potential-induced degradation of the shunting type by Na decoration of stacking faults in Si solar cells Solar Energy Materials and Solar Cells · Elsevier BV · 2013 10.1016/j.solmat.2013.06.015
- Point Set Registration: Coherent Point Drift IEEE Transactions on Pattern Analysis and Machine Intelligence · IEEE Computer Society · 2010 10.1109/tpami.2010.46
- Big–deep–smart data in imaging for guiding materials design Nature Materials · Nature Portfolio · 2015 10.1038/nmat4395
- Phonon Transport at Crystalline Si/Ge Interfaces: The Role of Interfacial Modes of Vibration Scientific Reports · Nature Portfolio · 2016 10.1038/srep23139
- Integrated Computational and Experimental Structure Refinement for Nanoparticles ACS Nano · American Chemical Society · 2016 10.1021/acsnano.5b05722
- Big Data Analytics for Scanning Transmission Electron Microscopy Ptychography Scientific Reports · Nature Portfolio · 2016 10.1038/srep26348
- Fast Predictive Image Registration Lecture notes in computer science · Springer Science+Business Media · 2016 10.1007/978-3-319-46976-8_6
- Fire up the atom forge Nature · Nature Portfolio · 2016 10.1038/539485a
- A fast image simulation algorithm for scanning transmission electron microscopy Advanced Structural and Chemical Imaging · Springer Science+Business Media · 2017 10.1186/s40679-017-0046-1
- Atomap: a new software tool for the automated analysis of atomic resolution images using two-dimensional Gaussian fitting Advanced Structural and Chemical Imaging · Springer Science+Business Media · 2017 10.1186/s40679-017-0042-5
- Progress and opportunities in EELS and EDS tomography Ultramicroscopy · Elsevier BV · 2017 10.1016/j.ultramic.2017.01.003
- Enhanced Superconductivity in Restacked TaS<sub>2</sub> Nanosheets Journal of the American Chemical Society · American Chemical Society · 2017 10.1021/jacs.7b00216
- The atomic simulation environment—a Python library for working with atoms Journal of Physics Condensed Matter · IOP Publishing · 2017 10.1088/1361-648x/aa680e
- The role of grain boundaries in perovskite solar cells Materials Today Energy · Elsevier BV · 2017 10.1016/j.mtener.2017.07.014
- Oxygen Vacancies and Stacking Faults Introduced by Low-Temperature Reduction Improve the Electrochemical Properties of Li<sub>2</sub>MnO<sub>3</sub> Nanobelts as Lithium-Ion Battery Cathodes ACS Applied Materials & Interfaces · American Chemical Society · 2017 10.1021/acsami.7b12080
- Deep Learning of Atomically Resolved Scanning Transmission Electron Microscopy Images: Chemical Identification and Tracking Local Transformations ACS Nano · American Chemical Society · 2017 10.1021/acsnano.7b07504
- Realistic Atomistic Structure of Amorphous Silicon from Machine-Learning-Driven Molecular Dynamics The Journal of Physical Chemistry Letters · American Chemical Society · 2018 10.1021/acs.jpclett.8b00902
- Strain-Induced Asymmetric Line Segregation at Faceted Si Grain Boundaries Physical Review Letters · American Physical Society · 2018 10.1103/physrevlett.121.015702
- UMAP: Uniform Manifold Approximation and Projection The Journal of Open Source Software · Open Journals · 2018 10.21105/joss.00861
- Bidirectional Transformation Enables Hierarchical Nanolaminate Dual‐Phase High‐Entropy Alloys Advanced Materials · 2018 10.1002/adma.201804727
- Definitions, methods, and applications in interpretable machine learning Proceedings of the National Academy of Sciences · National Academy of Sciences · 2019 10.1073/pnas.1900654116
- Deep learning Nature · Nature Portfolio · 2015 10.1038/nature14539
- Explainable Machine Learning for Scientific Insights and Discoveries IEEE Access · Institute of Electrical and Electronics Engineers · 2020 10.1109/access.2020.2976199
- Four-Dimensional Scanning Transmission Electron Microscopy (4D-STEM): From Scanning Nanodiffraction to Ptychography and Beyond Microscopy and Microanalysis · Oxford University Press · 2019 10.1017/s1431927619000497
- Mapping mesoscopic phase evolution during E-beam induced transformations via deep learning of atomically resolved images npj Computational Materials · Nature Portfolio · 2018 10.1038/s41524-018-0086-7
- Modelling uncertainty in deep learning for camera relocalization 2016 10.1109/icra.2016.7487679
- A Critical Review on Energy Conversion and Environmental Remediation of Photocatalysts with Remodeling Crystal Lattice, Surface, and Interface ACS Nano · American Chemical Society · 2019 10.1021/acsnano.9b03649
- A self-driving microscope and the Atomic Forge MRS Bulletin · Springer Nature · 2019 10.1557/mrs.2019.211
- Building and exploring libraries of atomic defects in graphene: Scanning transmission electron and scanning tunneling microscopy study Science Advances · American Association for the Advancement of Science · 2019 10.1126/sciadv.aaw8989
- Decoding crystallography from high-resolution electron imaging and diffraction datasets with deep learning Science Advances · American Association for the Advancement of Science · 2019 10.1126/sciadv.aaw1949
- Imaging the dynamics of catalysed surface reactions by in situ scanning electron microscopy Nature Catalysis · Nature Portfolio · 2019 10.1038/s41929-019-0395-3
- SciPy 1.0: fundamental algorithms for scientific computing in Python Nature Methods · Nature Portfolio · 2020 10.1038/s41592-019-0686-2
- Crystal-phase and surface-structure engineering of ruthenium nanocrystals Nature Reviews Materials · Nature Portfolio · 2020 10.1038/s41578-020-0183-3
- Observations of grain-boundary phase transformations in an elemental metal Nature · Nature Portfolio · 2020 10.1038/s41586-020-2082-6
- Towards data-driven next-generation transmission electron microscopy Nature Materials · Nature Portfolio · 2020 10.1038/s41563-020-00833-z
- Aluminum depletion induced by co-segregation of carbon and boron in a bcc-iron grain boundary Nature Communications · Nature Portfolio · 2021 10.1038/s41467-021-26197-9
- The Mythos of Model Interpretability Queue · Association for Computing Machinery · 2018 10.1145/3236386.3241340
- Grain Boundaries and Their Impact on Li Kinetics in Layered-Oxide Cathodes for Li-Ion Batteries The Journal of Physical Chemistry C · American Chemical Society · 2021 10.1021/acs.jpcc.1c02400
- Influence of substrates and e-beam evaporation parameters on the microstructure of nanocrystalline and epitaxially grown Ti thin films Applied Surface Science · Elsevier BV · 2021 10.1016/j.apsusc.2021.150194
- Aluminum depletion induced by co-segregation of carbon and boron in a bcc-iron grain boundary Nature Communications · Nature Portfolio · 2021 10.1038/s41467-021-26197-9
- Robust recognition and exploratory analysis of crystal structures via Bayesian deep learning arXiv (Cornell University) · Cornell University · 2021 10.1038/s41467-021-26511-5
- Defect detection in atomic-resolution images via unsupervised learning with translational invariance npj Computational Materials · Nature Portfolio · 2021 10.1038/s41524-021-00642-1
- Deep Bayesian local crystallography npj Computational Materials · Nature Portfolio · 2021 10.1038/s41524-021-00621-6
- Carrier grain boundary scattering in thermoelectric materials Energy & Environmental Science · Royal Society of Chemistry · 2022 10.1039/d1ee03802h
- Scanning Transmission Electron Microscopy Springer eBooks · Springer Nature · 2011 10.1007/978-1-4419-7200-2
- Machine learning in scanning transmission electron microscopy Nature Reviews Methods Primers · Nature Portfolio · 2022 10.1038/s43586-022-00095-w
- The abTEM code: transmission electron microscopy from first principles Open Research Europe · European Commission · 2021 10.12688/openreseurope.13015.1
- Automated Real-Space Lattice Extraction for Atomic Force Microscopy Images arXiv (Cornell University) · Cornell University · 2022 10.48550/arxiv.2208.13286
- PyCPD: Pure NumPy Implementation of the Coherent Point Drift Algorithm The Journal of Open Source Software · Open Journals · 2022 10.21105/joss.04681
- Benchmark Tests of Atom Segmentation Deep Learning Models with a Consistent Dataset Microscopy and Microanalysis · Oxford University Press · 2022 10.1093/micmic/ozac043
- AtomVision: A Machine Vision Library for Atomistic Images Journal of Chemical Information and Modeling · American Chemical Society · 2023 10.1021/acs.jcim.2c01533