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

Deep reinforcement learning for microstructural optimisation of silica aerogels

간접 관련 산업용 섬유 · (17) 스펀본드 부직포 (23) 컴파운드(24) 패션(코오롱FnC)

기본 정보

저자
  1. Prakul Pandit — Department of Aerogels and Aerogel Composites, Institute of Materials Research, German Aerospace Center, Linder Höhe, 51147, Cologne, NRW, Germany. prakul.pandit@dlr.de|||Department of Aerogels and Aerogel Composites, Institute of Materials Research, German Aerospace Center, Linder Höhe, 51147, Cologne, NRW, Germany
  2. Rasul Abdusalamov — Department of Continuum Mechanics, RWTH Aachen University, Eilfschornsteinstr. 18, 52062, Aachen, NRW, Germany. abdusalamov@km.rwth-aachen.de|||Department of Continuum Mechanics, RWTH Aachen University, Eilfschornsteinstr. 18, 52062, Aachen, NRW, Germany
  3. Mikhail Itskov — Department of Continuum Mechanics, RWTH Aachen University, Eilfschornsteinstr. 18, 52062, Aachen, NRW, Germany
  4. Ameya Rege — Department of Aerogels and Aerogel Composites, Institute of Materials Research, German Aerospace Center, Linder Höhe, 51147, Cologne, NRW, Germany|||School of Computer Science and Mathematics, Keele University, Keele, Staffordshire, ST5 5BG, UK
DOI
10.1038/s41598-024-51341-y
저널
Scientific Reports
발행년도
2024
발행기관
Nature Portfolio
피인용수
6
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1038/s41598-024-51341-y
토픽
Surface Modification and Superhydrophobicity
OpenAlex ID
W4390941732

평가 내용

관련도
간접 관련
사업분야
산업용 섬유 · (17) 스펀본드 부직포
부 분야
(23) 컴파운드, (24) 패션(코오롱FnC)
R&D 측면
분석·모델링
확신도
0.70
근거 용어
silica aerogels, microstructural optimisation, deep reinforcement learning, mechanical properties, porous materials
판단 근거
실리카 에어로젤의 미세구조를 최적화하여 기계적 물성을 제어하는 AI 모델링 연구입니다. 에어로젤은 산업용 부직포(17)나 경량 복합소재(23)의 단열/기능성 소재로 응용될 수 있는 다공성 소재입니다.
R&D 활용 포인트
다공성 소재(부직포, 필터, 단열재 등)의 미세구조와 물성 간의 상관관계를 AI로 예측하고 설계하는 디지털 트윈 및 역설계 기술에 활용 가능합니다.
평가 입력
본문 57,164자 중 30,032자 발췌

초록

Abstract Silica aerogels are being extensively studied for aerospace and transportation applications due to their diverse multifunctional properties. While their microstructural features dictate their thermal, mechanical, and acoustic properties, their accurate characterisation remains challenging due to their nanoporous morphology and the stochastic nature of gelation. In this work, a deep reinforcement learning (DRL) framework is presented to optimise silica aerogel microstructures modelled with the diffusion-limited cluster–cluster aggregation (DLCA) algorithm. For faster computations, two environments consisting of DLCA surrogate models are tested with the DRL framework for inverse microstructure design. The DRL framework is shown to effectively optimise the microstructure morphology, wherein the error of the material properties achieved is dependent upon the complexity of the environment. However, in all cases, with adequate training of the DRL agent, material microstructures with desired properties can be achieved by the framework. Thus, the methodology provides a resource-efficient means to design aerogels, offering computational advantages over experimental iterations or direct numerical solutions.

본문 57,164자

