Thank you for visiting nature.com. You are using a browser version with limited support for CSS. To obtain the best experience, we recommend you use a more up to date browser (or turn off compatibility mode in Internet Explorer). In the meantime, to ensure continued support, we are displaying the site without styles and JavaScript.

# Inverse-designed spinodoid metamaterials

## Abstract

After a decade of periodic truss-, plate-, and shell-based architectures having dominated the design of metamaterials, we introduce the non-periodic class of spinodoid topologies. Inspired by natural self-assembly processes, spinodoid metamaterials are a close approximation of microstructures observed during spinodal phase separation. Their theoretical parametrization is so intriguingly simple that one can bypass costly phase-field simulations and obtain a rich and seamlessly tunable property space. Counter-intuitively, breaking with the periodicity of classical metamaterials is the enabling factor to the large property space and the ability to introduce seamless functional grading. We introduce an efficient and robust machine learning technique for the inverse design of (meta-)materials which, when applied to spinodoid topologies, enables us to generate uniform and functionally graded cellular mechanical metamaterials with tailored direction-dependent (anisotropic) stiffness and density. We specifically present biomimetic artificial bone architectures that not only reproduce the properties of trabecular bone accurately but also even geometrically resemble natural bone.

## Introduction

Tailoring the architecture of cellular materials — including random foams as well as deterministic truss-, plate-, and shell-based lattices — has produced a wide variety of metamaterials (also referred to as architected materials) whose macroscale physical and mechanical properties can be controlled by a careful design at the microstructural level. Supported by optimization techniques1,2,3,4,5,6,7 and advances in additive manufacturing8, truss- and plate-based mechanical metamaterials9,10,11,12,13,14,15 have gained prominence as, e.g., lightweight cellular solids with engineered stiffness, strength, or energy absorption. Unfortunately, they also suffer from detrimental stress concentrations found at all intersections of structural members, which generally leads to low strength and poor recoverability16,17,18. Metamaterials based on smooth topologies — such as triply periodic minimal surfaces (TPMS) — address this shortcoming19 by avoiding points of stress concentration while also showing excellent scaling of stiffness and strength with respect to density20,21,22 (leveraging the benefits of doubly curved surfaces23 that engage slender structures primarily in stretching rather than bending24,25). Most recently, spinodal topologies — extensively studied in the 1960s–1990s — have found a revival in metamaterials26,27,28,29. They are naturally created by self-assembly processes such as spinodal decomposition during phase separation30,31 in, e.g., nanoporous metal foams32,33,34, microemulsions35,36, and polymer blends37,38. Similar to TPMS, spinodal topologies consist of smooth, non-intersecting surfaces having nearly zero mean curvature29,39 with unique topological properties26,28,29,39,40,41,42. Spinodal topologies can be realized as solid networks (obtained from removing one of the two phases after phase separation, such as in nanoporous foams26,29) and as shell networks (retaining only the interfaces between the two phases27,28). Overall, spinodal topologies cover an extreme and seamless range of anisotropic (direction-dependent) mechanical properties, as verified, e.g., by their tailorable anisotropic elastic moduli26 — creating materials that are stiff in some directions and soft in others. By contrast to unit-cell-based truss-, plate-, or TPMS-type architectures, spinodal designs are non-periodic, which greatly enhances the design space and achievable directionality. Moreover, non-periodic architectures do not suffer from the fabrication-based introduction of symmetry-breaking defects — by contrast to periodic metamaterials whose sensitivity to defects deteriorates their mechanical properties22,27,28,43,44. As we further demonstrate here, the non-periodicity of spinodal networks (without geometric unit cell limitations or tessellation requirements) — counter-intuitively — enables the effortless creation of functionally graded materials with spatially varying properties. Finally, the emergence of spinodal topologies during self-assembly (such as by arresting spinodal decomposition in polymeric emulsions27) promises scalable manufacturing of centimeter-scale samples with nanoscale features, in contrast to conventional additive manufacturing-based designs.

While spinodal topologies hence promise an intriguingly large design space as well as advantages over most competing architectures, key challenges persist. It is practically impossible to theoretically explore the full anisotropic design space, since topologies are obtained by simulating the time-dependent Cahn–Hilliard phase separation process26,28 (see Fig. 1a), which can take hours per simulation on a modern computer. The only reported alternative29 is limited to isotropy, which strongly limits the achievable property space. To overcome this limitation, we here deploy a cellular design strategy that bypasses expensive simulations and leverages the statistics of spinodal topologies, resulting in a class of metamaterial architectures, which we term spinodoid (spinodal-like) topologies, with enormous anisotropic design and property spaces. Exploring those, however, requires another approach for the inverse design to be reported here.

Structure–property relations of all existing metamaterials have primarily been explored in a forward fashion: given a microstructure, one extracts the effective properties by methods of homogenization. The inverse challenge — identifying a microstructural topology that meets the mechanical property requirements — has often been addressed by inefficient trial and error, requiring a designer’s intuitive understanding of the structure–property relations. Systematic approaches such as topology optimization and genetic algorithms2,45,46 are not only beneficial but also computationally expensive (relying on repeated sampling and/or computation of the effective properties) and highly dependent on initial guesses. In addition, while the forward problem, i.e., mapping from topological parameters to property space, is well defined, the inverse problem is ill-posed (multiple topologies can have the exact same or similar effective properties). Recent advances in machine learning and deep learning have shown success in overcoming this challenge. Machine learning-based surrogate models — trained in a data-driven47,48 (supervised) or physics-driven49,50,51,52 (unsupervised) setting, which can bypass expensive simulations and/or experiments — have been developed for applications, including metamaterials3,53, composites54,55, two-dimensional materials, and nanotubes56,57. More recently, surrogate models based on autoencoders and variational autoencoders58,59 have attracted interest due to their ability to obtain a low-dimensional latent space parametrization of the design space. Once trained, surrogate models accelerate the search for possible candidates that fit the design requirements from a large design space. However, such approaches require solving an optimization problem based on the (forward-only) surrogate model, which prevents an on-demand inverse design framework.

We here deploy a machine learning strategy for the inverse design of the newly introduced spinodoid topologies, which efficiently predicts an optimal topology for a given set of sought properties. Our approach, in contrast to surrogate optimization methods, provides a computationally inexpensive two-way relationship between topological parameters and mechanical properties. Although we focus on the anisotropic elasticity of spinodoid architectures (and demonstrate their potential for, e.g., spatially varying patient-specific bone replacements), our inverse design approach — inspired by similar problems in the nanophotonic and plasmonic community60,61,62,63,64,65 — is sufficiently general to apply, in principle, to any physical material properties and to any finite set of design parameters.

