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

Microstructure reconstruction of 2D/3D random materials via diffusion-based deep generative models

간접 관련 엔지니어링 플라스틱 · (23) 컴파운드 (10) 아라미드(17) 스펀본드 부직포(21) 에폭시수지

기본 정보

저자
  1. Xianrui Lyu — College of Civil Engineering, Tongji University, Shanghai, 200092, People's Republic of China
  2. Xiaodan Ren — College of Civil Engineering, Tongji University, Shanghai, 200092, People's Republic of China. rxdtj@tongji.edu.cn|||College of Civil Engineering, Tongji University, Shanghai, 200092, People's Republic of China
DOI
10.1038/s41598-024-54861-9
저널
Scientific Reports
발행년도
2024
발행기관
Nature Portfolio
피인용수
44
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1038/s41598-024-54861-9
토픽
Composite Material Mechanics
OpenAlex ID
W4392282713

평가 내용

관련도
간접 관련
사업분야
엔지니어링 플라스틱 · (23) 컴파운드
부 분야
(10) 아라미드, (17) 스펀본드 부직포, (21) 에폭시수지
R&D 측면
분석·모델링
확신도
0.80
근거 용어
microstructure reconstruction, diffusion-based deep generative models, composite materials, porous materials, inverse design
판단 근거
이 논문은 딥러닝(Diffusion Model)을 이용해 복합재료의 미세구조(microstructure)를 재구성하고 설계하는 방법론을 다룹니다. 이는 코오롱인더스트리의 컴파운드(23), 아라미드(10), 부직포(17) 등 다양한 고분자 복합소재의 물성을 예측하고 최적의 구조를 설계하는 R&D 공정에 간접적으로 적용 가능한 기술입니다.
R&D 활용 포인트
복합소재(컴파운드, 아라미드 등) 개발 시, 원하는 물성(투과성, 강도 등)을 갖는 미세구조를 역설계(Inverse Design)하거나 신규 소재의 구조-물성 관계(PSP)를 시뮬레이션하는 모델링 도구로 활용 가능합니다.
평가 입력
본문 52,443자 중 30,032자 발췌

초록

Microstructure reconstruction serves as a crucial foundation for establishing process-structure-property (PSP) relationship in material design. Confronting the limitations of variational autoencoder and generative adversarial network within generative models, this study adopted the denoising diffusion probabilistic model (DDPM) to learn the probability distribution of high-dimensional raw data and successfully reconstructed the microstructures of various composite materials, such as inclusion materials, spinodal decomposition materials, chessboard materials, fractal noise materials, and so on. The quality of generated microstructure was evaluated using quantitative measures like spatial correlation functions and Fourier descriptor. On this basis, this study also achieved the regulation of microstructure randomness and the generation of gradient materials through continuous interpolation in latent space using denoising diffusion implicit model (DDIM). Furthermore, the two-dimensional microstructure reconstruction was extended to three-dimensional framework and integrated permeability as a feature encoding embedding. This enables the conditional generation of three-dimensional microstructures for random porous materials within a defined permeability range. The permeabilities of these generated microstructures were further validated through the application of the lattice Boltzmann method. The above methods provide new ideas and references for material reverse design.

본문 52,443자