본문 펼치기
## OPEN # Deep reinforcement learning for microstructural optimisation of silica aerogels Prakul Pandit <sup>1</sup> <sup>*</sup> , Rasul Abdusalamov <sup>2</sup> <sup>*</sup> , Mikhail Itskov <sup>2</sup> & Ameya Rege <sup>1,3</sup> Silica aerogels are being extensively studied for aerospace and transportation applications due to their diverse multifunctional properties. While their microstructural features dictate their thermal, mechanical, and acoustic properties, their accurate characterisation remains challenging due to their nanoporous morphology and the stochastic nature of gelation. In this work, a deep reinforcement learning (DRL) framework is presented to optimise silica aerogel microstructures modelled with the diffusion-limited cluster–cluster aggregation (DLCA) algorithm. For faster computations, two environments consisting of DLCA surrogate models are tested with the DRL framework for inverse microstructure design. The DRL framework is shown to effectively optimise the microstructure morphology, wherein the error of the material properties achieved is dependent upon the complexity of the environment. However, in all cases, with adequate training of the DRL agent, material microstructures with desired properties can be achieved by the framework. Thus, the methodology provides a resource-efficient means to design aerogels, offering computational advantages over experimental iterations or direct numerical solutions. Silica aerogels have a fascinating history dating back to 1930’s, when the first ‘aerogel’ was synthesised by ­Kistler <sup>1</sup> . This pioneering work in the synthesis of these porous materials, in which the liquid phase is extracted from the pores of a gel, laid the foundation for the development of various types of aerogels, which are now considered to be among the lightest solid materials in use. For example, silica aerogel is synthesised by drying a silica gel and is characterised by very low density ( < 0.20 g/cm <sup>3</sup> ),high porosity (up to 99.98 v/v ), low thermal conductivity (up to 0.01 W m <sup>−1</sup> K <sup>−1</sup> ), and sound velocity as low as 20.00 m s <sup>−12</sup> . Due to such exceptional properties, the properties and potential applications of silica aerogels, including but not limited to thermal insulation, stardust collection, packaging, and biomedicine have intensively been ­explored <sup>3,4</sup> . These features, ranging from thermal conductivity to diverse mechanical and optical properties, are strongly influenced by the microstructure of the material, such as pore size distribution, particle connectivity, and specific surface ­area <sup>5–7</sup> . Traditional aerogel synthesis relies on recipes or trial-and-error approaches based on chemical principles, which sometimes limits the exploration of new and sustainable synthesis routes. This is also compounded by the additional lack of a comprehensive understanding of the complex structure–property relations in aerogels, making it difficult to predict the behaviour of these materials under different environmental and loading conditions. Therefore, the ability to optimise the microstructure of silica aerogels through targeted synthesis and, in turn, to tailor their properties for a given application remains a significant challenge. In the last decade, deep learning and artificial intelligence (AI) approaches have gained significant attention in several domains such as image ­processing <sup>8</sup>, optimisation ­problems <sup>9</sup>, or even general game ­playing <sup>10</sup> . Recently, the influence of AI has also spread to the natural sciences, especially engineering, physics, materials science, or even ­chemistry <sup>11</sup> . In particular, large amount of data makes it possible to pursue new approaches, e.g., the prediction of protein ­folding <sup>12</sup>, the description of material ­behaviour <sup>13–15</sup>, microstructure ­optimisation <sup>16,17</sup>, or even the discovery of materials with novel ­properties <sup>18–20</sup> . Moreover, in the field of porous materials, datadriven approaches have been utilised also for rapid material characterisation, to enable accelerated materials ­synthesis <sup>21,22</sup> . In addition to such data-driven applications, reinforcement learning is being utilised to develop self-learning laboratories for autonomous exploration of advanced ­materials <sup>23</sup> . This aspect of designing and developing novel materials leads to huge opportunities for the future. Moreover, the application of deep learning is limited not only to materials but has also been applied in the development of meta-materials. Recently, deep 1Department of Aerogels and Aerogel Composites, Institute of Materials Research, German Aerospace Center, Linder Höhe, 51147 Cologne, NRW, Germany. <sup>2</sup> Department of Continuum Mechanics, RWTH Aachen University, Eilfschornsteinstr. 18, 52062 Aachen, NRW, Germany. <sup>3</sup> School of Computer Science and Mathematics, Keele University, Keele, Staffordshire ST5 5BG, UK. <sup>*</sup> email: prakul.pandit@dlr.de; abdusalamov@km.rwth-aachen.de learning methods for the structure–property map inversion of truss meta-materials have been ­reported <sup>24</sup> . In the context of meta-materials with nature-inspired architectures, an unsupervised generative adversarial model was developed to design, model, and print 3D structures for diverse ­applications <sup>25</sup> . With the aim of describing the complex structure-property relations in silica aerogels, several reports on their computational modelling have been communicated in the literature, particularly with, molecular ­dynamics <sup>27–30</sup>, coarse-grained ­simulations <sup>31–33</sup> as well based on tomographic imaging through CT-scans <sup>34,35</sup> . A computational model can be defined to be a digital twin of any material, only when the model accurately describes the physical and chemical characteristics on a multi-dimensional scale. Thus, it is essential to model not only the morphology but also the chemical kinetics of the formation of the gelled structure. On a coarse-grained scale of silica aerogels, the diffusion limited cluster–cluster aggregation (DLCA) algorithm has been shown to effectively model the structural ­morphology <sup>32</sup> and also their mechanical ­behaviour <sup>31</sup> . For example, in Fig. 1a a hierarchical clustered network morphology of a silica aerogel sample observed under a scanning electron microscope (SEM) is represented. Figure 1b visualises its corresponding computational parallel, generated through stacking of 2D slices of DLCA structures. Moreover, it has also been shown to qualitatively describe the gelation kinetics post the nucleation of the secondary particles during the sol–gel ­process <sup>36,37</sup> . Thus, the DLCA models, if optimised, present the opportunity to be extrapolated for the controlled synthesis of silica aerogel in an automated deeplearning laboratory, while expediting the process and facilitating the discovery of more efficient and sustainable aerogel synthesis pathways. All modelling approaches have a common process characteristic: they require considerable computation times. Therefore, it is a major computational challenge to investigate how certain input parameters influence the mechanical properties of the generated aggregated structures. Usually, to this end, an exhaustive search is performed, to generate a tailored structure to fit the desired properties. Machine learning (ML) approaches can significantly contribute to improving this process by acting as surrogate models for property predictions. Different ML modes such as support vector machine (SVM) <sup>38,39</sup>, random ­forest <sup>40,41</sup>, convolutional neural networks (CNNs) <sup>42–44</sup>, multi-layer perceptrons (MLP) <sup>45</sup>, and graph-based neural ­networks <sup>46–48</sup> have been adopted as surrogate models to relate the microstructures or microstructural features into the material properties in many applications. In the context of silica aerogels, as an extension of the inversed design method presented ­in <sup>49</sup>, this work explores the combination of random forests with reinforcement learning for performing microstructural optimisation of silica aerogels. Thereby, a deterministic type agent performs actions in the design environments to achieve a maximum reward. By specifying the inputs of the DLCA method as actions and the fractality as well as the mechanical properties as states, a tailored aggregated structure can be generated. However, here the key question arises as to which of the several properties of silica aerogels should be optimised. While silica aerogels are primarily investigated as thermal insulators, choosing thermal conductivity would be the quintessential choice. However, it has been thoroughly investigated in the past decades. What remains fascinating is to simultaneously improve their mechanical characteristics. In this work, the main objective is to investigate their elastic modulus (E) as well as their fractal characteristics, based on fractal dimension (fd) . A key objective is to improve the mechanical strength of aerogels by understanding their microstructure, enabling aerogels to withstand loads without collapsing or breaking. The inter particle connectivity of the microstructure has a crucial influence on the overall macroscale ­behaviour <sup>50</sup> . The paper is organized as follows. The results of the data generation, the surrogate model prediction of material properties, and also the inverse design with the DRL framework are presented in “Results”. A general discussion and outlook of the research is presented in “Discussion”, followed by the methodology of generating the data and a detailed description of the development and application of the DRL framework in “Methods”. Results This section presents the data generation through DLCA algorithm and its pre-processing results as well as results on the microstructure optimisation with DRL. Figure 1. ( a ) A transmission electron microscopy (TEM) image of silica aerogel ­from <sup>26</sup> . ( b ) Voxelised computational reconstruction from DLCA models to show the DLCA microstructure morphology in 2D. Data generation and analysis In the present study, for the development of the DRL framework, a total of 1708 aggregates were generated using the DLCA algorithm developed in Matlab. To analyze their mechanical response, these aggregated microstructures were simulated under 10.00% compressive strain in Abaqus. More details about the finite element simulations can be found in “Finite elements simulations of representative volume elements”. While the initial pool of aggregates was larger, convergence errors in conjunction with shorter elements along with the lack of formation of a backbone structure resulted in only realising 1708 meaningful simulations. This was an expected outcome, due to the randomness involved in the DLCA algorithm and the wide range of inputs provided for the generation of the data set. This resulted in structures with fewer cluster–cluster interactions, leading to localised cluster formation, which in turn led to the absence of backbone formation in certain cases. The representative volume elements (RVE)s lacking backbones are non-physical and were therefore not considered for the training data, as silica aerogels always exhibit a load-bearing backbone when exposed to compressive forces. Exemplary aggregated structures for the concentrations of c1 = 10.00%, c2 = 8.75%, c3 = 7.50% and c4 = 6, 25% are depicted in Fig. 2a. Here, _r_ denotes the particle radius, ss and sw are the step sizes of seeds and walkers. The general 3D network of the aggregated structure together with a cross-section visualisation is shown in the center. Additionally, the RVE compression simulations up to 10.00% are visualised along with their mechanical response for the different concentrations. Figure 2b demonstrates the influence of the concentration on the mechanical behaviour. It can be observed that increasing the concentration enhances the stiffness of the aerogel model. This seems reasonable enough following the scaling behaviour observed typically in porous materials. Furthermore, the influence of skeletal Young’s modulus is visualised for the aggregated structure of concentration c3 (see Fig. 2c). It can be seen that the stiffness of the beam elements increases directly in a linear fashion with increasing ES,3 . The validation of the beam element Young modulus can be performed experimentally by calculating skeletal Young’s modulus of the silica aerogel. This increase is justified since amongst the three modes of deformation, bending contributes at most to stresses in silica aerogels and within the elastic regime, the bending stress is proportional to Youngs’s modulus as shown by Ma et al. <sup>52</sup> . As discussed in “Introduction”, the DLCA model can be defined as a digital twin only after multi-dimensional validation of the material morphology and chemical kinetics. To this extent, the Fig. 2d describes the validation of the scaling exponent of the elastic modulus of the silica aerogel microstructure modelled with DLCA algorithm. The exponent of 3.95 (calculated for different concentrations of aggregates with r = 3.00 nm, ss = 0.30 nm and sw = 0.30 nm ) in this study closely aligns with the exponent of 3.80 obtained from experimental measurements. Moreover, it can be seen in Fig. 2e, that the DLCA gelation kinetics qualitatively describes the post-nucleation sol-gel growth of the structure. For the computational model, these kinetics is influenced by the step size of the walkers (explained in “Methods”): the higher the step size, the faster the growth. Thus the step size is a numerical construct of the influence of temperature on the secondary particles. The data set generated from DLCA and its mechanical simulations was cleaned to remove variance for training of the property predictor. The variance is introduced into the system due to the randomness involved in the DLCA process. As such, the converged 1708 samples were averaged over each sample, thus leading to a final data set of 200 structures. The training data set is described with a box plot in Fig. 3a. It was observed that the averaging helps to remove several outliers from the training data set, thus enabling accurate regression analysis by the surrogate model. To understand the correlation between the DLCA parameters and material properties of the generated aggregates as well as the mechanical response, a correlation matrix was calculated, and is illustrated in Fig. 3b. It is immediately apparent that both particle step sizes have nearly no effect on any other parameter. This can be explained by the fact that the step size is a mathematical construct to model the influence of temperature in the gelation process, and as such it only affects the time of gelation in sol-gel ­processes <sup>53</sup> . Note that the particle position is additionally adjusted during aggregation to prevent particle overlap. This is a helpful step to avoid very small elements, such that the distance of the aggregated particles is exactly equal to the sum of the radii. As already known from literature there exists a positive correlation between the elastic modulus _E_ and the concentration _c_ <sup>54</sup>, which can be itself validated from the correlation matrix. The concentration has also a positive correlation with the fractality. Furthermore, the analysis of the matrix reveals an inverse relationship between the radius and the elastic modulus. One other interesting observation is that the correlation between the elastic modulus _E_ and the graph network density ψ is negative. This leads to the assumption that as the number of network connections increases, the number of cluster localisations grows, implying that fewer particles can actually contribute to the backbone structure. Microstructure optimisation with DRL framework To reduce computational resources utilised, a surrogate model/property predictor was developed to replace the finite element method (FEM) simulations while performing the inverse design in the DRL framework. The pre-processed data as discussed in “Data generation and analysis” was utilized to train a random forest algorithm as the surrogate model for predicting the material properties directly from the DLCA parameters and the graph density. The pre-processed data was split into training ( 90.00% ) and testing sets ( 10.00% ), so as to avoid information leak during normalisation from the training set to the data set utilised for validation. These sets were then individually normalised between (− 1,1). The property predictor was evaluated on the basis of the mean absolute error (MAE) metrics. To achieve the best metric, the hyper-parameters were tuned with a ‘bruteforce’ approach. The trained surrogate model was validated on the test data set and had a R <sup>2</sup> score of 0.94. These validation results over the test set can be seen in Fig. 4a,b. Further details of the random forest architecture are discussed in “Numerical surrogate environment”. Figure 2. ( a ) Visualisation of four aggregated structures for different concentrations, showing the 3D particles, a visualisation of the cross-section in the center, and the compression tests from FE simulations. In addition, the ( b ) shows the stress–strain response for the four concentrations including a comparison to literature ­data <sup>51</sup> . The influence of the varying modulus of elasticity of each beam element is also shown for the aggregated structure of concentration c3 in ( c ). The comparison of the scaling exponent of the elastic modulus from the DLCA computational results to the experimental ­data <sup>31</sup> in ( d ) and the gelation kinetics of DLCA to experimental ­data <sup>37</sup> in ( e ) are visualised. The deep deterministic policy gradient (DDPG) ­algorithm <sup>55</sup> coded in the `Stablebaselines3` ­framework <sup>56</sup> was utilised to perform the inverse microstructure optimisation over a custom DLCA environment (the details of the environment along with the reward function shaping is explained in “Reinforcement learning framework”). The schematic representation of the DDPG agent working in combination with the environment for the DRL framework can be seen in Fig. 4c. The DRL inverse optimisation problem was tested with respect to two difficulty levels: the ‘low-complexity scenario’, wherein the DDPG model was trained over a single combination of target material features and a ‘high-complexity scenario’ wherein the trained DDPG model was trained over Figure 3. ( a ) Boxplot visualisation of the training dataset’s target properties E and fd after data pre-processing. ( b ) Correlation matrix between the particle radius _r_, the concentration _c_, the seed step size ss, the walker step size sw, the fractal dimension fd, the elastic modulus _E_ and the graph network density ψ. different target material features possible in the production scenario in each episode to achieve generalisability during the production cycle. As compared to a single target learning problem, this increases the complexity involved in learning the Q-function, however, enables the deployment of a single agent for synthesising silica aerogels with diverse properties. In both environments, the DDPG agent learns a policy to maximise the average episodic reward to solve the environment (see “Reinforcement learning framework” for more details). For the ‘low-complexity’ training case, the environment was defined to have material property constant over all episodes. This enabled faster training of the agent to achieve optimised structures at the expense of generalisability. To achieve the optimal inverse design with the DDPG agent in this environment, the DDPG hyperparameters were tuned with `Optuna` over 100 trials for different combinations. The agent hyperparameters were selected based on the highest episodic mean reward received. The critic and actor loss of the DDPG agent based on the best-selected hyperparameters in the low-complexity environment are shown in Fig. 4d. Figure 4e describes the average episodic reward for the ‘low complexity’ environment. It can be observed that in the initial training epochs, the agent achieves negative rewards based on the reward function defined (explained in “Numerical surrogate environment”). However, as it learns from its experience by interacting with the environment over the training time, the reward increases gradually towards the maximum, indicating that the agent can take actions (DLCA parameters) to solve the provided environment for the desired states ( E, fd) . Thus these achieved actions from the trained agent at the end of training, provide the user with the optimised microstructure for the desired material properties. To validate the results from the DRL framework, the microstructures with returned actions were regenerated with DLCA and analysed with FEM. In Fig. 5a–c, selective results of the output of the optimised microstructure based on the constant target property environment are presented. It can be observed that the agent effectively optimises the silica aerogel microstructure and predicts the exact DLCA model parameters which would provide the target properties. These structures are accurate to an MAE of about 1.00% for cases existing in the training data, however on interpolating the material features and as such exploring material properties unseen by the framework during the training phase, results in microstructures with average MAE of approx 10.00% . The training over single material targets allows quicker training times and easy deployment, as accurate optimisations can be achieved after training the agent for 10,000 epochs. Due to the single material property optimised, the episodic length remains constant, which simplifies the learning process. However, to optimise silica aerogels with diverse properties, retraining the agent in a similar environment but with different targets would be necessary. To solve this problem of retraining the agent each time, a second environment for material optimisation was developed. What differentiates these environments is the definition of the target properties (more details in “Methods”). For each episode, the agent learns how to achieve a different material property, wherein these material properties are sourced from all the possible combinations possible in the material production and can be inputted by the user, thus making it a ‘higher-complexity’ problem. Due to this increase in the complexity of the environment, the agent requires more training epochs to achieve convergence. Accordingly, based on the hyper-parameter optimisation with `Optuna`, the agent converged with highest mean episodic reward after training for 125,000 epochs. Moreover, the length of each upside is also not constant due to the switch of the material properties over the training period of each episode. It is important to consider that a higher number of training epochs is required to train the ‘high-complexity’ environment, to get a similar accuracy as the ‘lowcomplexity’ environment. Figure 5d–f visualises some of the selective structures optimised through the general environment with switching material properties over episodes. For most of the required structures, the RL agent achieves the inverse design by optimising the parameters of the DLCA parameters with an MAE of about 6.00% . However, it was also observed that certain material properties optimised were in a range of about 15.00–25.00% MAE, which is due to the diverse targets experienced by the agent over the number of episodes. This can mostly be related to the higher variance experienced in the FEM simulations, which in turn required an averaged data Figure 4. ( a,b ) Comparison of predicted vs actual material properties for the random forest model over the test set. ( c ) Schematic visualisation of the DRL framework with an agent trained over the environment. ( d ) The actor and the critic loss during the training process of the DRL agent in the ‘low-complexity’ environment. ( e ) Mean episodic award over the training. set to be utilised for training. This also effects the generalisability of the surrogate model over outlying material targets. This lack of training data persists in the ‘high-complexity’ scenario, wherein the DRL framework is not able to build generalised training history in the replay buffer. Discussion Silica aerogels exhibit an unearthed potential for diverse applications, making their reverse synthesis for targeted applications critical. The computational design of silica aerogels with improved strength is a challenging task owing to the complexities of their microstructure. The DRL framework presented above aims to solve this task. The main goal of this research is to design tailored silica aerogel microstructures by utilising the DLCA algorithm for targeted applications. Previous works by our group have focused on ANN based approaches, to perform an inverse structure–property mapping. However, the problem of non-uniqueness appeared to be non-trivial. To overcome this challenge, reinforcement learning techniques are therefore explored. A deterministic algorithm is trained over two environments of varied complexity. What differentiates a deterministic policy algorithm is that it chooses a single action for each state, while a stochastic policy selects from a probability distribution over actions for each state. For the goal of reverse engineering, the DLCA method in combination with FE simulations is used for the data generation. The generated data provides insight into the correlation between the structural and Figure 5. Optimisation of the microstructures with DRL and their validation: visualisation of some selective optimised structures based on desired target properties in the ( a–c ) specific-defined ‘low-complexity’ environment and ( d–f ) in the generalised ‘high-complexity’ environment. To validate the results through the RL approach the specified DLCA algorithm inputs were determined and the resulting structures for both environments were validated by microstructure generation with DLCA and their subsequent FEM analysis. mechanical parameters. The importance of the correlation between concentration and Young’s modulus known from the literature was affirmed. In addition, an interesting observation regarding the effect of network connectivity on the elastic modulus can be found. Accordingly, localised connections weaken the existing backbone structure. Although trained over a limited data set, the proposed RL framework can identify targeted mechanical and structural parameters. The approach has been tested for two levels of complexity, resulting in an average MAE of 10.00% depending upon the complexity of the environment. A key observation is the ability to generalise over a continuous input space from comparatively few data points to obtain satisfactory results. Nevertheless, the current approach of reverse engineering is limited only to the elastic modulus and the fractality of the silica aerogels. Certainly, the extension to thermal and acoustic simulations for tailoring further properties directly be achieved in the basis of existing micromechanical ­models <sup>57</sup> . To account for potential biases or uncertainties, it remains important to improve the training data set. Potential improvements can also be made by the FE technique. This work illustrates a potential solution for a significant improvement of the mechanical properties of silica aerogels by providing a deeper understanding of the micro structural relations and their influence on macroscale properties. The presented research is a first step towards tailor-developing silica aerogels, with the potential for expansion through the incorporation of digital twins emulating the multi-scale behavior of aerogels. This work in itself must not be seen as a direct tool for reverse engineering silica aerogels. Primarily, this approach opens applications for inverse designing aerogels, using DRL to control synthesis process conditions as actions (such as chemical precursors, acid concentration, and reaction temperature). Beyond microstructure optimisation, the application of DRL extends to metamaterials. In this context, the DRL framework can be trained to predict topological features as actions to attain specific material properties as states. This DRL framework is directly applicable in realising (meta)-material microstructures through manufacturing processes like additive manufacturing and 3D printing. Consequently, it provides a resource-efficient means to design aerogels, offering computational advantages over experimental iterations or direct numerical solutions. This approach has the potential to significantly reduce the time and cost associated with developing novel aerogel material structures. Methods There are two main methodological aspects involved in this work for the optimisation of the silica aerogels: the computational modelling and simulation of aggregated structures and the development of a DRL framework to solve an optimisation problem generating a target microstructural morphology. In “Computational modelling and mechanical simulation of the silica aerogel microstructure”, the generation of the silica aerogel microstructure and the mechanical simulations of the RVEs using FEM are discussed. The fundamentals of DRL using a deterministic policy gradient are presented in “Reinforcement learning framework”. Computational modelling and mechanical simulation of the silica aerogel microstructure An initial data set is required to effectively model the morphological and mechanical properties of the microstructure. The inverse prediction is based on the desired elastic modulus and fractal dimension, reflecting the geometric and mechanical characteristics of silica aerogels. To this end, the DLCA algorithm is utilised to create computational silica aerogel microstructures. _Diffusion‑limited cluster–cluster aggregation method_ As discussed in “Introduction”, the DLCA algorithm has been extensively researched for computational modelling of silica aerogel microstructures. Hasmy et al. <sup>32</sup> showed that structures generated by DLCA matched closely with the small angle neutron scattering (SANS) data for silica aerogels. The starting point of this algorithm is a box with periodic boundary conditions where a total number of Nall = NS + NW of seeds and walker particles are initialized (see Fig. 6 for a 3D visualization). These particles can be placed randomly or in an arranged way within the box. In this example the particles are initialized on random points and they can move freely and periodically according to the random walk theory. For this purpose a seed and walker step size, sS and sW, are defined. With time, all the walkers diffuse to the seeds and clusters are formed. As soon as two particles of two different clusters exceed a critical distance the two clusters are connected to form one single cluster. The algorithm continues until only one periodically spanning network remains in the system, representing the microstructure of the aerogel. This algorithm was adapted by Abdusalamov et al. <sup>31</sup> and comparable results in terms of scaling relationships between simulations and experimental results were obtained. A slightly modified DLCA model was developed for this paper as a continuation of the latter work: the random walk process was redefined allowing all particles to move based on a spherical walk. In addition, overlaps of particles are prohibited and corrected at the first aggregation. While this overlap can be considered in the models to describe effects of Oswald ­ripening <sup>58</sup> in silica aerogels, their elimination helps to simplify the FEM process and avoid convergence issues. The projection of the particle is adjusted based on the connection vector between two particle positions, ensuring that the connection length equals the sum of both particle radii. The algorithm inputs are the particle radius _r_, the step sizes of seeds ss and walkers sw, the relative density _c_ for a constant RVE domain size of 200.00 nm . Refer to Fig. 6 for a visualisation of the general process of the DLCA algorithm. _Finite elements simulations of representative volume elements_ FEM was utilised to describe the mechanical properties of the generated aggregated structures. Based on the DLCA algorithm the particle positions and connections were extracted. In order to perform an FEM simulation, an RVE was generated for each aggregated structure. Thereby, the dimensions of the RVE corresponded to the dimensions of the DLCA simulation box. In addition, periodic boundary conditions were ­applied <sup>31</sup> . Accordingly, each bounding surface of the RVE was used to generate additional nodes for connections over the boundary. Note that all particles are modeled as nodes, while the connections are exported as beam elements. The simulations are performed in Abaqus using the linear B31 element formulation based on the Timoshenko beam theory. This formulation guarantees that all three types of bond deformations are considered: bending, torsion, and stretching. Young’s modulus and Poisson’s ratio of each beam are taken have been provided in literature for silica ­aerogels <sup>33</sup> with ES = 10.00 MPa and ν = 0.29 . For this work, the Young’s modulus of each beam was determined through a correlation to experimental data as ES = 6.95 kPa . To ensure that compression is symmetric with respect to the centre, additional points in the centre of the RVE are fixed. However, to eliminate convergence issues in the Figure 6. Visualisation of the DLCA algorithm. ( a ) Walkers (blue) and seeds (yellow) initialized in the domain. ( b–e ) Walkers diffuse towards the seeds and aggregate together to form a cluster on reaching a critical distance ǫ . ( f ) Final aggregated structure after all the walkers and seeds connect to form a domain-spanning aggregate. process of data generation, unlike in previous works, the contact between all beam elements is not taken into account. As the RVE is only compressed up to 10.00%, no significant contact between the beams occurs and therefore no effect on the initial stiffness response is noticeable. The simulations are generated as input decks in Matlab and executed for uniaxial compression in Abaqus. The deformation as well as the force response are exported to analyse the mechanical properties of the aggregated silica aerogel structures. _Graph density for microstructural connectivity_ Connectivity plays a pivotal role in understanding elastic behaviour of porous materials, offering critical insights into the relationship between microstructure and mechanical properties. Power law exponents (E ∝ ρ <sup>m</sup> ) describe the connection between the mechanical behaviour of materials and their density. High connectivity within the material significantly influences the elastic modulus and other mechanical attributes. Increased connectivity in the microstructure leads to a lower power exponent due to enhanced load distribution capacity, whereas decreased connectivity results in a higher power law exponent resulting from the formation of backbone paths, indicating greater sensitivity to changes in porosity and structural disorder. Graph theory can be utilised for quantifying the connectivity of porous materials. One such metric is the density of a graph. For a graph, its density ( ψ ) is defined as: <u>2E</u> ψ = V (V - 1) <sup>,</sup> (1) where | _E_ | and | _V_ | represent the number of edges and nodes in the graph, respectively. For calculation of the graph density and the microstructural connectivity, the particles of the DLCA model were exported as nodes and their respective bonds as edges using the NetworkX package. Incorporating graph density as a quantitative metric enhances the precision of characterising the connectivity-dependent elastic behaviour of porous materials, facilitating comparative analysis between the optimised to desired microstructures. Reinforcement learning framework Reinforcement learning is a closed-loop ML technique that deals with understanding how an agent interacts in an environment (real or simulated) to achieve desired goals. In this process, an intelligent agent performs actions to achieve maximum feedback in the form of a reward. During this process, the agent interacts with the environment trying to adjust, identify and learn the most suitable actions making a trade-off between exploration and exploitation. An RL framework is commonly described based on the Markov decision process and consists of: - a set of states _s_ for states S, - a set of actions _a_ taken for actions A, - transition probabilities P(s <sup>′</sup> | s, a) from a state _s_ to a state s <sup>′</sup> for an action _a_, - as well as the reward r˜ for the transition from state _s_ to a state s <sup>′</sup> for an action _a_ . A reward is a measure of how successful the actions of the agent were with respect to the desired state. In this work, a deterministic policy gradient algorithm was employed on a custom DLCA environment and will shortly be discussed in the following section. _Deterministic policy gradient algorithms_ In general, both deterministic and stochastic policy gradient-based algorithms can be used for continuous action spaces. However, stochastic policies suffer from a major difficulty, which is the lack of computational efficiency due to the computation of a parametric probability distribution responsible for the stochastic selection of ­actions <sup>59</sup> . Stochastic policy gradients rely on integration over state and action spaces, resulting in a larger number of training samples. In the case of deterministic policies, the integration is only performed over the state space. Although the action space for the inverse mapping is not high dimensional, DDPG allows sufficient exploration of the action space while still learning the deterministic target policy. As stated ­in <sup>59,60</sup> the DDPG algorithm consists of two components: an actor and a critic network. The actor learns a deterministic policy µ(s) that maps states to actions, while the critic learns an action-value function Q <sup>∗</sup> (s <sup>′</sup>, a) that estimates the expected return of following the actor’s policy from a given state. The action-value function, also called the Q function is calculated as: , Q <sup>∗</sup> (s, a) = E r˜ + γ max Q <sup>∗</sup> (s <sup>′</sup>, a <sup>′</sup> ), (2) s <sup>′</sup> ∼P r˜ + γ max a <sup>′</sup> max Q <sup>∗</sup> (s <sup>′</sup>, a <sup>′</sup> ) a <sup>′</sup> where �·� <sup>′</sup> represents the transition to the next state or action, where s <sup>′</sup> is sampled by the environment from a probability distribution P(· | s, a) and γ is the discount factor. Equation (2) is the starting point for learning an approximator to Q <sup>∗</sup> (s, a) . This approximator is often modelled in the form of a neural network with parameters φ, which have to be optimised through the evaluation of two target networks with respect to the mean-squared Bellman error (MSBE). This leads to the evaluation of the target value y(r˜, s <sup>′</sup>, d) given by: y(r˜, s <sup>′</sup>, d) = r˜ + γ (1 − d) maxa <sup>′</sup> Qφ(s <sup>′</sup>, a <sup>′</sup> ), (3) where _d_ is the boolean indicating whether s <sup>′</sup> is terminal or not. Based on this calculated target value, the actionvalue function can be updated as: <u>1</u> | B | (s,a,r <sup>∗</sup>,s <sup>′</sup>,d)∈B <sup>∗</sup>,s <sup>′</sup>,d ∇φ Qφ(s, a) − y(r˜, s <sup>′</sup>, d) | B | (4) �Qφ(s, a) − y(r˜, s <sup>′</sup>, d) which in turn is used to calculate the step-wise policy gradient given by: �2, <u>1</u> | B | (s,a,r˜,s <sup>′</sup>,d)∈B r˜,s <sup>′</sup>,d Q(s, µθ (s)), ∇φ | B | Q(s, µθ (s)), (5) where B is the batch of transitions from a replay buffer D . The target network hyperparameters are updated based on the Polyak averaging φtarg ←˜ρφtarg + (1 −˜ρ)φ, (6) where ρ˜ is a hyperparameter ranging between 0 and 1. _Numerical surrogate environment_ The DRL framework consists of two different complexities. The ‘low-complexity’ environment has the same material property over all training episodes, which are provided by the user as an input. While the ‘high-complexity’ environment switches the target material properties at the end of each episode. These material properties are provided by the user and take into account all possible material features that can exist based on the test data set from the surrogate model. The inputs to the DLCA algorithm act as actions within the framework, while the target material properties are the expected states obtained from these actions. These action ranges were as follows: r ∈ [2.5, 3.5], ρ ∈ [0.05, 0.1], ss ∈ [0.1, 0.5], sw ∈ [0.1, 0.5] . Furthermore, from the generated aggregate structures we can calculate the graph network density ψ ∈, which act as an additional action to validate the inversely generated microstructures. The graph density gives a measure of the total connections �1.67 × 10 <sup>−4</sup>, 7.27 × 10 <sup>−4�</sup> present in the aggregated structure and is calculated as a ratio of the total number of connections by the total number of possible connections between the nodes, wherein each particle is considered as a node and the interparticle bond as the connection. Due to the sparse nature of bonds formed in DLCA, we observe such low values of ψ . We also limit the observation space for the material outputs, i.e. the fractality df ∈[2.45, 2.75] and elastic modulus E ∈[1.00 kPa, 930 kPa], so that feasible and experimentally validated solutions can be guaranteed. A random forest is used as a surrogate model to avoid the high computational and time requirements of iterative training with FEM during microstructure optimisation. This surrogate model is separately trained using supervised learning based on offline generated data from the compression simulation of the RVEs. The random forest consists of five input nodes, i.e. the model parameters of the DLCA, the graph density ( ψ ), and two outputs, i.e. the fractal dimension and the elastic modulus. In the context of DRL, we examine a framework that confronts an inverse optimization problem, differentiating between two distinct scenarios, namely the ‘lowcomplexity’ and ‘high-complexity’ environments. In the ‘low-complexity’ environment, the DDPG agent is tasked with optimizing a fixed set of target material properties (E, fd), as provided by the user. In this setting, the target material properties remain fixed throughout episodes, and the DDPG agent strives to maximize the cumulative reward by optimising the specified material properties over a constant episode length. In contrast, the ‘high-complexity’ environment presents a more dynamic challenge. Here, the agent is required to optimise a diverse range of target material properties, with each episode introducing a novel set of properties. Unlike the ‘low-complexity’ setting, the target material properties vary from one episode to the next, leading to a more challenging and dynamic task. Furthermore, the episode length can vary depending on the specific target properties, adding an element of unpredictability. This nuanced differentiation between ‘low-complexity’ and ‘high-complexity’ environments within the DRL framework enables the exploration of adaptive solutions for diverse optimisation problems. For training of DDPG on ‘high-complexity’ environment, each episode was set with terminal condition of 700 training epochs or if the average reward achieved per episode was more than - 0.05 (normalised). If the terminal condition is met, the episode resets to a new target material property and the training continues. During these episodes, in both of the environments, the surrogate model predicts the states achieved for a set of actions sampled from the replay buffer at every epoch. To train the RL agent, and to achieve deterministic optimised actions for the desired states, an episodic reward signal based on relative error was defined as: - i=n1 Err =, (7) i=1 2 , �1/2 ���sTs((ffdd,, E E)) − s(fd, E)��� where sT (fd, E) is the target material state and the s(fd, E) is the states predicted by the surrogate model for the set of actions taken. Data availability The datasets used and/or analysed during the current study available from the corresponding authors on reasonable request. Code availability The codes used and/or analysed during the current study available from the corresponding authors on reasonable request. Received: 31 October 2023; Accepted: 3 January 2024 References 1. Kistler, S. S. Coherent expanded aerogels and jellies. _Nature_ 127, 741 (1931). 2. Aegerter, M. A., Leventis, N. & Koebel, M. M. _Aerogels Handbook_ (Springer, 2011). 3. Hrubesh, L. W. Aerogel applications. _J. Non-Cryst. Solids_ 225, 335–342 (1998). 4. Smirnova, I. & Gurikov, P. Aerogel production: Current status, research directions, and future opportunities. _J. Supercrit. Fluids_ 134, 228–233 (2018). 5. Dorcheh, A. S. & Abbasi, M. Silica aerogel; synthesis, properties and characterization. _J. Mater. Process. Technol._ 199, 10–26 (2008). 6. Woignier, T. _et al._ Mechanical properties and brittle behavior of silica aerogels. _Gels_ 1, 256–275 (2015). 7. Emmerling, A. & Fricke, J. Scaling properties and structure of aerogels. _J. Sol-Gel. Sci. Technol._ 8, 781–788 (1997). 8. Stoitsis, J. _et al._ Computer aided diagnosis based on medical image processing and artificial intelligence methods. _Nucl. Instrum._ _Methods Phys. Res. Sect. A_ 569, 591–595 (2006). 9. Dahrouj, H. _et al._ An overview of machine learning-based techniques for solving optimization problems in communications and signal processing. _IEEE Access_ 9, 74908–74938 (2021). 10. Mnih, V. _et al._ Human-level control through deep reinforcement learning. _Nature_ 518, 529–533 (2015). 11. Raissi, M., Perdikaris, P. & Karniadakis, G. E. Physics-informed neural networks: A deep learning framework for solving forward and inverse problems involving nonlinear partial differential equations. _J. Comput. Phys._ 378, 686–707 (2019). 12. Jumper, J. _et al._ Highly accurate protein structure prediction with AlphaFold. _Nature_ 596, 583–589 (2021). 13. Linka, K. & Kuhl, E. A new family of constitutive artificial neural networks towards automated model discovery. _Comput. Methods_ _Appl. Mech. Eng._ 403, 115731 (2023). 14. Khorrami, M. S. _et al._ An artificial neural network for surrogate modeling of stress fields in viscoplastic polycrystalline materials. _NPJ Comput. Mater._ 9, 37 (2023). 15. Reimann, D. _et al._ Modeling macroscopic material behavior with machine learning algorithms trained by micromechanical simula tions. _Front. Mater._ 6, 181 (2019). 16. Mao, Y. _et al._ An AI-driven microstructure optimization framework for elastic properties of titanium beyond cubic crystal systems. _NPJ Comput. Mater._ 9, 111 (2023). 17. Feng, Y. _et al._ Machine learning and microstructure design of polymer nanocomposites for energy storage application. _High Voltage_ 7, 242–250 (2022). 18. Liu, Y., Zhao, T., Ju, W. & Shi, S. Materials discovery and design using machine learning. _J. Materiom._ 3, 159–177 (2017). 19. Giro, R. _et al._ AI powered, automated discovery of polymer membranes for carbon capture. _NPJ Comput. Mater._ 9, 133 (2023). 20. Choubisa, H. _et al._ Interpretable discovery of semiconductors with machine learning. _NPJ Comput. Mater._ 9, 117 (2023). 21. Rabbani, A., Babaei, M., Shams, R., Wang, Y. D. & Chung, T. DeePore: A deep learning workflow for rapid and comprehensive characterization of porous materials. _Adv. Water Resour._ 146, 103787 (2020). 22. Chamani, H. _et al._ Data-science-based reconstruction of 3-D membrane pore structure using a single 2-D micrograph. _J. Membr._ _Sci._ 678, 121673 (2023). 23. Volk, A. A. _et al._ AlphaFlow: Autonomous discovery and optimization of multi-step chemistry using a self-driven fluidic lab guided by reinforcement learning. _Nat. Commun._ 14, 1403 (2023). 24. Bastek, J.-H., Kumar, S., Telgen, B., Glaesener, R. N. & Kochmann, D. M. Inverting the structure–property map of truss metama terials by deep learning. _Proc. Natl. Acad. Sci._ 119, e2111505119 (2022). 25. Shen, S.C.-Y. & Buehler, M. J. Nature-inspired architected materials using unsupervised deep learning. _Commun. Eng._ 1, 37 (2022). 26. Rege, A. A perspective on methods to computationally design the morphology of aerogels. _Adv. Eng. Mater._ 25, 2201097 (2023). 27. Patil, S. P., Rege, A., Itskov, M. & Markert, B. Mechanics of nanostructured porous silica aerogel resulting from molecular dynamics simulations. _J. Phys. Chem. B_ 121, 5660–5668 (2017). 28. Pohl, P. I., Faulon, J.-L. & Smith, D. M. Molecular dynamics computer simulations of silica aerogels. _J. Non-Cryst. Solids_ 186, 349–355 (1995). 29. RivasMurillo, J. S., Bachlechner, M. E., Campo, F. A. & Barbero, E. J. Structure and mechanical properties of silica aerogels and xerogels modeled by molecular dynamics simulation. _J. Non-Cryst. Solids_ 356, 1325–1331 (2010). 30. Gonçalves, W. _et al._ Elasticity and strength of silica aerogels: A molecular dynamics study on large volumes. _Acta Mater._ 145, 25 (2017). 31. Abdusalamov, R. _et al._ Modelling and simulation of the aggregation and the structural and mechanical properties of silica aerogels. _J. Phys. Chem. B_ 125, 1944–1950 (2021). 32. Hasmy, A., Anglaret, E., Foret, M., Pelous, J. & Jullien, R. Small-angle neutron-scattering investigation of long-range correlations in silica aerogels: Simulations and experiments. _Phys. Rev. B_ 50, 6006–6016 (1994). 33. Ma, H., Zheng, X., Luo, X., Yi, Y. & Yang, F. Simulation and analysis of mechanical properties of silica aerogels: From rationaliza tion to prediction. _Materials_ 11, 214 (2018). 34. Yuan, H. _et al._ 4D imaging of ZnO-coated nanoporous Al2O3 aerogels by chemically sensitive ptychographic tomography: Impli cations for designer catalysts. _ACS Appl. Nano Mater._ 4, 621–632 (2021). 35. Tannert, R. _et al._ The three-dimensional structure of flexible resorcinol-formaldehyde aerogels investigated by means of holoto mography. _J. Sol-Gel. Sci. Technol._ 84, 391–399 (2017). 36. Borzęcka, N. H., Nowak, B., Pakuła, R., Przewodzki, R. & Gac, J. M. Cellular automata modeling of silica aerogel condensation kinetics. _Gels_ 7, 50 (2021). 37. Borzęcka, N. H., Nowak, B., Gac, J. M., Głaz, T. & Bojarska, M. Kinetics of MTMS-based aerogel formation by the sol-gel method experimental results and theoretical description. _J. Non-Cryst. Solids_ 547, 120310 (2020). 38. Kang, F., Xu, Q. & Li, J. Slope reliability analysis using surrogate models via new support vector machines with swarm intelligence. _Appl. Math. Model._ 40, 6105–6120 (2016). 39. Davidson, P. & Waas, A. M. Probabilistic defect analysis of fiber reinforced composites using kriging and support vector machine based surrogates. _Compos. Struct._ 195, 186–198 (2018). 40. Kaba, S.-O. _et al._ Prediction of large magnetic moment materials with graph neural networks and random forests. _Phys. Rev. Mater._ 7, 044407 (2023). 41. Röding, M. _et al._ Three-dimensional reconstruction of porous polymer films from FIB-SEM nanotomography data using random forests. _J. Microsc._ 281, 76–86 (2021). 42. Rao, C. & Liu, Y. Three-dimensional convolutional neural network (3D-CNN) for heterogeneous material homogenization. _Comput._ _Mater. Sci._ 184, 109850 (2020). 43. Pokuri, B. S. S., Ghosal, S., Kokate, A., Sarkar, S. & Ganapathysubramanian, B. Interpretable deep learning for guided microstruc ture-property explorations in photovoltaics. _NPJ Comput. Mater._ 5, 95 (2019). 44. Pokharel, R., Pandey, A. & Scheinker, A. Physics-informed data-driven surrogate modeling for full-field 3D microstructure and micromechanical field evolution of polycrystalline materials. _JOM_ 73, 3371–3382 (2021). 45. Liu, J., Zhang, Y., Zhang, Y., Kitipornchai, S. & Yang, J. Machine learning assisted prediction of mechanical properties of graphene/ aluminium nanocomposite based on molecular dynamics simulation. _Mater. Design_ 213, 110334 (2022). 46. Lu, W., Yang, Z. & Buehler, M. J. Rapid mechanical property prediction and de novo design of three-dimensional spider webs through graph and GraphPerceiver neural networks. _J. Appl. Phys._ 132, 074703 (2022). 47. Allotey, J., Butler, K. T. & Thiyagalingam, J. Entropy-based active learning of graph neural network surrogate models for materials properties. _J. Chem. Phys._ 155, 174116 (2021). 48. Maurizi, M., Gao, C. & Berto, F. Predicting stress, strain and deformation fields in materials and structures with graph neural networks. _Sci. Rep._ 12, 21834 (2022). 49. Abdusalamov, R., Pandit, P., Milow, B., Itskov, M. & Rege, A. Machine learning-based structure–property predictions in silica aerogels. _Soft Matter_ 17, 7350–7358 (2021). 50. Aney, S., Pandit, P., Ratke, L., Milow, B. & Rege, A. On the origin of power-scaling exponents in silica aerogels. _J. Sol-Gel Sci._ _Technol._ 20, 1–8 (2023). 51. Wong, J. C., Kaymak, H., Brunner, S. & Koebel, M. M. Mechanical properties of monolithic silica aerogels made from polyethoxy disiloxanes. _Micropor. Mesopor. Mater._ 183, 23–29 (2014). 52. Ma, H.-S., Roberts, A. P., Prévost, J.-H., Jullien, R. & Scherer, G. W. Mechanical structure-property relationship of aerogels. _J._ _Non-Cryst. Solids_ 277, 127–141 (2000). 53. McDowell, R. Influence of temperature on gel formation. _Nature_ 148, 780–781 (1941). 54. Ashby, M. & Gibson, L. The mechanics of three-dimensional cellular materials. _Proc. R. Soc. Lond. Ser. A_ 382, 43 (1982). 55. Lillicrap, T. P., Hunt, J. J., Pritzel, A., Heess, N., Erez, T., Tassa, Y., Silver, D., & Wierstra, D. Continuous control with deep reinforce [ment learning. arXiv:​1509.​02971 (arXiv preprint) (2015).](http://arxiv.org/abs/1509.02971) 56. Raffin, A. _et al._ Stable-Baselines3: Reliable reinforcement learning implementations. _J. Mach. Learn. Res._ 22, 1–8 (2021). 57. Abdusalamov, R., Itskov, M., Kaplunov, J. & Prikazchikov, D. Adjustment of micro-structure parameters of aggregated structures for dynamic modeling of silica aerogels. _Mech. High-Contrast Elastic Solids_ 1, 1–11 (2023). 58. Voorhees, P. W. The theory of Ostwald ripening. _J. Stat. Phys._ 38, 231–252 (1985). 59. Silver, D., Lever, G., Heess, N., Degris, T., Wierstra, D., & Riedmiller, M. Deterministic policy gradient algorithms. In _International_ _Conference on Machine Learning_, 387–395 (2014) [60. Deep deterministic policy gradient. Deep Deterministic Policy Gradient—Spinning Up documentation. https://​spinn​ingup.​openai.​](https://spinningup.openai.com/en/latest/algorithms/ddpg.html#id1) [com/​en/​latest/​algor​ithms/​ddpg.​html#​id1. Accessed 17 May 2023.](https://spinningup.openai.com/en/latest/algorithms/ddpg.html#id1) Acknowledgements P.P and A.R would like to acknowledge the DLR project Reducing Barriers for AI in Research (ReBAR) for the funding of this research. R.A and M.I would like to acknowledge the computing resources granted by RWTH Aachen University under project rwth0898 for performing the simulations. Author contributions P.P., R.A.: conceptualisation, methodology, visualisation, data curation, writing. M.I.: supervision, resources, writing. A.R.: conceptualisation, supervision, resources, writing. Funding Open Access funding enabled and organized by Projekt DEAL. Competing interests The authors declare no competing interests. Additional information Correspondence and requests for materials should be addressed to P.P. or R.A. 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

