원시데이터 수집 시스템
선정목록으로

Multi-plane denoising diffusion-based dimensionality expansion for 2D-to-3D reconstruction of microstructures with harmonized sampling

간접 관련 수소연료전지 · (7) MEA(막전극접합체) (6) PEM(고분자전해질막)(23) 컴파운드

기본 정보

저자
  1. Kang‐Hyun Lee — Department of Aerospace Engineering, Seoul National University, Gwanak-gu Gwanak-ro 1, Seoul, 08826, South Korea
  2. Gun Jin Yun — Department of Aerospace Engineering, Seoul National University, Gwanak-gu Gwanak-ro 1, Seoul, 08826, South Korea|||Institute of Advanced Aerospace Technology, Seoul National University, Gwanak-gu Gwanak-ro 1, Seoul, 08826, South Korea
DOI
10.1038/s41524-024-01280-z
저널
npj Computational Materials
발행년도
2024
발행기관
Nature Portfolio
피인용수
23
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1038/s41524-024-01280-z
토픽
Composite Material Mechanics
OpenAlex ID
W4396717926

평가 내용

관련도
간접 관련
사업분야
수소연료전지 · (7) MEA(막전극접합체)
부 분야
(6) PEM(고분자전해질막), (23) 컴파운드
R&D 측면
분석·모델링
확신도
0.80
근거 용어
2D-to-3D reconstruction, microstructures, diffusion-based generative models, battery electrodes, NMC cathode
판단 근거
이 논문은 2D 미세구조 이미지를 통해 3D 미세구조를 재구성하는 생성형 AI 모델(Micro3Diff)을 다룹니다. 직접적인 제품 제조 기술은 아니나, 배터리 전극(NMC) 등 소재의 미세구조 분석 및 물성 예측을 위한 ICME(통합 계산 재료 공학) 방법론으로서 코오롱인더스트리의 수소연료전지(MEA/전극) 및 컴파운드 소재 R&D에 응용 가능합니다.
R&D 활용 포인트
연료전지용 전극(MEA)이나 고기능성 컴파운드 소재의 미세구조를 3D로 가상 구현하여, 실험 비용을 절감하고 소재의 물성(기계적, 전기적 특성)을 예측하는 시뮬레이션 모델링에 활용할 수 있습니다.
평가 입력
본문 72,937자 중 30,032자 발췌

초록

Abstract Acquiring reliable microstructure datasets is a pivotal step toward the systematic design of materials with the aid of integrated computational materials engineering (ICME) approaches. However, obtaining three-dimensional (3D) microstructure datasets is often challenging due to high experimental costs or technical limitations, while acquiring two-dimensional (2D) micrographs is comparatively easier. To deal with this issue, this study proposes a novel framework called ‘Micro3Diff’ for 2D-to-3D reconstruction of microstructures using diffusion-based generative models (DGMs). Specifically, this approach solely requires pre-trained DGMs for the generation of 2D samples, and dimensionality expansion (2D-to-3D) takes place only during the generation process (i.e., reverse diffusion process). The proposed framework incorporates a concept referred to as ‘multi-plane denoising diffusion’, which transforms noisy samples (i.e., latent variables) from different planes into the data structure while maintaining spatial connectivity in 3D space. Furthermore, a harmonized sampling process is developed to address possible deviations from the reverse Markov chain of DGMs during the dimensionality expansion. Combined, we demonstrate the feasibility of Micro3Diff in reconstructing 3D samples with connected slices that maintain morphologically equivalence to the original 2D images. To validate the performance of Micro3Diff, various types of microstructures (synthetic or experimentally observed) are reconstructed, and the quality of the generated samples is assessed both qualitatively and quantitatively. The successful reconstruction outcomes inspire the potential utilization of Micro3Diff in upcoming ICME applications while achieving a breakthrough in comprehending and manipulating the latent space of DGMs.

본문 72,937자