본문 펼치기
## OPEN # Microstructure reconstruction of 2D/3D random materials via diffusion‑based deep generative models Xianrui Lyu & Xiaodan Ren <sup>*</sup> Microstructure reconstruction serves as a crucial foundation for establishing process–structure– property (PSP) relationship in material design. Confronting the limitations of variational autoencoder and generative adversarial network within generative models, this study adopted the denoising diffusion probabilistic model (DDPM) to learn the probability distribution of high-dimensional raw data and successfully reconstructed the microstructures of various composite materials, such as inclusion materials, spinodal decomposition materials, chessboard materials, fractal noise materials, and so on. The quality of generated microstructure was evaluated using quantitative measures like spatial correlation functions and Fourier descriptor. On this basis, this study also achieved the regulation of microstructure randomness and the generation of gradient materials through continuous interpolation in latent space using denoising diffusion implicit model (DDIM). Furthermore, the two-dimensional microstructure reconstruction was extended to three-dimensional framework and integrated permeability as a feature encoding embedding. This enables the conditional generation of three-dimensional microstructures for random porous materials within a defined permeability range. The permeabilities of these generated microstructures were further validated through the application of the lattice Boltzmann method. The above methods provide new ideas and references for material reverse design. The geometric morphologies of engineering materials play a pivotal role in elucidating their performance characteristics, such as the light-capturing efficiency in silicon solar ­cells <sup>1</sup>, mass transport in porous ­materials <sup>2</sup> and the electrical properties of polymer ­nanocomposite <sup>3</sup> . Consequently, in the modern materials science, there has been a notable shift away from traditional trial-and-error methods for material discovery. Instead, there is a growing emphasis on material inverse design, focusing on the elucidation of the intricate relationships between process, structure, and property (PSP) <sup>4</sup> . The pursuit of identifying the mapping between PSP enables targeted microstructure design to guide the development of novel materials with desired performance characteristics, which has become a mainstream research framework in the field of material development. However, the establishment of a comprehensive mapping between microstructures and material properties necessitates the acquisition of extensive microstructural data for high-throughput analysis. The significant experimental costs required to obtain detailed microstructural information have prompted scholars to extensively explore microstructure characterization and reconstruction (MCR) ­technologies <sup>5</sup>, including the two-point correlation function, lineal-path function, and two-point clustering correlation function, among others, as well as the spectral density ­function <sup>6–8</sup> . In fact, microstructural reconstruction methods based on the aforementioned statistical descriptors, such as Yeong–Torquato (YT) ­algorithm <sup>9</sup> and parameterized random field, are essentially low-order statistical information representations, rather than a complete description of the distribution of the original data. Furthermore, it has been noted by some ­scholars <sup>10</sup> that in certain heterogeneous materials, discrepancies in morphology and macroscopic properties may arise even when the microstructures share identical loworder statistical information. Although efforts to refine the YT algorithm’s energy ­function <sup>11–13</sup> aim to improve the representation of statistical information, it should be acknowledged that the YT method fundamentally operates as an iterative optimization algorithm. The computational cost of this method increases with the complexity of the energy function, and the quality of the reconstruction depends on the care choice of the characterization function. In light of these considerations, the development of a fast and efficient reconstruction method that College of Civil Engineering, Tongji University, Shanghai 200092, People’s Republic of China. <sup>*</sup> email: rxdtj@tongji. edu.cn incorporates high-order statistical information and is versatile enough to be applied across different material systems remains a critical research objective. In essence, the pixel (2D) or voxel (3D) representation of microstructures can be conceptualized as a complex probability distribution governed by ultra-high-dimensional random variables. Meanwhile, a fundamental objective of deep learning is to learn the manifold structures and probability distributions within ­data <sup>14,15</sup>, and inherently possesses a formidable capability to manipulate such high-dimensional probability distributions. This capability has spurred increasing interest in applying deep learning to articulate the high-dimensional probability distributions characterizing ­microstructures <sup>16–18</sup>, with a particular focus on probability density estimation and the mapping between manifolds via neural networks’ nonlinear mapping capacities. This endeavor is primarily categorized into explicit and implicit probability density estimation ­methods <sup>19</sup> . Explicit probability density estimation models, such as PixelRNN or PixelCNN, employ the chain rule of probability to reframe image generation as a sequence generation task, representing it as a product of joint conditional probabilities. While successful applications of reconstructing microstructures have been ­achieved <sup>20</sup>, it requires a predetermined order for pixel generation, and the generation speed is often excessively slow. Conversely, the approximate explicit probability estimation model-variational autoencoder (VAE) <sup>21</sup> and the implicit probability density estimation model-generative adversarial network (GAN) <sup>22</sup> are widely used in the field of microstructure reconstruction in the past decade. VAE transforms the challenge of probability density estimation into function approximation. It achieves this by employing maximum likelihood estimation to bring a mixed Gaussian distribution closer to the true underlying distribution. This approach has enabled the successful reconstruction of varied materials such as sandstone and ­metamaterials <sup>23,24</sup> . Additionally, Xu et al. <sup>25</sup> developed a deep learning model based on VAE for reconstructing deterministic and stochastic material microstructures, achieving not only randomness control but also the introduction of reliable quantitative metrics for randomness assessment. However, VAEs are not without their challenges, notably the “maximum likelihood training paradigm”, which can result in the generation of blurry ­images <sup>26</sup> . In contrast, GANs achieve Nash Equilibrium between generator and discriminator through adversarial training, yielding superior generative performance. Many ­scholars <sup>16,27–29</sup> have proposed various microstructure reconstruction algorithms based on GANs and applied in polycrystalline grains, perovskite, carbon fiber rods, rocks and so on. Nevertheless, the training of GAN is unstable due to the adversarial nature of the loss ­functions <sup>30,31</sup> . Additionally, GANs are vulnerable to mode collapse, a situation in which they repetitively generate the same image. These limitations also impede the further practical application of GANs. Recently, the diffusion model has emerged as the frontrunner in the field of AI-generated content (AIGC), surpassing both VAE and GAN. The most advanced text-to-image model, such as OpenAI’s DALL <sup>·</sup> E 2 and Google’s Imagen, are built upon the diffusion model. The inspiration behind the diffusion model stems from non-equilibrium thermodynamics. In contrast to GANs, the diffusion model operates without the need for adversarial training, bringing with it added advantages in terms of training efficiency, scalability, and parallelism. In terms of generative capabilities, in addition to achieving state-of-the-art image quality, diffusion models exhibit a robust ability to encompass various patterns and generate diverse outputs. Beyond image generation, diffusion models have demonstrated significant potential in a wide array of fields, including computer ­vision <sup>32–35</sup>, natural language ­processing <sup>36,37</sup>, time series ­modeling <sup>38,39</sup>, multimodal ­modeling <sup>40,41</sup>, and more. Encouragingly, diffusion models have also shone brightly in the fields of material synthesis and structural reconstruction. However, it mainly focuses on biomaterials or medical ­imaging <sup>42,43</sup>, such as protein modeling and cell shape ­prediction <sup>44–46</sup> . There are only a few studies dedicated to examining the reconstruction of the microstructures of composite materials. In the limited existing literature, some ­scholars <sup>47–49</sup> successfully reconstructed the microstructure of polycrystalline alloys, carbonates, ceramics, fiber composites, and other materials based on diffusion model. Yet, these investigations predominantly target two-dimensional microstructures, with limited examination of the morphological characteristics and the latent space of the diffusion model. In another study, Nikolaos and Sun’s ­work <sup>50</sup> represents a pioneering effort to generate microstructures aligned with specific performance targets using context feature vectors within the mechanical MNIST dataset. However, this research is constrained by the dataset’s low resolution and simple microstructures, leaving a gap in the evaluation of more complex and higher-resolution random microstructures. Furthermore, Vlassis et al. <sup>51</sup> utilizes VAE to reduce the dimensionality of 3D point cloud structures to a low dimensional latent space, and reconstructs the 3D structure of sand particles after training the diffusion model in the latent space. Nevertheless, this approach only generates individual particles and lacks the incorporation of multi-scale features in microstructure generation. Therefore, this study proposes an end-to-end microstructure reconstruction method based on data-driven denoising diffusion probabilistic diffusion model (DDPM) for heterogeneous engineering materials in two and three dimensions. Initially, the microstructure datasets were established for various composite materials, including regular inclusions, chessboard structures, spinodal decomposition materials, and random materials. The above microstructures with resolutions of 64 × 64 and 128 × 128 were reconstructed successfully by DDPM, and the statistical descriptors such as two-point correlation function and lineal-path function were used to evaluate the quality of generated microstructures. Meanwhile, Fourier descriptor also was used to verify the morphological similarity between the both. On this basis, this study fully explored and utilized the latent space of diffusion models through the deterministic generation of denoising diffusion implicit model (DDIM), achieving the regulation of the randomness of generated microstructures. Following this, the study extended the two-dimensional DDPM reconstruction method to encompass three-dimensional conditional generation, which was verified to generate three-dimensional random porous materials with a specific range of permeability. Methods Microstructure reconstruction via DDPM The DDPM comprises two primary components: the forward diffusion process and the reverse denoising process. In the forward diffusion process, Gaussian noise is incrementally introduced to the original image tensor, ultimately transforming it into a noise image conforming to a standard normal distribution. Conversely, the reverse denoising process progressively eliminates noise from a given Gaussian noise image, ultimately restoring the original image from its noisy counterpart. These two processes are shown in Fig. 1. In contrast to the single-step mixed Gaussian distribution to approximate the original data distribution in VAE, the diffusion model employs a normal distribution to approximate incremental changes at each step. This approach enables the diffusion model to overcome the limitations typically associated with the fitting capacity of traditional single-step VAE. Specifically, in the forward process, Gaussian noise ε is continuously added to the given initial data distribution x 0 ∼ q( x ), and the variance sequence of noise is βt, which gradually increases with time steps. Each additional step of noise generates a new latent variable x t with a distribution of q( xt | xt −1 ). x t ; 1 − βt x t−1, βt I q( x 1:T | x 0) = ~~�~~ T �t=1 t=1 q( x t | x t−1) = N x t ; 1 − βt x t−1, βt I q( x 1:T | x 0) = q( x t | x t−1). (1) - ~~�~~ - q( x t | x t−1). Based on the Markov chains hypothesis, as _t_ progresses, the final data distribution x T converges towards an anisotropic independent Gaussian distribution and can be directly derived from x 0 and βt, α¯ t x 0, (1 −¯αt ) I ~~�~~ , q( x t | x 0) = N x t ; α¯ t x 0, (1 −¯αt ) I, (2) - ~~�~~ i In the reverse process, it can be demonstrated that Consequently, a parameterized distribution where αt := 1 − βt and α¯ t := <sup>�t</sup> x t ; i=0 <sup>αi.</sup> In the reverse process, it can be demonstrated that q( x t−1| x t ) also converges to a Gaussian ­distribution <sup>52</sup> . Consequently, a parameterized distribution where αt := 1 − βt and α¯ t := <sup>�t</sup> pθ ( xt −1| xt ) is established in the reverse process, thereby, x t−1; µ˜ θ ( x t, t), β <sup>˜</sup> t ( x t, t) . pθ ( x t−1| x t ) = N x t−1; µ˜ θ ( x t, t), β <sup>˜</sup> t ( x t, t) . (3) - Combining the Bayesian formula with the forward diffusion Eq. (2), the posterior diffusion conditional probability can be explicitly ­expressed <sup>53</sup> and the mean and variance are, <u>�</u> x t - ~~√~~ <sup><u>1</u></sup> 1 <sup><u>−</u></sup> −¯ <sup><u>α</u></sup> α <sup><u>t</u></sup> t , <u>1</u> µ˜ θ ( x t, x 0) = ~~√~~ <u>αt</u> <u>�</u> x t - ~~√~~ <sup><u>1</u></sup> 1 <sup><u>−</u></sup> −¯ <sup><u>α</u></sup> α <sup><u>t</u></sup> t εθ �, (4) εθ β˜t = <sup><u>1 −¯αt−1</u></sup> - βt . (5) 1 −¯αt <sup><u>−¯αt−1</u></sup> - βt . 1 −¯αt Consistent with the fundamental objective of generative model, it is crucial to minimize the Kullback–Leibler (KL) divergence between the parameterized probability distribution and the probability distribution of real images as effectively as possible. However, for the diffusion model, which operates across T time steps, it is necessary to extend the Evidence Lower Bound (ELBO) as used in VAE into a chain representation, which can be expressed as follows: <u>�</u> LVLB = Eq(x0:T ) <u>�</u> log <sup><u>q(</u></sup> p <sup><u>x</u></sup> θ <sup><u>1</u></sup> ( <sup><u>:T</u></sup> x0 <sup><u>|</u></sup> :T <sup><u>x</u></sup> ) <sup><u>0)</u></sup> + DKL(q( x t−1| x t, x 0) � pθ ( x t−1| x t ) Lt−1 ~~�~~ ~~<u>��</u>~~ ~~�~~ (6) q( x T <u>|</u> x 0) � pθ ( x T ) <u>�</u> LT - ~~�~~ <u>�</u> ~~�~~ - log pθ ( x 0| x 1) L0 ~~�~~ - ~~�~~  . = Eq  DKL DKL� LT <u>�</u> The final loss function can be simplified as,� - ~~�~~ ~~�~~ T �t=2 The final loss function can be simplified as, 1 −¯αt ǫt, t . ~~�~~ �� <sup>2�</sup> Lt <sup>simple</sup> = Ex0,ǫt �ǫt - ǫθ α¯ t x0 + 1 −¯αt ǫt, t . (7) t <sup>simple</sup> = Ex0,ǫt �ǫt - ǫθ α¯ t x0 + - - ~~�~~ Figure 1. The forward noising process and reverse denoising process in diffusion model. In DDPM, the noise corresponding to the time step is predicted by the U-Net and the topology of network designed in this study is shown in the Fig. 2. The model in this study underwent 500 training iterations on computer with NVIDIA GeForce RTX 4070 Ti and was optimized using the Adam optimizer. Meanwhile, in order to avoid additional training and adversarial attack effects in classifier guidance, in this study, we adopt the classifier-free guidance scheme. Specifically, this study incorporated supplementary feature encoding embeddings with time feature encoding into the diffusion model, enabling control over various physical attributes. The training diagram of the conditional diffusion model is shown in Fig. 3. The loss function of the conditional generation model can be expressed as, �ε − ǫθ α¯ t x 0 + - - ~~�~~ 1 −¯αt ε t, y, t . ~~�~~ �� <sup>2�</sup> E x 0, y ∼˜p( x 0, y ),ε∼N (0, I ) �ε − ǫθ α¯ t x 0 + 1 −¯αt ε t, y, t . (8) - - ~~�~~ ~~�~~ �� <sup>2�</sup> Here, y represents the feature embedding corresponding to the physical attribute, effectively serving as the label for microscopic physical attributes, such as elastic modulus or permeability. Deterministic reconstruction via DDIM In DDPM, both forward and backward process are defined as a Markov chain. However, in the derivation of reverse diffusion process, only the edge distribution q( x t | x 0 ) is required. This implies that the inference Figure 2. 3D U-Net network architecture in diffusion model. Figure 3. The training process of conditional diffusion model. distribution in the reverse process is not necessarily required to follow Markov chains. Therefore, in the DDIM, the distribution of reverse process is directly defined ­as <sup>54</sup>, x t−1; α¯ t−1 x 0 + ~~�~~ x <u>t</u> <u>−</u> <sup>~~<u>√</u>~~</sup> <u>α¯</u> <u>t</u> x <u>0</u> 1 −¯αt−1 − σt <sup>2</sup> - ~~√~~ 1 −¯αt , σt <sup>2</sup> . qσ ( x t−1| x t, x 0) = N x t−1; α¯ t−1 x 0 + 1 −¯αt−1 − σt <sup>2</sup>, σt <sup>2</sup> <sup>I</sup> . (9) - - ~~√~~ 1 −¯αt ~~�~~ t <sup>2</sup> <sup>I</sup> By eliminating the Markov chain hypothesis in the reverse process, during the sampling, a larger step can be set to accelerate the generation process. According to Eq. (9), the following equation can be employed to facilitate sampling from x t to x t−1 during the reverse diffusion process. ~~<u>√</u>~~ <u>αt</u> <u>�</u> x <u>t</u> <u>−</u> ~~<u>√</u>~~ <u>1 −</u> <u>αt</u> <u>ǫθ</u> <u>(</u> x <u>t</u> <u>, t)</u> <u>�</u> x t−1 = <sup>~~√~~</sup> <u>αt−1</u> <u>�</u> x <u>t</u> <u>−</u> ~~<u>√</u>~~ <u>1 −</u> ~~<u>√</u>~~ <u>ααtt</u> <u>ǫθ</u> <u>(</u> x <u>t</u> <u>, t)</u> <u>�</u> + ~~<u>�</u>~~ 1 − αt−1 − σt <sup>2</sup> <u>· ǫθ</u> ( x t, t) + σt ǫt . (10) + 1 − αt−1 − σt <sup>2</sup> <u>· ǫθ</u> ( x t, t) ~~<u>�</u>~~ direction pointing to xt ~~�~~ - ~~�~~ ~~�~~ + σt ǫt random ���� . predicted x0 ~~�~~ - ~~�~~ ~~�~~ The equation above decomposes the generation process into three components: the first is directly predicted x 0 by x t, the second is the part pointing towards x t, and the third entails random noise ǫt . The unknown parameter σt is defined as follows: (1 − αt−1)/(1 − αt ) ~~�~~ (1 − αt /αt−1). ~~�~~ σt <sup>2</sup> <sup>= η ·</sup> <sup>β˜t</sup> <sup>= η ·</sup> (1 − αt−1)/(1 − αt ) (1 − αt /αt−1). (11) t <sup>2</sup> <sup>= η ·</sup> <sup>β˜t</sup> <sup>= η ·</sup> When η = 1, the variance setting in DDIM aligns with that in DDPM. Conversely, when η = 0, random noise is absent, resulting in deterministic sampling. Considering that there is a continuity mapping between the latent space and the real data in DDIM, continuous sampling in the latent space can induce the dynamic evolution continuously of the real microstructures. This evolution also forms the foundation for subsequent regulation of randomness and the generation of gradient materials. Results Dataset generation To assess the efficacy of diffusion models in microstructure reconstruction with varying levels of complexity and randomness, this study initially established a database comprising various types of structural features. These included fiber inclusion microstructure, circular inclusion microstructure, texture microstructure, random inclusion microstructure, spinodal decomposition microstructure, Voronoi microstructure, fractal noise microstructure, and chessboard microstructure. It is worth noting that these structural features share consistent characteristics with the microstructures of real ­materials <sup>25</sup>, such as Voronoi structures in polycrystalline ­materials <sup>55</sup>, quasi random and texture structural features in ­electrodes <sup>56,57</sup>, and characteristics of circular inclusions in NaYF4 ­materials <sup>58</sup> . In the described database, the scale of each microstructure in the above database is 1000. Except for the image size of circular inclusion microstructure and fractal noise microstructure, which is 128 × 128, the size of all other microstructures is 64 × 64. Various reconstruction algorithms were employed to generate database. These algorithms encompassed random field method based on random harmonic ­functions <sup>59</sup>, reconstruction methods grounded in physical descriptors and material image analysis tool-PoreSpy <sup>60</sup> . The specific methods for generating databases can be found in Supplementary. In addition, databases of metamaterials and three-dimensional porous materials were obtained from open access structure ­libraries <sup>2,17,61,62</sup> . Qualitative and quantitative comparison of real and reconstructed microstructures In this section, the microstructures of random fiber inclusion materials, texture materials, random materials, spinodal decomposition materials, chessboard structures, Voronoi structured materials, circular inclusion and fractal noise materials were successfully reconstructed based on DDPM. Figure 4 provides a comparison between the original microstructure and the reconstructed microstructure, revealing no noticeable visual distinctions. Following this, the spatial correlation functions, including the two-point correlation function S2(r) <sup>8,63</sup> and lineal-path function L(r) <sup>64</sup>, were computed to quantitatively assess the microstructure’s morphology, as illustrated in the Figs. 5 and 6. The comparison clearly demonstrates that the two-point correlation function and linealpath function of both low and high-resolution microstructures reconstructed using DDPM exhibit a remarkable degree of consistency with the original microstructures. To verify the diversity of model generation ability, random sampling reconstruction was performed on circular inclusions and metamaterials, as shown in Fig. 7. On the other hand, this also suggests that DDPM has the capability to prevent the emergence of mode collapse problems. In addition to quantitatively comparing the consistency of statistical information between the original random microstructure and the generated random microstructure, this study also employs Fourier ­descriptor <sup>65,66</sup> to compare the morphological similarity between the two. Within the microstructure analysis, phase boundaries can be precisely delineated as sequences of coordinates s(k) = x(k), y(k), k = 0, 1, 2...K - 1, where each pair represents a point along the boundary. These coordinates are subsequently transformed into complex numbers, - can be precisely delineated as sequences of coordinates s(k) = x(k), y(k), k = 0, 1, 2...K - 1, where each pair represents a point along the boundary. These coordinates are subsequently transformed into complex numbers, - s(k) = x(k) + jy(k) . A Discrete Fourier Transform (DFT) is then applied to this one-dimensional sequence s(k), resulting in the Fourier descriptors of the boundary a(u), x(k), y(k) K−1 <u>�k=0</u> s(k)e <sup>−j2πuk/K</sup>, a(u) = s(k)e <sup>−j2πuk/K</sup>, (12) <u>�</u> k=0 Figure 4. Comparison between generated microstructures based on DDPM and original microstructures; ( a–d,i–l ) Original microstructures. ( e–h,m–p ) Generated microstructures. where u = 0, 1, 2...K - 1 . Here, the shape information of the boundary is concisely encoded in the feature vectors of the Fourier descriptor. Moreover, a simple normalization procedure applied to the Fourier descriptors ensures their invariance to translation, rotation, and scaling, enhancing their utility in comparative analyses across different microstructural configurations. This study undertakes a statistical examination by analyzing the histograms of the feature vectors derived from the Fourier descriptors of both original and reconstructed random inclusion materials, as illustrated in Fig. 8. The analysis reveals that the feature vectors corresponding to the reconstructed images’ Fourier descriptors exhibit a distribution trend closely mirroring that of the original images’ descriptors. Such consistency in distribution trends strongly suggests that the two sets of shapes of the phase boundary share similarities in visual and geometric characteristics, particularly highlighting parallels in their structure and composition. Randomness control and gradient material generation based on DDIM As previously discussed, DDIM exhibits the capability to flexibly adjust the variance during sampling. Following the elimination of variance, the reverse process of the diffusion model transforms into a deterministic procedure. It allows for the exploitation of DDIM to comprehensively explore the latent space of the diffusion model and presents a promising avenue for controlling microstructure characteristics. As a latent space model, the diffusion model encodes raw data into a latent space and subsequently utilizes a decoder to map the samples from the latent space back to the original data space. It establishes an equaldimensional mapping between the latent space distribution and the original data distribution, where the noise distribution represents the latent space. Furthermore, since the diffusion model transforms discrete original image data into a continuous manifold structure, the mapping described above is inherently continuous as well. Building on this foundation, the diffusion model is capable of achieving the dynamic evolution of two microstructures by continuously interpolating between two noise samples. This capability not only allows for the control of microstructure randomness but also offers a quantifiable design space for the inverse design of random materials through distance measurements in latent ­space <sup>17</sup> . Figure 5. Comparison of S2(r) between generated microstructures and original microstructures; ( a ) Texture material; ( b ) Spinodal decomposition. ( c ) Circular inclusion, ( d ) Fractal noise. It is worth noting that DDIM is sensitive to noise distribution. When linear interpolation is employed, �z1 + (1 − �)z2 deviates from a normal distribution due to the superposition of normal distributions. Therefore, in this study, spherical interpolation was ­adopted <sup>54,67</sup>, which can be expressed as follows: z <sup>(0)</sup> sin (θ) <sup><u>((1−α)θ)</u></sup> T <sup><u>sin</u></sup> sin <sup><u>(αθ)</u></sup> (θ) <sup>z</sup> T <sup>(1),</sup> T <sup>(1),</sup> x T <sup>(α)</sup> = <sup><u>sin ((</u></sup> sin <sup><u>1</u></sup> (θ) <sup><u>−α)θ)</u></sup> z T <sup>(0)</sup> <sup>+</sup> <sup><u>sin</u></sup> sin <sup><u>(αθ)</u></sup> (θ) <sup>z</sup> T <sup>(1),</sup> (13) <sup>(α)</sup> T sin (θ) = <sup><u>sin ((1−α)θ)</u></sup> T <sup>(0)</sup> <sup>+</sup> <sup><u>sin</u></sup> sin <sup><u>(αθ)</u></sup> (θ) where θ = arccos z <sup>(0)</sup> <u>T</u> - <u>�||</u> z T <sup>(0)</sup> || z T <sup>(0)</sup> T <sup>(0)||</sup> <sup>z</sup> T <sup>(1)</sup> <u>T</u> <u>T</u> z <sup>(1)</sup> <u>T</u> <u>�T</u> T <sup>(1)||</sup> , and z follows standard normal distribution. Figure 9a,b illustrate the continuous interpolation decoding in the latent spaces of two microstructures, achieving dynamic evolution from random materials to texture materials and from random materials to circular inclusion materials, respectively. This method offers the potential to regulate the randomness within microstructures. Using the method outlined above, it also becomes possible to create gradient structures without the need for direct generation. Instead, gradient structures can be generated by combining intermediate structures from an extensive dynamic evolution process, as shown in Fig. 9c. To achieve a nuanced quantification of randomness for various microstructures, this study leverages the energy of detail coefficients obtained via wavelet transform as a measure. The wavelet transform, distinguished by its ability to capture local features within images, such as edges, textures, and abrupt changes, is particularly adept at analyzing images characterized by non-stationary or abrupt features, thereby surpassing the capabilities of Fourier transform for this application. The mathematical formulation of the wavelet transform is given as follows: �−∞∞ a - <u>t −</u> <u>b</u> dt, W(a, b) = f (t) ~~√~~ <sup><u>1</u></sup> <u>a</u> ψ <sup>∗</sup> a dt, (14) - ∞ - <u>t −</u> <u>b</u> −∞ f (t) <sup><u>1</u></sup> ~~√~~ <u>a</u> ψ <sup>∗</sup> where f (t) is the original signal, ψ(t) is the mother wavelet function, _a_ is the scale parameter, _b_ is the translation parameter, and * represents conjugation. The discrete wavelet transform decomposes the image into approximate coefficients (capturing low-frequency components) and detail coefficients (encompassing high-frequency components), producing four sub-bands: Figure 6. Comparison of L(r) between generated microstructures and original microstructures; ( a ) Texture material. ( b ) Spinodal decomposition. ( c ) Circular inclusion. ( d ) Fractal noise. Figure 7. Diversified generated microstructures based on DDPM; ( a ) Circular inclusions. ( b ) Metamaterials. Figure 8. The feature distribution of Fourier descriptors for random microstructures; ( a ) The amplitude of Fourier descriptor. ( b ) The phase angle of Fourier descriptor. Figure 9. Randomness control and gradient materials based on DDIM. LL (low-frequency, low-frequency), LH (low-frequency, high-frequency), HL (high-frequency, low-frequency), and HH (high-frequency, high-frequency). This decomposition allows for the extraction of diverse levels of information from an image, such as textures, edges, and local structures. Accordingly, the randomness index in this study is defined by the energy of the detail coefficients, estimated through the sum of squares formula: - |LH| <sup>2</sup> + - |HL| <sup>2</sup> + - |HH| <sup>2</sup> . E = - |LH| <sup>2</sup> + - |HL| <sup>2</sup> + - |HH| <sup>2</sup> . (15) A high energy level in the detail coefficients of a specific image region typically signifies the presence of irregular features, such as fine structures, textures, or edges. Conversely, a low energy level suggests a smoother and more uniform area. The characterization of randomness in circular inclusions, directional randomness, and quasi-random materials are effectively conducted using the energy of detail coefficients, with their respective energies approximated at 20, 80, and 90. The degree of randomness and energy magnitude in the evolution process from random materials to circular inclusions are shown in the Fig. 10. The results indicate that this indicator has good performance in measuring the randomness of irregular materials. Conditional generation of 3D random materials based on DDPM In microstructure reconstruction of composite, this study extends the diffusion model framework to 3D, and successfully achieves 3D reconstruction of spherical inclusion materials, ellipsoidal inclusion materials, and random materials, all with sizes of 64 × 64 × 64 . The three-dimensional microstructures of circular inclusions and ellipsoidal inclusion in the database were generated based on physical descriptors, while the random porous microstructures in database were generated based on random harmonic functions, with a sample size of 3000 each. The comparison between the original three-dimensional microstructures and the generated three-dimensional microstructures is shown in the Fig. 11. Meanwhile, in this study, conditional generation was performed on three-dimensional random materials within a specific permeability range. The dataset required for three-dimensional conditional generation primarily sourced from publicly available research data in the ­literature <sup>2</sup>, which contains a massive database of 3D Conditional generation of 3D random materials based on DDPM In microstructure reconstruction of composite, this study extends the diffusion model framework to 3D, and successfully achieves 3D reconstruction of spherical inclusion materials, ellipsoidal inclusion materials, and random materials, all with sizes of 64 × 64 × 64 . The three-dimensional microstructures of circular inclusions and ellipsoidal inclusion in the database were generated based on physical descriptors, while the random porous microstructures in database were generated based on random harmonic functions, with a sample size of 3000 each. The comparison between the original three-dimensional microstructures and the generated three-dimensional microstructures is shown in the Fig. 11. Figure 10. Randomness measurement of microstructure based on detail coefficient energy; ( a ) Comparison of randomness in different microstructures. ( b ) The evolution process of microstructures and corresponding randomness metric values. Figure 11. Comparison between original three-dimensional microstructure and reconstructed microstructure of composite materials; ( a ) Original spherical inclusion. ( b ) Original ellipsoidal inclusion. ( c ) Original random porous material. ( d ) Generated spherical inclusion. ( e ) Generated ellipsoidal inclusion. ( f ) Generated random porous material. microstructures and various microstructure descriptors and labels. Finally, A total of 13,500 three-dimensional porous microstructures with permeability labels were used for training conditional diffusion models. Specifically, the permeability of three-dimensional materials was divided into six ranges as number labels, each of which serves as a feature encoding embedding combined with image and time encoding. The ranges of permeability are (0, 0.2), (0.2, 0.5), (0.5, 1.5), (1.5, 3.0), (3.0, 5.0), and (5.0, 5.0+), respectively. The generated results with the permeability from small to large in order of labels are shown in Fig. 12. The verification of the permeability of random porous materials is carried out through the lattice Boltzmann numerical method, , fi( x,t) − fi(eq)( x,t) fi( x + c iδt, t + δt) − fi( x,t) = −τ <sup>−1</sup> - fi( x,t) − fi(eq)( x,t), (16) - where _f_ is the particle velocity distribution function, and the Boltzmann equation is essentially a conservative description of the spatiotemporal changes of _f_ . x and c are the positions and velocities of particles, respectively. τ Figure 12. Three dimensional random porous materials generated by feature encoding embeddings. is the relaxation time. fi(eq) is the equilibrium distribution function. In this study, slip-free and rebound boundary conditions are applied at the two-phase interface. The initial fluid velocity is set to zero, and flow is induced by a constant pressure difference in the structure along the transport ­direction <sup>68</sup> . The initial condition entails a linear pressure gradient, and the relaxation time is maintained at 1.0. Permeability can be determined using Darcy’s law, as follows: (17) u¯ = − <sup><u>κ�</u></sup> µd <sup><u>p</u></sup> <sup>.</sup> Among them, u¯ is the average velocity, µ is the fluid dynamic viscosity, and ∆p/d is the pressure gradient. Under the above conditions, the velocity distribution of the fluid in the pores inside the random porous material is shown in the Fig. 13. The permeability of these random materials is 0.14, 0.44, 0.66, 1.83, 4.57, and 10.93, respectively, which follows the range represented by feature encoding embedding. Conclusion In this study, DDPM was successfully used to reconstruct the two-dimensional microstructure of various composite materials, including particle inclusion materials, quasi random materials, random materials, etc. In order to evaluate the quality of reconstruction, statistical comparisons were made using descriptors such as the twopoint correlation function, lineal-path function, and Fourier descriptor, which quantitatively compared spatial relationships and boundary shapes. The results demonstrate the morphological similarity between the generated microstructure and the original microstructure, highlighting the diffusion model’s efficacy in microstructure reconstruction. Based on the above foundation, DDIM was also utilized for continuous interpolation in the latent space, enabling the regulation of microstructure randomness and the creation of gradient materials. This provides a new approach for the controllable application of randomness in material design. Moreover, this study extended two-dimensional microstructure reconstruction to the three-dimensional framework and successfully reconstructed the three-dimensional microstructure of spherical inclusions, ellipsoidal inclusions, and random porous materials. Additionally, permeability was incorporated as the feature encoding embedding, allowing for the conditional generation of three-dimensional microstructures within a defined permeability range, providing a feasible approach for inverse design of three-dimensional random materials. However, it’s important to acknowledge that this work is limited to defined permeability ranges in material inverse generation. Future research should explore precise permeability control and material design under multi-physical field coupling. Additionally, while diffusion models demonstrate excellence in microstructure reconstruction, they present challenges when used for forward optimization in material design because of their extensive latent spatial dimensions and unclear semantics. Combining the latent spatial dimensionality reduction operation of VAE and the excellent generation ability of diffusion models is also a direction that needs to be worked on in the future. Figure 13. Velocity distribution in generated random porous material; ( a ) permeability = 0.14; ( b ) permeability = 0.44; ( c ) permeability = 0.66; ( d ) permeability = 1.83; ( e ) permeability = 4.57; ( f ) permeability = 10.93. Data availability Data associated with this research will be made available from the corresponding author on reasonable request. Received: 20 December 2023; Accepted: 17 February 2024 References 1. Yu, S. _et al._ Design of non-deterministic quasi-random nanophotonic structures using fourier space representations. _Sci. Rep._ 7, 3752 (2017). 2. Prifling, B., Röding, M., Townsend, P., Neumann, M. & Schmidt, V. Large-scale statistical learning for mass transport prediction in porous materials using 90,000 artificially generated microstructures. _Front. Mater._ 8, 786502 (2021). 3. Wang, Y. _et al._ Identifying interphase properties in polymer nanocomposites using adaptive optimization. _Compos. Sci. Technol._ 162, 146–155 (2018). 4. Chen, W., Iyer, A. & Bostanabad, R. Data centric design: A new approach to design of microstructural material systems. _Engineering_ 10, 89–98 (2022). 5. Bostanabad, R. _et al._ Computational microstructure characterization and reconstruction: Review of the state-of-the-art techniques. _Prog. Mater. Sci._ 95, 1–41 (2018). 6. Nf, B. Scattering properties of a model bicontinuous structure with a well defined length scale. _Phys. Rev. Lett._ 58, 2718–2721 (1987). 7. Teubner, M. Level surfaces of gaussian random fields and microemulsions. _Europhys. Lett._ 14, 403 (1991). 8. Torquato, S. Random heterogeneous materials: Microstructure and macroscopic properties. _Appl. Mech. Rev._ 55, 62 (2002). 9. Yeong, C. L. Y. & Torquato, S. Reconstructing random media. _Phys. Rev. E_ 57, 495–506 (1998). 10. Sahimi, M. & Tahmasebi, P. Reconstruction, optimization, and design of heterogeneous materials and media: Basic principles, computational algorithms, and applications. _Phys. Rep._ 939, 1–82 (2021). 11. Čapek, P., Hejtmánek, V., Brabec, L., Zikánová, A. & Kočiřík, M. Stochastic reconstruction of particulate media using simulated annealing: Improving pore connectivity. _Transp. Porous Media_ 76, 179–198 (2009). 12. Jiao, Y., Stillinger, F. H. & Torquato, S. A superior descriptor of random textures and its predictive capacity. _Proc. Natl. Acad. Sci._ 106, 17634–17639 (2009). 13. Manwart, C., Torquato, S. & Hilfer, R. Stochastic reconstruction of sandstones. _Phys. Rev. E Stat. Phys. Plasmas Fluids Relat. Inter-_ _discip. Top._ 62, 893–899 (2000). 14. Lei, N. _et al._ A geometric understanding of deep learning. _Engineering_ 6, 361–374 (2020). 15. Lei, N., Su, K., Cui, L., Yau, S.-T. & Gu, X. D. A geometric view of optimal transportation and generative model. _Comput. Aided_ _Geometr. Des._ 68, 1–21 (2019). 16. Mosser, L., Dubrule, O. & Blunt, M. J. Reconstruction of three-dimensional porous media using generative adversarial neural networks. _Phys. Rev. E_ 96, 043309 (2017). 17. Wang, L. _et al._ Deep generative modeling for mechanistic-based learning and design of metamaterial systems. _Comput. Methods_ _Appl. Mech. Eng._ 372, 113377 (2020). 18. Kench, S. & Cooper, S. J. Generating three-dimensional structures from a two-dimensional slice with generative adversarial network-based dimensionality expansion. _Nat. Mach. Intell._ 3, 299–305 (2021). [19. Goodfellow, I. NIPS 2016 tutorial: Generative adversarial networks. http://​arxiv.​org/​abs/​1701.​00160 (2016).](http://arxiv.org/abs/1701.00160) 20. 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). [21. Kingma, D. P. & Welling, M. Auto-encoding variational Bayes. http://​arxiv.​org/​abs/​1312.​6114 (2013).](http://arxiv.org/abs/1312.6114) 22. Goodfellow, I. J. _et al._ [Generative adversarial networks. http://​arxiv.​org/​abs/​1406.​2661 (2014).](http://arxiv.org/abs/1406.2661) 23. Cang, R., Li, H., Yao, H., Jiao, Y. & Ren, Y. Improving direct physical properties prediction of heterogeneous materials from imaging data via convolutional neural network and a morphology-aware generative model. _Comput. Mater. Sci._ 150, 212–221 (2018). 24. Guo, T., Lohan, D. J., Cang, R., Ren, M. Y. & Allison, J. T. _An Indirect Design Representation for Topology Optimization Using Vari-_ _ational Autoencoder and Style Transfer_ . 25. Xu, L., Hoffman, N., Wang, Z. & Xu, H. Harnessing structural stochasticity in the computational discovery and design of micro structures. _Mater. Des._ 223, 111223 (2022). 26. Prince, S. J. _Understanding Deep Learning_ (MIT Press, 2023). 27. Bostanabad, R. Reconstruction of 3d microstructures from 2d images via transfer learning. _Comput. Aided Des._ 128, 102906 (2020). 28. Feng, J., Qizhi, T., He, X. & Wu, X. Accelerating multi-point statistics reconstruction method for porous media via deep learning. _Acta Mater._ 159, 296 (2018). 29. Yang, Z. _et al._ Microstructural materials design via deep adversarial learning methodology. _J. Mech. Des._ 140, 111416 (2018). [30. Arjovsky, M. & Bottou, L. Towards principled methods for training generative adversarial networks. http://​arxiv.​org/​abs/​1701.​](http://arxiv.org/abs/1701.04862) [04862 (2017).](http://arxiv.org/abs/1701.04862) [31. Metz, L., Poole, B., Pfau, D. & Sohl-Dickstein, J. Unrolled generative adversarial networks. http://​arxiv.​org/​abs/​1611.​02163 (2016).](http://arxiv.org/abs/1611.02163) [32. Amit, T., Shaharbany, T., Nachmani, E. & Wolf, L. SegDiff: Image segmentation with diffusion probabilistic models. http://​arxiv.​](http://arxiv.org/abs/2112.00390) [org/​abs/​2112.​00390 (2021).](http://arxiv.org/abs/2112.00390) 33. Brempong Asiedu, E. _et al._ [Decoder denoising pretraining for semantic segmentation. http://​arxiv.​org/​abs/​2205.​11423 (2022).](http://arxiv.org/abs/2205.11423) 34. Cai, R. _et al._ [Learning gradient fields for shape generation. http://​arxiv.​org/​abs/​2008.​06520 (2020).](http://arxiv.org/abs/2008.06520) 35. Ho, J. _et al._ [Cascaded diffusion models for high fidelity image generation. http://​arxiv.​org/​abs/​2106.​15282 (2021).](http://arxiv.org/abs/2106.15282) [36. Li, X. L., Thickstun, J., Gulrajani, I., Liang, P. & Hashimoto, T. B. Diffusion-LM improves controllable text generation. http://​arxiv.​](http://arxiv.org/abs/2205.14217) [org/​abs/​2205.​14217 (2022).](http://arxiv.org/abs/2205.14217) 37. Savinov, N., Chung, J., Binkowski, M., Elsen, E. & van den Oord, A. Step-unrolled denoising autoencoders for text generation. [http://​arxiv.​org/​abs/​2112.​06749 (2021).](http://arxiv.org/abs/2112.06749) [38. Kong, Z., Ping, W., Huang, J., Zhao, K. & Catanzaro, B. DiffWave: A versatile diffusion model for audio synthesis. http://​arxiv.​org/​](http://arxiv.org/abs/2009.09761) [abs/​2009.​09761 (2020).](http://arxiv.org/abs/2009.09761) 39. Lopez Alcaraz, J. M. & Strodthoff, N. Diffusion-based time series imputation and forecasting with structured state space models. [http://​arxiv.​org/​abs/​2208.​09399 (2022).](http://arxiv.org/abs/2208.09399) [40. Ramesh, A., Dhariwal, P., Nichol, A., Chu, C. & Chen, M. Hierarchical text-conditional image generation with CLIP latents. http://​](http://arxiv.org/abs/2204.06125) [arxiv.​org/​abs/​2204.​06125 (2022).](http://arxiv.org/abs/2204.06125) 41. Rombach, R., Blattmann, A., Lorenz, D., Esser, P. & Ommer, B. High-resolution image synthesis with latent diffusion models. [http://​arxiv.​org/​abs/​2112.​10752 (2021).](http://arxiv.org/abs/2112.10752) 42. Lee, S. _et al._ [Improving 3D imaging with pre-trained perpendicular 2D diffusion models. http://​arxiv.​org/​abs/​2303.​08440 (2023).](http://arxiv.org/abs/2303.08440) [43. Waibel, D. J. E., Röell, E., Rieck, B., Giryes, R. & Marr, C. A diffusion model predicts 3D shapes from 2D microscopy images. http://​](http://arxiv.org/abs/2208.14125) [arxiv.​org/​abs/​2208.​14125 (2022).](http://arxiv.org/abs/2208.14125) 44. Guan, J. _et al._ [3D equivariant diffusion for target-aware molecule generation and affinity prediction. http://​arxiv.​org/​abs/​2303.​](http://arxiv.org/abs/2303.03543) [03543 (2023).](http://arxiv.org/abs/2303.03543) 45. Luo, S. _et al._ Antigen-specific antibody design and optimization with diffusion-based generative models. _BioRxiv_ 1, 499510 (2022). 46. Shi, C., Luo, S., Xu, M. & Tang, J. Learning gradient fields for molecular conformation generation. In _International Conference on_ _Machine Learning_ . 47. Düreth, C. _et al._ Conditional diffusion-based microstructure reconstruction. _Mater. Today Commun._ 35, 105608 (2023). 48. Lee, K.-H. & Yun, G. J. Microstructure reconstruction using diffusion-based generative models. _Mech. Adv. Mater. Struct._ 1, 1–19 (2023). 49. Zelaia, P., Cheng, J., Mayeur, J., Ziabari, A. & Kirka, M. Digital polycrystalline microstructure generation using diffusion proba bilistic models. _Materialia_ 33, 101976 (2024). 50. Vlassis, N. N. & Sun, W. Denoising diffusion algorithm for inverse design of microstructures with fine-tuned nonlinear material properties. _Comput. Methods Appl. Mech. Eng._ 413, 116126 (2023). 51. Vlassis, N. N., Sun, W., Alshibli, K. A. & Regueiro, R. A. Synthesizing realistic sand assemblies with denoising diffusion in latent [space. http://​arxiv.​org/​abs/​2306.​04411 (2023).](http://arxiv.org/abs/2306.04411) 52. Feller, W. _On the Theory of Stochastic Processes, with Particular Reference to Applications_ . [53. Ho, J., Jain, A. & Abbeel, P. Denoising diffusion probabilistic models. http://​arxiv.​org/​abs/​2006.​11239 (2020).](http://arxiv.org/abs/2006.11239) [54. Song, J., Meng, C. & Ermon, S. Denoising diffusion implicit models. http://​arxiv.​org/​abs/​2010.​02502 (2020).](http://arxiv.org/abs/2010.02502) 55. Thomas, J., Groeber, M. & Ghosh, S. Image-based crystal plasticity Fe framework for microstructure dependent properties of Ti–6Al–4V alloys. _Mater. Sci. Eng. A_ 553, 164–175 (2012). 56. Zhang, Y. _et al._ High-throughput 3d reconstruction of stochastic heterogeneous microstructures in energy storage materials. _npj_ _Comput. Mater._ 5, 11 (2019). 57. Huang, C. & Grant, P. S. Coral-like directional porosity lithium ion battery cathodes by ice templating. _J. Mater. Chem. A_ 6, 14689–14699 (2018). 58. Ding, M. _et al._ Hexagonal Nayf4:Yb3+/Er3+ nano/micro-structures: Controlled hydrothermal synthesis and morphology-depend ent upconversion luminescence. _Appl. Surf. Sci._ 333, 23–33 (2015). 59. Ren, X. & Lyu, X. Mixed form based physics-informed neural networks for performance evaluation of two-phase random materi als. _Eng. Appl. Artif. Intell._ 127, 107250 (2024). 60. Gostick, J. T. _et al._ Porespy: A python toolkit for quantitative analysis of porous media images. _J. Open Source Softw._ 4, 1296 (2019). 61. Wang, L., Chan, Y.-C., Liu, Z., Zhu, P. & Chen, W. Data-driven metamaterial design with Laplace–Beltrami spectrum as “shape dna’’. _Struct. Multidiscip. Optim._ 61, 2613–2628 (2020). 62. Lee, D. _et al._ [t-metaset: Tailoring property bias of large-scale metamaterial datasets through active learning. http://​arxiv.​org/​abs/​](http://arxiv.org/abs/2202.10565) [2202.​10565 (2022).](http://arxiv.org/abs/2202.10565) 63. Corson, P. B. Correlation functions for predicting properties of heterogeneous materials. I. Experimental measurement of spatial correlation functions in multiphase solids. _J. Appl. Phys._ 45, 3159–3164 (1974). 64. 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). 65. Yongyang Xu, Z. C., Xie, Z. & Wu, L. Shape similarity measurement model for holed polygons based on position graphs and fourier descriptors. _Int. J. Geograph. Inf. Sci._ 31, 253–279 (2017). 66. Sinecen, M. _Digital Image Processing with MATLAB_ (2016). 67. Shoemake, K. Animating rotation with quaternion curves. In _Proc. 12th Annual Conference on Computer Graphics and Interactive_ _Techniques_ (1985). 68. Zou, Q. & He, X. On pressure and velocity boundary conditions for the lattice Boltzmann BGK model. _Phys. Fluids_ 9, 1591–1598 (1997). Acknowledgements The financial support provided by National Natural Science Foundation of China (Grant Numbers L2324207 and 52078361) is greatly appreciated. Author contributions X.L. wrote the main manuscript text and X.R. reviewed and edited the manuscript. All authors reviewed the manuscript. Competing interests The authors declare no competing interests. Additional information Supplementary Information [The online version contains supplementary material available at https://​doi.​org/​](https://doi.org/10.1038/s41598-024-54861-9) [10.​1038/​s41598-​024-​54861-9.](https://doi.org/10.1038/s41598-024-54861-9) Correspondence and requests for materials should be addressed to X.R. Reprints and permissions information is available at 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://​creat​iveco​mmons.​org/​licen​ses/​by/4.​0/.](http://creativecommons.org/licenses/by/4.0/) © The Author(s) 2024