섹션 본문 47문단 · 42,145자

Deep reinforcement learning for microstructural optimisation of silica aerogels

2Prakul Pandit 1* , Rasul Abdusalamov 2* , Mikhail Itskov 2 & Ameya Rege 1,3 Silica aerogels are being extensively studied for aerospace and transportation applications due to their diverse multifunctional properties.While their microstructural features dictate their thermal, mechanical, and acoustic properties, their accurate characterisation remains challenging due to their nanoporous morphology and the stochastic nature of gelation.In this work, a deep reinforcement learning (DRL) framework is presented to optimise silica aerogel microstructures modelled with the diffusion-limited cluster-cluster aggregation (DLCA) algorithm.For faster computations, two environments consisting of DLCA surrogate models are tested with the DRL framework for inverse microstructure design.The DRL framework is shown to effectively optimise the microstructure morphology, wherein the error of the material properties achieved is dependent upon the complexity of the environment.However, in all cases, with adequate training of the DRL agent, material microstructures with desired properties can be achieved by the framework.Thus, the methodology provides a resource-efficient means to design aerogels, offering computational advantages over experimental iterations or direct numerical solutions.

3Silica aerogels have a fascinating history dating back to 1930's, when the first 'aerogel' was synthesised by Kistler 1 .This pioneering work in the synthesis of these porous materials, in which the liquid phase is extracted from the pores of a gel, laid the foundation for the development of various types of aerogels, which are now considered to be among the lightest solid materials in use.For example, silica aerogel is synthesised by drying a silica gel and is characterised by very low density ( < 0.20 g/cm 3 ),high porosity (up to 99.98 v/v ), low thermal conductiv- ity (up to 0.01 W m −1 K −1 ), and sound velocity as low as 20.00 m s −12 .Due to such exceptional properties, the properties and potential applications of silica aerogels, including but not limited to thermal insulation, stardust collection, packaging, and biomedicine have intensively been explored 3,4 .These features, ranging from thermal conductivity to diverse mechanical and optical properties, are strongly influenced by the microstructure of the material, such as pore size distribution, particle connectivity, and specific surface area [5][6][7] .Traditional aerogel synthesis relies on recipes or trial-and-error approaches based on chemical principles, which sometimes limits the exploration of new and sustainable synthesis routes.This is also compounded by the additional lack of a comprehensive understanding of the complex structure-property relations in aerogels, making it difficult to predict the behaviour of these materials under different environmental and loading conditions.Therefore, the ability to optimise the microstructure of silica aerogels through targeted synthesis and, in turn, to tailor their properties for a given application remains a significant challenge.