본문 펼치기
Published in partnership with the Shanghai Institute of Ceramics of the Chinese Academy of Sciences https://doi.org/10.1038/s41524-024-01280-z # Multi-plane denoising diffusion-based dimensionality expansion for 2D-to-3D reconstruction of microstructures with harmonized sampling [Check for updates](http://crossmark.crossref.org/dialog/?doi=10.1038/s41524-024-01280-z&domain=pdf) Kang-Hyun Lee 1 & Gun Jin Yun1,2 Acquiring reliable microstructure datasets is a pivotal step toward the systematic design of materials with the aid of integrated computational materials engineering (ICME) approaches. However, obtaining three-dimensional (3D) microstructure datasets is often challenging due to high experimental costs or technical limitations, while acquiring two-dimensional (2D) micrographs is comparatively easier. To deal with this issue, this study proposes a novel framework called ‘Micro3Diff’ for 2D-to-3D reconstruction of microstructures using diffusion-based generative models (DGMs). Specifically, this approach solely requires pre-trained DGMs for the generation of 2D samples, and dimensionality expansion (2D-to-3D) takes place only during the generation process (i.e., reverse diffusion process). The proposed framework incorporates a concept referred to as ‘multi-plane denoising diffusion’, which transforms noisy samples (i.e., latent variables) from different planes into the data structure while maintaining spatial connectivity in 3D space. Furthermore, a harmonized sampling process is developed to address possible deviations from the reverse Markov chain of DGMs during the dimensionality expansion. Combined, we demonstrate the feasibility of Micro3Diff in reconstructing 3D samples with connected slices that maintain morphologically equivalence to the original 2D images. To validate the performance of Micro3Diff, various types of microstructures (synthetic or experimentally observed) are reconstructed, and the quality of the generated samples is assessed both qualitatively and quantitatively. The successful reconstruction outcomes inspire the potential utilization of Micro3Diff in upcoming ICME applications while achieving a breakthrough in comprehending and manipulating the latent space of DGMs. The properties and physical behavior of a material are profoundly influenced by its microstructure, which encompasses the topology, distribution, and physical characteristics of the constituent phases. By leveraging computational mechanics <sup>1,2</sup> and integrated computational materials engineering (ICME) approaches <sup>3,4</sup>, the relationship between the microstructure and properties can be systemically investigated for exploring the design space of materials <sup>5–8</sup> . For precise modeling and understanding of complex material behavior in terms of microstructureproperty linkage, conducting three-dimensional (3D) analysis and characterization of microstructures are imperative. Furthermore, the accuracy of computational analysis for investigating material properties relies on the quality of accessible 3D microstructural datasets. In order to acquire precise 3D information about microstructures, micro-computed tomography (micro-CT) has demonstrated its effectiveness as a tool allowing for the visualization of a material’s internal structure and potential defects in a 3D domain <sup>9–12</sup> . Moreover, the use of micro-CTbased characterization of microstructures has been regarded as a reliable approach to understand material behavior with computational analysis, such as finite element analysis (FEA), particularly at the representative volume element (RVE) scale <sup>9,12–16</sup> . 1Department of Aerospace Engineering, Seoul National University, Gwanak-gu Gwanak-ro 1, Seoul 08826, South Korea. 2Institute of Advanced Aerospace Technology, Seoul National University, Gwanak-gu Gwanak-ro 1, Seoul 08826, South Korea. [e-mail: gunjin.yun@snu.ac.kr](mailto:gunjin.yun@snu.ac.kr) However, the difficulty lies in acquiring an extensive database of microstructures with experimental analysis, primarily due to the time and cost constraints. Furthermore, obtaining a 3D microstructural dataset is more challenging, as it requires serial sectioning views, in contrast to the relatively straightforward process of capturing independent twodimensional (2D) micrographs. To address this challenge, numerous microstructure characterization and reconstruction (MCR) approaches employing a diverse range of microstructural descriptors have been proposed <sup>13,17–24</sup> . In general, these descriptor-based MCR methods obtain morphologically equivalent samples by iterative optimization of the discrepancy between the target and the current descriptors. Various kinds of descriptors, including simple volume fraction as well as high-dimensional correlation functions such as n-point correlations <sup>17,25</sup> or lineal path functions <sup>26</sup>, can be employed to quantify the morphology of the microstructure. Once specific descriptors are chosen, the optimization problem can be addressed using stochastic reconstruction techniques like the YeongTorquato algorithm <sup>24</sup> . Moreover, it is possible to utilize differentiable descriptors to reconstruct equivalent 3D microstructural samples through the application of a gradient-based optimizer <sup>17,27</sup> . For instance, Seibert et al. <sup>20</sup> proposed a 2D-to-3D reconstruction method to obtain realistic microstructure samples usingdifferentiable microstructuraldescriptorsand optimization algorithms provided by the open-access MCRpy package <sup>19</sup> . Although MCR methods with microstructural descriptors have been demonstrated to be effective for microstructure reconstruction, a major concern of this approach is that it requires specific descriptors to be optimized. Thus, for achieving favorable reconstruction outcomes, the selection of appropriate descriptors is crucial considering the specific morphological attributes of the targeted microstructure. To provide a flexible and general solution, recent studies have proposed methodologies for reconstructing microstructure samples without utilizing specific microstructural descriptors. For instance, Bostanabad et al. <sup>28,29</sup> demonstrated a stochastic MCR methodology via supervised learning for reconstructing different types of 3D binary microstructure samples. They showed that their fitted supervised learning model (i.e., classification tree), which provides an implicit characterization of the microstructural geometry, can generate microstructure samples that are statistically equivalent to the training dataset. Meanwhile, there has been extensive research on generative models, such as variational autoencoders (VAEs) <sup>30–33</sup> and generative adversarial networks (GANs) <sup>34–36</sup>, for reconstructing microstructures by learning the underlying distribution of data. For instance, Kim et al. <sup>30</sup> proposed a VAE-based framework for reconstruction of 2D microstructure samples from a deep-learned continuous microstructure space. They also demonstrated that inverse design is possible by establishing connections between the features in the latent space of VAE and the mechanical properties of materials. Fokina et al. <sup>35</sup> utilized the style-based GAN architecture for reconstruction of 2D microstructural samples that are close to the original samples in terms of area density and Euler characteristics distributions. In addition, 2D-to-3D microstructure reconstruction with generative models has been gaining significant attention recently <sup>36,37</sup> . One of the remarkable works is the GAN architecture called SliceGAN, proposed by Kench and Cooper <sup>36</sup>, which synthesizes 3D microstructure datasets from a single representative 2D image. They demonstrated their GAN-based model can effectively reconstruct 3D microstructures of various types of materials, including polycrystalline metals, ceramics, and battery electrodes. On the other hand, VAEs suffer from a notable drawback, as the generated samples tend to be distorted and blurred <sup>38,39</sup>, while GANs are susceptible to the issue of mode collapse and unstable training due to the adversarial loss function <sup>40,41</sup> . In light of these concerns, the diffusion-based generative models (DGMs) <sup>42–44</sup> are currently gaining significant attention as a promising state-of-the-art generative model. In particular, there are two popular formulations of DGMs which are called the denoising diffusion probabilistic models (DDPMs) and the score-based generative models (SGMs). According to the formulation of DDPMs <sup>44</sup>, a DGM can be perceived as a model of reverse Markovian chain, intended for progressive denoising a data structure, while SGMs <sup>43</sup> view DGMs as models for estimating gradients of data distribution with denoising score matching <sup>45</sup> . The DGMs can also be generalized to the problem of solving reverse stochastic differential equations (SDEs) in order to transform the noise distribution into the data distribution <sup>42,46</sup> . By transforming the generation problem into the progressive reverse diffusion (i.e., denoising) process, DGMs have shown superior performance compared to GANs in generating high-quality images <sup>47</sup>, and they are not prone to mode collapse or unstable training which are commonly observed in GANs. However, the possibility of using DGMs for 2D-to-3Dreconstruction of microstructureshasnotbeenexplored,accordingtothebestknowledgeofthe authors. While some studies have suggested the use of DGMs for reconstructing 2D microstructure samples <sup>5,48,49</sup>, the problem of dimensional expansion (2D-to-3D) has not been explored extensively due to the lack of knowledge in the latent space of DGMs. In order to bridge this gap, a dimensionality-expansion framework for 2D-to-3D reconstruction of microstructuresbasedondenoisingdiffusion,called ‘Micro3Diff’,isproposed in this study. The proposed method does not require any 3D datasets, and it onlyrequiresaDGMtrainedforthegenerationof2Dimages(i.e.,2D-DGM). The feasibilityof this approach lies in the fact that Micro3Diff targets only the manipulation of the reverse diffusion process for dimensionality expansion. In addition, this greatly facilitates the application of this framework as the commonly used 2D-DGM can be easily incorporated. The structure of this article with the key contributions of this work are summarized as follows. (1) In the Results section, various types of microstructures including spherical inclusions, polycrystalline grains, battery electrodes, and carbonates, sourced from both synthetic and experimental data, are considered to be reconstructed using the proposed Micro3Diff. The generated results are then quantitatively and qualitatively validated by comparingspatialcorrelationfunctionstoassessthesimilaritybetween the generated 3D samples and the original data. (2) In the Discussion section, future enhancements and potential appli cations of Micro3Diff are discussed in the contexts of both materials science and generative modeling. (3) In the Methods section, the formulations of DGMs are introduced along with the SDE-based generalization to provide an understanding of the basic theory of DGMs. The concept of transforming noise distribution into data distribution through progressive denoising is then employed to support the assumptions required for Micro3Diff. The detailed procedure for 2D-to-3D reconstruction is also explained in this section, based on the multi-plane denoising diffusion-based approach. Furthermore, to mitigate potential discrepancies arising from multi-plane denoising, the technique of harmonized sampling is introduced to enhance the quality of generated samples. By combining these approaches, this section demonstrates how it becomes feasible to simultaneouslytransformthenoisedistributioninmultiple planesinto the data distribution while preserving connectivity and continuity in 3D space. Results Case I: Synthetic microstructural samples of spherical inclusions To validate the proposed multi-plane denoising diffusion in this study, 2Dto-3D reconstruction of microstructures with spherical inclusions embedded in a matrix was conducted. As shown in Fig. 1, the 2D microstructure images used for training the 2D-DGM were sampled from a synthesized 3D data. The 3D sample of spherical inclusions was generated using Geodict® software by Math2Market GmbH. The diameters of the inclusions were set to follow a normal distribution with a mean value of 15 voxels and a standard deviation of 4 voxels in a volume of 64 × 64 × 300 voxels. Then, the 3D data was sliced along the z-axis, generating a total of 300 images with dimensions of 64 × 64.To facilitate the training of the 2D-DGM, the dataset was augmented by manipulating each image eight times (i.e., eight folds). This augmentation involves applying both horizontal and vertical flips, as well as rotations of 90°, 180°, and 270° to the original images. After training the 2D-DGM, the multi-plane denoising with the harmonizing steps was conducted to create a 3D volume with spherical Fig. 1 | A synthesized 3D Microstructure sample with spherical inclusions and sampled 2D microstructural images for training the 2D-DGM. Fig. 2 | 2D-to-3D reconstruction results of microstructure with spherical inclusions using Micro3Diff with different numbers of harmonizing steps. inclusions. To investigate the effect of number of harmonizing steps nh (see Methods section), 2D-to-3D reconstruction was conducted with varying nh as illustrated in Fig. 2. As depicted in the figure, the quality of the generated samples improves with an increase in the number of harmonizing steps from nh ¼ 0 to nh ¼ 10. The results also show that the spherical shapes of the inclusions were well reproduced with nh ¼ 10. This implies that there is a minimal value of nh to guarantee the quality of the generated sample. Figure 3 shows the amount of time needed to generate a 3D sample with varying nh using a single GPU (i.e., Nvidia RTX A6000). Since each harmonizing step entails one cycle of renoising and denoising (as discussed in Methods section), the computational time increases almost linearly withthe numberofharmonizingsteps.Inotherwords,sincetheonlyneuralnetwork model employed for the multi-plane denoising diffusion is the 2D-DGM, the computational time for generation of 2D samples become the reference time. Then, the total computational time for 2D-to-3D reconstruction will increase linearly with nh. For the sake of simplicity in the validation process, nh was set to be constant value of 10 for the example cases demonstrated in the following sections. Furthermore, the 3D visualization and sectional views in Fig. 2 demonstrate that the inclusions (i.e., white pixels) along the three orthogonal planes are well connected, preserving continuity in 3D space. To quantitatively evaluate the quality of the samples, the error rate (see Methods section) between the correlation functions of the original data (Fig. 1) and generated data was evaluated, as shown in Fig. 4a. For validating purpose, a total of 25 samples were generated for each case study using Micro3Diff to calculate the averaged two-point correlation function S2 and the lineal path function LP (see Methods section). More examples of generated 3D samples can be also found in Supplementary Fig. 1. In the case of spherical inclusions (case I), the error rates for S2 Fig. 3 | Computational time to generate a 3D sample with 2D-to-3D reconstruction using the multi-plane denoising diffusion process. and Lp are 1.88% and 4.56% (Fig. 5), respectively, indicating that the generated samples are in good agreement with the original data. In other words, the original and generated samples exhibit similar spatial correlations, indicating that they have statistically equivalent morphologies. Additionally, it is worth noting that since the source of training data (i.e., 2D images) for case I was sampled from the synthesized 3D volume, the 3D correlation functions were computed (as discussed in Methods section) to evaluate the sample quality. The results show that the proposed multi-plane denoising diffusion with, aided by the harmonized sampling, effectively guides the distribution of images at different planes simultaneously to the original data distribution� p x0,whichisthedistributionforimagesofsphericalinclusions.Itcanalso be said that the generation of 3D data with conditional distribution of images at different planes is addressed by the dimensionality expansion problem using the gradual multi-plane diffusion process and harmonized sampling. In the following sections, additional example cases to evaluate the performance of Micro3Diff are explored, including the cases with the Fig. 4 | Two-point correlation functions (S2) and lineal path functions (LP) for different types of microstructures: (a) case I: spherical inclusions, (b) case II: polycrystalline grains, (c) case III: NMC battery cathode, and (d): case IV: carbonates. Fig. 5 | Error rates of two-point correlation function (S2) and lineal path function (LP) for different cases. For the cases where 2D samples from 3D data (i.e., 3D microCT data) were used for training the 2D-DGM (Case I and Case III), the error rate is evaluated in 3D space. For the cases where 2D samples were used for training the 2DDGM (Case II and Case IV), the error rate is evaluated in 2D space. microstructure of polycrystalline grains with grain boundaries (case II) and the real-world experimental micrographs (case III and IV) Case II: Synthetic microstructures of polycrystalline grains For further assessing the effectiveness of the proposed Micro3Diff, this section focuses on the microstructural images of polycrystalline grains as the case study. To acquire 2D images of polycrystalline grains for the 2D-to-3D reconstruction task, a set of 300 synthetic images were generated using Laguerre tessellation <sup>50</sup> as shown in Fig. 9. In each generated 2D image, the white pixels represent the grain boundaries. Three values of grain sizes were considered (6, 9 and 12 pixels) to be distributed, each occupying an equal fraction within a 64 × 64 image. The synthesized images were then augmented eightfold, similar to case I for training the 2D-DGM. It is worth noting that the synthetic 2D samples of polycrystalline grains (Fig. 6) considered in this case are genuinely independent samples, meaning that they were not sampled from a 3D data as in case I. Consequently, while the 2D-DGM lacks the ability to learn the 3D relationship for both cases I and II, the authors hypothesized that case II poses a more challenging problem since it lacks an intermediate image� that� can connect different slices. Thus, the Markov chain of pθ xt <sup>�</sup> �1 <sup>jx�</sup> t may have a higher likelihood� �of deviating from the tra image� that� can connect different slices. Thus, the Markov chain of pθ xt <sup>�</sup> �1 <sup>jx�</sup> t may have a higher likelihood� �of deviating from the tra jectories of the Markov chain of pθ xt�1jxt (as discussed in Methods t <sup>�</sup> �1 <sup>jx�</sup> t pθ xt <sup>�</sup> �1 <sup>jx�</sup> t may have a higher likelihood� �of deviating from the tra jectories of the Markov chain of pθ xt�1jxt (as discussed in Methods section). Fig. 6 | Synthesized 2D microstructure samples of polycrystalline grains for training the 2D-DGM. Figure 7 shows a generated 3D volume with polycrystalline grains using Micro3Diff, along with its sectional views at each orthogonal plane. To show the connectivity and the grain structures clearly, the 3D volumetric view includes the normal view, where only the grain boundaries (i.e., white voxels) are visualized, and its inverted view. At first glance, the grain boundaries appear to be well connected in 3D space, which is the important feature of polycrystalline materials. However, the 2D sectional views show that there are some disconnected and curved grain boundaries in the generated 3D volume. This error is likely due to the lack of intermediate images in the training dataset for connecting different slices in the 3D volume, which makes the model to generate sample with lower probabilities in pðx0Þ. In addition, the occurrence of disconnected grain boundaries has been commonly reported even in the recent studies with the descriptor-based MCR method <sup>17,19</sup> and GAN-based reconstruction <sup>36</sup> . Meanwhile, the error rates for S2 and LP are 6.43% and 5.88%, respectively, indicating the good agreement between the original and generated data (Figs. 4b and 5). It is worth noting that, since the source of the training data for case II is 2D images (Fig. 6), the 2D correlation functions were computed to evaluate the generated sample quality at the three orthogonal planes. Then, the mean values of the computed correlation functions were used to evaluate the error rate. To enhance the performance of 2D-to-3D reconstruction for microstructures of polycrystal materials such as alloys, the authors suggest considering preprocessing and augmentation of dataset to address the lack of intermediate images, as well as optimizing the hyperparameters (e.g., nh and T). Fig. 7 | 2D-to-3D reconstruction results of microstructure with polycrystalline grains using Micro3Diff. Fig. 8 | An experimentally obtained 3D microstructure sample of NMC battery cathode and sampled 2D microstructural images for training the 2D-DGM. Fig. 9 | 2D-to-3D reconstruction results for microstructure of NMC battery cathode using Micro3Diff. Case III: Experimental micro-CT scan images of battery electrodes Thenextexamplecaseistherealmicro-CTscanimagesofnickelmanganese cobalt (NMC) cathode. The micro-CT data of NMC cathode was obtained from open-access collected data in reference <sup>51</sup>, and a volume of 64 × 64 × 300 voxels was created for sampling 300 images with dimensions of 64 × 64 (Fig. 8). Subsequently, the sampled imageswere augmentedusing eightfold augmentation as the previous cases. Figure 9 illustrates the generated 3D volume of NMC cathode and its 2D sectional views (for simplicity, only the active material phase and pore were considered). Similar to case I and II, the results show that the connectivityofthewhitevoxels(i.e.,activematerialphase)ispreserved.Boththe 3Dvolumeandthe2Dsectionalviewsexhibitvisualsimilaritytotheoriginal data in Fig. 8. The error rates of 4.56% for S2 and 1.26% for LP (Figs. 4c and 5) also demonstrate that the generated samples have close spatial correlations compared to the original micro-CT data. This is particularly encouragingasitdemonstratesthe effectivenessof the proposed Micro3Diff in 2D-to-3D reconstruction, utilizing both synthetic (case I and II) and experimentally observed data. Since obtaining a reliable dataset of microstructure is crucial for characterizing the material behavior, there has been significant attention given to the reconstruction of battery electrode microstructures in recent years <sup>52–54</sup> . Although the performance of the proposed methodology must be validated with more diverse experimental data, theresultshighlightthepotentialapplicationofMicro3Diffinthesystematic Fig. 10 | An experimentally obtained single 2D microstructure image of carbonates and random sampling of 2D images for training the 2D-DGM. Fig. 11 | 2D-to-3D reconstruction results for microstructure of carbonates using Micro3Diff. exploration and design of materials for battery applications aided by ICME methods <sup>3,4</sup> . Case IV: Experimental micro-CT scan image of carbonates Lastly,amorechallengingscenarioisconsideredwheretheavailabilityof3D microstructure data isseverelyrestricted,and onlyobtainable data isa single representative 2D micrograph image. Suppose a single 2D sample of carbonates <sup>55</sup> is available, and we aim to reconstruct a 3D volume from this 2D sample, which should have an equivalent statistical distribution of material phases in 3D space. To train 2D-DGM first, multiple cropped imagescan be sampled fromthe representative image asshown in Fig. 10.In particular, a total of 250 images were sampled and augmented using eightfold augmentation, as in the previous cases. Figure 11 shows the generated 3D volume of carbonates with its sectional views. As can be seen, the generated 3D volume exhibits visually similar sectional views at the three orthogonal planes, demonstrating the capability of Micro3Diff to create a 3D volume from a single experimental representativeimage.Meanwhile,theerrorratesfor S2 and LP are9.21%and 6.31%, respectively (Figs. 4d and 5). The higher error rates compared to the previous cases are likely due to the lack of diversity in the data used to train the 2D-DGM, which could lead to incorrect estimation of the data distribution during the multi-plane denoising process. In other words, the absence of intermediate data to ensure connectivity in 3D space could be a reason for the higher error rates (similar to case II). However, the results are remarkably encouraging, as the sectional views display morphological similarities with the training data, and the volumetric view illustrates Micro3Diff’s ability to discover potential combinations of 2D images from� the estimated p x0 (derived from a single micrograph) to construct a 3D volume. Moreover, the proposed Micro3Diff enables the generation of multiple and diverse volumes with comparable visuals and spatial correlations to the original data, as shown in Supplementary Fig. 1. This capability could significantly assist in the quantitative assessment of material behavior in 3D space <sup>13,56–58</sup>, taking into account the microstructures and inherent randomness. Discussion The results in this study demonstrate the capability of Micro3Diff for reconstructing 3D microstructure samples from 2D micrographs using the proposed multi-plane denoising diffusion and the harmonized sampling. Based on the multi-plane denoising, a 2D-DGM can be used to effectively guide the noised samples across multiple planes towards the data distribution while maintaining connectivity in 3D space. The disharmony caused by potential deviations from the intended trajectories in the trained 2D noise-to-data denoising diffusion process can be addressed by the proposed harmonized sampling method. It is worth noting that one of important topics in the field of materials engineering is the performance-based design of material microstructures. From this perspective, the proposed methodology in this study can facilitate the overall materials design process. For instance, one may possibly find novel designs of material microstructures using the proposed 2D-to-3D reconstruction framework by following the ICME-based design approaches, including: (1) reconstructing equivalent 3D microstructure samples from 2D micrographs using the proposed Micro3Diff, (2) analyzing the material properties using computational mechanics, (3) constructing 3D microstructurematerial property data pairs, and (4) training conditional generative models <sup>5</sup> to enable the inverse design of microstructures. The potential applications of the proposed framework for materials design also require further enhancement. Specifically, a broader range of microstructure types, including multi-phase and anisotropic microstructures, should be considered to improve the applicability of Micro3Diff in the future. Given the increasing attention on the design of multi-phase materials, such as multi-phase polycrystalline metals <sup>59,60</sup> and battery electrode materials <sup>54</sup>, it is recommended to modify the architecture of DGMs (e.g., increasing the number of input/ output channels) depending on the number of material phases considered. Additionally, one possible solution for reconstructing anisotropic microstructure samples is to train a conditional DGM to generate 2D samples at the three orthogonal planes (i.e., xy, xz, and yz planes). Then, the conditional DGM and the multi-plane denoising diffusion proposed in this study can be employed together to generate spatially connected 2D samples, thereby formulating a 3D anisotropic microstructure. Controlling the relatively large discrepancy within the reverse Markov chain, potentially resulting from different data distributions of 2D microstructure samples across different planes, may be a worthwhile subject for future study. In addition, the data augmentation must be also conducted carefully, as anisotropic structures (unlike isotropic ones) exhibit preferred textures or different morphologies along the orthogonal planes, rather than having equivalent morphologies in all directions. In this case, it is crucial to maintain the distinct morphological characteristics of 2D slices from different directions during the data augmentation process. In addition, the proposed Micro3Diff also introduces an approach of manipulating the latent variables (i.e., noised samples) in DGMs for dimensionality expansion. The authors suggest that this concept could substantially expand the range of applications for DGMs in various fields, including computational materials engineering and 3D generative modeling. Methods Preliminaries Inthissection,theformulationsofDGMsareintroduced,encompassingthe two predominantapproaches(SGMsand DDPMs),forDGM-based2D-to3D reconstruction of microstructures. Generalization of DGMs. Over the past few years, there have been several formulations and variations of DGMs <sup>42–44,61–66</sup> proposed, yet they all share two important common features: 1. the pre-defined progressive noising process for transforming data distribution into a prior noise distribution, and 2. the incorporation of a model that learns to denoise a sample to transform the noise distribution towards a desired conditional/unconditional data distribution. The formal is also called the forward diffusion process and the latter one is called the reverse diffusion process <sup>46,66</sup> . Among the different formulations, the one that employs the SDEs can be regarded as a generalized form of DGMs. A forward diffusion process for perturbing (i.e., noising) data x can be defined in a form of It ^o SDE <sup>67</sup> with a continuous time variable t 2 ½0; T� as dx ¼ fðx; tÞ þ σðtÞdω ð1Þ where ω is a standard Wiener process, which can also be thought of as Gaussian noise or Brownian motion <sup>42,68</sup>, fð - tÞ : R <sup>n</sup> ! R <sup>n</sup> and σðtÞ:R!R represent drift and diffusion coefficients of SDE at time step t, respectively. To perturb data with the SDE, the drift coefficient can be defined to nullify the data while the diffusion coefficient is adopted to progressively add noise to the data in DGMs. In other words, the diffusion process can be modeled with different choices of f(,t) and σ(t) while dω represents the stochastic component. Considering this aspect, the two popular formulations of DGMs, which are SGMs <sup>43</sup> and DDPMs <sup>44</sup>, can also be interpreted as discretized variations of the SDE with different drift and diffusion coefficients. Forward diffusion process. As stated above, the diffusion processes in the various formulations of DGMs (e.g., SGMs and DDPMs) can be generalized using the concept of SDE. For instance, SGMs employ the concept of the score function (i.e., the gradient of the log probability density) and the denoising score matching with Langevin dynamics <sup>45</sup> for transforming random noise to data with high probability density. According to the perturbation process with a specified noise distribution proposed by ref. 43, the SDE for SGMs can be written as - where λ(t) is a positive weighting function at time t and sθ xt; t is a model trained to estimate the value of the score function within the discrete time interval.Inaddition,thiscanbeconsideredequivalenttosolvingthereversetime SDE. On the other hand, the loss function of DDPMs originates from the theory of variational inference <sup>44,69</sup> . This is the reason why a DDPM is also called a hierarchical Markovian VAE <sup>46</sup> . Based on the Eq. (5), a process of dx ¼ sf f i f f i f f i f f i f f i f f i f f <u>d½gðtÞ</u> <sup>2</sup> <u>�</u> dw ð2Þ dt �� where g Tt converges to gt (i.e., the noise level at time t) as T ! 1. Considering a discrete sequence of samples ði:e:; x0; x1; .. . ; xT Þ, the update rule for obtaining the noised sample ðxtþ1Þ from the sample at the previous time step ðxtÞ can be defined as follows with the noise component εt ∼ Nð0; IÞ. xtþ1 ¼ xt þ qf f i f f i f f i f f i f f i f f i f f i f f i f f g <sup>2</sup> tþ1 <sup>�</sup> <sup>g2</sup> t f f i f f i f f i f f i f f i f f i f f i f f i f f g <sup>2</sup> tþ1 <sup>�</sup> <sup>g2</sup> t <sup>2</sup> tþ1 <sup>�</sup> <sup>g2</sup> t εt ð3Þ On the other hand, DDPMs utilize the concept of Markov chain to define the forward/reverse diffusion process, along with the variational lower bound (VLB) for training the models to reconstruct an original data structure from the prior noise distribution. Similar yet different, the SDE for the forward diffusion process of DDPMs can be expressed as pf f i f f i f f i f <sup><u>1</u></sup> βðtÞ 2 <sup>βðtÞxdt þ</sup> dx ¼ � <sup><u>1</u></sup> 2 f f f Þdw ð4Þ �� where β is the noise scheduling parameter and β Tt converges to Tβt as T ! 1. According to this definition and the Stirling’s approximation, the following update rule can be derived. pf f i f f βt xtþ1 ¼ pf f i f f i f f i f f i f f i f f 1 � βtxt þ εt ð5Þ The schematic of the forward diffusion process of DGMs using the introduced formulations is shown in Fig. 12. In particular, each colored line� - - in the schematic of the forwarding process (i.e., p x0 p xT� ) represents an� - introduced formulations is shown in Fig. 12. In particular, each colored line� - - in the schematic of the forwarding process (i.e., p x0 p xT� ) represents an� - exemplary noising (i.e., forwarding) trajectory, where p x0 and p xT denote the arbitrary data distribution and the noise distribution, respectively. It is again worth noting that the primary objective of defining the forwarddiffusionprocessinDGMsistotransformthedatadistributioninto the prior noise distribution, even though the drift and diffusion coefficients may vary. Reverse diffusion process. Based on the forward diffusion SDE (Eq. (1)), the SDE for reverse diffusion of data can be derived as - dx ¼ fðx; tÞ � σðtÞ <sup>2</sup> ∇x log ptðxÞ dt þ σðtÞdωb ð6Þ where ω^ is a standard Wiener process when the time is reversed. In an intuitive sense, the SDE in reversed time (Eq. (6)) implies that it is able to reconstruct data by starting with the noise distribution. It is worth noting that the only unknown in Eq. (6) is the value of score function, which is denoted as ∇x log ptðxÞ. In other words, if we can obtain the value of ∇x log ptðxÞ, it is able to generate as many samples as desired from the noise distribution. In this regard, the following loss function of SGMs for denoising score matching <sup>43</sup> can be optimized: - - x0 p xT� - - ) represents an� x0 and p xT h �� - - 2i ð7Þ LSGM :¼ Ext ∼ pðxt Þ λðtÞg <sup>2</sup> t �� - <sup>x</sup> t - sθ xt; t jj g <sup>2</sup> t <sup>jj∇</sup> xt <sup>log p</sup> <sup>x</sup> t Fig. 12 | Schematic of the forward diffusion process (i.e., noising process) with the formulations based on SDE, SGM and DDPM. forward diffusion can be defined in the form of conditional Gaussian distribution as follows. pre-defined forward diffusion process (Eq.� (5�)). In particular, ref. 44 reparametrized Eq. (14) with the model εθ xt; t for predicting the noise component at t as follows. - - - Et ∼ ½1;T�;x0 ∼ pðx0Þ <sup>;ε ∼</sup> <sup>N</sup> ð <sup>0;I</sup> Þ <sup>λðtÞjjε �</sup> <sup>ε</sup> θ <sup>x</sup> t <sup>; t</sup> jj ð15Þ - - xtjxt�1 ¼ N xt; pf f i f f i f f i f f i f f i f f 1 � βt p xtjxt�1 - pf f i f f i f f i f f i f f i f f xt; 1 � βtxt�1; βtI ð8Þ Based on this forward process, a neural network model for the reverse process can be defined as To show the linkage between DDPMs and SGMs, Eq. (7) can be rewritten according to Eqs. (2) and (3) as - - - xt�1jxt ¼ N xt�1;μθ xt; t h - - - - 2i pθ xt�1jxt - - - - �� xt�1;μθ xt; t ; Σθ xt; t ð9Þ - - xt; t ; Σθ xt; t LSGM ¼ Et ∼ ½1;T�;x0 ∼ pðx0Þ <sup>;x</sup> t <sup>∼</sup> <sup>pðx</sup> t <sup>Þ</sup> <sup>λðtÞg2</sup> t - - - <sup>x</sup> t <sup>jx</sup> 0 - sθ xt; t jj <sup>2</sup> t <sup>jj∇</sup> xt <sup>log p</sup> <sup>x</sup> t <sup>jx</sup> 0 ð16Þ - - gtsθ xt; t jj where μθ and Σθ are the predicted mean function and the covariance, respectively.To estimatetheoriginaldata distribution pðx0Þ withthereverse process through the time steps, the� Kullback-Leibler� divergence� (DKL�) between the joint distributions pθ x0; x1; .. . ; xT and p x0; x1; . .. ; xT need to be minimized. This is achieved by minimizing the VLE of the negative log-likelihood as: ¼ Et ∼ ½1;T�;x0 ∼ pðx0Þ <sup>;x</sup> t <sup>∼</sup> <sup>p</sup> ð <sup>x</sup> tÞ <sup>λðtÞjj �</sup> <sup><u>xt</u></sup> <sup><u>�</u></sup> <sup><u>x0</u></sup> gt - - - 2 gt - <sup>x</sup> t <sup>; t</sup> jj the� Kullback-Leibler� divergence� (DKL x0; x1; .. . ; xT and p x0; x1; . .. ; xT divergence� (DKL�) ¼ Et ∼ ½1;T�;x0 ∼ pðx0Þ <sup>;ε ∼</sup> <sup>N</sup> ð <sup>0;I</sup> Þ <sup>λðtÞjjε þ g</sup> t <sup>s</sup> θ <sup>x</sup> t <sup>; t</sup> h - - 2i Lvlb :¼ L0 þ L1 þ . .. þ LT�1 þ LT ð10Þ - L0 :¼ � log pθ x0jx1 ð11Þ which� - shows �that - DDPMs are equivalent to SGMs if εθ xt; t ¼ �gtsθ xt; t . - - shows �that xt; t ¼ �gtsθ xt; t �that xt; t . - - - - �� p xt�1jxt; x0 jjpθ xt�1jxt ð12Þ - - xt�1jxt; x0 jjpθ xt�1jxt Lt�1 :¼ DKL p xt�1jxt; x0 - - - - �� q xT jx0 jjp xT ð13Þ - - q xT jx0 jjp xT LT :¼ DKL q xT jx0 In particular, Lt�1 can be rewritten as the following expectation of ℓ2 loss as h - - - - 2i ð14Þ - - - t xt; x0 - μθ xt; t jj Lt�1 ¼ Ep λðtÞjjμt xt; x0 Denoising diffusion-based 2D-to-3D reconstruction with harmonized sampling Equation of sampling. In the previous section, the equivalence of the different formulations of DGMs is introduced. Particularly, DDPMs have been widely used for implementing DGMs in various applications, including image generation <sup>44,47</sup>, text generation <sup>70</sup>, and textconditional image generation <sup>63,71</sup> . Dhariwal and Nichol <sup>47</sup> also demonstrated that their DDPMs outperformed GANs in the context of image generation tasks. Modified and improved versions of DDPMs are also being intensively developed for high-quality image synthesis <sup>63,72</sup> . In this study, the formulation of DDPMs is adopted to build DGMs for the reconstruction of microstructures. Thus, Eq.� (15�) is utilized as the objective function for training the model εθ xt; t . After training the model, it is able to obtain the mean function of xt in Eq. (9) with the - where� μθ� xt; t is the model trained to estimate the mean function and μt xt; x0 is the mean function of the noised sample at t according to the where� μθ� xt; t - μθ� xt; t is the model trained to estimate the mean function and xt; x0 is the mean function of the noised sample at t according to the prediction of ε using the following equation: the others, resulting in the creation of three distinct samples that follow� the data distribution p x0 . However, if each generation process (i.e., reverse diffusion process) at each plane proceeds concurrently and is conditioned on the others, we could potentially achieve samples with connectivity and continuity ensured at the junctions of the planes. Thus, the problem now becomes developing a model for estimating the conditional distributions at each time step during the reverse diffusion process as: - - <u>βt</u> xt; t ¼ ~~p~~ xt - ~~pf~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ εθ xt; t <u>1</u> ~~f~~ α f i ~~f~~ t f i 1 � α� μθ xt; t - <u>βt</u> - xt - ~~pf~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ f i ~~f~~ εθ xt; t ð17Þ where αt ¼ 1 � βt ð18Þ t <sup>ð1Þ;x</sup> t <sup>ð2Þ</sup> t <sup>ð2Þ;x</sup> t <sup>ð3Þ</sup> Yt α�t ¼ s¼0 αs ð19Þ pθ xt <sup>ð�Þ</sup> - xt <sup>ð�Þ</sup> �1 <sup>jx</sup> t <sup>ð1Þ;x</sup> t <sup>ð2Þ;x</sup> t <sup>ð3Þ</sup> ð20Þ t <sup>ð�Þ</sup> �1 <sup>jx</sup> t <sup>ð1Þ</sup> t <sup>ð1Þ;xð</sup> t <sup>2Þ</sup> It is worth noting that Σθ is assumed to be constant, which can be simply computed using the pre-defined noise schedule (i.e., Σθ ¼ βtI), as learning only the mean function leads to better sample quality according to ref. 44. In addition, the variance can be also learned by incorporating a parameterized diagonal Σθ into the VLE (Eq. (10)) <sup>72</sup> . where x <sup>ð�Þ</sup> t� <sup>ð�Þ</sup> t�1 <sup>denotes the denoised sample at a certain plane, and x</sup> t <sup>ð1Þ</sup> Reverse diffusion process for dimensionality expansion (2D-to-3D). One of the most distinct characteristics of DGMs, compared to other generative models such as VAEs and GANs, is the progressive and gradual diffusion process. As discussed in the previous section, DGMs incorporate the forward/reverse diffusion process to estimate the data� distribution p� x0� and generate samples from the known prior incorporate the forward/reverse diffusion process to estimate the data� distribution p� x0� and generate samples from the known prior distribution p xT . For instance, if a DGM for the generation of 2D distribution p� x0� and generate samples from the known prior distribution p xT . For instance, if a DGM for the generation of 2D images (i.e., 2D-DGM) is prepared, it can generate 2D images start from Gaussian noise through the diffusion times steps and the pre-defined noise schedule <sup>47,63</sup> . In addition, this process is equivalent to the gradual� - - transformation of p xT to p x0 in 2D pixel space. Drawing from this noise schedule <sup>47,63</sup> . In addition, this process is equivalent to the gradual� - - transformation of p xT to p x0 in 2D pixel space. Drawing from this perspective, this study introduces a method for 2D-to-3D dimensionality expansion through the multiplane denoising diffusion process (Figs. 13 and 14). As shown in Fig. 13, we can define three orthogonal planes (yz, xz, xy-planes) and use a trained 2D-DGM for generation of a sample at each plane. According to the original formulation of DDPMs, the generation process of each sample on each plane is independent of - - xT to p x0 where x <sup>ð�Þ</sup> t�1 <sup>denotes the denoised sample at a certain plane, and x</sup> t <sup>ð1Þ;xð</sup> t <sup>2Þ</sup> and x <sup>ð</sup> t <sup>3Þ</sup> represent the samples before denoising at the three orthogonal planes. However, to train the model in Eq. (20), it is evident that a 3D dataset with samples at three orthogonal planes is required. In addition, the model requires additional channels or modules to impose conditional signals during the generation process, which necessitates modifying the model architecture, such as incorporating classifiers or using classifier-free guidance <sup>47,73</sup> . Thus, this cannot be classified as 2D-to-3D reconstruction because both the dataset and the training process need to extend beyond the confines of 2D space To avoid the preparation of a 3D dataset and maintain the architecture of 2D-DGM, the proposed method for 2D-to-3D dimensionality expansion in this study solely focuses on the reverse diffusion process. Consequently, the training process for the 2D-DGM remains unchanged, following the procedures used to train generative models for conventional image generation tasks with 2D datasets. Therefore, throughout this paper, the only� neural network model we deal with is pθ xt�1jxt trained on 2D micro structure images without any additional conditions incorporated. In this regard, the key idea of the proposed multi-plane denoising diffusion is to generate 3D voxels using 2D-DGM by changing the target denoising plane periodically as shown in Fig. 14. The procedureof the multi-plane denoising diffusion is as follows: To avoid the preparation of a 3D dataset and maintain the architecture of 2D-DGM, the proposed method for 2D-to-3D dimensionality expansion in this study solely focuses on the reverse diffusion process. Consequently, the training process for the 2D-DGM remains unchanged, following the procedures used to train generative models for conventional image generation tasks with 2D datasets. Therefore, throughout this paper, the only� neural network model we deal with is pθ xt�1jxt trained on 2D micro 1. Initialize voxels with dimensions of n × n × n using Gaussian noise (Fig. 14a). It is worth noting that the size of n should match the size of input/output size of 2D-DGM (i.e., n × n). 2. For the first reverse diffusion step, denoise the n samples with dimensions of n × n (which are from the initialized voxels) using the� trained 2D-DGM (i.e., pθ xT�1jxT ) along a particular plane. dimensions of n × n (which are from the initialized voxels) using the� trained 2D-DGM (i.e., pθ xT�1jxT ) along a particular plane. 3. Before the second reverse diffusion step, change the target denoising plane and obtain x <sup>�</sup> T�1 <sup>,</sup> <sup>which</sup> <sup>represents</sup> <sup>the</sup> <sup>samples</sup> <sup>arranged</sup> <sup>in</sup> <sup>a</sup> plane and obtain x <sup>�</sup> T�1 <sup>,</sup> <sup>which</sup> <sup>represents</sup> <sup>the</sup> <sup>samples</sup> <sup>arranged</sup> <sup>in</sup> <sup>a</sup> different plane (Fig. 14c). Then, denoise the samples by taking� - x <sup>�</sup> T�1 <sup>as</sup> the input of the� trained 2D-DGM� (i.e., pθ xT <sup>�</sup> �2 <sup>jx�</sup> T�1 ). It is worth different plane (Fig. 14c). Then, denoise the samples by taking� - x <sup>�</sup> T�1 <sup>as</sup> the input of the� trained 2D-DGM� (i.e., pθ xT <sup>�</sup> �2 <sup>jx�</sup> T�1 ). It is worth noting� that�pθ xT <sup>�</sup> �2 <sup>jx�</sup> T�1 is not a new model; it is the same as the input of the� trained 2D-DGM� (i.e., pθ xT <sup>�</sup> �2 <sup>jx�</sup> T�1 ). It is worth noting� that�pθ xT <sup>�</sup> �2 <sup>jx�</sup> T�1 is not a new model; it is the same as pθ xT�1jxT, but the input comes from a different plane. T <sup>�</sup> �2 <sup>jx�</sup> T T <sup>�</sup> �2 <sup>jx�</sup> T noting� that�pθ xT <sup>�</sup> �2 <sup>jx�</sup> T�1 is not a new model; it is the same as pθ xT�1jxT, but the input comes from a different plane. 4. Repeat the above process until the last reverse diffusion step is completed to obtain the 3D sample where all the images at different planes� follow the data distribution p x0 . - x0 . It is important to mention the proposed multi-plane denoising is based on the assumption that x <sup>�</sup> t <sup>closely</sup> <sup>resembles</sup> <sup>Xt</sup> <sup>since</sup> <sup>both</sup> <sup>the</sup> forward and reverse diffusion processes comprise multiple time steps to align the discrete DGMs with the continuous diffusion process in SDE formulation.� In other� words, the reverse Markovian process with the model pθ xT�1jxT would function effectively with the input x <sup>�</sup> t <sup>because</sup> - In other� words, the reverse Markovian process xT�1jxT would function effectively with the input x <sup>�</sup> t Fig. 13 | Schematic of multi-plane denoising diffusion in the three orthogonal planes (i.e., yz, xz, xy-planes) for transforming the noise distribution into the data distribution while ensuring connectivity between the planes. The colored lines within the time interval represent the trajectories of reverse diffusion (pðxT Þ ! pðx0Þ). model pθ xT�1jxT would function effectively with the input x <sup>�</sup> t <sup>because</sup> the denoising process operates in a gradual manner. Furthermore, since the denoising diffusion is performed at multiple planes together in a single reverse diffusion process, it allows for enforcing connectivity among the samples along different planes. Another perspective to comprehend this process is to consider x <sup>�</sup> t <sup>as</sup> <sup>the</sup> <sup>input</sup> <sup>of</sup> <sup>the</sup> <sup>model,</sup> which is manipulated before denoising using a transformation function ψT (Fig. 15). For instance, ψT of the proposed multi-plane denoising is a function for rearranging Xt (i.e., manipulating rows and columns of samples to get x <sup>�</sup> t <sup>) to change the target denoising plane. The interesting</sup> <sup>�</sup> t <sup>) to change the target denoising plane. The interesting</sup> Fig. 14 | Multi-plane denoising with the discrete times steps of the reverse diffusion: (a) Initial voxels with Gaussian noise, (b) Slice view of the voxels according to the reversed - time steps, (c) Corresponding planes and samples for denoising at each time step with the trained model pθ xt�1jxt, and (d) reconstructed 3D microstructure sample. Fig. 15 | Comparison between (a) conventional 2D denoising diffusion and (b) multi-plane denoising diffusion in terms of the conditional probability and Markov chain based on the formulation of DDPM. The upper-left superscript denotes the i th sample along a particular plane. part is that ψT can be modified for different purposes, such as rearranging the Xt to perform denoising diffusion at a much higher dimension and denoising multiple samples connected to each other for obtain a single high-resolution image (which is recommended for the future research works). However, one remaining issue is that x <sup>�</sup> t <sup>is not exactly same as Xt even</sup> with thousands of diffusion steps, although they may closely resemble each other. Due to the discrepanciesin the distributions of� - x <sup>�</sup> t <sup>and Xt, the Markov</sup> chain of pθ xt <sup>�</sup> ��1 <sup>jx�</sup> t would� produce lower-quality samples� compared� to However, one remaining issue is that x <sup>�</sup> t output at the next time step). Therefore, a harmonizing step is adopted during the denoising process as depicted in Fig. 16, which involves a cycle of renoising and denoising the sample at time t. In other words, we give more chances to the model to harmonize the conditional information x <sup>�</sup> t before proceeding to the next denoising step. The renoising process is the same as the original forward process (Eq. (8)) which can be written as follows. other. Due to the discrepanciesin the distributions of� - x <sup>�</sup> t <sup>and Xt, the Markov</sup> chain of pθ xt <sup>�</sup> ��1 <sup>jx�</sup> t would� produce lower-quality samples� compared� to those� from� pθ xt�1jxt . To fill the gap between pθ xt <sup>�</sup> �1 <sup>jx�</sup> t and t <sup>�</sup> ��1 <sup>jx�</sup> t t <sup>�</sup> �1 <sup>jx�</sup> t chain of pθ xt <sup>�</sup> ��1 <sup>jx�</sup> t would� produce lower-quality samples� compared� to those� from� pθ xt�1jxt . To fill the gap between pθ xt <sup>�</sup> �1 <sup>jx�</sup> t and pθ xt�1jxt for generation of 3D sample with acceptable quality, the next �1 <sup>jx�</sup> t would� produce lower-quality samples� xt�1jxt . To fill the gap between pθ xt <sup>�</sup> - pf f i f f i f f i f f i f f i f f x <sup>�</sup> t <sup>;</sup> 1 � βtx <sup>�</sup> t�1 <sup>; β</sup> t <sup>I</sup> ð21Þ <sup>�</sup> t <sup>;</sup> those� from� pθ xt�1jxt . To fill the gap between pθ xt <sup>�</sup> �1 <sup>jx�</sup> t and pθ xt�1jxt for generation of 3D sample with acceptable quality, the next sectionpresentsthemethodforharmonizingthesamplesatdifferentplanes. p x <sup>�</sup> t - - x <sup>�</sup> t <sup>jx</sup> t <sup>�</sup> �1 ¼ N x <sup>�</sup> t <sup>;</sup> <sup>�</sup> t <sup>jx</sup> t <sup>�</sup> pf f i f f i f f i f f i f f i f f 1 � βt x <sup>�</sup> t Harmonized sampling for dimensionality expansion. To address the discrepancies caused by the proposed multi-plane denoising diffusion, this study introduces the method of harmonized sampling (or resampling <sup>74</sup> ) for 2D-to-3D reconstruction of microstructures. Since x <sup>�</sup> t <sup>is</sup> manipulated data from xt, there is disharmony introduced to� - x� <sup>�</sup> t <sup>which</sup> manipulated data from xt, there is disharmony introduced to� - x� <sup>�</sup> t <sup>which</sup> may lead to incorrect operations of pθ xt <sup>�</sup> �1 <sup>jx�</sup> t . Although pθ xt <sup>�</sup> �1 <sup>jx�</sup> t would attempt to generate the most probable data with the estimation of� p x <sup>�</sup> t�1 <sup>jx�</sup> t at every time step, the model cannot converge if it severely - - x� <sup>�</sup> t xt <sup>�</sup> �1 <sup>jx�</sup> t . Although pθ xt <sup>�</sup> In addition, the concept of renoising (or harmonizing) was initially introduced for ‘inpainting’ with masked inputs to obtain the most probable inpainting result conditioned on the unmasked region by ref. 74 Their work demonstrated that incorporating several harmonizing steps can result in moreharmonizedimages,comparedtosamplingwithoutharmonizingsteps. Taking inspiration from this idea, this study utilizes harmonizing steps to mitigate the disharmony introduced during the 2D-to-3D reconstruction with the multi-plane denoising diffusion. To be more specific, the harmonizing steps are applied nh times at each time step t <sup>�</sup> �1 <sup>jx�</sup> t x� <sup>�</sup> t <sup>which</sup> xt <sup>�</sup> �1 <sup>jx�</sup> t t <sup>�</sup> �1 <sup>jx�</sup> t would attempt to generate the most probable data with the estimation of� p x <sup>�</sup> t�1 <sup>jx�</sup> t at every time step, the model cannot converge if it severely deviates from the correct trajectory at certain time step in the Markov chain of reverse diffusion (as the output at the current time step affects the <sup>�</sup> t�1 <sup>jx�</sup> t Fig. 16 | Multi-plane denoising diffusion with harmonizing steps to address the disharmony introduced by sampling in different planes. along with ψT to enable sampling conditional to the samples at different planes. This approach allows us to obtain more realistic 3D data, ensuring that all the samples viewed from the three orthogonal planes follow the original data distribution and maintain connectivity. The entire process of multi-plane denoising diffusion with harmonizing steps for 2D-to-3D reconstruction of microstructures is described in Supplementary Algorithm 1. Implementation. The implementation of the 2D-DGMs for sampling 2D microstructural images and the incorporation of the multi-plane denoising diffusion with harmonizing steps were carried out using the Pytorch library� <sup>75</sup> �. In order to build models for reverse diffusion process (i.e., pθ xt�1jxt ), this study adopted the Imagen model, proposed by ref. 63 which proved to be highly effective in generating photorealistic images, to generate 64 × 64 sized 2D samples. The details of the model architecture with the hyperparameters are described in Supplementary Table 1. The training of these models was conducted using Nvidia RTX A6000 graphics processing units (GPUs) coupled with the Adam optimizer, employing a learning rate of 3 × 10 <sup>�4</sup> . For each exemplary case, the batch size was set to 32 per GPU, and the training process consisted of 50,000 training steps. The diffusion time steps for all models were set to be T = 1000 with the linear noise schedule <sup>44</sup>, where βt s are evenly spaced values over the interval β1 ¼ 10 <sup>�4</sup> and βT ¼ 10 <sup>�2</sup> . Evaluation metrics for validation. To quantify the quality of the generated samples using the proposed methodology in this study, the following criterion metrics are considered: two-point correlation function (S2) and lineal path function (LP) in 2D/3D space. The two-point correlation function, which characterizes the statistical distribution of the material phase, can be written as follows: quantitatively <sup>26,76</sup> . Then, the error rate(%) between the correlation functions of training data and generated data can be computed using the following discrepancy equation <sup>48,77</sup> : Error rateð%Þ ¼ <sup><u>Adis</u></sup> Aori × 100 ð24Þ - - �� r1; r2 ¼ B r1 �� r2 ð22Þ where Aori denotes the area under the correlation function of the training dataset, and Adis represents the area between the two correlation functions computed with the training and generated data. In other words, the error rate represents the relative error between the two curves. Depending on the sources of training data (e.g., 2D images sampled from 3D volume, or 2D images themselves), the correlation functions are evaluated in either 3D space or 2D space for each case study. Data availability The study used open-access microstructural data for training models from thefollowingsources:batteryelectrodes(NMCcathodes) <sup>78</sup> andcarbonates <sup>55</sup> . All generated data used are available from the authors on request. Code availability The codes that support the findings of this study are available from the corresponding author upon reasonable request. Received: 30 August 2023; Accepted: 19 April 2024; References 1. Ghosh, S. & Dimiduk, D. Computational methods for microstructureproperty relationships. Vol. 101 (Springer, 2011). 2. Fish, J., Wagner, G. J. & Keten, S. Mesoscopic and multiscale modelling in materials. Nat. Mater. 20, 774–786 (2021). 3. Allison, J. Integrated computational materials engineering: a perspective on progress and future steps. Jom 63, 15 (2011). 4. Allison, J., Backman, D. & Christodoulou, L. Integrated computational materials engineering: a new paradigm for the global materials profession. Jom 58, 25–27 (2006). 5. Lee, K.-H., Lim, H. J. & Yun, G. J. A data-driven framework for designing microstructure of multifunctional composites with deeplearned diffusion-based generative models. Eng. Appl. Artif. Intell. 129, 107590 (2024). 6. Vlassis, N. N. & Sun, W. Denoising diffusion algorithm for inverse design of microstructures with fine-tuned nonlinear material properties. Comput. Methods Appl. Mech. 413, 116126 (2023). 7. Lee, X. Y. et al. Fast inverse design of microstructures via generative invariance networks. Nat. Comput. Sci. 1, 229–238 (2021). S2 r1; r2 �� �� r1 B r2 where B�ð Þ is a binary function that becomes 1 if a material phase of interest is present at a given location and 0 otherwise. In a similar manner, the lineal pathfunctionto evaluatetheconnectivitybetweenclustersofmaterialphase can be computed as follows: - - 1 if a line connecting r1 and r2 is on the material phase of interest r1; r2 ¼ LP r1; r2 0 otherwise ð23Þ In addition, the lineal path function is adopted to assess not only the spatial distributions of the material phase but also the phase connectedness 8. Horstemeyer, M. F. Integrated Computational Materials Engineering (ICME) for metals: using multiscale modeling to invigorate engineering design with science. (John Wiley & Sons, 2012). 9. Bargmann,S. et al. Generation of 3D representative volume elements for heterogeneousmaterials:areview. Prog.Mater.Sci. 96,322–384(2018). 10. Maire, E. et al. Onthe applicationof X‐raymicrotomography in the field of materials science. Adv. Eng. Mater. 3, 539–546 (2001). 11. Lee, K.-H., Lee, H. W. & Yun, G. J. A defect detection framework using three-dimensional convolutional neural network(3D-CNN) with in-situ monitoring data in laser powder bed fusion process. Opt. Laser Technol. 165, 109571 (2023). 12. Lim, H. J., Choi, H., Lee, M. J. & Yun, G. J. An efficient multi-scale model for needle-punched Cf/SiCm composite materials with experimental validation. Compos. B Eng. 217, 108890 (2021). 13. Bostanabad, R. et al. Computational microstructure characterization and reconstruction: review of the state-of-the-art techniques. Prog. Mater. Sci. 95, 1–41 (2018). 14. Geers, M. G., Kouznetsova, V. G. & Brekelmans, W. Multi-scale computational homogenization: trends and challenges. J. Comput. Appl. Math. 234, 2175–2182 (2010). 15. Rao, C. & Liu, Y. Three-dimensional convolutional neural network (3DCNN) for heterogeneous material homogenization. Comput. Mater. Sci. 184, 109850 (2020). 16. Yvonnet, J. Computational homogenization of heterogeneous materials with finite elements. Vol. 258 (Springer, 2019). 17. Seibert, P., Raßloff, A., Ambati, M. & Kästner, M. Descriptor-based reconstruction of three-dimensional microstructures through gradient-based optimization. Acta Mater. 227, 117667 (2022). 18. Xu, H., Dikin, D. A., Burkhart, C. & Chen, W. Descriptor-based methodology for statistical characterization and 3D reconstruction of microstructural materials. Comput. Mater. Sci. 85, 206–216 (2014). 19. Seibert, P., Raßloff, A., Kalina, K., Ambati, M. & Kästner, M. Microstructure characterization and reconstruction in Python: MCRpy. Integr. Mater. Manuf. Innov. 11, 450–466 (2022). 20. Seibert, P. et al. Two-stage 2D-to-3D reconstruction of realistic microstructures: Implementation and numerical validation by effective properties. Comput. Methods Appl. Mech. 412, 116098 (2023). 21. Li, K.-Q., Liu, Y. & Yin, Z.-Y. An improved 3D microstructure reconstruction approach for porous media. Acta Mater. 242, 118472 (2023). 22. Torquato, S. Statistical description of microstructures. Annu. Rev. Mater. Res. 32, 77–111 (2002). 23. Torquato, S. & Haslach, H. Jr Random heterogeneous materials: microstructure and macroscopic properties. Appl. Mech. Rev. 55, B62–B63 (2002). 24. Yeong, C. & Torquato, S. Reconstructing random media. Phys. Rev. E 57, 495 (1998). 25. Jiao, Y., Stillinger, F. & Torquato, S. Modeling heterogeneous materials via two-point correlation functions: basic principles. Phys. Rev. E 76, 031110 (2007). 26. Lu, B. & Torquato, S. Lineal-path function for random heterogeneous materials. Phys. Rev. A 45, 922 (1992). 27. Seibert, P., Ambati, M., Raßloff, A. & Kästner, M. Reconstructing random heterogeneous media through differentiable optimization. Comput. Mater. Sci. 196, 110455 (2021). 28. Bostanabad, R., Chen, W. & Apley, D. W. Characterization and reconstruction of 3D stochastic microstructures via supervised learning. J. Microsc. 264, 282–297 (2016). 29. Bostanabad, R., Bui, A. T., Xie, W., Apley, D. W. & Chen, W. Stochastic microstructure characterization and reconstruction via supervised learning. Acta Mater. 103, 89–102 (2016). 30. Kim, Y. et al. Exploration of optimal microstructure and mechanical properties in continuous microstructure space using a variational autoencoder. Mater. Des. 202, 109544 (2021). 31. Sundar, S. & Sundararaghavan, V. Database development and exploration of process–microstructure relationships using variational autoencoders. 25, 101201 (2020). 32. Noguchi, S. & Inoue, J. Stochastic characterization and reconstruction of material microstructures for establishment of process-structure-property linkage using the deep generative model. Phys. Rev. E 104, 025302 (2021). 33. Xu, L., Hoffman, N., Wang, Z. & Xu, H. Harnessing structural stochasticity in the computational discovery and design of microstructures. Mater. Des. 223, 111223 (2022). 34. Gayon-Lombardo, A., Mosser, L., Brandon, N. P. & Cooper, S. J. Pores for thought: generative adversarial networks for stochastic reconstruction of 3D multi-phase electrode microstructures with periodic boundaries. Npj Comput. Mater. 6, 1–11 (2020). 35. Fokina, D., Muravleva, E., Ovchinnikov, G. & Oseledets, I. Microstructure synthesis using style-based generative adversarial networks. Phys. Rev. E 101, 043308 (2020). 36. Kench, S. & Cooper, S. J. Generating three-dimensional structures from a two-dimensional slice with generative adversarial networkbased dimensionality expansion. Nat. Mach. Intell. 3, 299–305 (2021). 37. Zhang, F., Teng, Q., Chen, H., He, X. & Dong, X. Slice-to-voxel stochastic reconstructions on porous media with hybrid deep generative model. Comput. Mater. Sci. 186, 110018 (2021). 38. Tolstikhin, I., Bousquet, O., Gelly, S. & Schoelkopf, B. Wasserstein auto-encoders. In 6th International Conference on Learning Representations (2018). 39. Li, Y., Swersky, K. & Zemel, R. In International conference on machine learning. 1718-1727 (PMLR). 40. Lala, S., Shady, M., Belyaeva, A. & Liu, M. Evaluation of mode collapse in generative adversarial networks. High Performance Extreme Computing (2018). 41. Miyato, T., Kataoka, T., Koyama, M. & Yoshida, Y. Spectral normalization for generative adversarial networks. International Conference on Learning Representations (2018). 42. Song, Y. et al. Score-based generative modeling through stochastic differential equations. International Conference on Learning Representations (2020). 43. Song, Y. & Ermon, S. Generative modeling by estimating gradients of the data distribution. Adv. Neural Inf. Process. Syst. 32 (2019). 44. Ho, J., Jain, A. & Abbeel, P. Denoising diffusion probabilistic models. Adv. Neural Inf. Process. Syst. 33, 6840–6851 (2020). 45. Vincent, P. J. N. C. A connection between score matching and denoising autoencoders. 23, 1661–1674 (2011). 46. Yang, L. et al. Diffusion models: A comprehensive survey of methods and applications. ACM Comput. Surv., 56. 1–39 (2023). 47. Dhariwal, P. & Nichol, A. Diffusion models beat gans on image synthesis. Adv. Neural Inf. Process. Syst. 34, 8780–8794 (2021). 48. Lee, K.-H. & Yun, G. J. Microstructure reconstruction using diffusionbased generative models. Mech. Adv. Compos. Struct., 1−19 (2023). 49. Düreth, C. et al. Conditional diffusion-based microstructure reconstruction. Mater. Today Commun. 35, 105608 (2023). 50. Fan, Z., Wu, Y., Zhao, X. & Lu, Y. Simulationof polycrystalline structure with Voronoi diagram in Laguerre geometry based on random closed packing of spheres. Comput. Mater. Sci. 29, 301–308 (2004). 51. National Renewable Energy Laboratory. Battery Microstructures [Library. https://www.nrel.gov/transportation/microstructure.](https://www.nrel.gov/transportation/microstructure.html) [html (2017).](https://www.nrel.gov/transportation/microstructure.html) 52. Xu, H. et al. Guiding the design of heterogeneous electrode microstructures for Li‐ion batteries: microscopic imaging, predictive modeling, and machine learning. Adv. Energy Mater. 11, 2003908 (2021). 53. Kim, S., Wee, J., Peters, K. & Huang, H.-Y. S. Multiphysics coupling in lithium-ion batteries with reconstructed porous microstructures. J. Phys. Chem. C. 122, 5280–5290 (2018). 54. Lu, X. et al. 3D microstructure design of lithium-ion battery electrodes assisted by X-ray nano-computed tomography and modelling. Nat. Commun. 11, 2079 (2020). 55. Prodanovic, M., Esteva, M., Hanlon, M., Nanda, G. & Agarwal, P. (P7CC7K, 2015). 56. Li, K.-Q., Li, D.-Q. & Liu, Y. Meso-scale investigations on the effective thermal conductivity of multi-phase materials using the finite element method. Int. J. Heat. Mass Transf. 151, 119383 (2020). 57. Rüger, B., Joos, J., Weber, A., Carraro, T. & Ivers-Tiffée, E. 3D electrode microstructure reconstruction and modelling. ECS Trans. 25, 1211 (2009). 58. Kumar, H., Briant, C. & Curtin, W. Using microstructure reconstruction to model mechanical behavior in complex microstructures. Mech. Mater. 38, 818–832 (2006). 59. Kouznetsova, V., Geers, M. G. & Brekelmans, W. Multi-scale secondorder computational homogenization of multi-phase materials: a nested finite element solution strategy. Comput. Methods Appl. Mech. 193, 5525–5550 (2004). 60. Miehe, C., Schröder, J. & Schotte, J. Computational homogenization analysis in finite plasticity simulation of texture development in polycrystalline materials. Comput. Methods Appl. Mech. 171, 387–418 (1999). 61. Song, J., Meng, C. & Ermon, S. Denoising diffusion implicit models. International Conference on Learning Representations. (2020). 62. Cao, H. et al. A survey on generative diffusion model. IEEE Trans. Knowl. Data Eng. (2024). 63. Saharia, C. et al. Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding. Adv Neural Inf Process Syst. 35, 36479–36494 (2022). 64. Rombach, R., Blattmann, A., Lorenz, D., Esser, P. & Ommer, B. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition. 10684−10695. 65. Song, Y. & Ermon, S. Improved techniques for training score-based generative models. Adv. Neural Inf. Process. Syst. 33, 12438–12448 (2020). 66. Croitoru, F.-A., Hondru, V., Ionescu, R. T. & Shah, M. Diffusion models in vision: a survey. IEEE Trans. Pattern Anal. Mach. Intell. 1–12 (2023). 67. Øksendal, B. & Øksendal, B. Stochastic differential equations. (Springer, 2003). 68. Anderson, B. D. Reverse-time diffusion equation models. Stoch. Process. Appl. 12, 313–326 (1982). 69. Kingma, D. P. & Welling, M. An introduction to variational autoencoders. Found. Trends Mach. Learn. 12, 307–392 (2019). 70. Yu, P. et al. Latent diffusion energy-based model for interpretable text modeling. International Conference on Machine Learning. (2023). 71. Ramesh, A., Dhariwal, P., Nichol, A., Chu, C. & Chen, M. Hierarchical text-conditional image generation with clip latents. Preprint at 1, 3. [https://arxiv.org/abs/2204.06125 (2022).](https://arxiv.org/abs/2204.06125) 72. Nichol, A. Q. & Dhariwal, P. Improved denoising diffusion probabilistic models. In International Conference on Machine Learning. 8162–8171 (2021). 73. Ho, J. & Salimans, T. Classifier-free diffusion guidance. In NeurIPS 2021 Workshop on Deep Generative Models and Downstream Applications. (2021). 74. Lugmayr, A. et al. Repaint: Inpainting using denoising diffusion probabilistic models. Proceedings of the IEEE/CVF conference on computer vision and pattern recognition. 11461–11471 (2022). 75. Paszke, A. et al. Pytorch: an imperative style, high-performance deep learning library. Adv. Neural Inf. Process. Syst. 32 (2019). 76. Havelka, J., Kučerová, A. & Sýkora, J. Compression and reconstruction of random microstructures using accelerated lineal path function. Comput. Mater. Sci. 122, 102–117 (2016). 77. Li, X. et al. A transfer learning approach for microstructure reconstruction and structure-property predictions. Sci. Rep. 8, 1–13 (2018). 78. National Renewable Energy Laboratory. Battery Microstructure Li-Ion [Cathode and Anode Data Samples. https://www.nrel.gov/](https://www.nrel.gov/transportation/battery-microstructure-library-data.html) [transportation/battery-microstructure-library-data.html (2023).](https://www.nrel.gov/transportation/battery-microstructure-library-data.html) Acknowledgements This material is based upon work supported by the Air Force Office of Scientific Research under award number FA2386-22-1-4001 and the Institute of Engineering Research at Seoul National University. This work was also supported by the BK21 Program funded by the Ministry of Education (MOE, Korea) and National Research Foundation of Korea (NRF4199990513944). Author contributions Kang-Hyun Lee: Investigation, Methodology, Formulation analysis, Original draft, Methodology, Data curation, Validation, Visualization, Review/Editing, Experimentalwork;GunJinYun:Formulationanalysis,Supervision,Funding acquisition, Validation, Review/Editing. Competing interests The authors declare no competing interests. Additional information Supplementary information The online version contains supplementary material available at [https://doi.org/10.1038/s41524-024-01280-z.](https://doi.org/10.1038/s41524-024-01280-z) Correspondence and requests for materials should be addressed to Gun Jin Yun. Reprints and permissions information is available at [http://www.nature.com/reprints](http://www.nature.com/reprints) Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations. 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/.](http://creativecommons.org/licenses/by/4.0/) © The Author(s) 2024