섹션 본문 95문단 · 37,474자

(제목 없음)

1Microstructure reconstruction serves as a crucial foundation for establishing Process-Structure-Property (PSP) relationship in material design.Confronting the limitations of variational autoencoder and generative adversarial network within generative modeling, this study adopted the denoising diffusion probability model (DDPM) to learn the probability distribution of high-dimensional raw data and successfully reconstructed the microstructures of various composite materials, such as inclusion materials, spinodal decomposition materials, chessboard materials, fractal noise materials, and so on.The quality of generated microstructure was evaluated using quantitative measures like spatial correlation functions and Fourier descriptor.On this basis, this study also successfully achieved the regulation of microstructure randomness and the generation of gradient materials through continuous interpolation in latent space using denoising diffusion implicit model (DDIM).Furthermore, the two-dimensional microstructure reconstruction is extended to three-dimensional framework and integrates permeability as a feature encoding embedding.This enables the conditional generation of three-dimensional microstructures for random porous materials within a defined permeability range.The permeabilities of these generated microstructures were further validated through the application of the Boltzmann method.

Introduction

2The geometric morphologies of engineering materials play a pivotal role in elucidating their performance characteristics, such as the light-capturing efficiency in silicon solar cells [1], mass transport in porous materials [2] and the electrical properties of polymer nanocomposite [3].Consequently, in the field of high-throughput computational materials science, there has been a notable shift away from traditional trial-and-error methods for material discovery.Instead, there is a growing emphasis on inverse design, focusing on the elucidation of the intricate relationships between processing, structure, and property (PSP) [4].The pursuit of identifying the mapping between PSP enables targeted microstructure design to guide the development of novel materials with desired performance characteristics, which has become a new research framework in the field of material development.