4In the last decade, deep learning and artificial intelligence (AI) approaches have gained significant attention in several domains such as image processing 8 , optimisation problems 9 , or even general game playing 10 .Recently, the influence of AI has also spread to the natural sciences, especially engineering, physics, materials science, or even chemistry 11 .In particular, large amount of data makes it possible to pursue new approaches, e.g., the prediction of protein folding 12 , the description of material behaviour [13][14][15] , microstructure optimisation 16,17 , or even the discovery of materials with novel properties [18][19][20] .Moreover, in the field of porous materials, datadriven approaches have been utilised also for rapid material characterisation, to enable accelerated materials synthesis 21,22 .In addition to such data-driven applications, reinforcement learning is being utilised to develop self-learning laboratories for autonomous exploration of advanced materials 23 .This aspect of designing and developing novel materials leads to huge opportunities for the future.Moreover, the application of deep learning is limited not only to materials but has also been applied in the development of meta-materials.Recently, deep learning methods for the structure-property map inversion of truss meta-materials have been reported 24 .In the context of meta-materials with nature-inspired architectures, an unsupervised generative adversarial model was developed to design, model, and print 3D structures for diverse applications 25 .

5With the aim of describing the complex structure-property relations in silica aerogels, several reports on their computational modelling have been communicated in the literature, particularly with, molecular dynamics [27][28][29][30] , coarse-grained simulations [31][32][33] as well based on tomographic imaging through CT-scans 34,35 .A computational model can be defined to be a digital twin of any material, only when the model accurately describes the physical and chemical characteristics on a multi-dimensional scale.Thus, it is essential to model not only the morphology but also the chemical kinetics of the formation of the gelled structure.On a coarse-grained scale of silica aerogels, the diffusion limited cluster-cluster aggregation (DLCA) algorithm has been shown to effectively model the structural morphology 32 and also their mechanical behaviour 31 .For example, in Fig. 1a a hierarchical clustered network morphology of a silica aerogel sample observed under a scanning electron microscope (SEM) is represented.Figure 1b visualises its corresponding computational parallel, generated through stacking of 2D slices of DLCA structures.Moreover, it has also been shown to qualitatively describe the gelation kinetics post the nucleation of the secondary particles during the sol-gel process 36,37 .Thus, the DLCA models, if optimised, present the opportunity to be extrapolated for the controlled synthesis of silica aerogel in an automated deeplearning laboratory, while expediting the process and facilitating the discovery of more efficient and sustainable aerogel synthesis pathways.