In the following, we first introduce the class of spinodoid topologies, followed by a discussion of the tunable anisotropic material behavior with opportunities for functionally graded spinodoid metamaterials. Next, we present the data-driven inverse design framework, whose application to spinodoid metamaterials results in topologies with as-designed anisotropic stiffness. We close by demonstrating the (inverse) design of synthetic bones based on spinodoids.

## Results

### From spinodal to spinodoid topologies with tunable anisotropy

Spinodal topologies form naturally when a homogeneous solution decomposes into two spatially separated uniform phases in a diffusion-driven fashion. During the early stages of phase separation, small fluctuations in the phase distribution are described accurately by the linear Cahn–Hilliard model66 for an isotropic evolution of the underlying phase field φ(x) representing the concentration fluctuation of one phase at position x Ω in a domain $$\Omega \subset {\mathbb{R}}^{3}$$ (Fig. 1a). Cahn30 showed that the phase field may be described by a superposition of a large number N 1 of standing waves of constant wavenumber β > 0, mathematically known as a Gaussian random field (GRF)67:

$$\varphi ({\boldsymbol{x}})=\sqrt{\frac{2}{N}}\mathop{\sum }\limits_{i = 1}^{N}\cos (\beta {{\boldsymbol{n}}}_{i}\cdot {\boldsymbol{x}}+{\gamma }_{i}),\, {\rm{with}}\quad {{\boldsymbol{n}}}_{i} \sim {\mathcal{U}}({S}^{2}),\, {\gamma }_{i} \sim {\mathcal{U}}([0,2\pi )),$$
(1)

where $${S}^{2}=\{{\boldsymbol{k}}\in {\mathbb{R}}^{3}:\,\parallel {\boldsymbol{k}}\parallel\, =1\}$$ denotes the unit sphere in three-dimensional (3D). ni and γi denote, respectively, the directions and phase angles of the ith wave vector, which are random variables independently sampled from uniform probability distributions. While the original Cahn–Hilliard equation applies only to isotropic systems, it has been exploited for simulating anisotropic phase separation68,69,70,71,72,73,74,75 by introducing directional-dependent interface energy or phase mobility/diffusivity, both of which result in cellular architectures with anisotropic properties. Toward the same objective but without the need to simulate the phase separation process, we here propose an anisotropic extension of Cahn’s GRF-based solution (1) as a means to efficiently generate smooth spinodal-like topologies.

Our point of departure is the observation that the wave vectors in (1) are isotropically sampled from the unit sphere. To introduce anisotropy, we restrict those ni directions by biasing their statistical sampling with a non-uniform orientation distribution function (ODF), favoring some directions and neglecting others. Since the resulting topologies approximate the products of spinodal decomposition, we speak of spinodoid topologies. As a particular example, inspired by crystallographic texture poles, we introduce the distribution

$${{\boldsymbol{n}}}_{i} \sim {\mathcal{U}}\left(\left\{{\boldsymbol{k}}\in {S}^{2}:\left(| {\boldsymbol{k}}\cdot {\hat{{\boldsymbol{e}}}}_{1}|\, >\,\cos {\theta }_{1}\right)\oplus \left(| {\boldsymbol{k}}\cdot {\hat{{\boldsymbol{e}}}}_{2}|\, >\,\cos {\theta }_{2}\right)\oplus \left(| {\boldsymbol{k}}\cdot {\hat{{\boldsymbol{e}}}}_{3}|\, >\,\cos {\theta }_{3}\right)\right\}\right),$$
(2)

where $$\{{\hat{{\boldsymbol{e}}}}_{1},{\hat{{\boldsymbol{e}}}}_{2},{\hat{{\boldsymbol{e}}}}_{3}\}$$ denotes the Cartesian basis and angles $${\theta }_{1},{\theta }_{2},{\theta }_{3}\in \{0\}\cup [{\theta }_{\min },\pi /2]$$ represent the allowed spread of wave vectors about each of the three orthogonal base directions (Fig. 1b). Choosing, e.g., θ1 = θ2 = 0 restricts wave vectors to the cone, which forms an angle less than θ3 > 0 with the x3-axis (and the interfaces of the topologies align preferentially perpendicular to those ni vectors). Controlling the value of θ3 allows a seamless transition from a phase field with an isotropic structure (θ3 = π/2, reducing to the unit sphere) to that with a lamellar structure (θ3 < π/2). As representative examples, Figs 1c and 2 show specific choices of $$\left({\theta }_{1},{\theta }_{2},{\theta }_{3}\right)$$ and the resulting isotropic, lamellar, columnar, and cubic symmetries.

From the above phase field, a bicontinuous topology is constructed by computing level sets or isosurfaces of the phase field29,30,40,41. To this end, we define a binary indicator function χ(x) that denotes the presence of material vs. void at x. This applies equally to the generation of solid- and shell-type architectures27,28:

$$\begin{array}{*{20}{l}}{{\rm{solid}}\,{\rm{network:}}\quad\chi ({\boldsymbol{x}})}& = &{\left\{ {\begin{array}{*{20}{l}}{1\quad {\rm{if}}\quad\varphi ({\boldsymbol{x}}) \le {\varphi _0}}\\{0 \quad {\rm{if}} \quad \varphi ({\boldsymbol{x}})\, >\, {\varphi _0}}\end{array}} \right.}\\{{\rm{shell}}\,{\rm{network:}}\quad\chi ({\boldsymbol{x}})}& = &{\left\{ {\begin{array}{*{20}{l}}{1\quad {\rm{if}} \quad \varphi ({\boldsymbol{x}}) = {\varphi _0}}\\{0\quad {\rm{if}} \quad \varphi ({\boldsymbol{x}}) \, \ne \, {\varphi _0}}\end{array}} \right.}\,.\end{array}$$
(3)

For solid networks, threshold φ0 is computed as the quantile (of normally distributed random variable φ) evaluated at the average relative density $$\rho =\mathbb{E}[\chi ]$$ of the solid phase: $${\varphi }_{0}=\sqrt{2}\ {{\rm{erf}}}^{-1}(2\rho -1)$$. The relative density ρ provides a measure of the porosity of a given topology. Since small relative densities ρ 1 may contain disjoint solid domains, we restrict the design space to ρ [0.3, 1] in the following (for the same reason, we choose the minimum cone angle as $${\theta }_{\min }=1{5}^{\circ }$$); for isotropic topologies, ρ > 0.159 was recently shown to ensure bi-continuity29. For shell topologies, the zero isosurface (φ0 = 0) is chosen. We note that the area per unit volume of the isosurface of stochastic fields of type (1) is constant regardless of the anisotropy76, and the area per unit volume of the zero isosurface of an isotropic GRF bounded by a unit cell is40,41

$$s=\frac{2}{\sqrt{3}\pi }{e}^{-{\varphi }_{0}^{2}/2}\beta =\frac{2}{\sqrt{3}\pi }\beta ,$$
(4)

so that the relative density of all slender shell topologies is obtained as ρ = sh with shell thickness h (note that the relative density of shell architectures can be orders of magnitude below that of their solid counterparts). The complete set of design parameters to characterize our anisotropic spinodoid topologies is hence Θ = (ρ, θ1, θ2, θ3).

We stress that the thus generated topologies are not mere mathematical constructs but have physical relevance: they may be interpreted as an approximate solution to the modified Cahn–Hilliard equation modeling spinodal decomposition in case of an anisotropic diffusive mobility (see Supplementary Information, Section 1). It is for this reason that the spinodoid architectures presented here may indeed be expected from phase separation with direction-dependent interface mobility. While the self-assembly based fabrication has been demonstrated only for isotropic structures27, phase separation in block copolymers and polymeric micro-emulsions is a promising avenue for the self-assembly of anisotropic spinodal topologies36,37,38,77,78.

The above architectures are generally non-periodic, which is expected from foams but is a departure from conventional metamaterial designs and comes with advantages. First, non-periodic topologies are more resilient to fabrication-related, symmetry-breaking imperfections27,28. The lack of symmetry also affects the buckling behavior and suppresses bifurcation modes of intermediate wavelengths (spanning single to multiple unit cells) often exploited in periodic metamaterials79,80,81,82,83. Second, despite the complex architecture (applying to an, in principle, infinite design space without periodicity or symmetries), the mathematical description is simple and can be encoded in an ODF and parametrized by a finite set of design parameters (e.g., Θ). Third, the topology can be varied smoothly and seamlessly across a given body for the purpose of functional grading without issues arising from unit cell tessellation and discontinuous topologies (which, in contrast, is an active challenge for periodic topologies, including trusses, plates, and shells). Although functional grading with smooth transitions was demonstrated for TPMS topologies84,85,86, the triple-periodicity constraint results in a limited and discrete design space (including the well-known Schwarz Primitive87 and Schoen Gyroid88) and included limited examples of anisotropy in TPMS topologies89,90,91. A unified continuous design space, particularly in terms of a tunable anisotropy of the resultant metamaterial, has remained a challenge. Here a spatially variant spinodoid topology can be generated by the spatial superposition of two or more random fields (Fig. 3 and Supplementary Information, Section 4), which offers unprecedented opportunities for spatially variant architectures. In addition to locally varying the topology, this approach can also create architectures with spatially variant microstructural length scales (e.g., to vary locally the characteristic pore size); an example is shown in Supplementary Information, Section 4. Finally, the non-periodic field-based formulation (1) is space-filling and can be leveraged to create spinodoid solids of arbitrary macroscopic shapes (without the need for adaptive tessellation and conforming algorithms near the body’s boundary, as is the case for most periodic unit cell-based designs).

### Tunable anisotropic material behavior

As a representative example of effective properties, we characterize the 3D elastic stiffness of solid topologies (shell topologies can be treated analogously, which have great potential due to their optimal scaling of stiffness and strength with density28 and their extreme resilience verified experimentally in ceramic thin-shell architectures27). We apply computational homogenization by the finite element method (FEM), using a representative volume element (RVE) for each chosen topology made of a homogeneous, isotropic, linear elastic base material (Young’s modulus Es, Poisson’s ratio νs = 0.3). The resulting effective (homogenized) constitutive behavior of the metamaterial is linear elastic with an effective fourth-order elastic modulus tensor $$\mathbb{C}$$ extracted from the RVE via applying average strains 〈ϵ〉, computing volume-averaged stresses 〈σ〉, and solving $$\langle {\sigma }_{ij}\rangle ={\mathbb{C}}_{ijkl}\langle {\epsilon }_{kl}\rangle$$. Since the topologies lack periodicity, we apply affine displacement boundary conditions to the RVE, so that the homogenized stiffness is generally an overestimate of the true stiffness (for sufficiently large RVEs relative to microstructural features, assuring statistical homogeneity and a separation of scales, this estimate presents a good measure of the effective stiffness of the metamaterial). Numerical details are contained in Supplementary Information, Section 2. The microstructural length scale is inversely proportional to the wavenumber β in (1). For a cubic RVE of size l × l × l, we found β = 10π/l to be sufficient for an effective separation of scales; similar observations were reported previously for spinodal topologies28,29.

To visualize the elastic anisotropy, the elastic surface is computed, showing the effective Young’s modulus along a direction dS2 as

$$E({\boldsymbol{d}})={\left(\mathop{\sum} \limits_{i,j,k,l = 1}^{3}{\mathbb{C}}_{ijkl}^{-1}{d}_{i}{d}_{j}{d}_{k}{d}_{l}\right)}^{-1}.$$
(5)

Figure 2 illustrates how design parameters (θ1, θ2, θ3) control the elastic surface. In addition, the relative density ρ controls the absolute stiffness scaling (see Supplementary Fig. 2). Note that the principal stiffness directions here are by choice always aligned with coordinates $$\{{\hat{{\boldsymbol{e}}}}_{1},{\hat{{\boldsymbol{e}}}}_{2},{\hat{{\boldsymbol{e}}}}_{3}\}$$. However, a coordinate rotation (i.e., $$\hat{\mathbb{C}}_{pqrs}={\sum }_{i,j,k,l}{R}_{pi}{R}_{qj}{R}_{rk}{R}_{sl}{\mathbb{C}}_{ijkl}$$ for a rotation tensor R SO(3)) can further expand the design space to obtain stiffness tensors with arbitrary principal directions.

All information related to the structure of the elastic surface of a metamaterial is now encoded in the effective stiffness matrix $$\mathbb{C}$$, whose components — by exploiting symmetries and the orthotropic nature of all architectures defined by Eq. (2) — reduces to the following vector of independent elastic moduli: $${\boldsymbol{S}}=({\mathbb{C}}_{1111},{\mathbb{C}}_{1122},{\mathbb{C}}_{1133},{\mathbb{C}}_{2222},{\mathbb{C}}_{2233},{\mathbb{C}}_{3333},{\mathbb{C}}_{2323},{\mathbb{C}}_{3131},{\mathbb{C}}_{1212})$$.

### Data-driven inverse design

Toward the creation of cellular solids with as-designed properties, we need to address the inverse design question: how can we systematically and efficiently find a topology from within the design space that has the target anisotropic elastic moduli? In contrast to existing methods, we use offline training of a machine learning model that provides a computationally inexpensive two-way relationship between topological parameters and mechanical properties. We propose a machine learning technique based on deep neural networks (NNs)92, which require the a-priori creation of a sufficiently large and representative training dataset $${\mathcal{D}}=\left\{\{{{\mathbf{\Theta}}}_{i},{{\boldsymbol{S}}}_{i}\},i=1,\ldots ,n\right\}$$ consisting of n pairs of design parameters Θ and corresponding stiffness S, which are computed by FEM homogenization. Note that a large dataset is made possible only because of the computationally inexpensive GRF-based formulation of the spinodoid topology. Creating a dataset by simulating the time-dependent Cahn–Hilliard phase separation process is impractical as each simulation can take several hours on a modern computer (in contrast to few seconds for the GRF-based formulation; see Supplementary Information, Section 5).

Let $${{\mathcal{F}}}_{\omega }$$ be a NN that maps design parameters Θ onto stiffness S in a forward fashion and is hence referred to as f-NN. We choose a multi-layer perceptron (MLP) architecture (Fig. 4a) whose parameter set ω contains the weights and biases of all hidden layers (see Supplementary Information, Section 5). Training the f-NN requires minimizing the (mean squared error) loss between true values and predictions with respect to the f-NN-parameters ω, i.e.,

$${{\mathcal{F}}}_{\omega }\leftarrow \mathop{\min }\limits_{\omega }\frac{1}{n}\mathop{\sum }\limits_{i = 1}^{n}\parallel {{\mathcal{F}}}_{\omega }[{{\mathbf{\Theta}}}_{i}]-{{\boldsymbol{S}}}_{i}{\parallel }^{2}.$$
(6)

This problem is well posed, and we use a back-propagation algorithm93 to perform the optimization in Eq. (6). We leverage automatic differentiation94 (which is also the implementation basis of back-propagation in most modern machine learning packages) to compute the gradients $${\mathcal{F}}^{\prime} [{{\mathbf{\Theta}}}_{i}]=\partial {\mathcal{F}}_{\omega }[{{\mathbf{\Theta}}}_{i}]/\partial {{\mathbf{\Theta}}}_{i}$$ (the latter will be important for the inverse problem).

To address the inverse problem, we introduce another MLP NN $${{\mathcal{G}}}_{\tau }$$ (the i-NN), which maps stiffness S onto design parameters Θ. Here the challenge lies in defining a measure (a loss function) that identifies the correctness of an answer while ignoring the multiplicity of correct answers (since various design parameters may yield the same or similar effective stiffness). As a trivial example, the spinodoid topologies corresponding to Θ = (ρ, 90°, 0, 0), (ρ, 90°, 90°, 0), and (ρ, 90°, 90°, 90°) all have the same (isotropic) stiffness. This prevents the straightforward application of machine learning tools, which rely on direct computation of errors. For example, the naive approach to minimize $$\mathop{\sum }\nolimits_{i = 1}^{n}\parallel {{\mathcal{G}}}_{\tau }[{{\boldsymbol{S}}}_{i}]-{{\mathbf{\Theta}}}_{i}{\parallel }^{2}$$ is ill-posed and may not converge to a correct solution (see Supplementary Information, Section 7). To overcome this challenge, we leverage the f-NN and propose to train the i-NN using the loss function

$${{\mathcal{G}}}_{\tau }\leftarrow \mathop{\min }\limits_{\tau }\frac{1}{n}\mathop{\sum }\limits_{i = 1}^{n}\left({\underbrace{{\left\Vert {{\mathcal{F}}}_{\omega }\left[{{\mathcal{G}}}_{\tau }\left[{{\boldsymbol{S}}}_{i}\right]\right]-{{\boldsymbol{S}}}_{i}\right\Vert }^{2}}_{{\text{reconstruction}}\, {\text{loss}}}}+{\underbrace{\lambda {\left\Vert {{\mathcal{G}}}_{\tau }[{{\boldsymbol{S}}}_{i}]-{{\mathbf{\Theta}}}_{i}\right\Vert }^{2}}_{{{\text{prediction}}\, {\text{loss}}}}}\right)\,{\rm{with}}\quad \lambda\, \ge \,0.$$
(7)

The reconstruction loss computes the error between the stiffness of a predicted topology and the true stiffness that has been queried, the rationale being that the predicted topology must have the correct stiffness irrespective of the design parameters used to create that topology. Ideally, the reconstruction should be computed using FEM. For efficiency, we instead leverage the above f-NN as a computationally inexpensive approximator of the FEM homogenization scheme. The advantage is two-fold. First, the numerous evaluations of the reconstruction loss via the pre-trained f-NN are several orders of magnitude less expensive than if FEM was used for reconstruction (see Supplementary Information, Section 5) during the i-NN training. Second, the back-propagation algorithm93 requires computing the derivatives of the loss function with respect to the NN parameters (so-called sensitivities). Numerical differentiation by FEM (perturbing the design parameters and re-calculating the effective stiffness for each perturbation) would incur prohibitive expenses — the f-NN as an approximator instead provides analytical gradients via automatic differentiation94 (see Supplementary Information, Section 5). Note that during the i-NN training, the pre-trained f-NN remains unchanged; i.e., no further do we train the parameters ω of the f-NN. The prediction loss in Eq. (7) acts as a soft regularization by measuring the error in the predicted design parameters. Although this regularization is not necessary (equivalent to choosing λ = 0), we observe that it accelerates the training of i-NN and the convergence of the reconstruction loss as long as λ is sufficiently small (e.g., λ ~ 0.01–1.0). For example, in the initial epochs of training when the parameters of the i-NN are untrained, the prediction loss ensures that the design parameter predictions from the i-NN are not nonsensical. For this reason, we activate the prediction loss only during the first few epochs of the training stage before deactivating it again (details in Supplementary Information, Section 5).

For a quantitative assessment of our machine learning technique, we generated a set of training and test data containing, respectively, 19,170 and 2130 pairs of topologies and their corresponding effective elastic stiffnesses (details about datasets and training protocols are in Supplementary Information, Section 5). For each queried stiffness Si from the test dataset, the i-NN predicts a set of design parameters $${{\mathbf{\Theta}}}_{i}^{* }$$ expected to yield the sought effective stiffness Si. For verification, we reconstruct the stiffness $${{\boldsymbol{S}}}_{i}^{* }$$ of the identified design $${{\mathbf{\Theta}}}_{i}^{* }$$ (i) exactly via FEM simulations and (ii) approximately using the f-NN (recall that we cannot compare $${{\mathbf{\Theta}}}_{i}^{* }$$ to Θi from the test data, since the mapping between design parameters and stiffnesses is non-unique). Ideally, in both cases the reconstructed stiffness of the identified topology should agree with the target stiffness, i.e., $${{\boldsymbol{S}}}_{i}^{* }\approx {{\boldsymbol{S}}}_{i}$$. In a plot of predicted (or reconstructed) vs. queried stiffness components, we hence expect each data point to ideally lie on a line with zero intercept and unit slope, and we may use the coefficient of determination (R2) with respect to the aforementioned line as a measure of accuracy.

Representative example results of reconstruction vs. true (queried) stiffness component $${\mathbb{C}}_{1111}$$ are shown in Fig. 4b, c. Since the i-NN has been trained against the f-NN (which only serves as an approximation of FEM-based homogenization), the FEM reconstruction of stiffness shows a lower accuracy (R2 = 0.997) than when using f-NN (R2 = 0.999), as expected. Nevertheless, we generally observed excellent agreement of queried (true) vs. achieved (reconstructed) stiffness values across all stiffness components tested (we verified R2 ≥ 0.995 and 0.998, respectively, across all FEM- and f-NN-based reconstructions).

As expected, the predicted topological parameters Θ* for a queried stiffness S may vary significantly from those in the dataset due to non-uniqueness (Fig. 4e). When queried, e.g., with a stiffness S originally obtained from a sample with Θ = (0.35, 70°, 70°, 0°), the i-NN predicted an architecture with Θ* = (0.34, 47.99°, 55.88°, 31.79°) with only negligible differences in stiffness. In addition, for close-to-isotropic stiffness queries (obtained from a sample with e.g., at least one of θ1, θ2, or θ3 >80°), the i-NN predicts all three θ1, θ2, and θ3 in the range of 45°–65° (contributing to the decrease in prediction accuracy for high values of θ1 in Fig. 4e). This highlights the advantages of our approach in overcoming the ill-posedness of the inverse problem. Note that the stiffness dependence on relative density ρ is so dominant that the i-NN generally recovers the relative density of architectures from the training set for a given stiffness (Fig. 4d).

While the inverse model is successful on test queries similar to the training dataset, a natural question arises: is the model applicable to arbitrary stiffness queries? There are two requirements: (i) a queried stiffness must be thermodynamically admissible, i.e., it must satisfy major and minor symmetries ($${\mathbb{C}}_{ijkl}={\mathbb{C}}_{klij}={\mathbb{C}}_{ijlk},\,i,j,k,l=1,2,3$$) and strong ellipticity for reasons of stability (using Einstein’s summation convention: $${\mathbb{C}}_{ijkl}{u}_{i}{v}_{j}{u}_{k}{v}_{l}\,>\,0$$ for all non-zero $${\boldsymbol{u}},{\boldsymbol{v}}\in \mathbb{R}^{3}$$). Furthermore, it must not violate the Voigt upper bound that limits the maximally achievable stiffness for a given relative density (e.g., one cannot ask for an architecture that is stiffer than the base material). (ii) The query S must lie within the design space (i.e., there must be at least one Θ* within the bounds of the design parameters whose stiffness matches the query S). If these requirements are not satisfied, the i-NN will likely predict a Θ*, which does not lie within the design space (an indication that the S does not satisfy the aforementioned conditions). In the unlikely event Θ* does lie within the design space, a quick reconstruction of S* via f-NN (and comparison with the query S) will invalidate the i-NN prediction.

Once trained, the f-NN and i-NN together provide a computationally inexpensive two-way structure–property map as a design tool for spinodoid metamaterials (Supplementary Information, Section 5 estimates computational costs). Moreover, the machine learning framework presented here can be readily integrated into the functional grading approach of Fig. 3 to inverse-design spatially variant solids. The i-NN can be used to generate multiple independent GRFs that locally satisfy the anisotropic stiffness requirements (queries to the i-NN), followed by the straightforward GRF interpolation approach outlined in Supplementary Information, Section 4.

### Inverse design of artificial bone

Synthetic bones or bone-mimetic scaffolds and implants are prime examples that have benefited from advances in additive manufacturing95,96,97. Matching the topological and mechanical properties of bones in 3D-printed architectures (important for successful long-term compatibility98) has remained a challenge though. Although bone properties have been mimicked by truss and TPMS architectures95,98,99, the thus available design space is highly limited. For example, those designs did not cover the required high level of elastic anisotropy and heterogeneity as well as porosity found100 across different patients or even across bones within the same patient. Leveraging the approach introduced here can overcome those challenges and create bone-mimetic structures with properties closer to those of natural bone than any of the aforementioned designs.

As an example, we consider trabecular bone from bovine femur samples, whose relative density and anisotropic stiffness components were measured experimentally101 (see Supplementary Information, Section 5). Using the measured directional modulus variations as a query (and assuming the base material of bone tissue is isotropic), the i-NN predicts the spinodoid architectures and their stiffnesses and relative densities summarized in Fig. 5. Remarkably, the inverse model accurately predicts the target relative density and matches the anisotropic elastic stiffness of the bone specimens despite no prior information about trabecular bone during the learning stage. The small differences between the reconstructed and experimentally measured stiffnesses are attributed to small but non-zero normal–shear coupling terms in the measured stiffness tensor (deviations diminish when the corresponding stiffness components are set to zero). Moreover, unlike previous approaches95,101, the resulting columnar spinodoid architectures bear topological resemblance to natural bone specimens (micro-computed tomographic images of the original bones are included in Fig. 5). The columnar topology makes structural features align with the load-bearing directions, akin to the trabecular alignment in natural femoral bones.

## Discussion

Bone datasets are scarce, particularly from a data-driven inverse-design perspective. Our approach bypasses this challenge and applies an inverse model trained on spinodoid metamaterials to the in silico generation of artificial bone, preserving the anisotropic stiffness and level of porosity (while the characteristic length scale is controlled by the wavelength). If a small but representative dataset for trabecular bones becomes available, the accuracy of the inverse model may be improved even further by first training on the spinodoid design space followed by fine-tuning on bone data. Finally, spatially varying architectures matching patient-specific mechanical properties across an individual bone (if known) can be realized readily by the GRF interpolation approach of Fig. 3. This capability of creating cellular solids with as-designed spatially varying stiffness and density is key to, e.g., acoustic cloaking102 or tissue engineering103. We close by noting that, with possible integration into multiscale topology optimization or as a standalone framework to explore the design space (e.g., via genetic algorithms), our combination of forward and inverse maps of the structure–property relation accelerates the design process of metamaterials with a wide range of tunable mechanical response (anisotropic stiffness only being the tip of the iceberg).

## Methods

Details of the anisotropic spinodal decomposition theory (Section 1), the simulation procedures and post-processing of data (Sections 2 and 3), the spatially variant architecture simulations (Section 4), the machine learning protocols (Section 5), and the bone data (Section 6) are summarized in the Supplementary Information.

## Data availability

The datasets generated during the current study are available from the corresponding author upon reasonable request.

## Code availability

The machine learning codes used during the current study are available from the corresponding author upon reasonable request.

## References

1. Xia, L. & Breitkopf, P. Recent advances on topology optimization of multiscale nonlinear structures. Arch. Comput. Methods Eng. 24, 227–249 (2017).

2. Gao, J., Luo, Z., Li, H. & Gao, L. Topology optimization for multiscale design of porous composites with multi-domain microstructures. Computer Methods Appl. Mech. Eng. 344, 451–476 (2019).

3. White, D. A., Arrighi, W. J., Kudo, J. & Watts, S. E. Multiscale topology optimization using neural network surrogate models. Computer Methods Appl. Mech. Eng. 346, 1118–1135 (2019).

4. Wu, Z., Xia, L., Wang, S. & Shi, T. Topology optimization of hierarchical lattice structures with substructuring. Computer Methods Appl. Mech. Eng. 345, 602–617 (2019).

5. Xia, L. & Breitkopf, P. Design of materials using topology optimization and energy-based homogenization approach in matlab. Struct. Multidiscip. Optim. 52, 1229–1241 (2015).

6. Cadman, J. E., Zhou, S., Chen, Y. & Li, Q. On design of multi-functional microstructural materials. J. Mater. Sci. 48, 51–66 (2013).

7. Rodrigues, H., Guedes, J. & Bendsoe, M. Hierarchical optimization of material and structure. Struct. Multidiscip. Optim. 24, 1–10 (2002).

8. Gibson, I., Rosen, D. W. & Stucker, B. Additive Manufacturing Technologies (Springer, New York, 2015).

9. Zheng, X. et al. Ultralight, ultrastiff mechanical metamaterials. Science 344, 1373–1377 (2014).

10. Meza, L. R., Das, S. & Greer, J. R. Strong, lightweight, and recoverable three-dimensional ceramic nanolattices. Science 345, 1322–1326 (2014).

11. Zheng, X. et al. Multiscale metallic metamaterials. Nat. Mater. 15, 1100 (2016).

12. Meza, L. R. et al. Reexamining the mechanical property space of three-dimensional lattice architectures. Acta Mater. 140, 424–432 (2017).

13. Bauer, J. et al. Nanolattices: an emerging class of mechanical metamaterials. Adv. Mater. 29, 1701850 (2017).

14. Tancogne-Dejean, T., Diamantopoulou, M., Gorji, M. B., Bonatti, C. & Mohr, D. 3D plate-lattices: an emerging class of low-density metamaterial exhibiting optimal isotropic stiffness. Adv. Mater. 30, 1803334 (2018).

15. Tancogne-Dejean, T., Li, X., Diamantopoulou, M., Roth, C. C. & Mohr, D. High strain rate response of additively-manufactured plate-lattices: experiments and modeling. J. Dyn. Behav. Mater. 5, 361–375 (2019).

16. Portela, C. M., Greer, J. R. & Kochmann, D. M. Impact of node geometry on the effective stiffness of non-slender three-dimensional truss lattice architectures. Extrem. Mech. Lett. 22, 138–148 (2018).

17. Mateos, A. J., Huang, W., Zhang, Y.-W. & Greer, J. R. Discrete-continuum duality of architected materials: failure, flaws, and fracture. Adv. Funct. Mater. 29, 1806772 (2019).

18. Latture, R. M., Rodriguez, R. X., Holmes, L. R. & Zok, F. W. Effects of nodal fillets and external boundaries on compressive response of an octet truss. Acta Mater. 149, 78–87 (2018).

19. Al-Ketan, O. & Abu Al-Rub, R. K. Multifunctional mechanical metamaterials based on triply periodic minimal surface lattices. Adv. Eng. Mater. 21, 1900524 (2019).

20. Nguyen, B. D., Han, S. C., Jung, Y. C. & Kang, K. Design of the p-surfaced shellular, an ultra-low density material with micro-architecture. Comput. Mater. Sci. 139, 162–178 (2017).

21. Rajagopalan, S. & Robb, R. A. Schwarz meets Schwann: design and fabrication of biomorphic and durataxic tissue engineering scaffolds. Med. Image Anal. 10, 693–712 (2006).

22. Han, S. C., Choi, J. M., Liu, G. & Kang, K. A microscopic shell structure with Schwarz’s D-surface. Sci. Rep. 7, 13405 (2017).

23. Lazarus, A., Florijn, H. C. B. & Reis, P. M. Geometry-induced rigidity in nonspherical pressurized elastic shells. Phys. Rev. Lett. 109, 144301 (2012).

24. Han, S. C., Lee, J. W. & Kang, K. A new type of low density material: shellular. Adv. Mater. 27, 5506–5511 (2015).

25. Al-Ketan, O. et al. Microarchitected stretching-dominated mechanical metamaterials with minimal surface topologies. Adv. Eng. Mater. 20, 1800029 (2018).

26. Vidyasagar, A., Krödel, S. & Kochmann, D. M. Microstructural patterns with tunable mechanical anisotropy obtained by simulating anisotropic spinodal decomposition. Proc. R. Soc. A Math. Phys. Eng. Sci. 474, 20180535 (2018).

27. Portela, C. M. et al. Extreme mechanical resilience of self-assembled nanolabyrinthine materials. Proc. Natl Acad. Sci. USA 117, 5686–5693 (2020).

28. Hsieh, M.-T., Endo, B., Zhang, Y., Bauer, J. & Valdevit, L. The mechanical response of cellular materials with spinodal topologies. J. Mech. Phys. Solids 125, 401–419 (2019).

29. Soyarslan, C., Bargmann, S., Pradas, M. & Weissmüller, J. 3D stochastic bicontinuous microstructures: generation, topology and elasticity. Acta Mater. 149, 326–340 (2018).

30. Cahn, J. W. On spinodal decomposition. Acta Metall. 9, 795–801 (1961).

31. Allen, S. In Encyclopedia of Materials: Science and Technology (eds Buschow, K. J.et al.) 8761–8764 (Elsevier, Oxford, 2001).

32. Miller, M. et al. Spinodal decomposition in Fe-Cr alloys: experimental study at the atomic level and comparison with computer models - I. Introduction and methodology. Acta Metall. Mater. 43, 3385–3401 (1995).

33. Hodge, A. et al. Scaling equation for yield strength of nanoporous open-cell foams. Acta Mater. 55, 1343–1349 (2007).

34. Erlebacher, J., Aziz, M., Karma, A., Dimitrov, N. & Sieradzki, K. Evolution of nanoporosity in dealloying. Nature 410, 450–453 (2001).

35. Lee, M. N. & Mohraz, A. Bicontinuous macroporous materials from bijel templates. Adv. Mater. 22, 4836–4841 (2010).

36. Bates, F. S. et al. Polymeric bicontinuous microemulsions. Phys. Rev. Lett. 79, 849–852 (1997).

37. Bell, J. R., Chang, K., López-Barrón, C. R., Macosko, C. W. & Morse, D. C. Annealing of cocontinuous polymer blends: effect of block copolymer molecular weight and architecture. Macromolecules 43, 5024–5032 (2010).

38. Khaderi, S. et al. The indentation response of nickel nano double gyroid lattices. Extrem. Mech. Lett. 10, 15–23 (2017).

39. Jinnai, H., Koga, T., Nishikawa, Y., Hashimoto, T. & Hyde, S. T. Curvature determination of spinodal interface in a condensed matter system. Phys. Rev. Lett. 78, 2248–2251 (1997).

40. Berk, N. F. Scattering properties of the leveled-wave model of random morphologies. Phys. Rev. A 44, 5069–5079 (1991).

41. Teubner, M. Level surfaces of Gaussian random fields and microemulsions. Europhys. Lett. (EPL) 14, 403–408 (1991).

42. McDevitt, K. M., Thorson, T. J., Botvinick, E. L., Mumm, D. R. & Mohraz, A. Microstructural characteristics of bijel-templated porous materials. Materialia 7, 100393 (2019).

43. Hutchinson, J. W. & Thompson, J. M. T. Imperfections and energy barriers in shell buckling. Int. J. Solids Struct. 148149, 157–168 (2018).

44. Gross, A., Pantidis, P., Bertoldi, K. & Gerasimidis, S. Correlation between topology and elastic properties of imperfect truss-lattice materials. J. Mech. Phys. Solids 124, 577–598 (2019).

45. Sigmund, O. & Maute, K. Topology optimization approaches. Struct. Multidiscip. Optim. 48, 1031–1055 (2013).

46. Dong, H.-W., Su, X.-X., Wang, Y.-S. & Zhang, C. Topological optimization of two-dimensional phononic crystals based on the finite element method and genetic algorithm. Struct. Multidiscip. Optim. 50, 593–604 (2014).

47. Mozaffar, M. et al. Deep learning predicts path-dependent plasticity. Proc. Natl Acad. Sci. USA 116, 26414–26420 (2019).

48. Stainier, L., Leygue, A. & Ortiz, M. Model-free data-driven methods in mechanics: material data identification and solvers. Comput. Mech. 64, 381–393 (2019).

49. Sirignano, J. & Spiliopoulos, K. DGM: a deep learning algorithm for solving partial differential equations. J. Comput. Phys. 375, 1339–1364 (2018).

50. Raissi, M., Perdikaris, P. & Karniadakis, G. 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).

51. Lu, L., Meng, X., Mao, Z. & Karniadakis, G. E. DeepXDE: a deep learning library for solving differential equations. Preprint at https://arxiv.org/abs/1907.04502 (2019).

52. Zhu, Y., Zabaras, N., Koutsourelakis, P.-S. & Perdikaris, P. Physics-constrained deep learning for high-dimensional surrogate modeling and uncertainty quantification without labeled data. J. Computational Phys. 394, 56–81 (2019).

53. Bessa, M. A., Glowacki, P. & Houlder, M. Bayesian machine learning in metamaterial design: fragile becomes supercompressible. Adv. Mater. 31, 1904845 (2019).

54. Gu, G. X., Chen, C.-T. & Buehler, M. J. De novo composite design based on machine learning algorithm. Extrem. Mech. Lett. 18, 19–28 (2018).

55. Bessa, M. et al. A framework for data-driven analysis of materials under uncertainty: countering the curse of dimensionality. Computer Methods Appl. Mech. Eng. 320, 633–667 (2017).

56. Hanakata, P. Z., Cubuk, E. D., Campbell, D. K. & Park, H. S. Accelerated search and design of stretchable graphene kirigami using machine learning. Phys. Rev. Lett. 121, 255304 (2018).

57. Papadopoulos, V., Soimiris, G., Giovanis, D. & Papadrakakis, M. A neural network-based surrogate model for carbon nanotubes with geometric nonlinearities. Computer Methods Appl. Mech. Eng. 328, 411–430 (2018).

58. Gómez-Bombarelli, R. et al. Automatic chemical design using a data-driven continuous representation of molecules. ACS Cent. Sci. 4, 268–276 (2018).

59. Kiarashinejad, Y., Abdollahramezani, S. & Adibi, A. Deep learning approach based on dimensionality reduction for designing electromagnetic nanostructures. npj Comput. Mater. 6, 12 (2020).

60. Liu, Z., Zhu, D., Rodrigues, S. P., Lee, K.-T. & Cai, W. Generative model for the inverse design of metasurfaces. Nano Lett. 18, 6570–6576 (2018).

61. Tahersima, M. H. et al. Deep neural network inverse design of integrated photonic power splitters. Sci. Rep. 9, 1368 (2019).

62. Ma, W., Cheng, F., Xu, Y., Wen, Q. & Liu, Y. Probabilistic representation and inverse design of metamaterials based on a deep generative model with semi-supervised learning strategy. Adv. Mater. 31, 1901111 (2019).

63. Baxter, J. et al. Deep learning and inverse design in plasmonic. In 2019 International Conference on Numerical Simulation of Optoelectronic Devices (NUSOD) 3–4 (IEEE, 2019).

64. Long, Y., Ren, J., Li, Y. & Chen, H. Inverse design of photonic topological state via machine learning. Appl. Phys. Lett. 114, 181105 (2019).

65. Malkiel, I. et al. Plasmonic nanostructure design and characterization via deep learning. Light Sci. Appl. 7, 60 (2018).

66. Cahn, J. W. & Hilliard, J. E. Free energy of a nonuniform system. I. Interfacial free energy. J. Chem. Phys. 28, 258–267 (1958).

67. Adler, R. J. & Taylor, J. E. Random Fields and Geometry (Springer-Verlag, New York, 2007).

68. McFadden, G. B., Wheeler, A. A., Braun, R. J., Coriell, S. R. & Sekerka, R. F. Phase-field models for anisotropic interfaces. Phys. Rev. E 48, 2016–2024 (1993).

69. Vaithyanathan, V., Wolverton, C. & Chen, L. Q. Multiscale modeling of precipitate microstructure evolution. Phys. Rev. Lett. 88, 125503 (2002).

70. Yu, P. & Du, Q. A variational construction of anisotropic mobility in phase-field simulation. Discret. Continuous Dyn. Syst. B 6, 391 (2006).

71. Feng, W. Phase-field models of microstructure evolution and new numerical strategies. PhD thesis, The Pennsylvania State Univ. (2007).

72. Vuijk, H. D., Brader, J. M. & Sharma, A. Effect of anisotropic diffusion on spinodal decomposition. Soft Matter 15, 1319–1326 (2019).

73. Vidyasagar, A., Tutcuoglu, A. D. & Kochmann, D. M. Deformation patterning in finite-strain crystal plasticity by spectral homogenization with application to magnesium. Computer Methods Appl. Mech. Eng. 335, 584–609 (2018).

74. Salvalaglio, M., Backofen, R., Bergamaschini, R., Montalenti, F. & Voigt, A. Faceting of equilibrium and metastable nanostructures: a phase-field model of surface diffusion tackling realistic shapes. Cryst. Growth Des. 15, 2787–2794 (2015).

75. Torabi, S., Lowengrub, J., Voigt, A. & Wise, S. A new phase-field model for strongly anisotropic systems. Proc. R. Soc. A Math. Phys. Eng. Sci. 465, 1337–1359 (2009).

76. Berryman, J. G. Relationship between specific surface area and spatial correlation functions for anisotropic porous media. J. Math. Phys. 28, 244–245 (1987).

77. Tsujioka, N., Ishizuka, N., Tanaka, N., Kubo, T. & Hosoya, K. Well-controlled 3D skeletal epoxy-based monoliths obtained by polymerization induced phase separation. J. Polym. Sci. Part A Polym. Chem. 46, 3272–3281 (2008).

78. Zhou, N., Bates, F. S. & Lodge, T. P. Mesoporous membrane templated by a polymeric bicontinuous microemulsion. Nano Lett. 6, 2354–2357 (2006).

79. Triantafyllidis, N., Nestorović, M. D. & Schraad, M. W. Failure surfaces for finitely strained two-phase periodic solids under general in-plane loading. J. Appl. Mech. 73, 505–515 (2005).

80. Mullin, T., Deschanel, S., Bertoldi, K. & Boyce, M. C. Pattern transformation triggered by deformation. Phys. Rev. Lett. 99, 084301 (2007).

81. Bertoldi, K. & Boyce, M. Wave propagation and instabilities in monolithic and periodically structured elastomeric materials undergoing large deformations. Phys. Rev. B 78, 184107 (2008).

82. Overvelde, J. T. B., Shan, S. & Bertoldi, K. Compaction through buckling in 2d periodic, soft and porous structures: effect of pore shape. Adv. Mater. 24, 2337–2342 (2012).

83. Li, J., Pallicity, T. D., Slesarenko, V., Goshkoderia, A. & Rudykh, S. Domain formations and pattern transitions via instabilities in soft heterogeneous materials. Adv. Mater. 31, 1807309 (2019).

84. Yang, N., Tian, Y. & Zhang, D. Novel real function based method to construct heterogeneous porous scaffolds and additive manufacturing for use in medical engineering. Med. Eng. Phys. 37, 1037–1046 (2015).

85. Yang, N., fei Du, C., Wang, S., Yang, Y. & Zhang, C. Mathematically defined gradient porous materials. Mater. Lett. 173, 136–140 (2016).

86. Liu, F. et al. Functionally graded porous scaffolds in multiple patterns: new design method, physical and mechanical properties. Mater. Des. 160, 849–860 (2018).

87. Schwarz, H. A. Gesammelte Mathematische Abhandlungen (Springer, Berlin, Heidelberg, 1890).

88. Schoen, A. Infinite Periodic Minimal Surfaces Without Self-intersections. NASA technical note (National Aeronautics and Space Administration, 1970).

89. Bonatti, C. & Mohr, D. Smooth-shell metamaterials of cubic symmetry: anisotropic elasticity, yield strength and specific energy absorption. Acta Mater. 164, 301–321 (2019).

90. Bonatti, C. & Mohr, D. Mechanical performance of additively-manufactured anisotropic and isotropic smooth shell-lattice materials: simulations & experiments. J. Mech. Phys. Solids 122, 1–26 (2019).

91. Lu, Y., Zhao, W., Cui, Z., Zhu, H. & Wu, C. The anisotropic elastic behavior of the widely-used triply-periodic minimal surface based scaffolds. J. Mech. Behav. Biomed. Mater. 99, 56–65 (2019).

92. LeCun, Y., Bengio, Y. & Hinton, G. Deep learning. Nature 521, 436 (2015).

93. Goodfellow, I., Bengio, Y. & Courville, A. Deep Learning (MIT Press, 2016).

94. Paszke, A. et al. Pytorch: an imperative style, high-performance deep learning library. In Advances in Neural Information Processing Systems 32 (eds Wallach, H. et al.) 8024–8035 (Curran Associates, Inc., 2019).

95. Barba, D., Alabort, E. & Reed, R. Synthetic bone: design by additive manufacturing. Acta Biomater. 97, 637–656 (2019).

96. Alvarez, K. & Nakajima, H. Metallic scaffolds for bone regeneration. Materials 2, 790–832 (2009).

97. Yan, C., Hao, L., Hussein, A. & Young, P. Ti-6Al-4V triply periodic minimal surface structures for bone implants fabricated via selective laser melting. J. Mech. Behav. Biomed. Mater. 51, 61–73 (2015).

98. Arabnejad, S., Johnston, B., Tanzer, M. & Pasini, D. Fully porous 3D printed titanium femoral stem to reduce stress-shielding following total hip arthroplasty. J. Orthop. Res. 35, 1774–1783 (2017).

99. Arabnejad Khanoki, S. & Pasini, D. The fatigue design of a bone preserving hip implant with functionally graded cellular material. J. Med. Devices 7, 020907 (2013).

100. Oftadeh, R., Perez-Viloria, M., Villa-Camacho, J. C., Vaziri, A. & Nazarian, A. Biomechanics and mechanobiology of trabecular bone: a review. J. Biomech. Eng. 137, 010802 (2015).

101. Colabella, L., Cisilino, A. P., Häiat, G. & Kowalczyk, P. Mimetization of the elastic properties of cancellous bone via a parameterized cellular material. Biomech. Model. Mechanobiol. 16, 1485–1502 (2017).

102. Norris, A. Acoustic cloaking theory. Proc. R. Soc. A 464, 2411–2434 (2008).

103. Siemers, B., Stempien, A., Craven, R., Napiwocki, B. & Crone, W. Biomaterials with functionally graded stiffness. FASEB J. 33, 785.9 (2019).

## Author information

Authors

### Contributions

S.K. and D.M.K. conceived the research. S.K. developed the anisotropic spinodoid topology theory. S.K. and S.T. conceptualized and developed the inverse design framework. L.Z. performed training and optimization of the neural networks. S.K. and D.M.K. wrote the paper.

### Corresponding author

Correspondence to Dennis M. Kochmann.

## Ethics declarations

### Competing interests

The authors declare no competing interests.

Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

## Rights and permissions

Reprints and Permissions

Kumar, S., Tan, S., Zheng, L. et al. Inverse-designed spinodoid metamaterials. npj Comput Mater 6, 73 (2020). https://doi.org/10.1038/s41524-020-0341-6

• Accepted:

• Published:

• DOI: https://doi.org/10.1038/s41524-020-0341-6

• ### Discovering plasticity models without stress data

• Moritz Flaschel
• Siddhant Kumar
• Laura De Lorenzis

npj Computational Materials (2022)

• ### Generation of Tubular and Membranous Shape Textures with Curvature Functionals

• Anna Song

Journal of Mathematical Imaging and Vision (2022)

• ### Remixing functionally graded structures: data-driven topology optimization with multiclass shape blending

• Yu-Chin Chan
• Daicong Da
• Wei Chen

Structural and Multidisciplinary Optimization (2022)