3However, the emerging paradigm in materials science has ushered in fresh challenges.

4The primary challenges inherent in PSP-based inverse design involve extracting intrinsic metrics from intricate microstructures and achieving their equivalent reconstruction.In response to these challenges, scholars have conducted extensive research on microstructure characterization and reconstruction (MCR) technology to date [5].Specifically, they have commonly utilized statistical descriptors [6], including the two-point correlation function, linear correlation function, and two-point clustering correlation function, among others, as well as the spectral density function [7,8].These quantitative characterization descriptors are essentially statistical in nature, primarily focusing on the low-order statistical aspects of microstructure.For instance, both the two-point correlation function and spectral density function provide the same second-order statistical information.Therefore, it's important to note that they inevitably result in a loss of detailed geometric information pertaining to the microstructure.Correspondingly, reconstruction methods that rely on these descriptors, such as the Yeong-Torquato (YT) algorithm [9] based on spatial functions or the parameterized random field based on spectral density functions, generate microstructure samples that are not a complete description of the distribution of the original data.Additionally, it has been noted by some scholars [10] that in certain heterogeneous materials, even when the microstructure shares identical low-order statistical information (e.g., two-point correlation function), the morphology and macroscopic properties can exhibit significant variations.

5These highlight the critical importance of incorporating high-order statistical information in reconstruction methods, not only for accurate material identification but also for revealing the profound influence of microstructures on shaping macroscopic properties.To overcome the limitation of insufficient morphological information in the YT method, many studies have indicated [11,12,13] that enhancing the accuracy of reconstruction can be achieved by incorporating multiple statistical functions into the energy function.For instance, constructing the energy function by amalgamating the two-point correlation function, linear correlation function, and two-point clustering correlation function has been shown to be effective.However, it is essential to recognize that the YT method fundamentally operates as an iterative optimization algorithm.This approach necessitates the continual exchange of pixel points or voxel blocks within the initial configuration, followed by a comparison of the quantitative representation differences between the intermediate image and the real image in each iteration to minimize the energy function.The computational cost of this method increases with the complexity of the energy function, and the quality of the reconstruction largely depends on the careful choice of the characterization function.To sum up, the pursuit of a fast and efficient reconstruction method with high order statistical information applicable to diverse material systems remains a direction in need of exploration and focused research efforts.