6All modelling approaches have a common process characteristic: they require considerable computation times.Therefore, it is a major computational challenge to investigate how certain input parameters influence the mechanical properties of the generated aggregated structures.Usually, to this end, an exhaustive search is performed, to generate a tailored structure to fit the desired properties.Machine learning (ML) approaches can significantly contribute to improving this process by acting as surrogate models for property predictions.Different ML modes such as support vector machine (SVM) 38,39 , random forest 40,41 , convolutional neural networks (CNNs) [42][43][44] , multi-layer perceptrons (MLP) 45 , and graph-based neural networks [46][47][48] have been adopted as surrogate models to relate the microstructures or microstructural features into the material properties in many applications.In the context of silica aerogels, as an extension of the inversed design method presented in 49 , this work explores the combination of random forests with reinforcement learning for performing microstructural optimisation of silica aerogels.Thereby, a deterministic type agent performs actions in the design environments to achieve a maximum reward.By specifying the inputs of the DLCA method as actions and the fractality as well as the mechanical properties as states, a tailored aggregated structure can be generated.However, here the key question arises as to which of the several properties of silica aerogels should be optimised.While silica aerogels are primarily investigated as thermal insulators, choosing thermal conductivity would be the quintessential choice.However, it has been thoroughly investigated in the past decades.What remains fascinating is to simultaneously improve their mechanical characteristics.In this work, the main objective is to investigate their elastic modulus (E) as well as their fractal characteristics, based on fractal dimension (f d ) .A key objective is to improve the mechanical strength of aerogels by understanding their microstructure, enabling aerogels to withstand loads without collapsing or breaking.The inter particle connectivity of the microstructure has a crucial influence on the overall macroscale behaviour 50 .

7The paper is organized as follows.The results of the data generation, the surrogate model prediction of material properties, and also the inverse design with the DRL framework are presented in "Results".A general discussion and outlook of the research is presented in "Discussion", followed by the methodology of generating the data and a detailed description of the development and application of the DRL framework in "Methods".

Results

8This section presents the data generation through DLCA algorithm and its pre-processing results as well as results on the microstructure optimisation with DRL.

Data generation and analysis

