Reconstruction method of three-dimensional structural model of lightweight carbon-based thermal protection materials
The variational autoencoder is used to predict the micromorphology image of the carbon airgel sample and map it into a probability distribution, guiding the three-dimensional random walk to reconstruct a fully connected three-dimensional structural model, solving the problem of model disconnection in the existing technology, and improving It improves the accuracy of finite element calculation and the simplicity of reconstruction.
Patent Information
- Application Number
- CN202410954854.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-17
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-07-17
AI Technical Summary
The existing three-dimensional structural model reconstruction method based on carbon aerogel samples cannot ensure that the model is fully connected, causing the accuracy and feasibility of the finite element calculation results to be affected.
A variational autoencoder is used to predict the micromorphological images of carbon airgel samples at different cross-sections and map them into probability distributions, thereby guiding a three-dimensional random walk to reconstruct a fully connected three-dimensional structural model. Specific steps include training a variational autoencoder, generating a two-dimensional probability array, stacking it into a three-dimensional probability array, random walking sampling sphere grid points, and combining sphere reconstruction models through Boolean operations.
It achieves complete connectivity of the three-dimensional structural model, ensures the accuracy of finite element calculation results, reduces experimental costs, and provides a simple and universal reconstruction method.
Smart Images

Figure CN118505934B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the field of thermal protection materials, and in particular to a method for reconstructing a three-dimensional structural model of a lightweight carbon-based thermal protection material. Background Art
[0002] In recent years, carbon aerogels with nanoporous structures have been widely used in aerospace, high-temperature industry and other fields as an excellent thermal protection material. However, considering that the nanoporous structure and solid phase skeleton of carbon aerogels are extremely complex, studying their thermal / mechanical properties only through experimental methods will face problems such as long test cycles and high costs. Therefore, it is necessary to establish the "structure-performance" relationship of carbon aerogels through finite element calculations, so as to provide theoretical guidance and scientific basis for experimental research.
[0003] At present, the primary prerequisite for conducting finite element calculation research is to reconstruct a three-dimensional structural model with similar microscopic morphological features based on the structural characterization data of carbon aerogel samples (usually scanning electron microscope images). Since the reconstruction of the three-dimensional structural model is based on the fusion of the microscopic morphology of the sample at different cross sections, and the single scanning electron microscope image obtained through the experiment only contains the microscopic morphology of the sample at a certain cross section, it is necessary to train a deep learning image generation model to quickly predict the microscopic morphological images of the sample at different cross sections.
[0004] Since carbon aerogels are composed of overlapping nanocarbon particles, the key to ensuring the accuracy of finite element calculation results is to use spheres to represent nanocarbon particles based on the microscopic morphology images predicted by the deep learning model, and to reconstruct a three-dimensional structural model that is fully connected and has a similar microscopic morphology to the sample by overlapping the spheres. The method of stacking structural units (such as cubes, spheres, etc.) is usually used to reconstruct the three-dimensional structural model based on the microscopic morphology images of porous materials (Reference 1 [Phys. Rev. E, 2017, 96, 043309], Reference 2 [npj Comput. Mater., 2020, 82, 6] and Reference 3 [J. Power Sources, 2011, 196, 7302-7307]). However, this method cannot ensure that the three-dimensional structural model is fully connected, and it is very likely to introduce isolated structural units, which will seriously affect the feasibility of finite element calculations and the accuracy of calculation results.
[0005] To date, the method of mapping SEM images into probability distributions to guide three-dimensional random walks to construct a three-dimensional structural model that is fully connected and has similar microscopic morphology to the corresponding material has not been seen in the literature or published patents. Summary of the invention
[0006] In order to solve the problem of inaccurate finite element calculation of stacking structure units in the three-dimensional structural model based on the microscopic morphology image of porous materials, the purpose of the present invention is to provide a method for reconstructing the three-dimensional structural model of lightweight carbon-based thermal protection materials, which uses a variational autoencoder to predict the microscopic morphology images of carbon aerogel samples at different cross-sections and maps them into probability distributions, thereby guiding three-dimensional random walks to reconstruct a three-dimensional structural model that has a similar microscopic morphology to the sample and is fully connected.
[0007] The technical solution adopted by the present invention to achieve the above-mentioned purpose is:
[0008] A method for reconstructing a three-dimensional structural model of a lightweight carbon-based thermal protection material comprises the following steps:
[0009] 1) Obtain scanning electron microscope images of carbon aerogel samples and use them to train an image generation model based on a variational autoencoder;
[0010] 2) Use the trained image generation model to generate different grayscale images similar to the given carbon aerogel sample image and convert them into a two-dimensional probability array;
[0011] 3) Stack different two-dimensional probability arrays into a three-dimensional probability array;
[0012] 4) Perform random walk based on the three-dimensional probability array, and use a sphere with a radius proportional to the grid point probability value to represent the array grid points sampled during the walk;
[0013] 5) Based on the Boolean operation combination of all the spheres sampled by random walk, the three-dimensional structural model of the given carbon aerogel sample is reconstructed.
[0014] The step 1) is specifically as follows:
[0015] The scanning electron microscope image of the carbon aerogel sample is converted into grayscale format, and the grayscale value of the image is normalized to obtain a grayscale image with a shape of (m, m), where m represents the resolution of the grayscale image. The grayscale image is used as a training set to train the variational autoencoder.
[0016] The step 2) comprises the following steps:
[0017] 2.1) Using the encoder of the variational autoencoder, encode the given SEM image of the porous carbon aerogel sample to be reconstructed, and obtain the normal distribution corresponding to the image in the latent space of the variational autoencoder Expectations and the covariance matrix ;
[0018] 2.2) Expectation based on normal distribution and the covariance matrix , randomly sample vectors in the latent space;
[0019] 2.3) Using the decoder of the variational autoencoder, decode different vectors randomly sampled from the normal distribution of the latent space, and reconstruct different grayscale images corresponding to the vectors, where the shape of all grayscale images is (m, m);
[0020] 2.4) Use the softmax function to map the pixel values of the grayscale image to probability values, thereby converting the grayscale image into a two-dimensional probability array.
[0021] The formula of the softmax function is: in, is the grayscale image at the grid point The pixel value on is the probability value obtained by mapping.
[0022] The step 3) is specifically as follows:
[0023] Based on Python's numpy library, the vstack method is used to stack a series of two-dimensional probability arrays of shape (m, m) vertically to obtain a three-dimensional probability array of shape (m, m, n), where n is the total number of two-dimensional probability arrays, and the three-dimensional probability array is normalized.
[0024] The step 4) comprises the following steps:
[0025] 4.1) According to the experimental volume fraction of carbon aerogel samples , calculated in the shape of The number of target grid points N that need to be sampled by random walk in the three-dimensional probability array;
[0026] 4.2) Start a random walk from the center of the three-dimensional probability array;
[0027] 4.3) In each step of the random walk, the position of the current array grid point and its probability value are recorded, expressed as ,in Indicates that the random walk in step l samples the first Grid points, Represents the probability value of the grid point; consider the adjacent grid points in the six directions of up, down, left, right, front and back within the array boundary and the current grid point, and use the probability values of the adjacent grid points as the selection weights for weighted random sampling, and use the obtained array grid point as the array grid point to be moved to in the next random walk;
[0028] 4.4) Repeat step 4.3) until the number of different grid points sampled cumulatively by random walk reaches the target number of grid points N;
[0029] 4.5) According to the probability value of the sampled array grid point , calculate the volume fraction of the three-dimensional structure model, and convert the probability value into a sphere radius based on the correction factor k.
[0030] The step 4.1) is specifically as follows: in, is the rounding function.
[0031] In step 4.5), the volume fraction of the three-dimensional structure model for: Where V represents the total number of grid points in the three-dimensional probability array;
[0032] The correction factor k is: ;
[0033] The radius of the sphere for: .
[0034] The step 5) comprises the following steps:
[0035] 5.1) For two spheres at different spatial positions, delete their overlapping parts through Boolean operations, so that the two spheres are combined into a whole;
[0036] 5.2) Repeat step 5.1) until all spheres are combined into a three-dimensional overall structure.
[0037] The present invention has the following beneficial effects and advantages:
[0038] The present invention adopts a variational autoencoder to predict the microscopic morphology images of carbon aerogels at different cross sections, which can avoid multiple scanning and shooting of the same sample, thereby effectively reducing the experimental cost; the present invention maps the microscopic morphology images of the carbon aerogel samples into probability distributions, thereby guiding three-dimensional random walks to reconstruct a three-dimensional structural model that has a similar microscopic morphology to the sample and is fully connected, which can ensure that there are no isolated structural units in the three-dimensional structural model, thereby providing a simple and universal method for establishing a three-dimensional structural model of carbon aerogels. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 The figure is a schematic diagram of the overall process of the reconstruction method according to an embodiment of the present invention.
[0040] Figure 2 1 is a picture of the carbon aerogel sample of Example 1 of the present invention, wherein a is a scanning electron microscope picture, and b is a schematic diagram of the reconstructed three-dimensional structure model.
[0041] Figure 3 : This is a picture of the carbon aerogel sample of Example 2 of the present invention, wherein a is a scanning electron microscope picture, and b is a schematic diagram of the reconstructed three-dimensional structure model.
[0042] Figure 4 3 is a picture of a carbon aerogel sample of Example 3 of the present invention, wherein a is a scanning electron microscope picture, and b is a schematic diagram of a reconstructed three-dimensional structure model. DETAILED DESCRIPTION
[0043] The present invention is further described below by way of examples, but the present invention is not limited to the examples listed. The specific implementation methods of the present invention are further described in detail below in conjunction with the examples, so that the technical solution of the present invention is more conducive to being understood and mastered.
[0044] like Figure 1 As shown, the present invention uses a variational autoencoder to predict the microscopic morphology images of carbon aerogels at different cross-sections, and maps the relevant microscopic morphology images into probability distributions, thereby guiding three-dimensional random walks to reconstruct a three-dimensional structural model that has a similar microscopic morphology to the sample and is fully connected. The method includes the following steps: (1) obtaining scanning electron microscope images of a large number of carbon aerogel samples and training an image generation model based on a variational autoencoder; (2) for a given scanning electron microscope image of a sample, using the image generation model to predict the grayscale image of the microscopic morphology of the sample at different cross-sections, and using a softmax function to map the grayscale image into a two-dimensional probability array; (3) stacking different two-dimensional probability arrays to form a three-dimensional probability array, in which the probability value of the array grid point corresponds to the probability that carbon particles exist at the grid point position of the carbon aerogel sample; (4) performing random walks based on the three-dimensional probability array, and using spheres with a radius proportional to the grid point probability value to represent the array grid points sampled during the walk; (5) reconstructing the three-dimensional structural model based on Boolean operations to combine all spheres sampled by random walks. The details are as follows:
[0045] S1: Obtain a large number of SEM images of carbon aerogel samples (1000 ~ 2000 images) and train a variational autoencoder image generation model.
[0046] S2: A variational autoencoder is used to generate similar grayscale images (6 to 18 images) based on a given SEM image, and its pixel grayscale values are mapped to probability values, thereby converting the grayscale image into a two-dimensional probability array.
[0047] S3: Stack the two-dimensional probability arrays corresponding to the microscopic morphologies of different cross sections of the sample into a three-dimensional probability array.
[0048] S4: Perform random walk based on a three-dimensional probability array, and use a sphere with a radius proportional to the grid point probability value to represent the array grid points sampled during the walk.
[0049] S5: Combining all spheres sampled by random walks based on Boolean operations.
[0050] In step S1, in order to ensure that the grayscale image generated by the model can accurately reflect the microscopic morphology of the carbon aerogel, the following steps are included in sequence:
[0051] S1-1: Convert the experimental SEM images into grayscale format and normalize the image grayscale values.
[0052] S1-2: Training a variational autoencoder using grayscale images.
[0053] In step S2, in order to perform random walking based on the grayscale image characterizing the microscopic morphology of the carbon aerogel, it is necessary to first map the grayscale image into a two-dimensional probability array, which includes the following steps in sequence:
[0054] S2-1: Encode a given SEM image using an encoder to obtain the expectation and covariance matrices of its corresponding latent space normal distribution.
[0055] S2-2: Randomly sample vectors in the latent space based on the expectation and covariance matrix of the normal distribution.
[0056] S2-3: Use the decoder to decode the randomly sampled latent space vectors to reconstruct the different grayscale images corresponding to these vectors.
[0057] S2-4: Use the softmax function to map the reconstructed grayscale image into a two-dimensional probability array. Specifically, the formula of the softmax function is: ,in is the grayscale image at the grid point The pixel value on is the probability value obtained by mapping.
[0058] In step S3, in order to combine different two-dimensional probability arrays into a three-dimensional probability array, thereby guiding a three-dimensional random walk, the following steps are sequentially included:
[0059] S3-1: A series of two-dimensional probability arrays are stacked vertically using the vstack method in the numpy library to construct a three-dimensional probability array.
[0060] S3-2: Normalize the obtained three-dimensional probability array.
[0061] In step S4, in order to perform random walking based on the three-dimensional probability array and use spheres with different radii to represent the path grid points, thereby constructing a three-dimensional structural model of carbon aerogel with spheres as structural units, the following steps are included in sequence:
[0062] S4-1: Calculate the target number N of grid points that need to be sampled by random walk in the three-dimensional probability array according to the volume fraction of the carbon aerogel sample.
[0063] S4-2: Start a random walk from the center of the three-dimensional probability array.
[0064] S4-3: Record the position of the current array grid point and its probability value, expressed as ,in represents the random walk in step l that samples the Grid points, and is the probability value of the grid point; then, consider the adjacent grid points in the six directions of up, down, left, right, front and back within the array boundary and the current grid point, and use the probability values of the relevant grid points as selection weights for weighted random sampling to determine the array grid point to move to next.
[0065] S4-4: Repeat step S4-3 until the number of different grid points sampled cumulatively by random walking reaches the target number of grid points N.
[0066] S4-5: Based on the probability value of the sampled array grid point , using the formula , and the formula Calculate the correction factor k used to convert the probability value to the radius of the sphere, where is the experimental volume fraction; based on the correction factor k, the formula is used Convert the probability value to a sphere radius.
[0067] In step S5, in order to ensure that there is no overlap between different structural units of the three-dimensional structure model, the following steps are sequentially included:
[0068] S5-1: For two spheres at different spatial positions, their overlapping parts are deleted through Boolean operations, so that the two spheres are combined into a whole.
[0069] S5-2: Repeat step S5-1 until all spheres are combined into a three-dimensional overall structure.
[0070] Example 1
[0071] The present invention reconstructs the three-dimensional structure model of the carbon aerogel sample 1, and the volume fraction of the sample is , SEM images are shown in Figure 2 As shown in a, the reconstruction results of the three-dimensional structure model are as follows Figure 2 As shown in b.
[0072] Example 2
[0073] The present invention reconstructs the three-dimensional structure model of carbon aerogel sample 2, and the volume fraction of the sample is , SEM images are shown in Figure 3 As shown in a, the reconstruction results of the three-dimensional structure model are as follows Figure 3 As shown in b.
[0074] Example 3
[0075] The present invention reconstructs the three-dimensional structure model of carbon aerogel sample 3, and the volume fraction of the sample is , SEM images are shown in Figure 4 As shown in a, the reconstruction results of the three-dimensional structure model are as follows Figure 4 As shown in b.
[0076] The results of the embodiments show that the method for reconstructing a three-dimensional structural model based on a carbon aerogel scanning electron microscope image provided by the present invention can construct a three-dimensional structural model that has a similar microscopic morphology to the sample and is completely connected. In the reconstructed three-dimensional structural model, there are no isolated structural units. Therefore, the thermal / mechanical properties obtained by finite element calculation are similar to the experimental results. Compared with the existing method for reconstructing a three-dimensional structural model based on a scanning electron microscope image, this method realizes the reconstruction of a three-dimensional structural model with completely connected structural units for the first time, and it is easy to operate and has universal applicability. This method has an important reference role in reconstructing three-dimensional structural models of porous materials based on scanning electron microscope images in the future, and has potential value for large-scale promotion.
Claims
1. A method for reconstructing a three-dimensional structural model of a lightweight carbon-based thermal protection material, characterized in that: The following steps are involved: 1) Obtain scanning electron microscope images of carbon aerogel samples and use them to train an image generation model based on a variational autoencoder; 2) Use the trained image generation model to generate grayscale images of microscopic morphologies at different cross-sections similar to the given carbon aerogel sample image, and convert them into a two-dimensional probability array; 3) Stacking different two-dimensional probability arrays into a three-dimensional probability array, where the probability value of the array grid point corresponds to the probability of the carbon aerogel sample having carbon particles at the grid point position; 4) Perform random walk based on the three-dimensional probability array, and use a sphere with a radius proportional to the grid point probability value to represent the array grid points sampled during the walk; 5) Based on the Boolean operation combination of all the spheres sampled by random walk, the three-dimensional structural model of the given carbon aerogel sample is reconstructed.
2. The method for reconstructing a three-dimensional structural model of a lightweight carbon-based thermal protection material according to claim 1, characterized in that: The step 1) is specifically as follows: The scanning electron microscope image of the carbon aerogel sample is converted into grayscale format, and the grayscale value of the image is normalized to obtain a grayscale image with a shape of (m, m), where m represents the resolution of the grayscale image. The grayscale image is used as a training set to train the variational autoencoder.
3. The method for reconstructing a three-dimensional structural model of a lightweight carbon-based thermal protection material according to claim 1, characterized in that: The step 2) comprises the following steps: 2.1) Using the encoder of the variational autoencoder, encode the given SEM image of the porous carbon aerogel sample to be reconstructed, and obtain the normal distribution corresponding to the image in the latent space of the variational autoencoder Expectations and the covariance matrix ; 2.2) Expectation based on normal distribution and the covariance matrix , randomly sample vectors in the latent space; 2.3) Using the decoder of the variational autoencoder, decode different vectors randomly sampled from the normal distribution of the latent space, and reconstruct different grayscale images corresponding to the vectors, where the shape of all grayscale images is (m, m); 2.4) Use the softmax function to map the pixel values of the grayscale image to probability values, thereby converting the grayscale image into a two-dimensional probability array.
4. The method for reconstructing a three-dimensional structural model of a lightweight carbon-based thermal protection material according to claim 3, characterized in that: The formula of the softmax function is: in, is the grayscale image at the grid point The pixel value on is the probability value obtained by mapping.
5. The method for reconstructing a three-dimensional structural model of a lightweight carbon-based thermal protection material according to claim 1, characterized in that: The step 3) is specifically as follows: Based on Python's numpy library, the vstack method is used to stack a series of two-dimensional probability arrays of shape (m, m) vertically to obtain a three-dimensional probability array of shape (m, m, n), where n is the total number of two-dimensional probability arrays, and the three-dimensional probability array is normalized.
6. The method for reconstructing a three-dimensional structural model of a lightweight carbon-based thermal protection material according to claim 1, characterized in that: The step 4) comprises the following steps: 4.1) According to the experimental volume fraction of carbon aerogel samples , calculated in the shape of The number of target grid points N that need to be sampled by random walk in the three-dimensional probability array; 4.2) Start a random walk from the center of the three-dimensional probability array; 4.3) In each step of the random walk, the position of the current array grid point and its probability value are recorded, expressed as ,in Indicates that the random walk in step l samples the first Grid points, Represents the probability value of the grid point; consider the adjacent grid points in the six directions of up, down, left, right, front and back within the array boundary and the current grid point, and use the probability values of the adjacent grid points as the selection weights for weighted random sampling, and use the obtained array grid point as the array grid point to be moved to in the next random walk; 4.4) Repeat step 4.3) until the number of different grid points sampled cumulatively by random walk reaches the target number of grid points N; 4.5) According to the probability value of the sampled array grid point , calculate the volume fraction of the three-dimensional structure model, and convert the probability value into a sphere radius based on the correction factor k.
7. The method for reconstructing a three-dimensional structural model of a lightweight carbon-based thermal protection material according to claim 6, characterized in that: The step 4.1) is specifically as follows: in, is the rounding function.
8. The method for reconstructing a three-dimensional structural model of a lightweight carbon-based thermal protection material according to claim 6, characterized in that: In step 4.5), the volume fraction of the three-dimensional structure model for: Where V represents the total number of grid points in the three-dimensional probability array; The correction factor k is: ; The radius of the sphere for: .
9. The method for reconstructing a three-dimensional structural model of a lightweight carbon-based thermal protection material according to claim 1, characterized in that: The step 5) comprises the following steps: 5.1) For two spheres at different spatial positions, delete their overlapping parts through Boolean operations, so that the two spheres are combined into a whole; 5.2) Repeat step 5.1) until all spheres are combined into a three-dimensional overall structure.
Citation Information
Patent Citations
Chip three-dimensional thermal analysis method
CN105718638A
Numerical reconstruction method of aerogel material particle cross-linked three-dimensional porous structure
CN113724805A