6In essence, the pixel (2D) or voxel representation (3D) of microstructures can be conceptualized as a complex probability distribution governed by ultra-high-dimensional random variables.Deep learning, one of its primary objectives and functions, is to learn the manifold structures and probability distributions within data [14,15], and inherently possesses a formidable capability to manipulate such high-dimensional probability distributions.Consequently, with the advent of deep learning in recent years, there has been a growing interest in leveraging deep learning for the description of high-dimensional probabilities associated with microstructures [16,17,18].This method is essentially an unsupervised generation model, and its goal is to generate new sample generation models with the same distribu-tion as the training set, and achieve mapping between manifolds through the nonlinear mapping ability of neural networks.More specifically, its core issue is probability density estimation, which is mainly divided into explicit probability density estimation and implicit probability density estimation [19].Explicit probability density estimation models, such as PixelRNN or PixelCNN, employ the chain rule of probability to reframe image generation as a sequence generation task, representing it as a product of joint conditional probabilities.

7While successful applications of reconstructing microstructures have been achieved in some materials [20], it requires a predetermined order for pixel generation, and the generation speed is often excessively slow.Conversely, the approximate explicit probability estimation model-variational autoencoder (VAE) [21] and the implicit probability density estimation model-generative adversarial network (GAN) [22] are widely used in the field of microstructure reconstruction in the past decade.VAE transforms the challenge of probability density estimation into one of function approximation.It achieves this by employing maximum likelihood estimation to bring a mixed Gaussian distribution closer to the true underlying distribution.Scholars [23,24] have successfully reconstructed sandstone materials, inclusion materials, metamaterials, etc. using VAE.However, VAE itself faces the challenge of the "maximum likelihood training paradigm", which can lead to the generation of blurry images [25].In contrast to VAE, GAN achieve Nash Equilibrium between generator and discriminator through adversarial training, resulting in superior generation performance.

