Abstract
The combination of scanning electron microscopy (SEM) images and energy-dispersive X-ray spectroscopy (EDS) maps (SEM–EDS analysis) enables the analysis of the relationship between the microstructures and elemental compositions of the surfaces of materials. However, conventional SEM–EDS analyses lack comprehensiveness and quantitativeness, resulting in potential inaccuracies in reflecting the properties of the entire sample and variations in the results depending on the analyst. Therefore, herein, we propose an objective SEM–EDS analytical process that addresses the aforementioned issues. Comprehensiveness was addressed by acquiring large volumes of SEM images through automated capturing, whereas quantitativeness was addressed through microstructural analysis of the SEM images based on image features, model-based dimension reduction and clustering methods, and similarity analysis of the elemental distribution in EDS maps based on statistical distances. The proposed method was used to analyze the degradation of lithium-ion battery electrodes, affording objective results that align with subjective insights into the changes in the morphology and composition of solid electrolyte interphase (SEI) films accompanying degradation.
Similar content being viewed by others
Introduction
In materials science, it is essential to conduct detailed analyses of the surface characteristics of materials to develop high-performance materials. This is indispensable in the development of advanced materials such as batteries, semiconductors, and catalytic materials, where the microstructure of the surface and composition of the elements constituting the material significantly affect its performance. In battery materials, minor changes to the surface of the electrode particles influence the chemical reactions at the interfaces, affecting the battery lifespan and charge–discharge efficiency. Therefore, accurate analyses of the structure and chemical composition of the surface of battery materials are vital for improving battery performance1,2. For semiconductor materials, minor surface defects or impurities can hinder electron movement and degrade device performance. Hence, a detailed understanding of the surface conditions of semiconductor materials is important for enhancing the reliability and efficiency of electronic devices3,4. In catalytic materials, the number, arrangement, and composition of active sites on the surface of the material determine the activity and selectivity of the catalyst. Thus, determining the structure and chemical composition of a catalyst surface is important for optimizing catalytic reactions and developing high-performance catalytic processes5. The combination of high-resolution observations of the surface structures with analysis of the surface composition can maximize material performance. Standard methods for the detailed observation of microstructures on material surfaces involve SEM, including secondary and backscattered electron images. To reveal the chemical composition of a material’s surface, EDS is used to obtain element maps (EDS maps). The combination of SEM images and EDS maps is called SEM–EDS analysis and can reveal the relationship between the microstructure and composition of the surfaces of materials6. Previously, standard SEM–EDS analysis was subjective, based on the manual observation of a small amount of measured data, which lacked comprehensiveness and quantitativeness. Comprehensiveness refers to the use of a large amount of data across a broad area of the sample, while quantitativeness refers to the quantification of the differences in properties, such as physical values and surface structures. Analyses using limited data may not reflect the overall properties of the sample, whereas qualitative analyses may yield different results depending on the analyst. Therefore, it is essential to develop an SEM–EDS analytical method that is both comprehensive and quantitative to objectively analyze the relationship between the surface structure and composition. This is referred to as objective SEM–EDS analysis and is the main subject of this study. Challenges in achieving objective SEM–EDS analysis include the comprehensive acquisition of large datasets and the development of quantitative analytical methods that combine SEM images and EDS maps.
Recent studies related to resolving the comprehensiveness challenge in the field of materials science include deep learning-based classification using a large number of SEM images7,8, segmentation9,10,11,12, particle analysis13, and image restoration14. In biology, integrated analytical processes that combine automatic capturing, stitching, viewing, and analysis of SEM images have been proposed15,16,17. However, these methods aim solely at analyzing microstructures based on SEM images and cannot be combined with compositional information. Studies focusing on resolving the quantitativeness challenge in SEM–EDS analyses have included quantitative analytical methods based on superpixel segmentation of SEM–EDS maps and clustering of the compositional ratios for phase identification in cementitious materials18,19,20,21,22. In addition, quantitative analytical methods based on elemental correlation segmentation of SEM–EDS maps for phase identification in soil aggregates have been reported23. However, these methods aim at separating phases using both microstructural information from SEM images and compositional information from EDS maps and are not applicable for analyzing the relationship between microstructure and composition, which is the main topic of this study. Additionally, data analysis methods such as dimension reduction and clustering in these studies are model-free, designed for the analysis of small datasets, and require the simultaneous insertion of all target data into the algorithm. Therefore, their application to large datasets requires substantial computational resources and time. Thus, a comprehensive and quantitative SEM–EDS analytical method for analyzing the relationship between surface structure and composition has not been established yet.
In this study, we propose an objective SEM–EDS analytical process that combines three steps: (Step A) creation of an SEM–EDS patch image dataset based on a comprehensive automatic capture of SEM images; (Step B) quantitative analysis of microstructures based on the SEM image features; and (Step C) quantitative analysis of elemental distribution based on EDS maps. During dataset creation (Step A), the SEM images were automatically captured as described by Kume et al.15,16 and Son et al.17. This allowed the facile acquisition of comprehensive SEM image data, enabling analysis with less arbitrariness in the observation area. In the microstructural analysis (Step B), the features were calculated for each patched SEM image, followed by dimension reduction and clustering. Analyses based on textural features24,25 can quantitatively distinguish the differences in microstructures that are visually recognized. Furthermore, model-based dimensional reduction and clustering facilitate the computation of large amounts of data. During elemental distribution analysis (Step C), the differences in the elemental distribution for each cluster of microstructures were analyzed using the statistical distance26. The quantification of the distance between elemental distributions allows the quantification of the overall trends that are not reflected by the mean or variance alone. Through these steps, it is possible to quantitatively determine the differences in elemental distribution for regions with quantitatively distinguished microstructures using comprehensive data.
The proposed analytical process was used to analyze the degradation of lithium-ion battery electrodes. In lithium-ion battery graphite electrodes, a SEI film is formed during initial charging and discharging, consisting of compounds such as lithium fluoride and lithium carbonate27,28,29. Additionally, capacity degradation occurs when lithium-ion batteries are used at high temperatures, which is caused by lithium deactivation associated with changes in the morphology and composition of the SEI film on the graphite electrode surface30,31. These results are based on theoretical chemical analyses or subjective analyses through visual observation. Recent research on the quantitative analysis of microstructural data of battery materials32 involved segmentation by deep learning33,34,35,36, super-resolution37, and image quality evaluation38. However, these methods do not utilize large automatically-measured datasets in their analytical process, nor do they combine analyses of surface structures with compositional information. In our study, we applied the proposed method to multiple lithium-ion battery electrodes with varying degrees of degradation, enabling a comprehensive and quantitative analysis of the relationship between surface structure and composition. Our analytical method yielded results that are consistent with the findings of traditional subjective analyses. Furthermore, we analyzed the detected blobs (circular regions) in the SEM images that are considered related to the morphologically changed SEI films due to degradation. The combination of the microstructure results with the blob results verified that the proposed method, particularly when analyzing lithium-ion battery electrodes, captured the differences in blob features related to the SEI film.
In summary, herein, we propose an objective and concretized SEM–EDS analytical process by combining appropriate data measurements and analytical methods. Furthermore, the proposed method was applied to the analysis of the degradation of lithium-ion battery electrodes, exhibiting consistent results with the traditional qualitative insights reported in the literature for electrode degradation.
Results and discussion
Proposed analytical process
Figure 1 presents the objective SEM–EDS analytical process proposed in this study. Initially, in Step A (dataset creation), a dataset of aligned SEM–EDS patch images was created by acquiring SEM images through automatic capturing, stitching of SEM images, measurement of EDS maps, alignment of SEM images with EDS maps, and patch division. In Step B (microstructural analysis), the dataset of the patched SEM images was used to cluster the microstructures. This includes extracting the SEM image features, reducing the dimensionality of the features, and clustering low-dimensional features. In Step C (elemental distribution analysis), an integrated analysis of the microstructure clustering results and elemental distribution in the patched EDS maps was conducted. For each microstructural cluster, the elemental distribution was created from the corresponding patches of the EDS maps and their similarity to the overall elemental distribution was calculated. By comparing the similarities obtained for each cluster, it is possible to quantitatively understand the contribution of the elemental distribution in areas with different microstructural features to the overall trend of the elemental distribution. The specific technologies used in each step are described in the Methods section.
Measurement results
This section presents the measurement results obtained from both SEM images and EDS maps. Figure 2 shows the SEM image dataset used for microstructural analysis. In this study, three lithium-ion batteries with different degrees of degradation were analyzed by collecting ten samples from each battery, resulting in a total of thirty samples. The batteries had capacity retention rates of 100%, 95.5%, and 85.2%, indicating one new battery and two degraded batteries. SEM images and EDS maps were obtained for all samples. Details of the samples are included in the Methods section. In Step A, a dataset consisting of paired patch images of SEM images and EDS maps (F, O, and C) was created, totaling 436,800 pairs. For each sample, 100 SEM images (backscattered electron images) were automatically captured in a grid pattern of 10 × 10, requiring approximately 1.5 h per sample. Thus, the total time required for automatic capture of the images of the 30 samples was approximately 45 h. Figure 3 presents examples of the stitched 100 SEM images and their magnified views. It is evident from Fig. 3 that high-magnification SEM images across a broad area can be obtained through automatic capture. Additionally, Fig. 4 (EDS maps) shows the elemental maps of F, O, and C corresponding to the same fields of view as the SEM images. These maps enable a detailed examination of the elemental distributions, highlighting the differences in the elemental concentrations among the regions of interest. Comparison of the SEM images of the new battery (Fig. 3a) with those of the degraded batteries (Fig. 3b and c) revealed the presence of SEI films in the degraded batteries, indicating a morphological change due to degradation. This morphological change is further corroborated by the increased presence of fluorine and oxygen in the EDS maps of the degraded batteries.
Overview of the SEM image dataset used in this study. The dataset consists of three batteries with different storage durations: initial (0 d), stored for 105 d, and stored for 387 d. For each battery, 10 samples were taken from the electrodes, as described in the Methods section and shown in Fig. 12. SEM images were captured from each sample to generate a comprehensive dataset for analysis.
Stitched and magnified views of automatically captured SEM images. (a-1), (b-1), and (c-1) represent examples of stitched SEM images of lithium-ion battery electrode samples with capacity retention rates of 100%, 95.5%, and 85.2%, respectively. (a-2), (b-2), and (c-2) are images of the areas outlined in yellow in (a-1), (b-1), and (c-1), respectively, indicating that the physical size per pixel is the same in both the original images and the magnified images.
Elemental distribution maps (EDS maps) of F, O, and C corresponding to the same fields of view as the SEM images in Fig. 3. Panels (a-1), (b-1), and (c-1) show the SEM images from Fig. 3 for a new battery sample (100% capacity retention), a degraded battery (95.5% capacity retention), and a further degraded battery (85.2% capacity retention), respectively. Panels (a-2), (b-2), and (c-2) show the elemental distribution of fluorine (F) for the corresponding samples. Panels (a-3), (b-3), and (c-3) show the elemental distribution of oxygen (O), and panels (a-4), (b-4), and (c-4) show the elemental distribution of carbon (C) for the corresponding samples.
Microstructural analysis results
In Step B, the features were extracted from the SEM patch images in the dataset, followed by reduction to two dimensions and clustering. Figure 5 shows the results of clustering the low-dimensional features, with the number of clusters set to three. The method for determining the number of clusters is described in the Methods section and Supplementary Information. It is evident from Fig. 5 that in the results of the degraded batteries (b) and (c), the areas of clusters 1 and 2 have expanded, whereas the area of cluster 3 has shrunk compared to the result of the new battery (a). Images overlaying the clustering results on the SEM images in Fig. 3 are shown in Fig. 6. The magnified views in Fig. 6 show that clusters 1 and 2 correspond to areas with coarse microstructural features, whereas cluster 3 corresponds to areas with smooth microstructural features or gaps between particles. Furthermore, in the results of the degraded batteries in Fig. 6b and c, comparison of the areas of clusters 1 and 2 indicates that the particles presumed to have morphologically changed due to degradation are mostly found in cluster 1. This confirms that clustering-based analysis can effectively distinguish the differences in the microstructural features of the SEM image.
Overlaid images of microstructure clustering results on SEM images. (a-1), (b-1), and (c-1) represent examples of SEM image data of lithium-ion battery electrodes with capacity retention rates of 100%, 95.5%, and 85.2%, respectively, and show the same fields of view as in Fig. 3. (a-2), (b-2), and (c-2) show the magnified views of the areas within the yellow frames in (a-1), (b-1), and (c-1), respectively. Blue, orange, and green represent clusters 1, 2, and 3, respectively. The square segments visible in the images represent the individual patches used for the analysis, with each patch covering an area of 635 × 635 nm.
Blob analysis related to SEI films
Microstructural analysis suggested that the differences between clusters 1 and 2 were related to the differences in the SEI films that changed morphologically due to degradation. An analysis was conducted to detect blobs (circular areas) in the SEM images, which are presumed to be related to the SEI films, and their relationship with the microstructural analysis results was examined. SEI films appear in SEM images as circular areas with different brightness values (blobs), therefore, it is expected that they can be detected using the standard difference of Gaussian (DoG) filter39. An example of the blob detection results using the DoG filter on patched SEM images binarized using Otsu’s method25 is shown in Fig. 7. It can be confirmed from Fig. 7 that the blobs related to the SEI films can be detected satisfactorily using the DoG filter. This blob-detection process was conducted on all patched SEM images in the dataset, and the number of blobs detected in each patch was counted. Furthermore, for each of the aforementioned microstructure clusters, a graph of the normalized frequency distribution of the number of blobs in the corresponding patches is shown in Fig. 8. Regardless of the capacity of the batteries, the number of blobs increased in the order of clusters 3, 2, and 1 (Fig. 8). This result is consistent with the intuitive interpretation mentioned in Fig. 6, where SEI films with morphological changes due to degradation were more prevalent in the order of clusters 3, 2, and 1. This confirms that when the proposed method is applied to lithium-ion battery electrodes it can capture the differences in the blob features related to the SEI film.
Blob detection results. Examples of blob detection results on SEM patch images using the DoG filter. (a-1), (a-2), and (a-3) represent SEM patch images of lithium-ion battery electrodes with capacity retention rates of 100%, 95.5%, and 85.2%, respectively. (b-1), (b-2), and (b-3) show the results of the blob detection for the SEM images (a-1), (a-2), and (a-3), respectively.
Elemental distribution analysis results
For each battery with different capacity retention rates and for each microstructure cluster, the corresponding patched EDS maps (F, O, and C) were extracted, and their mean brightness values were calculated. A graph normalizing the frequency distribution of the calculated average elemental amounts for each patch is shown in the upper section of Fig. 9. Furthermore, the results of calculating the similarities between the overall elemental distribution and the elemental distribution for each cluster are shown in the lower section of Fig. 9. From the elemental distribution of each battery in the upper section of Fig. 9, it can be observed that upon degradation (decrease in the capacity retention rate), the amounts of fluorine and oxygen increase, while the amount of carbon decreases. Moreover, from the similarities between the distributions in the lower section, it is noted that for the new battery, the differences in similarities between clusters are small; however, for the degraded batteries, the similarities are greater in clusters 1 and 2 than in cluster 3. This indicates that the regions corresponding to clusters 1 and 2, which had coarse microstructural features, contribute more to the overall trend of the elemental distribution, whereas the contribution was smaller in the region of cluster 3, which corresponds to smooth microstructures or gaps. Comparison of the elemental distributions of clusters 1 and 2 in the two degraded batteries revealed that for elements F and O, cluster 1 had a higher elemental amount, deviating from the overall trend, whereas for C, cluster 1 had a lower elemental amount, resembling the overall trend.
Elemental distribution analysis results. (a), (b), and (c) present the elemental distributions of F, O, and C, respectively. The upper section shows the elemental distribution calculated for each battery with different capacity retention rates and for each microstructure cluster. The lower section shows the similarities between the overall elemental distribution and the elemental distribution for each cluster.
Discussion
The comprehensiveness and quantitativeness of the proposed method are discussed based on the measurement and analytical results.
Comprehensiveness
The total number of high-magnification SEM images obtained through automatic capture was 3000, while the number after patching was 436,800. Figure 2 presents the comprehensive nature of the dataset, showing the large field of view captured through the stitching of 100 SEM images for a single sample. This approach allows for the analysis of extensive regions while maintaining a high resolution. Compared with related studies on SEM–EDS data analysis18,23 involving 19 and 18 SEM images, our data number is at least 100 times higher. The ability to handle such large datasets is critical for ensuring that the analysis reflects the overall properties of the sample and minimizes the risk of bias introduced by limited data selection. Although it is conceivable that an expansion to even more data may be necessary depending on the analysis subject, our analytical process was designed to handle large-scale data for both measurement and analysis, making the expansion straightforward.
Quantitativeness
The microstructural results revealed that clusters 1 and 2 corresponded to areas with coarse surface structures and a high number of blob features related to SEI films, whereas cluster 3 corresponded to areas with smooth surface structures or gaps and fewer blob features. Furthermore, the elemental distribution analysis results confirmed that in the degraded batteries, clusters 1 and 2 had higher amounts of fluorine and oxygen and lower amounts of carbon. These quantitative analysis results are consistent with existing qualitative insights into electrode degradation phenomena, where SEI films composed of lithium fluoride and lithium carbonate change morphologically and cover the carbon substrate. Thus, the proposed method demonstrated excellent quantitative analysis results (i.e., quantification of qualitative knowledge), which aligned with traditional analysis-based qualitative reports.
Methods
As shown in Fig. 1, the proposed analytical process involves three steps: dataset creation, microstructural analysis, and elemental distribution analysis. The details of each step are as follows:
Step A: dataset creation
Step A-1: automatic capturing of SEM images
For a comprehensive microstructural analysis using SEM images, high-magnification SEM images were acquired through automatic capturing, similar to the method reported by Kume et al.15,16 and Son et al.17. Initially, a grid of capturing coordinates is created based on the capturing center coordinates, size per capture, number of captures, and overlap rate (Fig. 10). Considering subsequent stitching, the coordinates are determined in a way that the edges of the adjacent SEM images overlap based on the overlap rate. Then, using the communication function of the SEM instrument, continuous field capturing was performed by sequentially transmitting the coordinates.
Step A-2: stitching of SEM images
The obtained grids of the SEM images are stitched vertically and horizontally to create high-magnification SEM images covering a wide area. However, simple stitching can result in discontinuous images at the borders because of stage position shifts and image distortions during the continuous field capture of the SEM images14,40,41,42,43. Therefore, in this study, stitched images with continuous borders were created by stitching the SEM images, including the overlaps, using the grid/collection stitching function of PyImageJ44, as reported by Kume et al.15,16 and Son et al.17.
Step A-3: measurement of EDS maps
A single low-magnification EDS map was used to cover the area captured using the automated SEM image capturing. EDS maps were created by applying region of interest (ROI) techniques to visualize the X-ray count values corresponding to specific elements. Additionally, considering the subsequent alignment process, a low-magnification SEM image was captured in the same field of view as that of the EDS measurement.
Step A-4: alignment of SEM images and EDS maps
Integrated quantitative analysis combining the SEM images and EDS maps requires alignment of the images. Although the EDS map (Fig. 11, bottom left) and low-magnification SEM image taken simultaneously with the EDS measurements (Fig. 11, top left) are generally aligned, the stitched high-magnification SEM image (Fig. 11, top right) and low-magnification SEM image are not aligned. Therefore, the stitched high-magnification SEM image and EDS map are also not aligned. In this study, we calculated the transformation matrix aligning the low-magnification SEM image taken simultaneously with the EDS measurement with the stitched high-magnification SEM image and used it to align the EDS map with the stitched high-magnification SEM image. The stitching of the SEM images prior to alignment serves two purposes: First, the EDS maps are acquired at low magnification, whereas the SEM images are captured at high magnification. Therefore, by stitching the SEM images, their field of view matches that of the EDS maps, enabling more accurate alignment. Second, performing alignment after stitching allows the comparison of the global structural features, enhancing the precision of the alignment process. The specific alignment algorithm39,45 uses oriented FAST and rotated BRIEF (ORB) to detect image keypoints and calculate descriptors, followed by brute-force matching and similarity evaluation between descriptors based on the Hamming distance to determine the correspondences between images. The projection transformation matrix is then calculated from the correspondences selected by the random sample consensus (RANSAC) algorithm. The position alignment is completed by applying the projection transformation based on the transformation matrix.
Step A-5: patch division of SEM images and EDS maps
The aligned SEM images and EDS maps are divided into fixed-sized patches to create a dataset of patched SEM images and EDS maps for subsequent analysis. When training the machine learning models during the analysis, a randomly selected portion of the dataset was used as training data.
Step B: microstructural analysis
Step B-1: feature extraction from SEM images
The features of the microstructures are extracted from each patched SEM image. In general, the methods for feature extraction from images can be categorized into those based on classical image features and those based on deep learning. Classical features include keypoint-based features such as scale-invariant feature transform (SIFT), speeded-up robust features (SURF), ORB45, as well as textural features24,25 such as local binary patterns46, and gray-level co-occurrence matrix (GLCM)47,48,49. Among these, the GLCM features, known for their high interpretability, quantify differences in human intuitive perception of images, such as “rough” or “smooth”47,49,50,51,52. Furthermore, the GLCM features have been applied in material image analysis and have been proven effective in microstructural analysis based on SEM images of steel53,54,55,56 and concrete57.
Recently, deep-learning-based image feature extraction models like convolutional neural networks (CNNs) and vision transformers (ViTs) have gained attention39. The effectiveness of the features extracted by machine learning models in material science image analysis has been demonstrated58,59,60,61,62, achieving high accuracy in tasks such as regression63, segmentation64,65,66, and super-resolution67,68. Although machine-learning-based models capture complex features that are difficult for the human eye to detect, their complexity makes intuitive interpretation challenging60,69.
The goal of this study was to develop an objective analytical process that provides consistent results with traditional intuitive insights rather than achieving high accuracy in a conventional sense (e.g., regression or classification accuracy); therefore, classical features were adopted. In particular, for SEM image analysis, it is important to capture not only keypoint features but also overall image features; hence, GLCM features were used for microstructure analysis. Following the method by Tsutsui et al.56, we used a total of 17 types of GLCM features: correlation, contrast, cluster prominence, cluster shade, dissimilarity, angular second moment (ASM), energy, entropy, homogeneity, maximum probability, inverse difference normalized, inverse difference moment normalized, sum average, sum entropy, sum variance, difference variance, and difference entropy. Among these, contrast, entropy, and homogeneity are particularly efficient for microstructural analysis. Contrast captures the sharpness of the boundaries between rough and smooth areas, emphasizing the transitions at the edges of the structural features. Entropy quantifies the complexity of the microstructure by measuring the randomness in pixel intensity distributions, making it an essential indicator for identifying highly irregular regions. Moreover, prior research by Tsutsui et al.56 identified homogeneity as an essential feature for distinguishing microstructures in SEM images of steel, suggesting its relevance in similar material analyses. For each of these 17 GLCM features, we varied the distance and angle parameters in N and M ways, respectively, and calculated a total of 17 × N × M dimensional features.
Step B-2: dimensionality reduction of SEM image features
Dimensionality reduction was performed to reduce the calculated redundancy of the SEM image features and to visualize the features on a two-dimensional plane. Standard methods for feature dimensionality reduction include principal component analysis (PCA)70, t-distributed stochastic neighbor embedding (t-SNE)71, and uniform manifold approximation and projection (UMAP)72. T-SNE and UMAP are known for their ability to place similar feature vectors of a high-dimensional space close to each other in a low-dimensional space. However, these model-free algorithms require the simultaneous input of all the features of the analytical target, rendering them unsuitable for dimensionality reduction of high-dimensional features of large datasets. Thus, in this study we used parametric UMAP73, which trains the dimensionality reduction model through a neural network to reduce the dimensionality of features to two dimensions. After training the dimensionality-reduction model using the features of the training data, the model was used to reduce the dimensionality of the features of the remaining data.
Step B-3: clustering of SEM image features
Clustering was performed to group the SEM patch images based on differences in microstructural features. While methods such as supervised classification and segmentation using manually annotated data could be considered for grouping the image features, we employed unsupervised clustering to ensure objective grouping. Clustering methods include k-means, the Gaussian mixture model (GMM), density-based spatial clustering of applications with noise (DBSCAN), and spectral clustering74. In this study, we used spectral clustering, which is known for its applicability to nonlinear data clustering, to cluster features after dimensionality reduction.
Because clustering results depend on the hyperparameters of the number of clusters, it is important to evaluate these results and determine the optimal number of clusters. For instance, too few clusters may result in overly simplistic and trivial clustering, whereas too many clusters can lead to complexities that are difficult for humans to interpret. Known methods for evaluating and optimizing clustering results include modifying the results based on an analyst’s expert knowledge through feedback21,75. However, to achieve an objective analysis that does not rely on an analyst’s subjectivity, quantitative evaluation metrics were used in this study to determine the number of clusters. Quantitative metrics for evaluating clustering results include the silhouette coefficient76 and the Calinski-Harabasz (CH) criterion77, which consider the cohesion within clusters and the separation between clusters. In this study, the clustering result that maximizes the CH criterion was adopted; spectral clustering was performed multiple times on the training data with varying numbers of clusters and the number of clusters for which the CH criterion is maximized was selected.
Notably, similar to dimensionality reduction, spectral clustering is a model-free algorithm, unsuitable for processing large datasets. Therefore, a predictive model for clusters was trained using the low-dimensional features of the training data and the adopted clustering results. Any classification model can be adopted for the predictive model; in this study, we used the simplest nearest-neighbor model70. The trained model was then used to cluster the low-dimensional features of the remaining data.
Step C: elemental distribution analysis
Step C-1: calculation of total elemental distribution
The elemental distributions across the entire dataset of the EDS maps were calculated. The brightness values of each patched EDS map were averaged, and the frequency distribution of the average brightness values represented the overall elemental distribution.
Step C-2: calculation of elemental distribution by cluster
To analyze the differences in elemental distribution for areas with different microstructures, the elemental distribution of each cluster obtained through microstructural analysis was calculated. Specifically, patched EDS map groups corresponding to each cluster (patched EDS maps at the same locations where the SEM image cluster corresponded to the target cluster) were extracted from the patched EDS map dataset, and a frequency distribution of the average brightness values was created.
Step C-3: calculation of similarity between elemental distributions
To quantify the contribution of the elemental distribution by cluster to the overall elemental distribution, the similarity between these distributions was calculated. The Kullback–Leibler (KL) divergence70 and Wasserstein distance26 are quantitative metrics for comparing distributions. However, because the KL divergence does not satisfy mathematical properties, such as symmetry and triangle inequality, it is not suitable for intuitive interpretation of distance. Therefore, the similarity between the elemental distributions was quantified by taking the inverse of the Wasserstein distance between the elemental distributions.
Lithium-ion battery electrode samples
The proposed method was applied for the analysis of lithium-ion battery electrode samples, using data obtained from three commercially available lithium-ion batteries (Panasonic NCR18650B) with varying degrees of degradation (capacity retention rates). Two batteries were degraded (capacity reduced) during high-temperature storage. The third battery was not subjected to high-temperature storage and served as the new battery. High-temperature storage was conducted at a state of charge (SOC) of 100% and a voltage of 4.2 V, at a storage temperature of 60 °C. The storage duration of the degraded batteries varied, resulting in different capacity retention rates (Table 1).
The capacity of each battery was measured by fully discharging the batteries through a constant current–constant voltage (CC–CV) mode after CC–CV charging. As shown in Table 1, the longer the storage duration, the lower the capacity retention rate. After capacity measurement, each battery was fully discharged and disassembled, and the positive and negative electrodes were separated. The graphite negative electrodes were washed with dimethyl carbonate to remove the electrolyte, followed by drying. Ten samples were taken from each electrode to cover different areas evenly, including regions near the edge and the center of the electrode. The sampling locations are shown as yellow frames in Fig. 12. This approach ensures that the dataset represents the full structure of the electrode for SEM–EDS measurements. The aforementioned procedures were conducted inside an argon-filled glove box to prevent air exposure of the samples. Three levels of degradation conditions were applied involving ten samples each, thus affording a total of 30 samples.
SEM–EDS measurement settings
The measurement conditions for the SEM images and EDS maps obtained in Step A were as follows: During the automated capture process, high-magnification SEM images were sequentially captured in a 10 × 10 grid pattern with a 10% overlap rate for each battery (ten samples per battery). A total of 3000 SEM images were therefore captured across all samples. SEM imaging was performed using a Hitachi High-Tech SU7000 for backscattered electron imaging, with the conditions set to a magnification of 10 k times, an acceleration voltage of 2 kV, and an image size of 1280 × 960 pixels. Subsequently, one EDS map and one low-magnification SEM image covering the area of the high-magnification SEM image group were measured. EDS mapping was performed using an Oxford Instruments Ultim Max 170 for the F, O, and C maps set to a magnification of 1 k times, an acceleration voltage of 2 kV, and an image size of 2048 × 1536 pixels. The low-magnification SEM images were captured under identical conditions.
Image processing conditions
In Step A, the SEM images and EDS maps were stitched, aligned, and then divided into 64 × 64 pixel patches (635 × 635 nm), affording 436,800 pairs of patched SEM images and EDS maps. In Step B, two distance parameters (1 and 10) and four angle parameters (0, π/4, π/2, and 3π/4) were used for calculating the 17 types of GLCM features for each SEM patch image, producing 136-dimensional features. The numbers of clusters considered for spectral clustering were set to six options: 3, 4, 5, 6, 7, and 8. To train the dimensionality reduction and clustering models, 50,000 of the 436,800 SEM patch images were randomly selected.
Conclusion
In this study, we proposed an objective SEM–EDS analytical process that addresses the limitations of conventional SEM–EDS analysis, namely the lack of comprehensiveness and quantitativeness. By combining the automated capture of large-scale SEM datasets with the quantitative analysis of microstructures and elemental distributions, this method offers a robust and unbiased evaluation of the relationship between surface structure and composition. Degradation analysis of lithium-ion battery electrodes revealed that the proposed method yields results consistent with traditional subjective outcomes, while providing additional quantitative clarity. This analytical approach has broad applicability beyond the specific case of lithium-ion battery electrodes, as it establishes a general framework for integrating microstructural and compositional data. This is particularly valuable for new materials with limited prior analytical information, as the method reduces reliance on expert subjectivity and enhances reproducibility.
Future work on SEM–EDS analysis should focus on enhancing the efficiency of data collection and improving the interpretability of the features. Although SEM image capturing is an automated procedure, EDS measurements are still performed manually. For SEM image-based surface structural analysis, capturing fine details at high magnification is essential, whereas for compositional analysis using EDS maps, lower magnification maps are deemed sufficient for analyzing elemental distribution. However, the automation of EDS measurements is essential when analyzing large datasets. Furthermore, our approach involves transforming 136- dimensional GLCM features into two-dimensional abstract features using parametric UMAP to visualize features on a two-dimensional plane and facilitate interpretation. However, this process complicates the direct comparison of individual feature contributions to the clustering results. Therefore, improving the interpretability of GLCM features through methods like local interpretable model-agnostic explanations (LIME)78 or Shapley additive explanations (SHAP)79 will be a significant task moving forward.
Additionally, optimizing the selection of analytical methods remains an important topic for improving practical applicability. While this study demonstrated the effectiveness of GLCM-based features in explaining traditional qualitative results, a systematic evaluation of the different methods, including deep learning-based features, could be beneficial for addressing more complex problems. However, deep learning features generally lack interpretability, which can make them less suitable for applications requiring reliable decision-making. Balancing the flexibility of deep learning with the interpretability of classical features, possibly through advanced interpretability techniques (e.g., LIME, SHAP), represents a promising direction for future research. Furthermore, quantitative evaluation metrics, such as the separability of feature distributions or elemental maps among clusters, could provide objective criteria for comparing analytical methods. These efforts would contribute to a more robust and generalizable framework, although they extend beyond the scope of this paper.
Data availability
The datasets generated and analyzed in the current study are not publicly available but are available from the corresponding author upon reasonable request.
Code availability
The underlying code for this study and the datasets are not publicly available. However, they are available to qualified researchers upon reasonable requests from the corresponding author.
References
Zhu, Z. & Chen, X. Artificial interphase engineering of electrode materials to improve the overall performance of lithium-ion batteries. Nano Res. 10, 4115–4138 (2017).
Minato, T. & Abe, T. Surface and interface sciences of Li-ion batteries. Prog. Surf. Sci. 92, 240–280 (2017).
Lägel, B., Baikie, I. D. & Petermann, U. A novel detection system for defects and chemical contamination in semiconductors based upon the Scanning Kelvin Probe. Surf. Sci. 433–435, 622–626 (1999).
Feenstra, R. M. & Gaan, S. Quantitative determination of nanoscale electronic properties of semiconductor surfaces by scanning tunnelling spectroscopy. J. Phys. Conf. S. 326, 012009 (2011).
Kale, M. J. & Christopher, P. Utilizing quantitative in situ FTIR spectroscopy to identify well-coordinated Pt atoms as the active site for CO oxidation on Al2O3-supported Pt catalysts. ACS Cat. 6, 5599–5609 (2016).
Goldstein, J. I. et al. Scanning Electron Microscopy and X-ray Microanalysis (Springer, 2018).
Modarres, M. H. et al. Neural network for nanoscience scanning electron microscope image recognition. Sci. Rep. 7, 13282 (2017).
Aversa, R., Coronica, P., Nobili, C. D. & Cozzini, S. Deep learning, feature learning, and clustering analysis for SEM image classification. Data Intell. 2(4), 513–528 (2020).
Azimi, S. M., Britz, D., Engstler, M., Fritz, M. & Mücklich, F. Advanced steel microstructural classification by deep learning methods. Sci. Rep. 8, 2128 (2018).
Yildirim, B. & Cole, J. M. Bayesian particle instance segmentation for electron microscopy image quantification. J. Chem. Inf. Model. 61, 1136–1149 (2021).
Motyl, M. & Madej, Ł. Supervised pearlitic–ferritic steel microstructure segmentation by U-Net convolutional neural network. Arch. Civ. Mech. Eng. 22, 206 (2022).
Shah, A. et al. Automated image segmentation of scanning electron microscopy images of graphene using U-Net Neural Network. Mater. Today Commun. 35, 106127 (2023).
Sun, Z. et al. A deep learning-based framework for automatic analysis of the nanoparticle morphology in SEM/TEM images. Nanoscale 14, 10761–10772 (2022).
Lobato, I., Friedrich, T. & Van Aert, S. V. Deep convolutional neural networks to restore single-shot electron microscopy images. npj Comput. Mater. 10, 10 (2024).
Kume, S. et al. Development of semantic web-based imaging database for biological morphome in Lect. Notes Comput. Sci. (ed. Wang, Z., Turhan, A. Y., Wang, K. & Zhang, X.) Semantic Technology, JIST 2017 (Springer, 2017) 10675.
Kume, S. Short review pathology of the image big data era using electron microscopy. Preprint at arXiv:2111.13627 (2021).
Son, R. et al. Morphomics via next-generation electron microscopy. J. Mol. Cell Biol. 15, mjad81 (2024).
Georget, F., Wilson, W. & Scrivener, K. L. edxia: Microstructure characterisation from quantified SEM-EDS hypermaps. Cem. Concr. Res. 141, 106327 (2021).
Georget, F., Bénier, C., Wilson, W. & Scrivener, K. L. Chloride sorption by C-S-H quantified by SEM-EDX image analysis. Cem. Concr. Res. 152, 106656 (2022).
Georget, F., Wilson, W. & Scrivener, K. L. Simple automation of SEM-EDS spectral maps analysis with Python and the edxia framework. J. Microsc. 286, 185–190 (2022).
Georget, F., Schmatz, J., Wellmann, E. & Matschei, T. A critical catalogue of SEM-EDS multispectral maps analysis methods and their application to hydrated cementitious materials. J. Microsc. 294, 105–116 (2024).
Jiang, M. et al. Workflow for high-resolution phase segmentation of cement clinker from combined BSE image and EDX spectral data. J. Microsc. 286, 85–91 (2022).
Allegretta, I. et al. SEM-EDX hyperspectral data analysis for the study of soil aggregates. Geoderma 406, 115540 (2022).
Liu, L. et al. From BoW to CNN: Two decades of texture representation for texture classification. Int. J. Comput. Vis. 127, 74–109 (2019).
Gonzalez, R. C. & Woods, R. E. Digital Image Processing (Pearson, 2018).
Peyré, G. & Cuturi, M. Computational optimal transport: With applications to data science. Found. Trends 11, 355–607 (2019).
Oka, H., Kadoura, H., Takahashi, N. T. & Ikawa, T. Effect of amorphous carbon coating on the formation of solid electrolyte interphase and electrochemical properties of a graphite electrode. J. Power Sour. 543, 231850 (2022).
Surace, Y. et al. Evidence for stepwise formation of solid electrolyte interphase in a Li-ion battery. Energy Storage Mater. 44, 156–167 (2022).
Lee, S.-H. et al. A new approach to surface properties of solid electrolyte interphase on a graphite negative electrode. J. Power Sour. 247, 307–313 (2014).
Heiskanen, S. K., Kim, J. & Lucht, B. L. Generation and evolution of the solid electrolyte interphase of lithium-ion batteries. Joule 3, 2322–2333 (2019).
Andersson, A. M. & Edström, K. Chemical composition and morphology of the elevated temperature SEI on graphite. J. Electrochem. Soc. 148, A1100 (2001).
Ling, C. A review of the recent progress in battery informatics. npj Comput. Mater. 8, 33 (2022).
Yang, Y. et al. Microstructure evolution of lithium-ion battery electrodes at different states of charge: Deep learning-based segmentation. Electrochem. Commun. 136, 107224 (2022).
Jiang, Z. et al. Machine-learning-revealed statistics of the particle-carbon/binder detachment in lithium-ion battery cathodes. Nat. Commun. 11, 2310 (2020).
Müller, S. et al. Deep learning-based segmentation of lithium-ion battery microstructures enhanced by artificially generated electrodes. Nat. Commun. 12, 6205 (2021).
Su, Z. et al. Artificial neural network approach for multiphase segmentation of battery electrode nano-CT images. npj Comput. Mater. 8, 30 (2022).
Furat, O. et al. Super-resolving microscopy images of Li-ion electrodes for fine-feature quantification using generative adversarial networks. npj Comput. Mater. 8, 68 (2022).
Zhang, K., Nguyen, T.-T., Su, Z. & Demortière, A. Self-supervised image quality assessment for X-ray tomographic images of Li-ion battery. npj Comput. Mater. 8, 194 (2022).
Szeliski, R. Computer Vision: Algorithms and Applications (Springer, 2022).
Joy, D. C. The aberration-corrected SEM. In Biological Low-Voltage Scanning Electron Microscopy (eds Schatten, H. & Pawley, J. B.) 107–127 (Springer, 2008).
Chalfoun, J. et al. MIST: Accurate and scalable microscopy image stitching tool with stage modeling and error minimization. Sci. Rep. 7, 4988 (2017).
Reimers, I., Safonov, I., Kornilov, A. & Yakimchuk, I. Two-stage alignment of FIB-SEM images of rock samples. J. Imaging 6, 107 (2020).
Schubert, P. J., Saxena, R. & Kornfeld, J. DeepFocus: Fast focus and astigmatism correction for electron microscopy. Nat. Commun. 15, 948 (2024).
Rueden, C. T. et al. PyImageJ: A library for integrating ImageJ and Python. Nat. Methods 19, 1326–1327 (2022).
Karami, E., Prasad, S. & Shehata, M. Image matching using SIFT, SURF, BRIEF and ORB: Performance comparison for distorted images. arXiv:1710.02726 (2017).
Ojala, T., Pietikainen, M. & Harwood, D. Performance evaluation of texture measures with classification based on Kullback discrimination of distributions. In Proceedings of the 12th International Conference on Pattern Recognition 1 582–585 (1994).
Haralick, R. M., Shanmugam, K. & Dinstein, I. Textural features for image classification. IEEE Trans. Syst. Man Cybern. SMC–3, 610–621 (1973).
Haralick, R. M. Statistical and structural approaches to texture. Proc. IEEE 67, 786–804 (1979).
Baraldi, A. & Panniggiani, F. An investigation of the textural characteristics associated with gray level cooccurrence matrix statistical parameters. IEEE Trans. Geosci. Remote Sens. 33, 2 (1995).
Sasaki, Y., Suzuki, T. & Bando, T. Qualitative evaluation of shaded texture images with onomatopoeia: Statistical analyses of relationship between phonological and image features. Cogn. Stud. 18, 477–490 (2011).
Yamagata, K., Kagitani, T. & Sakamoto, M. Image retrieval system using Japanese sound symbolic words for surface texture. ISASE ISASE2019, 1–4 (2019).
Nisbett, W. H., Kavuri, A. & Das, M. On the correlation between second order texture features and human observer detection performance in digital images. Sci. Rep. 10, 13510 (2020).
Dutta, S. et al. Characterization of micrographs and fractographs of Cu-strengthened HSLA steel using image texture analysis. Measurement 47, 130–144 (2014).
Webel, J., Gola, J., Britz, D. & Mücklich, F. A new analysis approach based on Haralick texture features for the characterization of microstructure on the example of low-alloy steels. Mater. Char. 144, 584–596 (2018).
Gupta, S. et al. Modelling the steel microstructure knowledge for in-silico recognition of phases using machine learning. Mater. Chem. Phys. 252, 123286 (2020).
Tsutsui, K. et al. A methodology of steel microstructure recognition using SEM images by machine learning based on textural analysis. Mater. Today Commun. 25, 101514 (2020).
Guo, L. et al. Texture analysis of the microstructure of internal curing concrete based on image recognition technology. Case Stud. Constr. Mater. 17, e01360 (2022).
Alrfou, K., Kordijazi, A. & Zhao, T. Computer vision methods for the microstructural analysis of materials: The state-of-the-art and future perspectives. arXiv:2208.04149 (2022).
Kitahara, A. R. & Holm, E. A. Microstructure cluster analysis with transfer learning and unsupervised learning. Integr. Mater. Manuf. Innov. 7, 148–156 (2018).
Holm, E. A. et al. Overview: Computer vision and machine learning for microstructural characterization and analysis. Metall. Mater. Trans. A 51, 5985–5999 (2020).
Cheng, D. et al. Computer vision analysis on material characterization images. Adv. Intell. Syst. 4, 2100158 (2022).
Choudhary, K. et al. Recent advances and applications of deep learning methods in materials science. npj Comput. Mater. 8, 59 (2022).
Kondo, R., Yamakawa, S., Masuoka, Y., Tajima, S. & Asahi, R. Microstructure recognition using convolutional neural networks for prediction of ionic conductivity in ceramics. Acta Mater. 141, 29–38 (2017).
Rühle, B., Krumrey, J. F. & Hodoroaba, V.-D. Workflow towards automated segmentation of agglomerated, non-spherical particles from electron microscopy images using artificial neural networks. Sci. Rep. 11, 4942 (2021).
Lin, B. et al. A deep learned nanowire segmentation model using synthetic data augmentation. npj Comput. Mater. 8, 88 (2022).
Hirabayashi, Y. et al. Deep learning for three-dimensional segmentation of electron microscopy images of complex ceramic materials. npj Comput. Mater. 10, 46 (2024).
de Haan, K., Ballard, Z. S., Rivenson, Y., Wu, Y. & Ozcan, A. Resolution enhancement in scanning electron microscopy using deep learning. Sci. Rep. 9, 12050 (2019).
Jung, J. et al. Super-resolving material microstructure image via deep learning for microstructure characterization and mechanical behavior analysis. npj Comput. Mater. 7, 96 (2021).
Adebayo, J. et al. Sanity checks for saliency maps. in 32nd Conference on Neural Information Processing Systems. (2018).
Bishop, C. M. Pattern Recognition and Machine Learning (Springer, 2006).
Maaten, L. & Hinton, G. Visualizing data using t-SNE. J. Mach. Learn. Res. 9, 2579–2605 (2008).
McInnes, L., Healy, J. & Melville, J. UMAP: Uniform manifold approximation and projection for dimension reduction. arXiv, 1802.03426 (2018).
Sainburg, T., McInnes, L. & Gentner, T. Q. Parametric UMAP embeddings for representation and semisupervised learning. Neural Comput. 33, 2881–2907 (2021).
Rodriguez, M. Z. et al. Clustering algorithms: A comparative approach. PLOS One 14, e0210236 (2019).
Münch, B., Martin, L. H. J. & Leemann, A. Segmentation of elemental EDS maps by means of multiple clustering combined with phase identification. J. Microsc. 260, 411–426 (2015).
Rousseeuw, P. J. Silhouettes: A graphical aid to the interpretation and validation of cluster analysis. J. Comp. Appl. Math. 20, 53–65 (1987).
Caliński, T. & Harabasz, J. A dendrite method for cluster analysis. Commun. Stat. 3, 1–27 (1974).
Ribeiro, M. T., Singh, S. & Guestrin, C. “Why Should I Trust You?”: Explaining the predictions of any classifier in Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining 1135–1144 (ACM, New York, USA, 2016).
Lundberg, S. M. & Lee, S.-I. A unified approach to interpreting model predictions in Proceedings of the 31st International Conference on Neural Information Processing Systems 4768–4777. (2017).
Acknowledgements
The authors thank Kenji Ito for the valuable discussions that enhanced this work.
Author information
Authors and Affiliations
Contributions
T. K. was responsible for the conception of the study, data collection, data analysis, discussion of the results, and writing the manuscript. K. G., T. N., T. S., A. F., and B. O. contributed to the research conception, data collection, data analysis, discussion of the results, and manuscript review. H. O. was involved in the sample preparation, discussion of the results, and review of the manuscript. H. K. contributed to the data collection, discussion of the results, and review of the manuscript.
Corresponding author
Ethics declarations
Competing interests
The authors declare no competing interests.
Additional information
Publisher’s note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Supplementary Information
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.
About this article
Cite this article
Kato, T., Goto, K., Niwa, T. et al. A comprehensive and quantitative SEM–EDS analytical process applied to lithium-ion battery electrodes. Sci Rep 15, 5428 (2025). https://doi.org/10.1038/s41598-025-89362-w
Received:
Accepted:
Published:
Version of record:
DOI: https://doi.org/10.1038/s41598-025-89362-w
This article is cited by
-
Annealing-Induced Defect Modulation and Functional Switching in ZnO Thin Films: DFT and Molecular Docking Analysis
Journal of Inorganic and Organometallic Polymers and Materials (2026)