9In the present study, for the development of the DRL framework, a total of 1708 aggregates were generated using the DLCA algorithm developed in Matlab.To analyze their mechanical response, these aggregated microstructures were simulated under 10.00% compressive strain in Abaqus.More details about the finite element simula- tions can be found in "Finite elements simulations of representative volume elements".While the initial pool of aggregates was larger, convergence errors in conjunction with shorter elements along with the lack of formation of a backbone structure resulted in only realising 1708 meaningful simulations.This was an expected outcome, due to the randomness involved in the DLCA algorithm and the wide range of inputs provided for the generation of the data set.This resulted in structures with fewer cluster-cluster interactions, leading to localised cluster formation, which in turn led to the absence of backbone formation in certain cases.The representative volume elements (RVE)s lacking backbones are non-physical and were therefore not considered for the training data, as silica aerogels always exhibit a load-bearing backbone when exposed to compressive forces.Exemplary aggregated structures for the concentrations of c 1 = 10.00% , c 2 = 8.75% , c 3 = 7.50% and c 4 = 6, 25% are depicted in Fig. 2a.Here, r denotes the particle radius, s s and s w are the step sizes of seeds and walkers.The general 3D network of the aggregated structure together with a cross-section visualisation is shown in the center.Additionally, the RVE compression simulations up to 10.00% are visualised along with their mechanical response for the different concentrations.Figure 2b demonstrates the influence of the concentration on the mechanical behaviour.It can be observed that increasing the concentration enhances the stiffness of the aerogel model.This seems reasonable enough following the scaling behaviour observed typically in porous materials.Furthermore, the influence of skeletal Young's modulus is visualised for the aggregated structure of concentration c 3 (see Fig. 2c).It can be seen that the stiffness of the beam elements increases directly in a linear fashion with increasing E S,3 .The validation of the beam element Young modulus can be performed experimentally by calculating skeletal Young's modulus of the silica aerogel.This increase is justified since amongst the three modes of deformation, bending contributes at most to stresses in silica aerogels and within the elastic regime, the bending stress is proportional to Youngs's modulus as shown by Ma et al. 52 .

10As discussed in "Introduction", the DLCA model can be defined as a digital twin only after multi-dimensional validation of the material morphology and chemical kinetics.To this extent, the Fig. 2d describes the validation of the scaling exponent of the elastic modulus of the silica aerogel microstructure modelled with DLCA algorithm.The exponent of 3.95 (calculated for different concentrations of aggregates with r = 3.00 nm , s s = 0.30 nm and s w = 0.30 nm ) in this study closely aligns with the exponent of 3.80 obtained from experimental measurements.Moreover, it can be seen in Fig. 2e, that the DLCA gelation kinetics qualitatively describes the post-nucleation sol-gel growth of the structure.For the computational model, these kinetics is influenced by the step size of the walkers (explained in "Methods"): the higher the step size, the faster the growth.Thus the step size is a numerical construct of the influence of temperature on the secondary particles.

11The data set generated from DLCA and its mechanical simulations was cleaned to remove variance for training of the property predictor.The variance is introduced into the system due to the randomness involved in the DLCA process.As such, the converged 1708 samples were averaged over each sample, thus leading to a final data set of 200 structures.The training data set is described with a box plot in Fig. 3a.It was observed that the averaging helps to remove several outliers from the training data set, thus enabling accurate regression analysis by the surrogate model.

12To understand the correlation between the DLCA parameters and material properties of the generated aggregates as well as the mechanical response, a correlation matrix was calculated, and is illustrated in Fig. 3b.It is immediately apparent that both particle step sizes have nearly no effect on any other parameter.This can be explained by the fact that the step size is a mathematical construct to model the influence of temperature in the gelation process, and as such it only affects the time of gelation in sol-gel processes 53 .Note that the particle position is additionally adjusted during aggregation to prevent particle overlap.This is a helpful step to avoid very small elements, such that the distance of the aggregated particles is exactly equal to the sum of the radii.As already known from literature there exists a positive correlation between the elastic modulus E and the concentration c 54 , which can be itself validated from the correlation matrix.The concentration has also a positive correlation with the fractality.Furthermore, the analysis of the matrix reveals an inverse relationship between the radius and the elastic modulus.One other interesting observation is that the correlation between the elastic modulus E and the graph network density ψ is negative.This leads to the assumption that as the number of net- work connections increases, the number of cluster localisations grows, implying that fewer particles can actually contribute to the backbone structure.

Microstructure optimisation with DRL framework

13To reduce computational resources utilised, a surrogate model/property predictor was developed to replace the finite element method (FEM) simulations while performing the inverse design in the DRL framework.The pre-processed data as discussed in "Data generation and analysis" was utilized to train a random forest algorithm as the surrogate model for predicting the material properties directly from the DLCA parameters and the graph density.The pre-processed data was split into training ( 90.00% ) and testing sets ( 10.00% ), so as to avoid information leak during normalisation from the training set to the data set utilised for validation.These sets were then individually normalised between (− 1,1).The property predictor was evaluated on the basis of the mean absolute error (MAE) metrics.To achieve the best metric, the hyper-parameters were tuned with a 'bruteforce' approach.The trained surrogate model was validated on the test data set and had a R 2 score of 0.94.These validation results over the test set can be seen in Fig. 4a,b.Further details of the random forest architecture are discussed in "Numerical surrogate environment".

14The deep deterministic policy gradient (DDPG) algorithm 55 coded in the Stablebaselines3 framework 56 was utilised to perform the inverse microstructure optimisation over a custom DLCA environment (the details of the environment along with the reward function shaping is explained in "Reinforcement learning framework").The schematic representation of the DDPG agent working in combination with the environment for the DRL framework can be seen in Fig. 4c.The DRL inverse optimisation problem was tested with respect to two difficulty levels: the 'low-complexity scenario' , wherein the DDPG model was trained over a single combination of target material features and a 'high-complexity scenario' wherein the trained DDPG model was trained over different target material features possible in the production scenario in each episode to achieve generalisability during the production cycle.As compared to a single target learning problem, this increases the complexity involved in learning the Q-function, however, enables the deployment of a single agent for synthesising silica aerogels with diverse properties.In both environments, the DDPG agent learns a policy to maximise the average episodic reward to solve the environment (see "Reinforcement learning framework" for more details).For the 'low-complexity' training case, the environment was defined to have material property constant over all episodes.This enabled faster training of the agent to achieve optimised structures at the expense of generalisability.

15To achieve the optimal inverse design with the DDPG agent in this environment, the DDPG hyperparameters were tuned with Optuna over 100 trials for different combinations.The agent hyperparameters were selected based on the highest episodic mean reward received.The critic and actor loss of the DDPG agent based on the best-selected hyperparameters in the low-complexity environment are shown in Fig. 4d. Figure 4e describes the average episodic reward for the 'low complexity' environment.It can be observed that in the initial training epochs, the agent achieves negative rewards based on the reward function defined (explained in "Numerical surrogate environment").However, as it learns from its experience by interacting with the environment over the training time, the reward increases gradually towards the maximum, indicating that the agent can take actions (DLCA parameters) to solve the provided environment for the desired states ( E, f d ) .Thus these achieved actions from the trained agent at the end of training, provide the user with the optimised microstructure for the desired material properties.To validate the results from the DRL framework, the microstructures with returned actions were regenerated with DLCA and analysed with FEM.In Fig. 5a-c, selective results of the output of the optimised microstructure based on the constant target property environment are presented.It can be observed that the agent effectively optimises the silica aerogel microstructure and predicts the exact DLCA model parameters which would provide the target properties.These structures are accurate to an MAE of about 1.00% for cases existing in the training data, however on interpolating the material features and as such exploring material properties unseen by the framework during the training phase, results in microstructures with average MAE of approx 10.00% .The training over single material targets allows quicker training times and easy deployment, as accurate optimisations can be achieved after training the agent for 10,000 epochs.Due to the single material property optimised, the episodic length remains constant, which simplifies the learning process.However, to optimise silica aerogels with diverse properties, retraining the agent in a similar environment but with different targets would be necessary.