섹션 본문 71문단 · 42,587자

(제목 없음)

1Acquiring reliable microstructure datasets is a pivotal step toward the systematic design of materials with the aid of integrated computational materials engineering (ICME) approaches.However, obtaining three-dimensional (3D) microstructure datasets is often challenging due to high experimental costs or technical limitations, while acquiring twodimensional (2D) micrographs is comparatively easier.To deal with this issue, this study proposes a novel framework for 2D-to-3D reconstruction of microstructures called 'Micro3Diff' using diffusion-based generative models (DGMs).Specifically, this approach solely requires pre-trained DGMs for the generation of 2D samples, and dimensionality expansion (2D-to-3D) takes place only during the generation process (i.e., reverse diffusion process).The proposed framework incorporates a new concept referred to as 'multi-plane denoising diffusion', which transforms noisy samples (i.e., latent variables) from different planes into the data structure while maintaining spatial connectivity in 3D space.Furthermore, a harmonized sampling process is developed to address possible deviations from the reverse Markov chain of DGMs during the dimensionality expansion.Combined, we demonstrate the feasibility of Micro3Diff in reconstructing 3D samples with connected slices that maintain morphologically equivalence to the original 2D images.To validate the performance of Micro3Diff, various types of microstructures (synthetic and experimentally observed) are reconstructed, and the quality of the generated samples is assessed both qualitatively and quantitatively.The successful reconstruction outcomes inspire the potential utilization of Micro3Diff in upcoming ICME applications while achieving a breakthrough in comprehending and manipulating the latent space of DGMs