8Many scholars [26,27,28,16,29] have proposed various data-driven microstructure reconstruction algorithms based on GANs.These approaches have been successfully applied in reconstructing microstructures in materials like polycrystalline grains, perovskite, carbon fiber rods, and rocks.Nevertheless, GAN training can be unstable due to the adversarial nature of the loss functions [30,31].Additionally, GANs are vulnerable to modal collapse, a situation in which they repetitively generate the same image.These limitations also impede the practical application of GANs.

9Recently, the diffusion model has emerged as the frontrunner in the field of AI-generated content (AIGC), surpassing both VAE and GAN.The most advanced text-to-image model, such as OpenAI's DALL•E 2 and Google's Imagen, are built upon the diffusion model.The inspiration behind the diffusion model stems from non-equilibrium thermodynamics and can be concisely characterized as a layered VAE.In contrast to GANs, the diffusion model operates without the need for adversarial training, bringing with it added advantages in terms of training efficiency, scalability, and parallelism.In terms of generative capabilities, in addition to achieving state-of-the-art image quality, diffusion models exhibit a robust ability to encompass various patterns and generate diverse outputs.Beyond image generation, diffusion models have demonstrated significant potential in a wide array of fields, including computer vision [32,33,34,35], natural language processing [36,37] , time series modeling [38,39], multimodal modeling [40,41], and more.

10Encouragingly, diffusion models have also shone brightly in the fields of material synthesis and structural reconstruction.However, it mainly focuses on biomaterials or medical imaging [42,43], such as protein modeling and cell shape prediction [44,45,46].There are only a few studies dedicated to examining the reconstruction of the microstructures of composite materials.For example, some scholars [47,48,49] successfully reconstructed the microstructure of polycrystalline alloys, carbonates, ceramics, fiber composites, and other materials based on diffusion model, and have verified the statistical similarity between the generated microstructure and the original microstructure.It is worth noting that the above reconstruction confined to two-dimensional microstructures, and there is also no sufficient discussion on the morphological characteristics and the latent space of the diffusion model.

11In another study, Nikolaos and Sun [50] achieved the generation of microstructures with target performance by introducing context feature vectors.However, this research was confined to the mechanical MNIST dataset, featuring 28 × 28 pixel images.There is a dearth of evaluation for random materials characterized by higher resolution and more intricate microstructures.Vlassis et al. [51] utilizes VAE to reduce the dimensionality of 3D point cloud structures to a low dimensional latent space, and reconstructs the 3D structure of sand particles after training the diffusion model in the latent space.Nevertheless, this approach only generates individual particles and lacks the incorporation of multi-scale features in microstructure generation.

12Therefore, this study proposes an end-to-end microstructure reconstruction method based on data-driven denoising diffusion probability diffusion model (DDPM) for heterogeneous engineering materials in two and three dimensions.Initially, the microstructure datasets were established for various composite materials, including regular inclusions, chessboard structures, spinodal decomposition materials, and random materials.The above microstructures with resolutions of 64 × 64 and 128 × 128 were reconstructed successfully by DDPM, and the statistical descriptors such as two-point correlation function and linear correlation function are used to evaluate the quality of generated microstructures.Meanwhile, Fourier descriptor also was used in this study to verify the morphological similarity between the both.On this basis, this study fully explores and utilizes the latent space of diffusion models through the deterministic generation of denoising diffusion implicit model (DDIM), achieving the regulation of the randomness of generated microstructures.Following this, the study extended the two-dimensional DDPM reconstruction method to encompass three-dimensional conditional generation, which was verified to generate three-dimensional random porous materials with a specific range of permeability.

Denoising diffusion probability model

13The DDPM comprises two primary components: the forward diffusion process and the reverse diffusion process, analogous to the encoding and decoding phases in VAE.In the forward diffusion process, Gaussian noise is incrementally introduced to the original image tensor, ultimately transforming it into a noise image conforming to a standard normal distribution.Conversely, the reverse diffusion process entails the continuous removal of noise.A neural network, trained for this purpose, progressively eliminates noise from a given Gaussian noise image, ultimately restoring the original image from its noisy counterpart, as shown in Figure 1.

14In contrast to the single-step mixed Gaussian distribution to approximate the original data distribution in VAE, the diffusion model employs a normal distribution to approximate incremental changes at each step.This approach enables the diffusion model to overcome the limitations typically associated with the fitting capacity of traditional single-step VAE.Specifically, in the forward process, Gaussian noise ε is continuously added to the given initial data distribution x 0 ∼ q(x), and the variance sequence of noise is β t , which gradually increases with time steps.Each additional step of noise generates a new latent variable x t with a distribution of q (x t |x t−1 ).

15Based on the Markov chains, as t progresses, the final data distribution x T converges towards an anisotropic independent Gaussian distribution.The probability density evolution in the forward process is shown in Figure 2.Meanwhile, leveraging the characteristics of the Gaussian distribution, it can be inferred that at any given point during the forward process, it can be directly derived from x 0 and β t ,

16where α t := 1 − β t and ᾱt := t i=0 α i .In the reverse process, it can be demonstrated that q (x t−1 |x t ) also converges to a Gaussian distribution [52].Consequently, a parameterized distribution (a trainable neural network) p θ (x t−1 |x t ) is established to estimate the Gaussian distribution for the reverse diffusion, thereby,

17Combining the Bayesian formula with the forward diffusion formula Eq. 2, the posterior diffusion conditional probability can be explicitly expressed as:

18The mean and variance are,

19It becomes clear that, under the conditions x 0 , the mean of the posterior conditional Gaussian distribution relies solely on noise distribution ε t .Consequently, the parameterized distribution model merely requires the prediction of noise distributions for each time step to obtain the denoising map for each time interval during the reverse diffusion process.The detailed derivation of the above process can be referred to [53].

Denoising diffusion implicit model

20In DDPM, both forward and backward process are defined as a Markov chain.However, in the derivation of reverse diffusion process, only the edge distribution q (x t |x 0 ) is required.

21This implies that the inference distribution in the reverse process is not necessarily required to follow Markov chains.Therefore, in the DDIM, the distribution of reverse process is directly defined as [54],

22Among them, σ 2 t is an uncertain real number, so q σ (x t−1 |x t , x 0 ) is a series of inference distributions.It can be proven through mathematical induction that for all t,

23By eliminating the Markov chain hypothesis in the reverse process, during the sampling, a larger step can be set to accelerate the generation process.According to Eq. 7, the following equation can be employed to facilitate sampling from x t to x t−1 during the reverse diffusion process.

24The equation above decomposes the generation process into three components: the first is directly predicted x 0 by x t , the second is the part pointing towards x t , and the third entails random noise ϵ t .The unknown parameter σ t is defined as follows:

25When η = 1, the variance setting in DDIM aligns with that in DDPM.Conversely, when η = 0, random noise is absent, resulting in deterministic sampling.Specifically, once the initial random noise is established, DDIM's sample generation becomes a deterministic process.Considering that there is a continuity mapping between the latent space and the real data in DDIM, continuous sampling in the latent space can induce the dynamic evolution continuously of the real microstructure.This evolution also forms the foundation for subsequent regulation of randomness and the generation of gradient materials.

Loss function

26Consistent with the fundamental objective of deep learning, the essence of DDPM resides in learning the underlying manifold structure from data and establishing parameter expressions.Building upon these objectives, it becomes crucial to minimize the Kullback-Leibler (KL) divergence between the parameterized probability distribution and the probability distribution of real images as effectively as possible.However, for the diffusion model, which operates across T time steps, it is necessary to extend the Evidence Lower Bound (ELBO)

27as used in VAE into a chain representation, which can be expressed as follows:

28The first item is independent of trainable parameters θ , and the ultimate objective is to optimize the KL divergence between two Gaussian distributions, q (x t−1 |x t , x 0 ) and p θ (x t−1 |x t ).Due to the existence of a closed form solution for the KL divergence of the multivariate Gaussian distribution, thus,

29The final loss function can be simplified as,

30Indeed, this observation corroborates the conclusion made in the section 2.1.During the forward process, Gaussian noise is continuously injected into the clean image.Conversely, in the reverse process, neural networks are utilized to learn and progressively remove the noise.

31This iterative denoising process ultimately yields an image that adheres to the authentic data distribution.

Conditional diffusion model

32The previously introduced DDPM and DDIM are essentially unconditional generators capable of producing microstructures resembling those in the original dataset in terms of morphology.However, in the realm of materials inverse design, the objective is to generate microstructures with specific functions or properties.As such, this study also introduces a conditional diffusion model designed to generate microstructures with predefined physical properties.

33In the literature pertaining to diffusion models [55,56], Classifier Guidance has demonstrated efficacy in employing explicit classifiers to steer conditional generation.Nevertheless, this approach requires additional training of the image classifier which quality also can impact the effectiveness of conditional generation.Moreover, updating images through gradients can lead to adversarial attack effects, where generated images may deceive classifiers via imperceptible details.