16To solve this problem of retraining the agent each time, a second environment for material optimisation was developed.What differentiates these environments is the definition of the target properties (more details in "Methods").For each episode, the agent learns how to achieve a different material property, wherein these material properties are sourced from all the possible combinations possible in the material production and can be inputted by the user, thus making it a 'higher-complexity' problem.Due to this increase in the complexity of the environment, the agent requires more training epochs to achieve convergence.Accordingly, based on the hyper-parameter optimisation with Optuna, the agent converged with highest mean episodic reward after training for 125,000 epochs.Moreover, the length of each upside is also not constant due to the switch of the material properties over the training period of each episode.It is important to consider that a higher number of training epochs is required to train the 'high-complexity' environment, to get a similar accuracy as the 'lowcomplexity' environment.Figure 5d-f visualises some of the selective structures optimised through the general environment with switching material properties over episodes.For most of the required structures, the RL agent achieves the inverse design by optimising the parameters of the DLCA parameters with an MAE of about 6.00% .However, it was also observed that certain material properties optimised were in a range of about 15.00-25.00%MAE, which is due to the diverse targets experienced by the agent over the number of episodes.This can mostly be related to the higher variance experienced in the FEM simulations, which in turn required an averaged data Vol:.(1234567890

Discussion

17Silica aerogels exhibit an unearthed potential for diverse applications, making their reverse synthesis for targeted applications critical.The computational design of silica aerogels with improved strength is a challenging task owing to the complexities of their microstructure.The DRL framework presented above aims to solve this task.

18The main goal of this research is to design tailored silica aerogel microstructures by utilising the DLCA algorithm for targeted applications.Previous works by our group have focused on ANN based approaches, to perform an inverse structure-property mapping.However, the problem of non-uniqueness appeared to be non-trivial.To overcome this challenge, reinforcement learning techniques are therefore explored.A deterministic algorithm is trained over two environments of varied complexity.What differentiates a deterministic policy algorithm is that it chooses a single action for each state, while a stochastic policy selects from a probability distribution over actions for each state.For the goal of reverse engineering, the DLCA method in combination with FE simulations is used for the data generation.The generated data provides insight into the correlation between the structural and mechanical parameters.The importance of the correlation between concentration and Young's modulus known from the literature was affirmed.In addition, an interesting observation regarding the effect of network connectivity on the elastic modulus can be found.Accordingly, localised connections weaken the existing backbone structure.Although trained over a limited data set, the proposed RL framework can identify targeted mechanical and structural parameters.The approach has been tested for two levels of complexity, resulting in an average MAE of 10.00% depending upon the complexity of the environment.A key observation is the ability to generalise over a continuous input space from comparatively few data points to obtain satisfactory results.Nevertheless, the current approach of reverse engineering is limited only to the elastic modulus and the fractality of the silica aerogels.Certainly, the extension to thermal and acoustic simulations for tailoring further properties directly be achieved in the basis of existing micromechanical models 57 .To account for potential biases or uncertainties, it remains important to improve the training data set.Potential improvements can also be made by the FE technique.This work illustrates a potential solution for a significant improvement of the mechanical properties of silica aerogels by providing a deeper understanding of the micro structural relations and their influence on macroscale properties.The presented research is a first step towards tailor-developing silica aerogels, with the potential for expansion through the incorporation of digital twins emulating the multi-scale behavior of aerogels.This work in itself must not be seen as a direct tool for reverse engineering silica aerogels.Primarily, this approach opens applications for inverse designing aerogels, using DRL to control synthesis process conditions as actions (such as chemical precursors, acid concentration, and reaction temperature).Beyond microstructure optimisation, the application of DRL extends to metamaterials.In this context, the DRL framework can be trained to predict topological features as actions to attain specific material properties as states.This DRL framework is directly applicable in realising (meta)-material microstructures through manufacturing processes like additive manufacturing and 3D printing.Consequently, it provides a resource-efficient means to design aerogels, offering computational advantages over experimental iterations or direct numerical solutions.This approach has the potential to significantly reduce the time and cost associated with developing novel aerogel material structures.

Methods

19There are two main methodological aspects involved in this work for the optimisation of the silica aerogels: the computational modelling and simulation of aggregated structures and the development of a DRL framework to solve an optimisation problem generating a target microstructural morphology.In "Computational modelling and mechanical simulation of the silica aerogel microstructure", the generation of the silica aerogel microstructure and the mechanical simulations of the RVEs using FEM are discussed.The fundamentals of DRL using a deterministic policy gradient are presented in "Reinforcement learning framework".

Computational modelling and mechanical simulation of the silica aerogel microstructure

20An initial data set is required to effectively model the morphological and mechanical properties of the microstructure.The inverse prediction is based on the desired elastic modulus and fractal dimension, reflecting the geometric and mechanical characteristics of silica aerogels.To this end, the DLCA algorithm is utilised to create computational silica aerogel microstructures.

Diffusion-limited cluster-cluster aggregation method

21As discussed in "Introduction", the DLCA algorithm has been extensively researched for computational modelling of silica aerogel microstructures.Hasmy et al. 32 showed that structures generated by DLCA matched closely with the small angle neutron scattering (SANS) data for silica aerogels.The starting point of this algorithm is a box with periodic boundary conditions where a total number of N all = N S + N W of seeds and walker particles are initialized (see Fig. 6 for a 3D visualization).These particles can be placed randomly or in an arranged way within the box.In this example the particles are initialized on random points and they can move freely and periodically according to the random walk theory.For this purpose a seed and walker step size, s S and s W , are defined.With time, all the walkers diffuse to the seeds and clusters are formed.As soon as two particles of two different clusters exceed a critical distance the two clusters are connected to form one single cluster.The algorithm continues until only one periodically spanning network remains in the system, representing the microstructure of the aerogel.This algorithm was adapted by Abdusalamov et al. 31 and comparable results in terms of scaling relationships between simulations and experimental results were obtained.A slightly modified DLCA model was developed for this paper as a continuation of the latter work: the random walk process was redefined allowing all particles to move based on a spherical walk.In addition, overlaps of particles are prohibited and corrected at the first aggregation.While this overlap can be considered in the models to describe effects of Oswald ripening 58 in silica aerogels, their elimination helps to simplify the FEM process and avoid convergence issues.The projection of the particle is adjusted based on the connection vector between two particle positions, ensuring that the connection length equals the sum of both particle radii.The algorithm inputs are the particle radius r, the step sizes of seeds s s and walkers s w , the relative density c for a constant RVE domain size of 200.00 nm .Refer to Fig. 6 for a visualisation of the general process of the DLCA algorithm.

Finite elements simulations of representative volume elements

22FEM was utilised to describe the mechanical properties of the generated aggregated structures.Based on the DLCA algorithm the particle positions and connections were extracted.In order to perform an FEM simulation, an RVE was generated for each aggregated structure.Thereby, the dimensions of the RVE corresponded to the dimensions of the DLCA simulation box.In addition, periodic boundary conditions were applied 31 .Accordingly, each bounding surface of the RVE was used to generate additional nodes for connections over the boundary.Note that all particles are modeled as nodes, while the connections are exported as beam elements.The simulations are performed in Abaqus using the linear B31 element formulation based on the Timoshenko beam theory.This formulation guarantees that all three types of bond deformations are considered: bending, torsion, and stretching.Young's modulus and Poisson's ratio of each beam are taken have been provided in literature for silica aerogels 33 with E S = 10.00MPa and ν = 0.29 .For this work, the Young's modulus of each beam was determined through a correlation to experimental data as E S = 6.95 kPa .To ensure that compression is symmetric with respect to the centre, additional points in the centre of the RVE are fixed.However, to eliminate convergence issues in the www.nature.com/scientificreports/process of data generation, unlike in previous works, the contact between all beam elements is not taken into account.As the RVE is only compressed up to 10.00% , no significant contact between the beams occurs and therefore no effect on the initial stiffness response is noticeable.The simulations are generated as input decks in Matlab and executed for uniaxial compression in Abaqus.The deformation as well as the force response are exported to analyse the mechanical properties of the aggregated silica aerogel structures.

Graph density for microstructural connectivity

23Connectivity plays a pivotal role in understanding elastic behaviour of porous materials, offering critical insights into the relationship between microstructure and mechanical properties.Power law exponents (E ∝ ρ m ) describe the connection between the mechanical behaviour of materials and their density.High connectivity within the material significantly influences the elastic modulus and other mechanical attributes.Increased connectivity in the microstructure leads to a lower power exponent due to enhanced load distribution capacity, whereas decreased connectivity results in a higher power law exponent resulting from the formation of backbone paths, indicating greater sensitivity to changes in porosity and structural disorder.Graph theory can be utilised for quantifying the connectivity of porous materials.One such metric is the density of a graph.For a graph, its density ( ψ ) is defined as:

24where |E| and |V| represent the number of edges and nodes in the graph, respectively.For calculation of the graph density and the microstructural connectivity, the particles of the DLCA model were exported as nodes and their respective bonds as edges using the NetworkX package.Incorporating graph density as a quantitative metric enhances the precision of characterising the connectivity-dependent elastic behaviour of porous materials, facilitating comparative analysis between the optimised to desired microstructures.

Reinforcement learning framework

25Reinforcement learning is a closed-loop ML technique that deals with understanding how an agent interacts in an environment (real or simulated) to achieve desired goals.In this process, an intelligent agent performs actions to achieve maximum feedback in the form of a reward.During this process, the agent interacts with the environment trying to adjust, identify and learn the most suitable actions making a trade-off between exploration and exploitation.An RL framework is commonly described based on the Markov decision process and consists of:

26(1) • a set of states s for states S,

27• a set of actions a taken for actions A,

28• transition probabilities P(s ′ | s, a) from a state s to a state s ′ for an action a,

29• as well as the reward r for the transition from state s to a state s ′ for an action a.

30A reward is a measure of how successful the actions of the agent were with respect to the desired state.In this work, a deterministic policy gradient algorithm was employed on a custom DLCA environment and will shortly be discussed in the following section.

Deterministic policy gradient algorithms

31In general, both deterministic and stochastic policy gradient-based algorithms can be used for continuous action spaces.However, stochastic policies suffer from a major difficulty, which is the lack of computational efficiency due to the computation of a parametric probability distribution responsible for the stochastic selection of actions 59 .Stochastic policy gradients rely on integration over state and action spaces, resulting in a larger number of training samples.In the case of deterministic policies, the integration is only performed over the state space.

32Although the action space for the inverse mapping is not high dimensional, DDPG allows sufficient exploration of the action space while still learning the deterministic target policy.As stated in 59,60 the DDPG algorithm consists of two components: an actor and a critic network.The actor learns a deterministic policy µ(s) that maps states to actions, while the critic learns an action-value function Q * (s ′ , a) that estimates the expected return of follow- ing the actor's policy from a given state.The action-value function, also called the Q function is calculated as:

33where �•� ′ represents the transition to the next state or action, where s ′ is sampled by the environment from a probability distribution P(• | s, a) and γ is the discount factor.Equation ( 2) is the starting point for learning an approximator to Q * (s, a) .This approximator is often modelled in the form of a neural network with parameters φ , which have to be optimised through the evaluation of two target networks with respect to the mean-squared Bellman error (MSBE).This leads to the evaluation of the target value y(r, s ′ , d) given by: where d is the boolean indicating whether s ′ is terminal or not.Based on this calculated target value, the action- value function can be updated as:

34which in turn is used to calculate the step-wise policy gradient given by: where B is the batch of transitions from a replay buffer D .The target network hyperparameters are updated based on the Polyak averaging where ρ is a hyperparameter ranging between 0 and 1.

Numerical surrogate environment

35The DRL framework consists of two different complexities.The 'low-complexity' environment has the same material property over all training episodes, which are provided by the user as an input.While the 'high-complexity' environment switches the target material properties at the end of each episode.These material properties are provided by the user and take into account all possible material features that can exist based on the test data set from the surrogate model.The inputs to the DLCA algorithm act as actions within the framework, while the target material properties are the expected states obtained from these actions.These action ranges were as follows: r ∈ [2.5, 3.5], ρ ∈ [0.05, 0.1], s s ∈ [0.1, 0.5], s w ∈ [0.1, 0.5] .Furthermore, from the generated aggregate structures we can calculate the graph network density ψ ∈ 1.67 × 10 −4 , 7.27 × 10 −4 , which act as an additional action to validate the inversely generated microstructures.The graph density gives a measure of the total connections present in the aggregated structure and is calculated as a ratio of the total number of connections by the total number of possible connections between the nodes, wherein each particle is considered as a node and the interparticle bond as the connection.Due to the sparse nature of bonds formed in DLCA, we observe such low values of ψ .We also limit the observation space for the material outputs, i.e. the fractality d f ∈ [2.45, 2.75] and elastic modulus E ∈ [1.00 kPa, 930 kPa] , so that feasible and experimentally validated solutions can be guaranteed.A random forest is used as a surrogate model to avoid the high computational and time requirements of iterative training with FEM during microstructure optimisation.This surrogate model is separately trained using supervised learning based on offline generated data from the compression simulation of the RVEs.The random forest consists of five input nodes, i.e. the model parameters of the DLCA, the graph density ( ψ ), and

36(2) two outputs, i.e. the fractal dimension and the elastic modulus.In the context of DRL, we examine a framework that confronts an inverse optimization problem, differentiating between two distinct scenarios, namely the 'lowcomplexity' and 'high-complexity' environments.In the 'low-complexity' environment, the DDPG agent is tasked with optimizing a fixed set of target material properties (E, fd) , as provided by the user.In this setting, the target material properties remain fixed throughout episodes, and the DDPG agent strives to maximize the cumulative reward by optimising the specified material properties over a constant episode length.

37In contrast, the 'high-complexity' environment presents a more dynamic challenge.Here, the agent is required to optimise a diverse range of target material properties, with each episode introducing a novel set of properties.Unlike the 'low-complexity' setting, the target material properties vary from one episode to the next, leading to a more challenging and dynamic task.Furthermore, the episode length can vary depending on the specific target properties, adding an element of unpredictability.This nuanced differentiation between 'low-complexity' and 'high-complexity' environments within the DRL framework enables the exploration of adaptive solutions for diverse optimisation problems.For training of DDPG on 'high-complexity' environment, each episode was set with terminal condition of 700 training epochs or if the average reward achieved per episode was more than − 0.05 (normalised).If the terminal condition is met, the episode resets to a new target material property and the training continues.During these episodes, in both of the environments, the surrogate model predicts the states achieved for a set of actions sampled from the replay buffer at every epoch.To train the RL agent, and to achieve deterministic optimised actions for the desired states, an episodic reward signal based on relative error was defined as: where s T (f d , E) is the target material state and the s(f d , E) is the states predicted by the surrogate model for the set of actions taken.

Figure 1 .

38Figure 1.(a) A transmission electron microscopy (TEM) image of silica aerogel from 26 .(b) Voxelised computational reconstruction from DLCA models to show the DLCA microstructure morphology in 2D.

Figure 2 .

39Figure 2. (a)Visualisation of four aggregated structures for different concentrations, showing the 3D particles, a visualisation of the cross-section in the center, and the compression tests from FE simulations.In addition, the (b) shows the stress-strain response for the four concentrations including a comparison to literature data51 .The influence of the varying modulus of elasticity of each beam element is also shown for the aggregated structure of concentration c 3 in (c).The comparison of the scaling exponent of the elastic modulus from the DLCA computational results to the experimental data 31 in (d) and the gelation kinetics of DLCA to experimental data37 in (e) are visualised.

Figure 3 .

40Figure 3. (a) Boxplot visualisation of the training dataset's target properties E and f d after data pre-processing.(b) Correlation matrix between the particle radius r, the concentration c, the seed step size s s , the walker step size s w , the fractal dimension f d , the elastic modulus E and the graph network density ψ.

Figure 4 .

41Figure 4. (a,b) Comparison of predicted vs actual material properties for the random forest model over the test set.(c) Schematic visualisation of the DRL framework with an agent trained over the environment.(d) The actor and the critic loss during the training process of the DRL agent in the 'low-complexity' environment.(e) Mean episodic award over the training.

Figure 5 .

42Figure 5. Optimisation of the microstructures with DRL and their validation: visualisation of some selective optimised structures based on desired target properties in the (a-c) specific-defined 'low-complexity' environmentand (d-f) in the generalised 'high-complexity' environment.To validate the results through the RL approach the specified DLCA algorithm inputs were determined and the resulting structures for both environments were validated by microstructure generation with DLCA and their subsequent FEM analysis.

43https://doi.org/10.1038/s41598-024-51341-y

Figure 6 .

44Figure 6.Visualisation of the DLCA algorithm.(a) Walkers (blue) and seeds (yellow) initialized in the domain.(b-e) Walkers diffuse towards the seeds and aggregate together to form a cluster on reaching a critical distance ǫ .(f) Final aggregated structure after all the walkers and seeds connect to form a domain-spanning aggregate.

∇ φ 1 |

45B | (s,a,r * ,s ′ ,d)∈B Q φ (s, a) − y(r, s ′ , d) a,r,s ′ ,d)∈B Q(s, µ θ (s)),(6)φ targ ← ρφ targ + (1 − ρ)φ,