Introduction

2The properties and physical behavior of a material are profoundly influenced by its microstructure, which encompasses the topology, distribution, and physical characteristics of the constituent phases.By leveraging computational mechanics [1,2] and integrated computational materials engineering (ICME) approaches [3,4], the relationship between the microstructure and properties can be systemically investigated for exploring the design space of materials [5][6][7][8].For precise modeling and understanding of complex material behavior in terms of microstructure-property linkage, conducting three-dimensional (3D) analysis and characterization of microstructures are imperative.Furthermore, the accuracy of computational analysis for investigating material properties relies on the quality of accessible 3D microstructural datasets.In order to acquire precise 3D information about microstructures, micro-computed tomography (micro-CT) has demonstrated its effectiveness as a tool allowing for the visualization of a material's internal structure and potential defects in a 3D domain.[9][10][11][12].Moreover, the use of micro-CT-based characterization of microstructures has been regarded as a reliable approach to understand material behavior with computational analysis, such as finite element analysis (FEA), particularly at the representative volume element (RVE) scale [9,[12][13][14][15][16].

3However, the difficulty lies in acquiring an extensive database of microstructures with experimental analysis, primarily due to time and cost constraints.Furthermore, obtaining a 3D microstructural dataset is more challenging, as it requires serial sectioning views, in contrast to the relatively straightforward capturing independent two-dimensional (2D) micrographs.To address this challenge, numerous microstructure characterization and reconstruction (MCR) approaches employing a diverse range of microstructural descriptors have been proposed [13,[17][18][19][20][21][22][23][24].In general, these descriptor-based MCR methods obtain morphologically equivalent samples by iterative optimization of the discrepancy between the target and the current descriptors.Various kinds of descriptors, including simple volume fraction as well as highdimensional correlation functions such as n-point correlations [17,25] or lineal path functions [26], can be employed to quantify the morphology of the microstructure.Once specific descriptors are chosen, the optimization problem can be addressed using stochastic reconstruction techniques like the Yeong-Torquato algorithm [24].Moreover, it is possible to utilize differentiable descriptors to reconstruct equivalent 3D microstructural samples through the application of a gradient-based optimizer [17,27].In particular, Seibert et al. [20] proposed a 2D-to-3D reconstruction method to obtain realistic microstructure samples using differentiable microstructural descriptors and optimization algorithms provided by the openaccess MCRpy package [19].

4Although MCR methods with microstructural descriptors have been demonstrated to be effective for microstructure reconstruction, a major concern of this approach is that it requires specific descriptors to be optimized.Thus, for achieving favorable reconstruction outcomes, the selection of appropriate descriptors is crucial considering the specific morphological attributes of the targeted microstructure.Meanwhile, there has been extensive research on generative models, such as variational autoencoders (VAEs) [28][29][30][31] and generative adversarial networks (GANs) [32][33][34], for reconstructing microstructures by learning the underlying distribution of data.For instance, Kim et al. [28] proposed a VAEbased framework for reconstruction of 2D microstructure samples from a deep-learned continuous microstructure space.They also demonstrated that inverse design is possible by establishing connections between the features in the latent space of VAE and the mechanical properties of materials.Fokina et al. [49] utilized the style-based GAN architecture for reconstruction of 2D microstructural samples that are close to the original samples in terms of area density and Euler characteristics distributions.In addition, 2D-to-3D microstructure reconstruction with generative models has been gaining significant attention recently [34][35][36].One of the remarkable works is the novel GAN architecture called SliceGAN, proposed by Kench and Cooper [34], which synthesizes 3D microstructure datasets from a single representative 2D image.They demonstrated their GAN-based model can effectively reconstruct 3D microstructures of various types of materials, including polycrystalline metals, ceramics, and battery electrodes On the other hand, VAEs suffer from a notable drawback, as the generated samples tend to be distorted and blurred [37,38], while GANs are susceptible to the issue of mode collapse and unstable training due to the adversarial loss function [39,40].In light of these concerns, the diffusion-based generative models (DGMs) [41][42][43] are currently gaining significant attention as a promising state-of-the-art generative model.In particular, there are two popular formulations of DGMs which are called the denoising diffusion probabilistic models (DDPMs) and the score-based generative models (SGMs).According to the formulation of DDPMs [43], a DGM can be perceived as a model of reverse Markovian chain, intended for progressive denoising a data structure, while SGMs [42] view DGMs as models for estimating gradients of data distribution with denoising score matching [44].The DGMs can also be generalized to the problem of solving reverse stochastic differential equations (SDEs) in order to transform the noise distribution into the data distribution [41,45].Due to the transformation of generation problem into the progressive reverse diffusion (i.e., denoising) process, DGMs have shown superior performance compared to GANs in generating highquality images [46], and they are not prone to mode collapse or unstable training which are commonly observed in GANs.

5However, the possibility of using DGMs for 2D-to-3D reconstruction of microstructures has not been explored, according to the best knowledge of the authors.While some studies have suggested the use of DGMs for reconstructing 2D microstructure samples [5,47,48], the problem of dimensional expansion (2D-to-3D) has not been explored extensively due to the lack of knowledge in the latent space of DGMs.In order to bridge this gap, a novel dimensionality-expansion framework for 2D-to-3D reconstruction of microstructures based on denoising diffusion, called 'Micro3Diff', is proposed in this study.The proposed method does not require any 3D datasets, and it only requires a DGM trained for the generation of 2D images (2D-DGM).The feasibility of this approach lies in the fact that Micro3Diff targets only the manipulation of the reverse diffusion process for dimensionality expansion.In addition, this greatly facilitates the application of this framework as the commonly used 2D-DGM can be easily incorporated.The structure of this article with the key contributions of this work are summarized as follows.

6(1) In the 'Preliminaries' section, the formulations of DGMs are introduced along with the SDEbased generalization to provide an understanding of the basic theory of DGMs.The concept of transforming noise distribution into data distribution through progressive denoising is then employed to support the assumptions required for Micro3Diff, which is introduced in the next section.

7(2) In the following section, the detailed procedure for 2D-to-3D reconstruction using Micro3Diff is introduced, based on the novel multi-plane denoising diffusion-based approach.Furthermore, to mitigate potential discrepancies arising from multi-plane denoising, the technique of harmonized sampling is introduced to enhance the quality of generated samples.By combining these approaches, this section demonstrates how it becomes feasible to simultaneously transform the noise distribution in multiple planes into the data distribution while preserving connectivity and continuity in 3D space.

8(3) To validate the proposed methodology, various types of microstructures including spherical inclusions, polycrystalline grains, battery electrodes, and carbonates, sourced from both synthetic and experimental data, are considered to be reconstructed using the proposed Micro3Diff.The generated results are subsequently validated by comparing spatial correlation functions to assess the similarity between the generated 3D samples and the original data.

Preliminaries

9In this section, the formulations of DGMs are introduced, encompassing the two predominant approaches (SGMs and DDPMs), for the development of DGM-based 2D-to-3D reconstruction of microstructures (section 3).

Generalization of DGMs

10Over the past few years, there have been several formulations and variations of DGMs [41][42][43][49][50][51][52][53][54] proposed, yet they all share two important common features: 1. the pre-defined progressive noising process for transforming data distribution into a prior noise distribution, and 2. the incorporation of a model that learns to denoise a sample to transform the noise distribution towards a desired conditional/unconditional data distribution.The formal is also called the forward diffusion process and the latter one is called the reverse diffusion process [45,54].Among the different formulations, the one that employs the SDEs can be regarded as a generalized form of DGMs.A forward diffusion process for perturbing (i.e., noising) data can be defined in a form of Ito ̂ SDE [55] with a continuous time variable ∈ [0, ] as d = (, ) + ()d

11where is a standard Wiener process, which can also be thought of as Gaussian noise or Brownian motion [41,56], (•, ): ℝ → ℝ and (): ℝ → ℝ represent drift and diffusion coefficients of SDE at time step , respectively.To perturb data with the SDE, the drift coefficient can be defined to nullify the data while the diffusion coefficient is adopted to progressively add noise to the data.In other words, the diffusion process can be modeled with different choices of (•, ) and () while d represents the stochastic component.Considering this aspect, the two popular formulations of DGMs, which are SGMs [42] and DDPMs [43], can also be interpreted as discretized variations of the SDE with different drift and diffusion coefficients.

Forward diffusion process

12As stated above, the diffusion processes in the various formulations of DGMs (e.g., SGMs and DDPMs) can be generalized using the concept of SDE.For instance, SGMs employ the concept of the score function (i.e., the gradient of the log probability density) and the denoising score matching with Langevin dynamics [44] for transforming random noise to data with high probability density.According to the perturbation process with a specified noise distribution proposed by Song et al. [42], the SDE for SGMs can be written as

13where ( ) converges to (i.e., the noise level at time ) as → ∞.Considering a discrete sequence of samples (i.e. , 0 , 1 , … , ), the update rule for obtaining the noised sample ( +1 ) from the sample at the previous time step ( ) can be defined as follows with the noise component ~(, ).

14On the other hand, DDPMs utilize the concept of Markov chain to define the forward/reverse diffusion process, along with the variational lower bound (VLB) for training the models to reconstruct an original data structure from the prior noise distribution.Similar yet different, the SDE for the forward diffusion process of DDPMs can be expressed as

15where is the noise scheduling parameter and (

16) converges to as → ∞ .

17According to this definition and the Stirling's approximation, the following update rule can be derived.

18The schematic of the forward diffusion process of DGMs using the introduced formulations is shown in Figure 1.It is again worth noting that the primary objective of defining the forward diffusion process in DGMs is to transform the data distribution into the prior noise distribution, even though the drift and diffusion coefficients may vary.

Reverse diffusion process

19Based on the forward diffusion SDE (Eq.( 1)), the SDE for reverse diffusion of data can be derived as

20where ̂ is a standard Wiener process when the time is reversed.In an intuitive sense, the SDE in reversed time (Eq.( 6)) implies that it is able to reconstruct data by starting with the noise distribution.It is worth noting that the only unknown in Eq. ( 6) is the value of score function, which is denoted as ∇ log ().In other words, if we can obtain the value of ∇ log (), it is able to generate as many samples as desired.In this regard, the following loss function of SGMs for denoising score matching [42] can be optimized:

21where () is a positive weighting function at time and ( , ) is a model trained to estimate the value of the score function within the discrete time interval.In addition, this can be considered equivalent to solving the reverse-time SDE.

22On the other hand, the loss function of DDPMs originates from the theory of variational inference [43,57].This is the reason why a DDPM is also called a hierarchical Markovian VAE [45].Based on the Eq. ( 5), a process of forward diffusion can be defined in the form of conditional Gaussian distribution as follows.

𝑝(𝐱 𝑡 |𝐱 𝑡

23Based on this forward process, a neural network model for the reverse process can be defined as

24where and are the predicted mean function and the covariance, respectively.To estimate the original data distribution ( 0 ) with the forward/reverse process through the time steps, the Kullback-Leibler divergence ( ) between the joint distributions ( 0 , 1 , … , ) and ( 0 , 1 , … , ) need to be minimized.This is achieved by minimizing the VLE of the negative log-likelihood as:

25In particular, −1 can be rewritten as the following expectation of ℓ 2 loss as

26where ( , ) is the model trained to estimate the mean function and ( , 0 ) is the mean function of noised sample at according to the pre-defined forward diffusion process (Eq.( 5)).In particular, Ho et al. [43] reparametrized Eq. ( 14) with the model ( , ) for predicting the noise component at as follows.

27To show the linkage between DDPMs and SGMs, Eq. ( 7) can be rewritten according to Eq. ( 2) and (3) as

28which shows that DDPMs are equivalent to SGMs if ( , ) = − ( , ).

Denoising diffusion-based 2D-to-3D reconstruction with harmonized sampling 3.1 Equation of sampling

29In the previous section, the equivalence of the different formulations of DGMs is introduced.Among the different formulations, the formulation of DDPMs is adopted in this study to build DGMs for the reconstruction of microstructures.Thus, Eq. ( 15) is utilized as the objective function for training the model ( , ).After training the model, it is able to obtain the mean function of in Eq. (9) with the prediction of using the following equation:

30where

31It is worth noting that is assumed to be constant, which can be simply computed using the pre-defined noise schedule (i.e., = ), as learning only the mean function leads to better sample quality according to Ho et al. [43].In addition, the variance can be also learned by incorporating a parameterized diagonal Σ into the VLE (Eq.( 10)) [58].

Reverse diffusion process for dimensionality expansion (2D-to-3D)

32One of the most distinct characteristics of DGMs, compared to other generative models such as VAEs [14,15] and GANs [16,17], is the progressive and gradual diffusion process.As discussed in the section 2, DGMs incorporate the forward/reverse diffusion process to estimate the data distribution ( 0 ) and generate samples from the known prior distribution ( ).For instance, if a DGM for the generation of 2D images (i.e., 2D-DGM) is prepared, it can generate novel 2D images start from Gaussian noise through the diffusion times steps and the pre-defined noise schedule [46,51].In addition, this process is equivalent to the gradual transformation of ( 0 ) to ( ) in 2D pixel space.Drawing from this perspective, this study introduces a novel method for 2D-to-3D dimensionality expansion through the multiplane denoising diffusion process (Figure 2 and Figure 3).As shown in Figure 2, we can define three orthogonal planes (yz, xz, xy-planes) and use a trained 2D-DGM for generation of a sample at each plane.According to the original formulation of DDPMs, the generation process of each sample on each plane is independent of the others, resulting in the creation of three distinct samples that follow the data distribution ( 0 ).However, if each generation process (i.e., reverse diffusion process) at each plane proceeds concurrently and is conditioned on the others, we could potentially achieve samples with connectivity and continuity ensured at the junctions of the planes.Thus, the problem now becomes developing a new model for estimating the conditional distributions at each time step during the reverse diffusion process as:

33( −1 ( * ) | (1) , (2) , (3) ) (20) where −1 ( * ) denotes the denoised sample at a certain plane, and (1) , (2) and (3) represent the samples before denoising at the three orthogonal planes.However, to train the model in Eq. (20), it is evident that a 3D dataset with samples at three orthogonal planes is required.In addition, the model requires additional channels or modules to impose conditional signals during the generation process, which necessitates modifying the model architecture, such as incorporating classifiers or using classifier-free guidance [46,59].Thus, this cannot be classified as 2D-to-3D reconstruction because both the dataset and the training process need to extend beyond the confines of 2D space To avoid the preparation of a 3D dataset and maintain the architecture of 2D-DGM, the proposed method for 2D-to-3D dimensionality expansion in this study solely focuses on the reverse diffusion process.Consequently, the training process for the 2D-DGM remains unchanged, following the procedures used to train generative models for conventional image generation tasks with 2D datasets.Therefore, throughout this paper, the only neural network model we deal with is ( −1 | ) trained on 2D microstructure images without any additional conditions incorporated.In this regard, the key idea of the proposed multi-plane denoising diffusion is to generate 3D voxels using 2D-DGM by changing the target denoising plane periodically as shown in Figure 3.The procedure of the multi-plane denoising diffusion is as follows:

341. Initialize voxels with dimensions of × × using Gaussian noise (Figure 3a).It is worth noting that the size of should match the size of input/output size of 2D-DGM (i.e., × ).

352. For the first reverse diffusion step, denoise the samples with dimensions of × (which are from the initialized voxels) using the trained 2D-DGM (i.e., ( −1 | )) along a particular plane.

363. Before the second reverse diffusion step, change the target denoising plane and obtain −1 * , which represents the samples arranged in a different plane (Figure 3c).Then, denoise the samples by taking −1

Harmonized sampling for dimensionality expansion

37To address the discrepancies caused by the proposed multi-plane denoising diffusion, this study introduces the method of harmonized sampling (or resampling [60]) for 2D-to-3D reconstruction of microstructures.Since * is manipulated data from , there is disharmony introduced to adopted during the denoising process as depicted in Figure 5, which involves a cycle of renoising and denoising the sample at time .In other words, we give more chances to the model to harmonize the conditional information * before proceeding to the next denoising step.The renoising process is the same as the original forward process (Eq.( 8)) which can be written as follows.

𝑝(𝐱 𝑡

38In addition, the concept of renoising (or harmonizing) was initially introduced for 'inpainting' with masked inputs to obtain the most probable inpainting result conditioned on the unmasked region by Lugmayr et al. [60].Their work demonstrated that incorporating several harmonizing steps can result in more harmonized images, compared to sampling without harmonizing steps Taking inspiration from this idea, this study utilizes harmonizing steps to mitigate the disharmony introduced during the 2D-to-3D reconstruction with the multi-plane denoising diffusion (section 3.2).To be more specific, the harmonizing steps are applied ℎ times at each time step along with to enable sampling conditional to the samples at different planes.This approach allows us to obtain more realistic 3D data, ensuring that all the samples viewed from the three orthogonal planes follow the original data distribution and maintain connectivity.

39The entire process of multi-plane denoising diffusion with harmonizing steps for 2D-to-3D reconstruction of microstructures is described in Algorithm 1. Algorithm 1: Algorithm for multi-plane denoising diffusion for 2D-to-3D reconstruction of microstructure with harmonized sampling (the upper-left superscript for denoting the order of samples (Figure 4) is neglected for simplicity) Rearrange batch-wise input for multi-plane denoising diffusion: −1 * = ( −1 , − 1) 13: end for 14: return 0

Implementation

40The implementation of the 2D-DGMs for sampling 2D microstructural images and the incorporation of the multi-plane denoising diffusion (section 3.2) with harmonizing steps (section 3.3) were carried out using the Pytorch library [61].In order to build models for reverse diffusion process (i.e., ( −1 | )), this study adopted the Imagen model, proposed by Saharia et al. [51] which proved to be highly effective in generating photorealistic images, to generate 64 × 64 sized 2D samples.The details of the model architecture with the hyperparameters are described in Appendix A.1.

41The training of these models was conducted using Nvidia RTX A6000 graphics processing units (GPUs) coupled with the Adam optimizer, employing a learning rate of 3 × 10 −4 .For each exemplary case, which will be further elaborated in the subsequent sections, the batch size was set to 32 per GPU, and the training process consisted of 50,000 training steps.The diffusion time steps for all models were set to be = 1000 with the linear noise schedule [43], where s are evenly spaced values over the interval 1 = 10 −4 and = 10 −2 .

Evaluation metrics for validation

42To quantify the quality of the generated samples using the proposed methodology in this study, the following criterion metrics are considered: two-point correlation function ( 2 ) and lineal path function ( ) in 2D/3D space.The two-point correlation function, which characterizes the statistical distribution of the material phase, can be written as follows:

43where (•) is a binary function that becomes 1 if a material phase of interest is present at a given location and 0 otherwise.In a similar manner, the lineal path function to evaluate the connectivity between clusters of material phase can be computed as follows:

44= { 1 if a line connecting 1 and 2 is on material phase of interest 0 otherwise (23) Then, the error rate(%) between the correlation functions of training dataset and generated data can be computed using the following discrepancy equation [47,62]:

45where represents the area between of two correlation functions and represents the area under the correlation function of the training dataset.Depending on the sources of training data (e.g., 2D images sampled from 3D volume, or 2D images themselves), the correlation functions are evaluated in either 3D space or 2D space for each case study, which is further explained in the following sections

Case I: Synthetic microstructural samples of spherical inclusions

46To validate the proposed multi-plane denoising diffusion in this study, 2D-to-3D reconstruction of microstructures with spherical inclusions embedded in a matrix was conducted.As shown in Figure 6, the 2D microstructure images used for training the 2D-DGM were sampled from a synthesized 3D data.The 3D sample of spherical inclusions was generated using Geodict® software by Math2Market GmbH.The diameters of the inclusions were set to follow a normal distribution with a mean value of 15 voxels and a standard deviation of 4 voxels in a volume of 64×64×300 voxels.Then, the 3D data was sliced along the z-axis, generating a total of 300 images with dimensions of 64 × 64.To facilitate the training of the 2D-DGM, the dataset was augmented by manipulating each image eight times (i.e., eight folds).This augmentation involves applying both horizontal and vertical flips, as well as rotations of 90°, 180°, and 270° to the original images.After training the 2D-DGM, the multi-plane denoising with the harmonizing steps was conducted to create a 3D volume with spherical inclusions.To investigate the effect of number of harmonizing steps ℎ , 2D-to-3D reconstruction was conducted with varying ℎ as illustrated in Figure 7.As depicted in the figure, the quality of the generated samples improves with an increase in the number of harmonizing steps.The results also show that the spherical shapes of the inclusions were well reproduced with ℎ = 10.This implies that there is a minimal value of ℎ to guarantee the quality of the generated sample.For the sake of simplicity in the validation process, ℎ was set to be constant value of 10 for the example cases demonstrated in the following sections.Furthermore, the 3D visualization and sectional views in Figure 7 demonstrate that the inclusions (i.e., white pixels) along the three orthogonal planes are well connected, preserving continuity in 3D space.

47To quantitatively evaluate the quality of the samples, the error rate (Eq.( 24)) between the correlation functions of the original data (Figure 6) and generated data was evaluated, as shown in Figure 8a.For validating purpose, a total of 25 samples were generated for each case study using Micro3Diff to calculate the averaged 2 and (more examples of generated 3D samples can be found in Appendix A.2).In the case of spherical inclusions (case I), the error rates for 2 and are 1.88% and 4.56% (Figure 9), respectively, indicating that the generated samples are in good agreement with the original data.In other words, the original and generated samples exhibit similar spatial correlations, indicating that they have statistically equivalent morphologies.Additionally, it is worth noting that since the source of training data (i.e., 2D images) for case I was sampled from the synthesized 3D volume, the 3D correlation functions were computed to evaluate the sample quality.

48The results show that the multi-plane denoising diffusion with ( −1 * | * ), aided by the harmonized sampling, effectively guides the distribution of images at different planes simultaneously to ( 0 ), which is the distribution for images of spherical inclusions.It can also be said that the generation of 3D data with conditional distribution of images at different planes (Eq.( 20)) is addressed by the dimensionality expansion problem using the gradual multi-plane diffusion process and harmonized sampling.In the following sections, additional example cases to evaluate the performance of Micro3Diff are explored, including the cases with the microstructure of polycrystalline grains with grain boundaries (case II) and the realworld experimental micrographs (case III and IV) For the cases where 2D samples were used for training the 2D-DGM (Case II and Case IV), the error rate is evaluated in 2D space.

Case II: Synthetic microstructures of polycrystalline grains

49For further assessing the effectiveness of proposed Micro3Diff, this section focuses on the microstructural images of polycrystalline grains as the case study.To acquire 2D images of polycrystalline grains for the 2D-to-3D reconstruction task, a set of 300 synthetic images were generated using Laguerre tessellation [22] as shown in Figure 9.In each generated 2D image, the white pixels represent the grain boundaries.Three values of grain sizes were considered (6, 9 and 12 pixels) to be distributed, each occupying an equal fraction within a 64 × 64 image.The synthesized images were then augmented eightfold, similar to case I for training the 2D-DGM.

50It is worth noting that the synthetic 2D samples of polycrystalline grains (Figure 10) considered in this case are genuinely independent samples, meaning that they were not sampled from a 3D data as in case I (section 4).Consequently, while the 2D-DGM lacks the ability to learn the 3D relationship for both cases I and II, the authors hypothesized that case II poses a more challenging problem since it lacks an intermediate image that can connect different slices.Thus, the Markov chain of ( −1 * | * ) may have a higher likelihood of deviating from the trajectories of the Markov chain of ( −1 | ). Figure 10 shows a generated 3D volume with polycrystalline grains using Micro3Diff, along with its sectional views at each orthogonal plane.To show the connectivity and the grain structures clearly, the 3D volumetric view includes the normal view, where only the grain boundaries (i.e., white voxels) are visualized, and its inverted view.At first glance, the grain boundaries appear to be well connected in 3D space, which is the important feature of polycrystalline materials.However, the 2D sectional views show that there are some disconnected and curved grain boundaries in the generated 3D volume.This error is likely due to the lack of intermediate images in the training dataset for connecting different slices in the 3D volume, which makes the model to generate sample with lower probabilities in ( 0 ).In addition, the occurrence of disconnected grain boundaries has been commonly reported even in the recent studies with the descriptor-based MCR method [17,19] and GAN-based reconstruction [34].Meanwhile, the error rates for 2 and are 6.43% and 5.88%, respectively, indicating the good agreement between the original and generated data (Figure 8b and Figure 9).It is worth noting that, since the source of the training data for case II is 2D images (Figure 10), the 2D correlation functions were computed to evaluate the generated sample quality at the three orthogonal planes.Then, the mean values of the computed correlation functions were used to evaluate the error rate.To enhance the performance of 2Dto-3D reconstruction for microstructures of polycrystal materials such as alloys, the authors suggest considering preprocessing and augmentation of dataset to address the lack of intermediate images, as well as optimizing the hyperparameters (e.g., ℎ and ) Figure 11.2D-to-3D reconstruction results of microstructure with polycrystalline grains using Micro3Diff.

Case III: Experimental micro-CT scan images of battery electrodes

51The next example case is the real micro-CT scan images of nickel manganese cobalt (NMC) cathode.The micro-CT data of NMC cathode was obtained from open-access collected data in reference [63], and a volume of 64×64×300 voxels was created for sampling 300 images with dimensions of 64 × 64 (Figure 12).Subsequently, the sampled images were augmented using eightfold augmentation as the previous cases.Figure 13 illustrates the generated 3D volume of NMC cathode and its 2D sectional views (for simplicity, only the active material phase and pore were considered).Similar to case I and II, the results show that the connectivity of the white voxels (i.e., active material phase) is preserved.Both the 3D volume and the 2D sectional views exhibit visual similarity to the original data in Figure 12.The error rates of 4.56% for 2 and 1.26% for (Figure 8c and Figure 9) also demonstrate that the generated samples have close spatial correlations compared to the original micro-CT data.This is particularly encouraging as it demonstrates the effectiveness of the proposed Micro3Diff in 2D-to-3D reconstruction, utilizing both synthetic (case I and II) and experimentally observed data.Since obtaining a reliable dataset of microstructure is crucial for characterizing the material behavior, there has been significant attention given to the reconstruction of battery electrode microstructures in recent years [64][65][66].Although the performance of the proposed methodology must be validated with more diverse experimental data, the results highlight the potential application of Micro3Diff in the systematic exploration and design of materials for battery applications aided by ICME methods [3,4].

Case IV: Experimental micro-CT scan image of carbonates

52Lastly, a more challenging scenario is considered where the availability of 3D microstructure data is severely restricted, and only obtainable data is a single representative 2D micrograph image.Suppose a single 2D sample of carbonates [67] is available, and we aim to reconstruct a 3D volume from this 2D sample, which should have an equivalent statistical distribution of material phases in 3D space.To train 2D-DGM first, multiple cropped images can be sampled from the representative image as shown in Figure 14.In particular, a total of 250 images were sampled and augmented using eightfold augmentation, as in the previous cases.

53Figure 15 shows the generated 3D volume of carbonates with its sectional views.As can be seen, the generated 3D volume exhibits visually similar sectional views at the three orthogonal planes, demonstrating the capability of Micro3Diff to create a 3D volume from a single experimental representative image.Meanwhile, the maximum error rates for 2 and are 9.21% and 6.31%, respectively (Figure 8d and Figure 9).The higher error rates compared to the previous cases are likely due to the lack of diversity in the data used to train the 2D-DGM, which could lead to incorrect estimation of the data distribution during the multiplane denoising process.In other words, the absence of intermediate data to ensure connectivity in 3D space could be a reason for the higher error rates (similar to case II).However, the results are remarkably encouraging, as the sectional views display morphological similarities with the training data, and the volumetric view illustrates Micro3Diff's ability to discover potential combinations of 2D images from the estimated ( 0 ) (derived from a single micrograph) to construct a 3D volume.Moreover, the proposed Micro3Diff enables the generation of multiple and diverse volumes with comparable visuals and spatial correlations to the original data, as shown in Appendix A.2.This capability could significantly assist in the quantitative assessment of material behavior in 3D space [13,[68][69][70], taking into account the microstructures and inherent randomness.

Conclusions

54The results in this study demonstrate the capability of Micro3Diff for reconstructing 3D microstructure samples from 2D micrographs using the proposed multi-plane denoising diffusion and the harmonized sampling.Based on the multi-plane denoising, a 2D-DGM can be used to effectively guide the noised samples across multiple planes towards the data distribution while maintaining connectivity in 3D space.The disharmony caused by potential deviations from the intended trajectories in the trained 2D noise-to-data denoising diffusion process can be addressed by the proposed harmonized sampling method.Since this is the first study that proposes DGM-based 2D-to-3D microstructure reconstruction, the authors believe that the proposed Micro3Diff has the potential to chart novel avenues in the realm of datadriven material science.Meanwhile, a broader range of microstructure types, including multiphase and anisotropic microstructures, should be considered to improve the applicability of Micro3Diff in the future.In addition, the proposed Micro3Diff also introduces a novel approach of manipulating the latent variables (i.e., noised samples) in DGMs for dimensionality expansion.The authors suggest that this concept could substantially expand the range of applications for DGMs in various fields, including computational materials engineering and 3D generative modeling.

Figure 1 .

55Figure 1.Schematic of the forward diffusion process (i.e., noising process) with the formulations based on SDE, SGM and DDPM.

Figure 2 .

56Figure 2. Schematic of multi-plane denoising diffusion in the three orthogonal planes (i.e., yz, xz, xy-planes) for transforming the noise distribution into the data distribution while ensuring connectivity between the planes.The colored lines within the time interval represent the trajectories of reverse diffusion (( ) → ( )).

Figure 3 .

57Figure 3. Multi-plane denoising with the discrete times steps of the reverse diffusion: a) Initial voxels with Gaussian noise, b) Slice view of the voxels according to the reversed time steps, c) Corresponding planes and samples for denoising at each time step with the trained model ( − | ), and d) reconstructed 3D microstructure sample.