34Hence, in this study, we adopt the Classifier-Free Guidance scheme introduced by Google in 2022 to circumvent the aforementioned issues [57].The crux of Classifier-Free Guidance involves substituting the explicit classifier with an implicit one, eliminating the need for direct calculations of the explicit classifier and its gradients.

35More specifically, in addition to time feature encoding, this study incorporated supplementary feature encoding embeddings into the diffusion model, enabling control over various physical attributes, as shown in Figure 5 and Figure 6.To leverage feature vectors for conditional generation, this study designate the reverse diffusion process, as defined in Eq.3, as a corresponding conditional probability distribution.

36The parameterization of the mean is expressed as,

37The loss function for training is,

38Here, y represents the feature embedding corresponding to the physical attribute, effectively serving as the label for microscopic physical attributes, such as elastic modulus or permeability.Consequently, the conditional generation described above essentially constitutes a form of supervised learning.the number of input channels does not match the number of output channels, a Conv3d is employed to adjust the number of channels in the input feature map to match the output feature map.If the input and output channel numbers are equal, identity mapping is directly used as the output of the shortcut connection.

Training and sampling

39The training process, illustrated in the Figure 5, commences with the extraction of x 0 from the training dataset.Following this, a random time step is selected from the time series.The noisy image x t at this chosen time step is calculated using Eq. 2 and serves as the input for the model.Subsequently, the model generates the predicted noise at the corresponding time step.The loss function is defined as the mean square error (MSE) between the predicted noise and the noise introduced during the forward process at the same time step, as depicted in Eq. 14.The model in this study underwent 500 training iterations on computer with NVIDIA GeForce RTX 4070 Ti and was optimized using the Adam optimizer.In the case of the trained model, when pure noise is provided as input, it initially generates the noise that was added during the forward process at time step 't'.Subsequently, it progressively denoises this noise to produce an image that conforms to the original data distribution.The detailed process is visually illustrated in the Figure 6.

Two-point correlation function

40The spatial correlation function, as an important descriptor for microstructure characterization, provides a reasonable quantitative description of the morphology of heterogeneous materials.Considering a two-phase random heterogeneous material, the definition of the indicator function is given as follows,

41where V i ∈ R d is the space occupied by the phase i.The statistical characterization of the spatial variation in two-phase materials, specifically the computation of the n-point correlation function, is described as follows [58]:

42The angle brackets ⟨•⟩ denote the average across all instances where n points appear simultaneously in phase i, while P {x 1 , x 2 , ..., x n } represents the probability of n points, denoted as x 1 , x 2 , ..., x n randomly occurring at different positions within same phase i.

43While the effectiveness of higher-order statistical descriptors in capturing collective microstructure phenomena is recognized, it's worth noting that their calculations can pose analytical and numerical challenges [59].Thus, the most commonly used is the two-point correlation function S 2 (r).For uniformly isotropic random materials, considering the translation and rotation invariance of the joint probability density distribution of the random field, the two-point correlation function disregards the position and direction information between points and is solely influenced by the relative distance between each point, r ij = x j − x i .

44Therefore, particularly for statistically uniform and isotropic materials, the two-point correlation function can be further simplified as

452 (|r|) [60].It examines the correlation between the two endpoints of a vector within the same phase, and its form encapsulates crucial overarching characteristics of the microstructure [58].

Linear correlation function

46Another method for the statistical description of microstructures is the linear path function, which serves as a statistical function employed to characterize aggregation within microstructures.From a probabilistic standpoint, it quantifies the probability of randomly placing a line on a microstructure image in such a way that the entire line falls within phase i.Specifically, it measures the extent of clustering along straight lines within a microstructure [5].This function is defined as a lower-order descriptor derived from a more complex fundamental function λ i which can capture specific information about phase connectivity and places greater emphasis on short-range correlation [61].The basic function λ i is defined as follows:

47For uniformly isotropic random materials, the above functions can be further simplified as,

Fourier descriptor

48Material properties are influenced not only by the spatial correlation between different phases but also by the morphology of phase boundaries.Factors such as the rate of dissolution/deposition are intimately linked to attributes like specific surface area and curvature [62].In order to further quantify the similarity between the generated microstructure phase profile and the original material phase profile, this study proposes the Fourier descriptor.

49This descriptor involves utilizing the Fourier transform of object boundary information, shifting contour characteristics from the spatial domain into the frequency domain, and extracting frequency domain information as the image's feature vector.

50The boundaries between different phases in microstructure can be represented as coordinate sequences, s (k) = [x (k) , y (k)], k = 0, 1, 2...K − 1.In addition, each coordinate can be represented by a complex number,

51Perform Discrete Fourier Transform (DFT) on a one-dimensional sequence s (k).

52Where u = 0, 1, 2...K − 1.The complex coefficient a (u) is called the Fourier descriptor of the boundary, which can be used to describe boundary shape features in the frequency domain.

Generation of datasets

53To assess the efficacy of diffusion models in microstructure reconstruction with varying levels of complexity and randomness, this study initially established a database comprising various types of composite materials.These included fiber inclusion materials, texture materials, random materials, spinodal decomposition materials, chessboard structures, and Voronoi structured materials.Each microstructure in the database has the size of 64 × 64 × 1000 (image size=64).Additionally, to evaluate the reconstruction performance of the model at different resolutions, the database of circular inclusion materials and fractal noise materials with a resolution of 128 × 128 has also been established.The database size for these materials was also 1000 samples.

54Various reconstruction algorithms were employed to generate microstructures in the database.These algorithms encompassed random field methods based on random harmonic functions and reconstruction methods grounded in physical descriptors.

Reconstruction of 2D random materials based on DDPM

55In this section, the microstructures of random fiber inclusion materials, texture materials, random materials, spinodal decomposition materials, chessboard structures, and Voronoi structured materials, circular inclusion and fractal noise materials were successfully reconstructed based on DDPM. Figure 7 provides a comparison between the original microstructure and the reconstructed microstructure, revealing no noticeable visual distinctions.To verify the diversity of DDPM, random sampling reconstruction was performed on fiber inclusions, circular inclusions, metamaterials and chessboard structures.On the other hand, this also suggests that DDPM has the capability to prevent the emergence of pattern collapse problems.The results are shown in Figure 10.

56This study also employs Fourier descriptors to compare the original random microstruc- As previously discussed, DDIM exhibits the capability to flexibly adjust the variance during sampling.Following the elimination of variance, the reverse process of the diffusion model transforms into a deterministic procedure which means that starting from a certain noise, only a unique microstructure can be achieved.Consequently, the adjustability of the DDIM sampling process not only governs the randomness of microstructure generation through variance manipulation but also allows for the exploitation of deterministic sampling to comprehensively explore the latent space of the diffusion model.This dual capability presents a promising avenue for controlling microstructure characteristics.

Reconstruction considering manufacture deviation based on DDIM

57As demonstrated above, diffusion models have the capacity to learn both compact and diverse microstructures, expanding the design space for material optimization.This, in turn, significantly enhances the performance of microstructure design optimization [63].

58In practical applications, additive manufacturing technology is often employed for the realization of such microstructures.However, the inherent complexities and uncertainties associated with the manufacturing process introduce unpredictability.Factors like the precision of 3D printing and equipment wear can influence the outcome of the manufacturing process, potentially deviating from the expected performance of the theoretically optimal microstructure.Hence, it becomes imperative to investigate the impact of random defects that may arise during the manufacturing process on the mechanical behavior of materials [64,65].

59DDIM offers an inherent means to quantitatively assess the uncertainty stemming from manufacture deviation.As evident from the discussion in section 2.2, when η = 0, DDIM's variance setting aligns with that of DDPM, and every step of denoising in the reverse process contains randomness.However, when η = 0, no random noise is present, resulting in deterministic sampling without manufacturing deviation.The value of η is intricately tied to the degree of randomness in microstructure reconstruction, essentially indicating the extent of deviation from deterministic reconstruction.

60As depicted in Figure 12, this concept is illustrated by introducing varying levels of randomness in metamaterial reconstruction.As the parameter η increases, the degree of deviation in manufacturing is also gradually increasing.Specifically, the four black rectangles located on the diagonal gradually deviate from their regular shapes, adopting irregular forms.A similar effect can be observed in the black square positioned at the center of the microstructure.

61Randomness in diffusion model is the guarantee of diversity.Conversely, removing this randomness from diffusion models yields a deterministic path for microstructure generation.

62Nevertheless, during real-world manufacturing processes, errors are inevitable, and the degree of control over randomness within diffusion model precisely offers a means to quantify uncertainty in the actual formation of microstructures.The diffusion model can be seen as a multi-layer VAE.Similar to VAE, the diffusion model encodes raw data into a latent space and subsequently utilizes a decoder to map the samples from the latent space back to the original data space.However, the key distinction lies in the fact that the diffusion model doesn't involve dimensionality reduction operations.

63Instead, it establishes an equal-dimensional mapping between the latent space distribution and the original data distribution, where the latent space represents the noise distribution.

64Furthermore, since the diffusion model transforms discrete original image data into a continuous manifold structure, the mapping described above is inherently continuous as well.

65Building on this foundation, the diffusion model is capable of achieving the dynamic evolution of two microstructures by continuously interpolating between two noise distributions.

66This capability not only allows for the control of microstructure randomness but also offers a quantifiable design space for the inverse design of random materials through distance measurements in latent spatial interpolations [17].

67It is worth noting that DDIM is sensitive to noise distribution.When linear interpolation is employed, λz 1 + (1 − λ) z 2 deviates from a normal distribution due to the superposition of normal distributions.Therefore, in this study, spherical interpolation was adopted [66,54],

68which can be expressed as follows:

69T ,

70where θ = arccos

71T ||z

72T ||

73, and z follows standard normal distribution.

74Figure 13a and 13b illustrate the continuous interpolation decoding in the latent spaces of two microstructures, achieving dynamic evolution from random materials to texture materials and from random materials to circular inclusion materials, respectively.This method offers the potential to characterize and regulate the randomness within microstructures.

75The interpolation distance between different microstructures in the latent space serves as a measure of randomness, and various levels of randomness can be controlled in the microstructure by adjusting the distance from a state of complete randomness.This also provides a foundation for the controllable application of randomness in material design.

76Using the method outlined above, it also becomes possible to create gradient structures without the need for direct generation.Instead, gradient structures can be generated by combining intermediate structures from an extensive dynamic evolution process.Figure 13c generates gradient metamaterials based on continuity decoding in latent space.The comparison between the original three-dimensional microstructure and the generated three-dimensional microstructure is shown in the Figure 14.