46f d , E) − s(f d , E)

47set to be utilised for training.This also effects the generalisability of the surrogate model over outlying material targets.This lack of training data persists in the 'high-complexity' scenario, wherein the DRL framework is not able to build generalised training history in the replay buffer.

48) Scientific Reports | (2024) 14:1511 | https://doi.org/10.1038/s41598-024-51341-ywww.nature.com/scientificreports/

참고문헌 55건

  1. Computer aided diagnosis based on medical image processing and artificial intelligence methods Nuclear Instruments and Methods in Physics Research Section A Accelerators Spectrometers Detectors and Associated Equipment · Elsevier BV · 2006 10.1016/j.nima.2006.08.134
  2. Small-angle neutron-scattering investigation of long-range correlations in silica aerogels: Simulations and experiments Physical review. B, Condensed matter · American Physical Society · 1994 10.1103/physrevb.50.6006
  3. The mechanics of three-dimensional cellular materials Proceedings of the Royal Society of London A Mathematical and Physical Sciences · Royal Society · 1982 10.1098/rspa.1982.0088
  4. The theory of Ostwald ripening Journal of Statistical Physics · Springer Science+Business Media · 1985 10.1007/bf01017860
  5. Structure and mechanical properties of silica aerogels and xerogels modeled by molecular dynamics simulation Journal of Non-Crystalline Solids · Elsevier BV · 2010 10.1016/j.jnoncrysol.2010.03.019
  6. Scaling properties and structure of aerogels Journal of Sol-Gel Science and Technology · Springer Science+Business Media · 1997 10.1007/bf02436938
  7. Coherent Expanded Aerogels and Jellies Nature · Nature Portfolio · 1931 10.1038/127741a0
  8. Silica aerogel; synthesis, properties and characterization Journal of Materials Processing Technology · Elsevier BV · 2007 10.1016/j.jmatprotec.2007.10.060
  9. Mechanical structure–property relationship of aerogels Journal of Non-Crystalline Solids · Elsevier BV · 2000 10.1016/s0022-3093(00)00288-x
  10. Mechanical properties of monolithic silica aerogels made from polyethoxydisiloxanes Microporous and Mesoporous Materials · Elsevier BV · 2013 10.1016/j.micromeso.2013.08.029
  11. Influence of Temperature on Gel Formation Nature · Nature Portfolio · 1941 10.1038/148780b0
  12. Molecular dynamics computer simulations of silica aerogels Journal of Non-Crystalline Solids · Elsevier BV · 1995 10.1016/0022-3093(95)00042-9
  13. Human-level control through deep reinforcement learning Nature · Nature Portfolio · 2015 10.1038/nature14236
  14. Mechanical Properties and Brittle Behavior of Silica Aerogels Gels · Multidisciplinary Digital Publishing Institute · 2015 10.3390/gels1020256
  15. Slope reliability analysis using surrogate models via new support vector machines with swarm intelligence Applied Mathematical Modelling · Elsevier BV · 2016 10.1016/j.apm.2016.01.050
  16. The three-dimensional structure of flexible resorcinol-formaldehyde aerogels investigated by means of holotomography Journal of Sol-Gel Science and Technology · Springer Science+Business Media · 2017 10.1007/s10971-017-4363-6
  17. Mechanics of Nanostructured Porous Silica Aerogel Resulting from Molecular Dynamics Simulations The Journal of Physical Chemistry B · American Chemical Society · 2017 10.1021/acs.jpcb.7b03184
  18. Materials discovery and design using machine learning Journal of Materiomics · Elsevier BV · 2017 10.1016/j.jmat.2017.08.002
  19. Aerogel production: Current status, research directions, and future opportunities The Journal of Supercritical Fluids · Elsevier BV · 2017 10.1016/j.supflu.2017.12.037
  20. Elasticity and strength of silica aerogels: A molecular dynamics study on large volumes Acta Materialia · Elsevier BV · 2017 10.1016/j.actamat.2017.12.005
  21. Simulation and Analysis of Mechanical Properties of Silica Aerogels: From Rationalization to Prediction Materials · Multidisciplinary Digital Publishing Institute · 2018 10.3390/ma11020214
  22. Probabilistic defect analysis of fiber reinforced composites using kriging and support vector machine based surrogates Composite Structures · Elsevier BV · 2018 10.1016/j.compstruct.2018.03.007
  23. Physics-informed neural networks: A deep learning framework for solving forward and inverse problems involving nonlinear partial differential equations Journal of Computational Physics · Elsevier BV · 2018 10.1016/j.jcp.2018.10.045
  24. Modeling Macroscopic Material Behavior With Machine Learning Algorithms Trained by Micromechanical Simulations Frontiers in Materials · Frontiers Media · 2019 10.3389/fmats.2019.00181
  25. Interpretable deep learning for guided microstructure-property explorations in photovoltaics npj Computational Materials · Nature Portfolio · 2019 10.1038/s41524-019-0231-y
  26. DeePore: A deep learning workflow for rapid and comprehensive characterization of porous materials Advances in Water Resources · Elsevier BV · 2020 10.1016/j.advwatres.2020.103787
  27. Three-dimensional convolutional neural network (3D-CNN) for heterogeneous material homogenization Computational Materials Science · Elsevier BV · 2020 10.1016/j.commatsci.2020.109850
  28. Kinetics of MTMS-based aerogel formation by the sol-gel method - experimental results and theoretical description Journal of Non-Crystalline Solids · Elsevier BV · 2020 10.1016/j.jnoncrysol.2020.120310
  29. Three‐dimensional reconstruction of porous polymer films from FIB‐SEM nanotomography data using random forests Journal of Microscopy · Wiley · 2020 10.1111/jmi.12950
  30. 4D Imaging of ZnO-Coated Nanoporous Al<sub>2</sub>O<sub>3</sub> Aerogels by Chemically Sensitive Ptychographic Tomography: Implications for Designer Catalysts ACS Applied Nano Materials · American Chemical Society · 2021 10.1021/acsanm.0c02924
  31. Modeling and Simulation of the Aggregation and the Structural and Mechanical Properties of Silica Aerogels The Journal of Physical Chemistry B · American Chemical Society · 2021 10.1021/acs.jpcb.0c10311
  32. Cellular Automata Modeling of Silica Aerogel Condensation Kinetics Gels · Multidisciplinary Digital Publishing Institute · 2021 10.3390/gels7020050
  33. An Overview of Machine Learning-Based Techniques for Solving Optimization Problems in Communications and Signal Processing IEEE Access · Institute of Electrical and Electronics Engineers · 2021 10.1109/access.2021.3079639
  34. Machine learning-based structure–property predictions in silica aerogels Soft Matter · Royal Society of Chemistry · 2021 10.1039/d1sm00307k
  35. Highly accurate protein structure prediction with AlphaFold Nature · Nature Portfolio · 2021 10.1038/s41586-021-03819-2
  36. Physics-Informed Data-Driven Surrogate Modeling for Full-Field 3D Microstructure and Micromechanical Field Evolution of Polycrystalline Materials JOM · Springer Science+Business Media · 2021 10.1007/s11837-021-04889-3
  37. Machine learning and microstructure design of polymer nanocomposites for energy storage application High Voltage · Institution of Engineering and Technology · 2021 10.1049/hve2.12152
  38. Entropy-based active learning of graph neural network surrogate models for materials properties ePubs (Science and Technology Facilities Council, Research Councils UK) · Science and Technology Facilities Council · 2021 10.1063/5.0065694
  39. Stable-Baselines3: Reliable Reinforcement Learning Implementations Journal of Machine Learning Research · The MIT Press · 2021
  40. Prediction of large magnetic moment materials with graph neural networks and random forests Physical Review Materials · American Physical Society · 2023 10.1103/physrevmaterials.7.044407
  41. Machine learning assisted prediction of mechanical properties of graphene/aluminium nanocomposite based on molecular dynamics simulation Materials & Design · Elsevier BV · 2021 10.1016/j.matdes.2021.110334
  42. Inverting the structure–property map of truss metamaterials by deep learning Proceedings of the National Academy of Sciences · National Academy of Sciences · 2021 10.1073/pnas.2111505119
  43. Aerogel applications Journal of Non-Crystalline Solids · Elsevier BV · 1998 10.1016/s0022-3093(98)00135-5
  44. Aerogels Handbook Springer eBooks · Springer Nature · 2011 10.1007/978-1-4419-7589-8
  45. Rapid mechanical property prediction and <i>de novo</i> design of three-dimensional spider webs through graph and GraphPerceiver neural networks Journal of Applied Physics · American Institute of Physics · 2022 10.1063/5.0097589
  46. A Perspective on Methods to Computationally Design the Morphology of Aerogels Advanced Engineering Materials · Wiley · 2022 10.1002/adem.202201097
  47. A new family of Constitutive Artificial Neural Networks towards automated model discovery Computer Methods in Applied Mechanics and Engineering · Elsevier BV · 2022 10.1016/j.cma.2022.115731
  48. Nature-inspired architected materials using unsupervised deep learning Communications Engineering · 2022 10.1038/s44172-022-00037-0
  49. Predicting stress, strain and deformation fields in materials and structures with graph neural networks Scientific Reports · Nature Portfolio · 2022 10.1038/s41598-022-26424-3
  50. An artificial neural network for surrogate modeling of stress fields in viscoplastic polycrystalline materials npj Computational Materials · Nature Portfolio · 2023 10.1038/s41524-023-00991-z
  51. AlphaFlow: autonomous discovery and optimization of multi-step chemistry using a self-driven fluidic lab guided by reinforcement learning Nature Communications · Nature Portfolio · 2023 10.1038/s41467-023-37139-y
  52. Data-science-based reconstruction of 3-D membrane pore structure using a single 2-D micrograph Journal of Membrane Science · Elsevier BV · 2023 10.1016/j.memsci.2023.121673
  53. An AI-driven microstructure optimization framework for elastic properties of titanium beyond cubic crystal systems npj Computational Materials · Nature Portfolio · 2023 10.1038/s41524-023-01067-8
  54. Interpretable discovery of semiconductors with machine learning npj Computational Materials · Nature Portfolio · 2023 10.1038/s41524-023-01066-9
  55. AI powered, automated discovery of polymer membranes for carbon capture npj Computational Materials · Nature Portfolio · 2023 10.1038/s41524-023-01088-3