Figure 4 .

58Figure 4. Comparison between a) conventional 2D denoising diffusion and b) multi-plane denoising diffusion in terms of the conditional probability and Markov chain based on the formulation of DDPM.The upper-left superscript denotes the th sample along a particular plane.

Figure 5 .

59Figure 5. Multi-plane denoising diffusion with harmonizing steps to address the disharmony introduced by sampling in different planes.

Figure 6 .

60Figure 6.A synthesized 3D Microstructure sample with spherical inclusions and sampled 2D microstructural images for training the 2D-DGM.

Figure 7 .

61Figure 7. 2D-to-3D reconstruction results of microstructure with spherical inclusions using Micro3Diff with different numbers of harmonizing steps.

Figure 8 .

62Figure 8. Two-point correlation functions ( 2 ) and lineal path functions () for different types of microstructures: a) case I: spherical inclusions, b) case II: polycrystalline grains, c) case III: NMC battery cathode, and d): case IV: carbonates.

Figure 9 .

63Figure 9. Error rate of two-point correlation function ( ) and lineal path function ( ) for different cases.For the cases where 2D samples from 3D data (i.e., 3D micro-CT data) were used for training the 2D-DGM (Case I and Case III), the error rate is evaluated in 3D space.For the cases where 2D samples were used for training the 2D-DGM (Case II and Case IV), the error rate is evaluated in 2D space.