77Material performance is intricately tied to its three-dimensional microstructure.This connection allows for the intentional design of microstructures to achieve desired performance objectives.In this study, the permeability of random porous materials serves as an illustrative example.Leveraging the mapping relationship between microstructure and permeability, conditional generation was performed on three-dimensional random materials within a specific permeability range.Specifically, the permeability of three-dimensional materials is divided into six ranges as number label, each of which serves as a feature encoding embedding combined with image and time encoding.The framework of the network is shown in the section 3.1.The conditional diffusion model employed in this study has proven effective in generating three-dimensional microstructures with permeability falling within six specific ranges: (0, 0.2), (0.2, 0.5), (0.5, 1.5), (1.5, 3.0), (3.0, 5.0), and (5.0, 5.0+).The specific results are shown in Figure 15.

78The verification of the permeability of random porous materials is carried out through the lattice Boltzmann numerical method, (f)permeability=10.93

Figure 1 :

79Figure 1: The forward noising process and reverse denoising process in diffusion model

Figure 2 :

80Figure 2: Probability density evolution in forward process

3. 1 .

813D U-NetNeural networks in DDPM and DDIM are tasked with taking noisy images as input and producing predicted noise, both of which have the same size as the image.Given these requirements, the primary network architecture employed in diffusion model is the U-Net network.In addition to making corresponding adjustments to binary microstructure images, this study further extends the two-dimensional diffusion model into three-dimensional framework.As a result, this section primarily centers on the introduction of the proposed three-dimensional U-Net network, as shown in Figure3.Specifically, U-Net adopts an encoder D ∈ N (x; θ) = N D (I; θ D ) -decoder U ∈ N (x; θ) = N U (z; θ U ) structure, with the network's architecture resembling the shape of the letter ′ U ′ .The encoder maps the image to the feature space z, while the decoder maps the representation in the feature space back to the image space I. Additionally, U-Net incorporates skip connection, connecting the output of the encoder to the corresponding decoder, facilitating feature fusion and enhancing gradient flow.

Figure 3 :

82Figure 3: 3D U-Net network architecture in diffusion model

Figure 4 :

83Figure 4: Schematic diagram of residual block structure

Figure 5 :

84Figure 5: The training process in diffusion model

Figure 6 :

85Figure 6: The sampling process in diffusion model

Figure 7 :

86Figure 7: Comparison between microstructures generated based on DDPM and microstructures of raw materials;(a)-(d) and (i)-(l): Original microstructures; (e)-(h) and (m)-(p): Generated microstructures

Figure 8 :

87Figure 8: Comparison of S 2 (r) between generated microstructure and original microstructure; (a):Texture material; (b): Spinodal decomposition; (c): Circular inclusion; (d): Fractal noise

Figure 9 :

88Figure 9: Comparison of L (r) between generated microstructure and original microstructure; (a):Texture material; (b): Spinodal decomposition; (c): Circular inclusion; (d): Fractal noise

Figure 10 :

89Figure 10: Diversified generated microstructures based on diffusion model

Figure 11 :

90Figure 11: The feature distribution of Fourier descriptors

Figure 12 :

91Figure 12: Microstructure reconstruction considering manufacturing deviation

5. 4 .

92Conditional generation of 3D random materials based on DDPMIn microstructure reconstruction of composite, this study extends the diffusion model framework to 3D, and successfully achieves 3D reconstruction of spherical inclusion materials, ellipsoidal inclusion materials, and random materials, all with sizes of 64 × 64 × 64.

( a )

93Random materials to directed random materials (b) Random material to circular inclusion material (c) Generated gradient material

Figure 13 :

94Figure 13: Randomness control and gradient materials based on DDIM

Figure 14 :Figure 15 :Figure 16 :

95Figure 14: Comparison between original three-dimensional microstructure and reconstructed microstructure of composite materials; (a):Original spherical inclusion; (b):Original ellipsoidal inclusion; (c):Original random porous material; (d):Generated spherical inclusion; (e):Generated ellipsoidal inclusion; (f):Generated random porous material

참고문헌 46건

  1. Image-based crystal plasticity FE framework for microstructure dependent properties of Ti–6Al–4V alloys Materials Science and Engineering A · Elsevier BV · 2012 10.1016/j.msea.2012.06.006
  2. Hexagonal NaYF4:Yb3+/Er3+ nano/micro-structures: Controlled hydrothermal synthesis and morphology-dependent upconversion luminescence Applied Surface Science · Elsevier BV · 2015 10.1016/j.apsusc.2015.01.240
  3. Correlation functions for predicting properties of heterogeneous materials. I. Experimental measurement of spatial correlation functions in multiphase solids Journal of Applied Physics · American Institute of Physics · 1974 10.1063/1.1663741
  4. Stochastic Reconstruction of Particulate Media Using Simulated Annealing: Improving Pore Connectivity Transport in Porous Media · Springer Science+Business Media · 2008 10.1007/s11242-008-9242-8
  5. Level Surfaces of Gaussian Random Fields and Microemulsions Europhysics Letters (EPL) · Institute of Physics · 1991 10.1209/0295-5075/14/5/003
  6. On pressure and velocity boundary conditions for the lattice Boltzmann BGK model Physics of Fluids · American Institute of Physics · 1997 10.1063/1.869307
  7. A superior descriptor of random textures and its predictive capacity Proceedings of the National Academy of Sciences · National Academy of Sciences · 2009 10.1073/pnas.0905919106
  8. Scattering properties of a model bicontinuous structure with a well defined length scale Physical Review Letters · American Physical Society · 1987 10.1103/physrevlett.58.2718
  9. Reconstructing random media Physical review. E, Statistical physics, plasmas, fluids, and related interdisciplinary topics · American Physical Society · 1998 10.1103/physreve.57.495
  10. Stochastic microstructure characterization and reconstruction via supervised learning Acta Materialia · Elsevier BV · 2015 10.1016/j.actamat.2015.09.044
  11. Stochastic reconstruction of sandstones Physical review. E, Statistical physics, plasmas, fluids, and related interdisciplinary topics · American Physical Society · 2000 10.1103/physreve.62.893
  12. Shape similarity measurement model for holed polygons based on position graphs and Fourier descriptors International Journal of Geographical Information Science · Taylor & Francis · 2016 10.1080/13658816.2016.1192637
  13. Characterization and reconstruction of 3D stochastic microstructures via supervised learning Journal of Microscopy · Wiley · 2016 10.1111/jmi.12441
  14. Digital Image Processing with MATLAB InTech eBooks · InTech · 2016 10.5772/63028
  15. Compression and reconstruction of random microstructures using accelerated lineal path function Computational Materials Science · Elsevier BV · 2016 10.1016/j.commatsci.2016.04.044
  16. Reconstruction of three-dimensional porous media using generative adversarial neural networks Physical review. E · American Physical Society · 2017 10.1103/physreve.96.043309
  17. Design of Non-Deterministic Quasi-random Nanophotonic Structures Using Fourier Space Representations Scientific Reports · Nature Portfolio · 2017 10.1038/s41598-017-04013-z
  18. 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
  19. Identifying interphase properties in polymer nanocomposites using adaptive optimization Composites Science and Technology · Elsevier BV · 2018 10.1016/j.compscitech.2018.04.017
  20. Microstructural Materials Design Via Deep Adversarial Learning Methodology Journal of Mechanical Design · American Society of Mechanical Engineers · 2018 10.1115/1.4041371
  21. Coral-like directional porosity lithium ion battery cathodes by ice templating Journal of Materials Chemistry A · Royal Society of Chemistry · 2018 10.1039/c8ta05049j
  22. Accelerating multi-point statistics reconstruction method for porous media via deep learning Acta Materialia · Elsevier BV · 2018 10.1016/j.actamat.2018.08.026
  23. High-throughput 3D reconstruction of stochastic heterogeneous microstructures in energy storage materials npj Computational Materials · Nature Portfolio · 2019 10.1038/s41524-019-0149-4
  24. PoreSpy: A Python Toolkit for Quantitative Analysis of Porous Media Images The Journal of Open Source Software · Open Journals · 2019 10.21105/joss.01296
  25. Improving direct physical properties prediction of heterogeneous materials from imaging data via convolutional neural network and a morphology-aware generative model Computational Materials Science · Elsevier BV · 2018 10.1016/j.commatsci.2018.03.074
  26. A geometric view of optimal transportation and generative model Computer Aided Geometric Design · Elsevier BV · 2018 10.1016/j.cagd.2018.10.005
  27. A Geometric Understanding of Deep Learning Engineering · Elsevier BV · 2020 10.1016/j.eng.2019.09.010
  28. Data-driven metamaterial design with Laplace-Beltrami spectrum as “shape-DNA” Structural and Multidisciplinary Optimization · Springer Science+Business Media · 2020 10.1007/s00158-020-02523-5
  29. Reconstruction of 3D Microstructures from 2D Images via Transfer Learning Computer-Aided Design · Elsevier BV · 2020 10.1016/j.cad.2020.102906
  30. Deep generative modeling for mechanistic-based learning and design of metamaterial systems Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 2020 10.1016/j.cma.2020.113377
  31. 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
  32. Reconstruction, optimization, and design of heterogeneous materials and media: Basic principles, computational algorithms, and applications Physics Reports · Elsevier BV · 2021 10.1016/j.physrep.2021.09.003
  33. Large-Scale Statistical Learning for Mass Transport Prediction in Porous Materials Using 90,000 Artificially Generated Microstructures Frontiers in Materials · Frontiers Media · 2021 10.3389/fmats.2021.786502
  34. Data Centric Design: A New Approach to Design of Microstructural Material Systems Engineering · Elsevier BV · 2022 10.1016/j.eng.2021.05.022
  35. Animating rotation with quaternion curves 1985 10.1145/325334.325242
  36. Random Heterogeneous Materials: Microstructure and Macroscopic Properties Applied Mechanics Reviews · American Society of Mechanical Engineers · 2002 10.1115/1.1483342
  37. Denoising Pretraining for Semantic Segmentation 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops (CVPRW) · 2022 10.1109/cvprw56347.2022.00462
  38. Harnessing structural stochasticity in the computational discovery and design of microstructures Materials & Design · Elsevier BV · 2022 10.1016/j.matdes.2022.111223
  39. High-Resolution Image Synthesis with Latent Diffusion Models 2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) · 2022 10.1109/cvpr52688.2022.01042
  40. Conditional diffusion-based microstructure reconstruction Materials Today Communications · Elsevier BV · 2023 10.1016/j.mtcomm.2023.105608
  41. Microstructure reconstruction using diffusion-based generative models Mechanics of Advanced Materials and Structures · Taylor & Francis · 2023 10.1080/15376494.2023.2198528
  42. 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
  43. A Diffusion Model Predicts 3D Shapes from 2D Microscopy Images 2022 IEEE 19th International Symposium on Biomedical Imaging (ISBI) · 2023 10.1109/isbi53787.2023.10230752
  44. Mixed form based physics-informed neural networks for performance evaluation of two-phase random materials Engineering Applications of Artificial Intelligence · Elsevier BV · 2023 10.1016/j.engappai.2023.107250
  45. Digital polycrystalline microstructure generation using diffusion probabilistic models Materialia · Elsevier BV · 2023 10.1016/j.mtla.2023.101976
  46. Improving 3D Imaging with Pre-Trained Perpendicular 2D Diffusion Models 2021 IEEE/CVF International Conference on Computer Vision (ICCV) · 2023 10.1109/iccv51070.2023.00983