Figure 10 .

64Figure 10.Synthesized 2D microstructure samples of polycrystalline grains for training the 2D-DGM.Figure10shows a generated 3D volume with polycrystalline grains using Micro3Diff, along with its sectional views at each orthogonal plane.To show the connectivity and the grain structures clearly, the 3D volumetric view includes the normal view, where only the grain boundaries (i.e., white voxels) are visualized, and its inverted view.At first glance, the grain boundaries appear to be well connected in 3D space, which is the important feature of polycrystalline materials.However, the 2D sectional views show that there are some disconnected and curved grain boundaries in the generated 3D volume.This error is likely due to the lack of intermediate images in the training dataset for connecting different slices in the 3D volume, which makes the model to generate sample with lower probabilities in ( 0 ).In addition, the occurrence of disconnected grain boundaries has been commonly reported even in the recent studies with the descriptor-based MCR method[17,19] and GAN-based reconstruction[34].Meanwhile, the error rates for 2 and are 6.43% and 5.88%, respectively, indicating the good agreement between the original and generated data (Figure8band Figure9).It is worth noting that, since the source of the training data for case II is 2D images (Figure10), the 2D correlation functions were computed to evaluate the generated sample quality at the three orthogonal planes.Then, the mean values of the computed correlation functions were used to evaluate the error rate.To enhance the performance of 2Dto-3D reconstruction for microstructures of polycrystal materials such as alloys, the authors suggest considering preprocessing and augmentation of dataset to address the lack of intermediate images, as well as optimizing the hyperparameters (e.g., ℎ and )

Figure 12 .

65Figure 12.An experimentally obtained 3D microstructure sample of NMC battery cathode and sampled 2D microstructural images for training the 2D-DGM.

Figure 13 .

66Figure 13.2D-to-3D reconstruction results for microstructure of NMC battery cathode using Micro3Diff.

Figure 14 .

67Figure 14.An experimentally obtained single 2D microstructure image of carbonates and random sampling of 2D images for training the 2D-DGM.

Figure 15 .

68Figure 15.2D-to-3D reconstruction results for microstructure of carbonates using Micro3Diff.

Figure A 1 .

69Figure A 1. Exemplary 2D-to-3D reconstruction results of different microstructures using Micro3Diff: a) spherical inclusions, b) polycrystalline grains, c) polycrystalline grains (inverted), d) NMC battery electrode, and d) carbonate

70Create a class for re-noising a sample from −1 to with the pre-defeind noising schedule i.e., ( | −1 ) 2: Initialize with a dimension of × × from a standard Gaussian distribution

71Require: the trained 2D diffusion model ( , ) for generating × sized samples, the number of forward/reverse diffusion steps ( ), the number of harmonizing step ( ℎ ) (i.e., resampling step), the dimension of the volume to be generated ( × × voxels), pre-defined noising schedule with , 1:

참고문헌 63건

  1. Computational Methods for Microstructure-Property Relationships Springer eBooks · Springer Nature · 2010 10.1007/978-1-4419-0643-4
  2. Multi-scale second-order computational homogenization of multi-phase materials: a nested finite element solution strategy Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 2004 10.1016/j.cma.2003.12.073
  3. Using microstructure reconstruction to model mechanical behavior in complex microstructures Mechanics of Materials · Elsevier BV · 2006 10.1016/j.mechmat.2005.06.030
  4. Modeling heterogeneous materials via two-point correlation functions: Basic principles Physical Review E · American Physical Society · 2007 10.1103/physreve.76.031110
  5. Reverse-time diffusion equation models Stochastic Processes and their Applications · Elsevier BV · 1982 10.1016/0304-4149(82)90051-5
  6. A Connection Between Score Matching and Denoising Autoencoders Neural Computation · The MIT Press · 2011 10.1162/neco_a_00142
  7. Computational homogenization analysis in finite plasticity Simulation of texture development in polycrystalline materials Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 1999 10.1016/s0045-7825(98)00218-7
  8. Integrated computational materials engineering: A perspective on progress and future steps JOM · Springer Science+Business Media · 2011 10.1007/s11837-011-0053-y
  9. Multi-scale computational homogenization: Trends and challenges Journal of Computational and Applied Mathematics · Elsevier BV · 2009 10.1016/j.cam.2009.08.077
  10. On the Application of X-ray Microtomography in the Field of Materials Science Advanced Engineering Materials · Wiley · 2001 10.1002/1527-2648(200108)3:8<539::aid-adem539>3.0.co;2-6
  11. Lineal-path function for random heterogeneous materials Physical Review A · American Physical Society · 1992 10.1103/physreva.45.922
  12. Descriptor-based methodology for statistical characterization and 3D reconstruction of microstructural materials Computational Materials Science · Elsevier BV · 2014 10.1016/j.commatsci.2013.12.046
  13. Reconstructing random media Physical review. E, Statistical physics, plasmas, fluids, and related interdisciplinary topics · American Physical Society · 1998 10.1103/physreve.57.495
  14. Stochastic microstructure characterization and reconstruction via supervised learning Acta Materialia · Elsevier BV · 2015 10.1016/j.actamat.2015.09.044
  15. Integrated computational materials engineering: A new paradigm for the global materials profession JOM · Springer Science+Business Media · 2006 10.1007/s11837-006-0223-5
  16. Statistical Description of Microstructures Annual Review of Materials Research · Annual Reviews · 2002 10.1146/annurev.matsci.32.110101.155324
  17. Simulation of polycrystalline structure with Voronoi diagram in Laguerre geometry based on random closed packing of spheres Computational Materials Science · Elsevier BV · 2003 10.1016/j.commatsci.2003.10.006
  18. 3D Electrode Microstructure Reconstruction and Modelling ECS Transactions · Institute of Physics · 2009 10.1149/1.3205650
  19. Characterization and reconstruction of 3D stochastic microstructures via supervised learning Journal of Microscopy · Wiley · 2016 10.1111/jmi.12441
  20. Compression and reconstruction of random microstructures using accelerated lineal path function Computational Materials Science · Elsevier BV · 2016 10.1016/j.commatsci.2016.04.044
  21. Multiphysics Coupling in Lithium-Ion Batteries with Reconstructed Porous Microstructures The Journal of Physical Chemistry C · American Chemical Society · 2018 10.1021/acs.jpcc.7b12388
  22. Computational microstructure characterization and reconstruction: Review of the state-of-the-art techniques Progress in Materials Science · Elsevier BV · 2018 10.1016/j.pmatsci.2018.01.005
  23. Generation of 3D representative volume elements for heterogeneous materials: A review Progress in Materials Science · Elsevier BV · 2018 10.1016/j.pmatsci.2018.02.003
  24. A Transfer Learning Approach for Microstructure Reconstruction and Structure-property Predictions arXiv (Cornell University) · Cornell University · 2018 10.48550/arxiv.1805.02784
  25. An Introduction to Variational Autoencoders Foundations and Trends® in Machine Learning · Now Publishers · 2019 10.1561/2200000056
  26. Computational Homogenization of Heterogeneous Materials with Finite Elements Solid mechanics and its applications · Springer Nature (Netherlands) · 2019 10.1007/978-3-030-18383-7
  27. PyTorch: An Imperative Style, High-Performance Deep Learning Library arXiv (Cornell University) · Cornell University · 2019
  28. Microstructure synthesis using style-based generative adversarial networks Physical review. E · American Physical Society · 2020 10.1103/physreve.101.043308
  29. Meso-scale investigations on the effective thermal conductivity of multi-phase materials using the finite element method International Journal of Heat and Mass Transfer · Elsevier BV · 2020 10.1016/j.ijheatmasstransfer.2020.119383
  30. 3D microstructure design of lithium-ion battery electrodes assisted by X-ray nano-computed tomography and modelling Nature Communications · Nature Portfolio · 2020 10.1038/s41467-020-15811-x
  31. Database development and exploration of process–microstructure relationships using variational autoencoders Materials Today Communications · Elsevier BV · 2020 10.1016/j.mtcomm.2020.101201
  32. Three-dimensional convolutional neural network (3D-CNN) for heterogeneous material homogenization Computational Materials Science · Elsevier BV · 2020 10.1016/j.commatsci.2020.109850
  33. Pores for thought: generative adversarial networks for stochastic reconstruction of 3D multi-phase electrode microstructures with periodic boundaries npj Computational Materials · Nature Portfolio · 2020 10.1038/s41524-020-0340-7
  34. Slice-to-voxel stochastic reconstructions on porous media with hybrid deep generative model Computational Materials Science · Elsevier BV · 2020 10.1016/j.commatsci.2020.110018
  35. Score-Based Generative Modeling through Stochastic Differential Equations arXiv (Cornell University) · Cornell University · 2020 10.48550/arxiv.2011.13456
  36. Exploration of optimal microstructure and mechanical properties in continuous microstructure space using a variational autoencoder Materials & Design · Elsevier BV · 2021 10.1016/j.matdes.2021.109544
  37. Fast inverse design of microstructures via generative invariance networks Nature Computational Science · Nature Portfolio · 2021 10.1038/s43588-021-00045-8
  38. Generating three-dimensional structures from a two-dimensional slice with generative adversarial network-based dimensionality expansion Nature Machine Intelligence · Nature Portfolio · 2021 10.1038/s42256-021-00322-1
  39. An efficient multi-scale model for needle-punched Cf/SiCm composite materials with experimental validation Composites Part B Engineering · Elsevier BV · 2021 10.1016/j.compositesb.2021.108890
  40. Mesoscopic and multiscale modelling in materials Nature Materials · Nature Portfolio · 2021 10.1038/s41563-020-00913-0
  41. Reconstructing random heterogeneous media through differentiable optimization Computational Materials Science · Elsevier BV · 2021 10.1016/j.commatsci.2021.110455
  42. Guiding the Design of Heterogeneous Electrode Microstructures for Li‐Ion Batteries: Microscopic Imaging, Predictive Modeling, and Machine Learning Advanced Energy Materials · Wiley · 2021 10.1002/aenm.202003908
  43. Stochastic characterization and reconstruction of material microstructures for establishment of process-structure-property linkage using the deep generative model Physical review. E · American Physical Society · 2021 10.1103/physreve.104.025302
  44. National Renewable Energy Laboratory Elsevier eBooks · Elsevier BV · 2021 10.1016/b978-0-12-823764-9.00006-6
  45. Descriptor-based reconstruction of three-dimensional microstructures through gradient-based optimization Acta Materialia · Elsevier BV · 2022 10.1016/j.actamat.2022.117667
  46. Random Heterogeneous Materials: Microstructure and Macroscopic Properties Applied Mechanics Reviews · American Society of Mechanical Engineers · 2002 10.1115/1.1483342
  47. Stochastic Differential Equations Universitext · Springer Nature · 2003 10.1007/978-3-642-14394-6
  48. Integrated Computational Materials Engineering (ICME) for Metals 2012 10.1002/9781118342664
  49. Photorealistic Text-to-Image Diffusion Models with Deep Language Understanding arXiv (Cornell University) · Cornell University · 2022 10.48550/arxiv.2205.11487
  50. Latent Diffusion Energy-Based Model for Interpretable Text Modeling arXiv (Cornell University) · Cornell University · 2022 10.48550/arxiv.2206.05895
  51. Microstructure Characterization and Reconstruction in Python: MCRpy Integrating materials and manufacturing innovation · Springer Nature · 2022 10.1007/s40192-022-00273-4
  52. Harnessing structural stochasticity in the computational discovery and design of microstructures Materials & Design · Elsevier BV · 2022 10.1016/j.matdes.2022.111223
  53. An improved 3D microstructure reconstruction approach for porous media Acta Materialia · Elsevier BV · 2022 10.1016/j.actamat.2022.118472
  54. RePaint: Inpainting using Denoising Diffusion Probabilistic Models 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) · 2022 10.1109/cvpr52688.2022.01117
  55. Conditional diffusion-based microstructure reconstruction Materials Today Communications · Elsevier BV · 2023 10.1016/j.mtcomm.2023.105608
  56. Diffusion Models in Vision: A Survey IEEE Transactions on Pattern Analysis and Machine Intelligence · IEEE Computer Society · 2023 10.1109/tpami.2023.3261988
  57. Microstructure reconstruction using diffusion-based generative models Mechanics of Advanced Materials and Structures · Taylor & Francis · 2023 10.1080/15376494.2023.2198528
  58. Two-stage 2D-to-3D reconstruction of realistic microstructures: Implementation and numerical validation by effective properties Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 2023 10.1016/j.cma.2023.116098
  59. A defect detection framework using three-dimensional convolutional neural network (3D-CNN) with in-situ monitoring data in laser powder bed fusion process Optics & Laser Technology · Elsevier BV · 2023 10.1016/j.optlastec.2023.109571
  60. Denoising diffusion algorithm for inverse design of microstructures with fine-tuned nonlinear material properties Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 2023 10.1016/j.cma.2023.116126
  61. Diffusion Models: A Comprehensive Survey of Methods and Applications ACM Computing Surveys · Association for Computing Machinery · 2023 10.1145/3626235
  62. A data-driven framework for designing microstructure of multifunctional composites with deep-learned diffusion-based generative models Engineering Applications of Artificial Intelligence · Elsevier BV · 2023 10.1016/j.engappai.2023.107590
  63. A Survey on Generative Diffusion Models IEEE Transactions on Knowledge and Data Engineering · IEEE Computer Society · 2024 10.1109/tkde.2024.3361474