AI generation method for UHPC mix ratio based on graph-constrained generative adversarial network
Through the method of generating adversarial networks based on graph constraints, ultra-high performance concrete mix proportions are automatically generated, solving the complexity and high cost problems of UHPC mix proportion optimization design, achieving fast and accurate material-structure integrated design, and adapting to complex Civil Engineering Requirements.
Patent Information
- Application Number
- CN202411075170.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-07
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-08-07
AI Technical Summary
Existing technology is difficult to achieve the optimal design of ultra-high performance concrete (UHPC) mix proportions and the accurate prediction of constitutive models, making it difficult to achieve integrated material-structure design. Moreover, traditional methods are costly and difficult to adapt to rapidly changing design needs.
Using a graph-constrained generative adversarial network (GC-GAN) method, the optimized UHPC mix ratio is automatically generated by inputting the UHPC stress-strain relationship curve and multiple material index constraints, and the graph convolution layer and fully connected layer are used to extract the graph structure. Information and condition vectors to generate mix ratios that meet structural functional requirements.
It achieves the rapid and accurate generation of UHPC mix ratios that meet the functional requirements of complex structures, reduces experimental costs and time, improves design efficiency, adapts to the complex functional needs of modern civil engineering, and promotes the implementation of "artificial intelligence + civil design" applications .
Smart Images

Figure CN118588189B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of construction, and in particular to an AI automatic generation method for an ultra-high performance concrete (UHPC) mix ratio based on a graph-constrained generative adversarial network. Background Art
[0002] The innovative application of high-performance new materials is the future development trend of the civil engineering industry. In recent years, ultra-high performance concrete (UHPC) has become the representative of a new generation of civil engineering materials due to its advantages such as high density, high strength and modulus, high durability and high ductility. It has also posed new challenges to the optimized structural design using UHPC materials. At present, civil engineering design is moving towards the "material-structure" integrated design theory, and the constitutive model is the key bridge between materials and structures. For the new material of ultra-high performance concrete (UHPC), how to optimize its mix design and obtain the stress-strain relationship that meets the functional requirements of high-performance structures to achieve the specific index requirements of structural functional design is the key link in realizing the "material-structure" integrated design method, and it is also a necessary prerequisite for giving full play to the performance of UHPC materials.
[0003] In material design, multiple repetitive tests are generally used to determine whether the mix ratio of UHPC meets a single indicator such as 28-day compressive strength; in structural design, the stress-strain constitutive model of UHPC material under a specified strength is calculated and substituted into the structural simulation analysis program to calculate the structural response under load conditions and determine whether the structural functional index requirements are met. On the one hand, these two separated design stages make it difficult to automatically select the optimized material mix ratio according to the structural functional objectives, and it is impossible to truly realize the "material-structure" integrated design concept; on the other hand, the single indicator of 28-day compressive strength is difficult to comprehensively reflect the performance of UHPC, so it is impossible to fully realize the complex structural functional indicators that UHPC materials need to meet. Therefore, to connect the two-stage process of material design and structural design, it is necessary to determine the stress-strain relationship that meets the requirements according to the structural functional objectives, and then optimize the design of the UHPC material mix ratio under the set multiple material index constraints to meet the complex functional requirements of modern civil engineering.
[0004] However, since the mix proportion and constitutive model of UHPC are both affected by the coupling of multiple factors, a large number of mix proportion tests were required to determine them in the past. At present, the optimization design of UHPC formula and the accurate prediction of constitutive relations are still a complex and time-consuming process. The birth of generative AI provides an automatic generation path for UHPC mix proportions. Traditional "physics-driven" methods are difficult to fully explain and express the coupling influence of many factors. These methods rely on a large amount of experimental data and empirical formulas, which are not only costly but also difficult to adapt to rapidly changing design requirements. In this context, generative artificial intelligence provides a new idea based on "data-driven", which can quickly generate UHPC mix proportions that meet the specific functional requirements of the structure. By developing a fast and accurate UHPC mix generation method, the design efficiency and the accuracy of material performance prediction can be significantly improved.
[0005] Therefore, a method for automatically outputting the mix ratio by inputting the UHPC stress-strain relationship curve is proposed. The existing UHPC test data can be used to generate an optimized UHPC mix ratio through artificial intelligence (AI) technology to meet the specific needs of structural design and realize the "material-structure" integrated design, thereby reducing experimental costs, accelerating the design process, adapting to the ever-changing structural design functional requirements, and meeting the functional needs of modern complex civil engineering. This is of great significance for promoting the implementation and development of the "artificial intelligence + civil design" application scenarios. Summary of the invention
[0006] The present invention aims to propose an AI automatic generation method for ultra-high performance concrete (UHPC) mix ratio based on graph-constrained generative adversarial networks (GC-GAN). The method can input the required UHPC stress-stress relationship according to the functional objectives of complex civil structures, and automatically generate UHPC material mix ratios accurately, stably and efficiently according to the set multiple material index constraints, providing civil engineers with a quick tool for UHPC "material-structure" integrated design.
[0007] In order to achieve the above technical objectives, the technical solution adopted by the present invention is:
[0008] A method for generating ultra-high performance concrete mix ratio based on a graph-constrained generative adversarial network comprises the following steps:
[0009] Step 1: Data preparation and preprocessing:
[0010] Obtain the UHPC mix ratio and the corresponding compressive strength data set, and calculate the stress-strain curve corresponding to the compressive strength through the formula;
[0011] Perform data preprocessing on the stress-strain curve, complete data alignment, and extract K groups of stress data under fixed strain;
[0012] Step 2: Build the graph structure:
[0013] Stress-strain is defined as the node of the graph structure, the coupled effect of stress-strain of UHPC on the proportion of each component of the mix ratio is defined as the edge between each node, and the graph structure is defined according to the nodes and edges;
[0014] Step 3: Incorporate constraints:
[0015] Set constraints and convert them into condition vectors. Input the constraint vectors into the generator and discriminator as additional information during training to guide the generation and discrimination processes.
[0016] Step 4: Build GC-GAN:
[0017] A graph-constrained generative adversarial network (GC-GAN) is constructed, in which the generator is used to generate the mix ratio corresponding to the stress-strain curve. The graph structure information is extracted using the graph convolution layer, the graph structure and the conditional vector are fused, and the mix ratio is generated through the fully connected layer.
[0018] The discriminator is used to distinguish the difference between the generated data and the real data. It also uses the graph convolution layer to process the graph structure data and combines the conditional vector for discrimination.
[0019] Step 5: Train GC-GAN:
[0020] Initialize the generator and discriminator network parameters;
[0021] Randomly select a batch of real data (mix ratio and stress-strain curve) from the data set; input the real data and condition vector into the discriminator and calculate the discriminator loss;
[0022] Generate a batch of mixes from the generator, input the generated mixes and condition vectors into the discriminator, and calculate the generator loss; back-propagate and update the network parameters of the generator and discriminator, and repeat the above steps until the network converges;
[0023] Step 6: Generate mix ratio using GC-GAN:
[0024] Input the stress-strain relationship curve and condition vector into the trained generator, and the generator generates a mix ratio that meets the conditions based on the input stress-strain relationship curve and constraint condition vector.
[0025] Furthermore, the data set in step 1 includes the proportion of each component in the UHPC mix ratio and the compressive strength corresponding to the corresponding mix ratio.
[0026] Furthermore, the constraints in step 3 include fiber volume content, flexural strength, tensile strength, shear strength, ultimate strain and elastic modulus; and the condition vector includes structural function indicators and material performance requirements.
[0027] Furthermore, step 1 specifically includes:
[0028] Step 11, obtaining the components of the UHPC mix ratio, and taking the proportion of each component in the mix ratio as the output data set; the UHPC mix ratio consists of sand, water, cement, fly ash, silica fume, water reducing agent, steel fiber, etc.;
[0029] Step 12: Set the target compressive strength and fiber content (which will be used as constraints later), and calculate the corresponding stress-strain curve by incorporating the steel fiber UHPC axial compression constitutive model formula. The calculation formula is as follows:
[0030] (1)
[0031] (2)
[0032] (3)
[0033] Where: s c = y × f c , s c is the stress of concrete under compression, f c is the axial compressive strength of the prism;
[0034] x = e c / e 0, e c is the strain of concrete under compression, e 0 is the peak compressive strain of concrete;
[0035] n =0.8+ f c / 17; k 1 is the parameter related to the elastic modulus of UHPC, k 2Depends on the amount of steel fiber V f and steel fiber length V l ;
[0036] Step 13, taking the stress-strain curve corresponding to the target compressive strength, and setting 15000 με as the limit value for collecting axial strain;
[0037] Take 128 points of the stress-strain curve at equal strain intervals, and convert all stress-strain curves into 128 groups of stress-strain data, which are used as the feature vectors of the input data set.
[0038] Furthermore, step 2 specifically includes:
[0039] Step 21: In the graph structure, define the stress-strain corresponding values in the stress-strain curve as nodes of the graph structure. V The coupled effect of stress-strain on the ratio of each component of UHPC mix is defined as the edge between each node E ; The graph structure consisting of nodes and their relationships is defined as ;in, is the data of all nodes in the graph structure, is the set of all connected edges; through the edges between nodes E The nodes that depend on each other V Connected to form a directed graph, that is, a graph structure Graph ( );
[0040] Step 22: Use the feature matrix To represent the node features of the graph structure, as shown in the following formula:
[0041] (4)
[0042] in: N is the number of nodes; M is the number of points taken at equal strain intervals on the stress-strain curve, M=128;
[0043] Step 23: Define the relationship between eigenvectors as an adjacency matrix A , the cosine distance is used to measure the difference in the directions of two vectors; the adjacency matrix is used A To represent the mutual influence between all nodes, , as follows:
[0044] (5)
[0045] Adjacency Matrix A Represents the correlation network formed by all vectors, the eigenvector is the node in the network, and the parameter correlation coefficient r uv represents the edge weight of each node. The larger the weight, the more edges there are, that is, the more vectors representing the relevance to the node. u , v are any two vectors;
[0046] Step 24: Structure the graph The edge E Using the adjacency matrix in vector space A To indicate that the node V In vector space, we use a feature matrix with node features X To express.
[0047] Furthermore, step 3 specifically includes:
[0048] Step 31: Determine the dimension of the constraint vector according to the number of constraints to be added and the specific requirements of each constraint; if m conditions, each of which is a real value, then the dimension of the condition vector is m . Normalize the conditional data and scale all conditional data to the interval [0, 1];
[0049] Step 32: Concatenate the normalized conditional data into a conditional vector, with each condition as an element in the conditional vector. After normalization, construct the conditional vector as shown below:
[0050] (6)
[0051] In the formula m is the number of constraints;
[0052] During training, the conditional vector is fed into the generator and discriminator as additional information;
[0053] Step 33: Concatenate the input vector. In the generative adversarial network, concatenate the graph structure data with the conditional vector to form a complete input vector, as shown below:
[0054] (7).
[0055] Further, the generator described in step 4 is used to generate a mix ratio corresponding to a stress-strain curve, and the inputs are a graph structure and a condition vector;
[0056] The first half of the generator network is the encoder, which extracts the features of the input samples through multi-layer graph convolution calculations and generates feature representations of the graph structure; the encoder consists of three graph convolution layers (GCNConv), two batch normalization (BN) layers, an activation function layer after each graph convolution layer, and a fully connected layer; the activation function layer is a leaky rectified linear unit;
[0057] The graph convolution layer is used to extract the graph structure information, the graph structure and the conditional vector are fused, the matching ratio is generated through the fully connected layer, and the encoder finally generates a feature matrix of size 1×64; the graph convolution layer operation mode is:
[0058] (8)
[0059] in: H ( l ) For the l The input feature matrix of the layer; H ( l+1) For the l +1 layer’s input feature matrix; Add the self-connected adjacency matrix to each node; I is the identity matrix; yes The degree matrix of W (l) For the l The weight matrix of the layer; s is a nonlinear activation function (such as ReLU);
[0060] The second half of the generator network is a decoder, which gradually restores the features of the input samples through deconvolution operations; the decoder consists of 2 deconvolution layers, 2 batch normalization layers, an activation function layer (ReLU) after each deconvolution layer, and an output fully connected layer;
[0061] The fully connected layer uses the activation function Sigmoid. After multiple layers of deconvolution operations, the decoder finally generates the required matching ratio. The decoder finally generates a feature matrix of size 1×11, that is, generates samples G ( z ); the deconvolution calculation formula is as follows:
[0062] (9)
[0063] Where: O T is the size of the output feature map; W T is the size of the input data; S T is the step size of the convolution kernel; K T is the size of the convolution kernel; P T The number of layers to fill the edges;
[0064] The discriminator is used to receive the generated samples G ( z ) and the conditional vector and the true ratio to determine the true or false;
[0065] The discriminator consists of 3 graph convolution layers, 2 fully connected layers, 4 batch normalization layers and activation function layers; each graph convolution layer is followed by a batch normalization layer and a ReLU activation function;
[0066] The first fully connected layer uses the ReLU activation function, and the second fully connected layer obtains the discrimination result through the Sigmoid activation function, mapping the output value to the range of [0,1], indicating the probability that the data input to the discriminant network is real data.
[0067] Furthermore, step 5 specifically includes:
[0068] Step 51, initialize the network parameters of the generator and the discriminator, divide the data set into a training set and a test set, input the data samples and condition vectors in the training set into the generator and the discriminator, generate the reconstructed mix ratio samples under the condition vector constraint after the generator operation, and compare and judge with the real mix ratio and condition vector in the discriminator. This process is a maximum and minimum optimization problem, as shown below:
[0069] (10)
[0070] Where: E [log D ( x | c )] means that the actual mix ratio data x Input the discriminator with constraint c D Get the probability of whether it is real data; E [log(1- D ( G ( z | c )| c ))] represents the probability of the generated sample generated by the constraint condition c input generator and then judged by the discriminator as the real data;
[0071] Step 52: During the training process, the generator is used to generate a mix ratio close to the real one. The graph structure and the constraint condition c are spliced and input into the generator, and the generator outputs the predicted mix ratio data. G ( z | c );
[0072] The discriminator is used to judge the predicted mix ratio data G ( z | c ) and actual mix ratio data x Similarity, and judgment of predicted mix ratio G ( z | c) satisfies the constraint condition c; the loss function of the generative model and the discriminative model in the model L G and L D They are:
[0073] (11)
[0074] (12)
[0075] Where: E z,c ( ) indicates z , c The expected value of a distribution; E x,c ( ) represents the expected value of the distribution of x and c; G ( )and D ( ) are the data output by the generator and the discriminator respectively. The generator hopes to improve the predicted mix ratio data G ( z | c ) The output value of the discriminator, and the discriminator hopes to reduce the predicted mix ratio data G ( z | c ) and increase the actual mix ratio data x The output value of .
[0076] Step 53: When training the GC-GAN model, the root mean square error (RMSE) and the coefficient of determination (R 2 ) Evaluate the reconstruction performance;
[0077] RMSE is used to measure the gap between the reconstructed data and the real data; R 2 It is a statistical measure used to analyze the similarity between two signals. Its value ranges from 0 to 1. The closer it is to 1, the better the reconstructed signal fits the real data. 2 The expression is as follows:
[0078] (13)
[0079] (14)
[0080] Where: k is the number of mix ratios; For the i Real data; For the i Prediction data; is the average value of the real data.
[0081] Step 54: Use Stochastic Gradient Descent (SGD) to train the model with a batch size of 1, that is, only one sample is used to update the model parameters each time;
[0082] Adaptive Moment Estimation (Adam) was used as the optimizer and trained for 500 iterations. The learning rates of both the generator and the learner were set to 0.0001.
[0083] During the training process, in the generator G In the case of certainty, the discriminator D The update is achieved through maximization; when the discriminator is determined, the generator is optimized through minimization. Finally, after the generative adversarial network is updated alternately for enough iterations, the generator can fully learn the real data distribution, the learning ability is continuously enhanced, and finally the matching ratio is generated.
[0084] Furthermore, step 6 specifically includes:
[0085] After the model is successfully trained, the constraints and UHPC compressive strength are set, and the stress-strain relationship curve and condition vector are automatically calculated and input into GC-GAN. Finally, the UHPC mix ratio that meets the specific structural function is automatically generated.
[0086] The present invention also provides a computer-readable storage medium, wherein at least one instruction, at least one program, code set or instruction set is stored in the storage medium, and the at least one instruction, at least one program, code set or instruction set is loaded and executed by a processor to implement the above-mentioned UHPC mix AI generation method based on graph constraint generative adversarial network.
[0087] By adopting the above technical solution, the present invention has the following beneficial effects compared with the prior art:
[0088] The present invention provides an AI automatic generation method for UHPC mix ratio based on graph-constrained generative adversarial networks. The graph-constrained generative adversarial networks (GC-GAN) can generate satisfactory mix ratio data based on different constraints (performance requirements). It is particularly valuable in designing experiments and optimizing material ratios, and can explore a wider design space.
[0089] GC-GAN can process high-dimensional data containing multiple variables and complex relationships, making it particularly suitable for dealing with complex material science problems. It reduces the need for physical experiments, thereby reducing R&D costs and time. In addition, researchers can quickly test and evaluate new material ratio schemes, speed up the process from concept to verification, and provide efficient tools for achieving "material-structure" integrated design that meets the functional goals of complex UHPC structures. BRIEF DESCRIPTION OF THE DRAWINGS
[0090] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0091] Figure 1 It is a schematic diagram of the UHPC mix AI automatic generation method based on the graph constraint generative adversarial network provided by the present invention;
[0092] Figure 2 It is a simplified flow chart of the AI automatic generation method of UHPC mix ratio based on graph constraint generative adversarial network provided by the present invention;
[0093] Figure 3 It is a structural diagram of a generator in a graph-constrained generative adversarial network model provided by the present invention;
[0094] Figure 4 It is a structural diagram of the discriminator in the graph-constrained generative adversarial network model provided by the present invention;
[0095] Figure 5 It is a structural schematic diagram of a computer-readable storage medium provided by the present invention. DETAILED DESCRIPTION
[0096] The present invention will be further described in detail below in conjunction with the accompanying drawings and examples. It is particularly noted that the following examples are only used to illustrate the present invention, but are not intended to limit the scope of the present invention. Similarly, the following examples are only partial embodiments of the present invention rather than all embodiments, and all other embodiments obtained by those of ordinary skill in the art without creative work are within the scope of protection of the present invention.
[0097] Refer to the attached Figure 1-2 As shown, this embodiment provides a UHPC mix AI generation method based on a graph constraint generative adversarial network, which specifically includes the following steps:
[0098] Step 1: Data preparation and preprocessing:
[0099] Obtain the UHPC mix ratio and the corresponding compressive strength data set, which includes the proportion of each component in the UHPC mix ratio, namely, the amount of sand, water, cement, fly ash, silica fume, water reducer, steel fiber and the compressive strength corresponding to the corresponding mix ratio; calculate the stress-strain curve corresponding to the compressive strength through the formula; perform data preprocessing on the stress-strain curve, complete data alignment, and extract K groups of stress data under fixed strain; specifically include:
[0100] Step 11, obtaining the components of the UHPC mix ratio, and taking the proportion of each component in the mix ratio as the output data set; the UHPC mix ratio is composed of sand, water, cement, fly ash, silica fume, water reducer, steel fiber, etc.; specifically, in this embodiment, the UHPC mix ratio includes quartz sand 10-20 mesh, quartz sand 20-40 mesh, quartz sand 40-80 mesh, quartz sand 80-120 mesh, quartz sand 120-180 mesh, water, cement, fly ash, silica fume, glass powder, water reducer, and steel fiber.
[0101] Step 12: Set the target compressive strength and fiber content (where fiber content is used as a constraint condition), and calculate the corresponding stress-strain curve by incorporating the steel fiber UHPC axial compression constitutive model formula. The calculation formula is as follows:
[0102] (1)
[0103] (2)
[0104] (3)
[0105] Where: s c = y × f c , s c is the stress of concrete under compression, f c is the axial compressive strength of the prism;
[0106] x = e c / e 0, e c is the strain of concrete under compression, e 0 is the peak compressive strain of concrete;
[0107] n =0.8+ f c / 17; k 1 is the parameter related to the elastic modulus of UHPC, k 2Depends on the steel fiber content ( V f ) and steel fiber length ( V l );
[0108] Step 13: Take the stress-strain curve corresponding to the target compressive strength and set it to 15000 με (με is the unit: microstrain, 1με=10 -6 ε) is the limit value of collecting axial strain; 128 points are taken from the stress-strain curve at equal strain intervals, and all stress-strain curves are converted into 128 groups of stress-strain data, which are used as the eigenvectors of the input data set.
[0109] Step 2: Build the graph structure:
[0110] Stress-strain is defined as the node of the graph structure, and the coupling effect of UHPC stress-strain on the proportion of each component of the mix ratio is defined as the edge between each node. The graph structure is defined according to the nodes and edges; specifically, it includes:
[0111] Step 21: In the graph structure, define the stress-strain corresponding values in the stress-strain curve as nodes of the graph structure. V The coupled effect of stress-strain on the ratio of each component of UHPC mix is defined as the edge between each node E ; The graph structure consisting of nodes and their relationships is defined as ;in, is the data of all nodes in the graph structure, is the set of all connected edges; through the edges between nodes E The nodes that depend on each other V Connected to form a directed graph, that is, a graph structure Graph ( )
[0112] Step 22: Use the feature matrix To represent the node features of the graph structure, as shown in the following formula:
[0113] (4)
[0114] in: N is the number of nodes; M is the number of points taken at equal strain intervals on the stress-strain curve, M=128.
[0115] Step 23: Define the relationship between eigenvectors as an adjacency matrix A , the cosine distance is used to measure the difference in the directions of two vectors; the adjacency matrix is used A To represent the mutual influence between all nodes, , as follows:
[0116] (5)
[0117] Adjacency Matrix A Represents the correlation network formed by all vectors, the eigenvector is the node in the network, and the parameter correlation coefficient r uv represents the edge weight of each node. The larger the weight, the more edges there are, that is, the more vectors representing the relevance to the node. u , v are any two vectors;
[0118] Step 24: Structure the graph The edge E Using the adjacency matrix in vector space A To indicate that the node V In vector space, we use a feature matrix with node features X To express.
[0119] Step 3: Incorporate constraints:
[0120] Set constraints such as fiber volume content, flexural strength, tensile strength, shear strength, ultimate strain and elastic modulus, and convert the constraints into condition vectors. The condition vectors contain structural functional indicators and material performance requirements, such as fiber content of 0.5%, flexural strength of 20MPa, tensile strength of 12MPa, shear strength of 15MPa, ultimate deformation of 0.1%, elastic modulus of 60GPa, etc.; input the above multiple material index constraint condition vectors as additional information into the generator and discriminator during the training process to guide the generation process and the discriminator process; specifically include:
[0121] Step 31: Determine the dimension of the constraint vector according to the number of constraints to be added and the specific requirements of each condition; for example, if there are 6 conditions and each condition is a real value, the dimension of the condition vector is 6. Normalize the condition data and scale all condition data to the interval [0, 1];
[0122] Step 32: Concatenate the normalized condition data into a constraint condition vector, with each condition as an element in the condition vector. After normalization, construct the condition vector as shown below:
[0123] (6)
[0124] In the formula m is the number of constraints;
[0125] For easier understanding, an example is given below:
[0126] Assume the following conditions: fiber content is 0.5% (target range 0-2%), flexural strength is 20 MPa (target range 15-40 MPa), tensile strength is 12 MPa (target range 6-15 MPa), shear strength is 15 MPa (target range 10-20 MPa), ultimate deformation is 0.15% (target range 0.1-0.2%), elastic modulus is 65 GPa (target range 60-70 GPa). The target range refers to the range of each condition in the input data set.
[0127] After normalization, in this example, the fiber content is 0.5 / 2=0.25, and the tensile strength is (12-6) / (15-6)=0.67. The conditional vector is constructed by calculation in sequence as shown below:
[0128]
[0129] During training, the conditional vector is fed into the generator and discriminator as additional information;
[0130] Step 33, concatenate the input vector, and concatenate the graph structure data and the conditional vector together in the generative adversarial network; specifically, in this embodiment, the graph structure data is dimensionally reduced in the generative adversarial network, and the conditional vector is mapped and dimensionally increased and then concatenated together to form a complete input vector (size is 1×64), as shown below:
[0131] (7).
[0132] Step 4: Build GC-GAN:
[0133] A graph-constrained generative adversarial network (GC-GAN) is constructed, in which the generator is used to generate the mix ratio corresponding to the stress-strain curve, the graph structure information is extracted using the graph convolution layer, the graph structure and the conditional vector are fused, and the mix ratio is generated through the fully connected layer; the discriminator is used to distinguish the difference between the generated data and the real data, and the graph structure data is also processed using the graph convolution layer, and the conditional vector is combined for discrimination.
[0134] The generator is used to generate the mix ratio corresponding to the stress-strain curve, and the input is the graph structure and condition vector.
[0135] See attached Figure 3As shown in the figure, the first half of the generator network is the encoder, which extracts the features of the input samples through multi-layer graph convolution calculations and generates feature representations of the graph structure; the encoder consists of three graph convolution layers (GCNConv), two batch normalization (BN) layers, an activation function layer after each graph convolution layer, and a fully connected layer; the activation function layer is a leaky rectified linear unit (LReLU);
[0136] The graph convolution layer is used to extract the graph structure information, the graph structure and the conditional vector are fused, and the matching ratio is generated through the fully connected layer. The encoder finally generates a feature matrix of size 1×64; specifically, in this embodiment, the graph convolution layer is used to extract the graph structure information, the graph structure and the conditional vector are fused, and the conditional vector (1×6) is mapped to the same size as the graph convolution output (1×32) through full connection, and the output of the graph convolution layer and the mapping result of the conditional vector are spliced to obtain the merged feature vector (1×64). The encoder finally generates a feature matrix of size 1×64. The operation principle of the graph convolution layer is:
[0137] (8)
[0138] in: H ( l ) For the l The input feature matrix of the layer; H ( l+1 ) For the l +1 layer’s input feature matrix; Add the self-connected adjacency matrix to each node; I is the identity matrix; yes The degree matrix of W (l) For the l The weight matrix of the layer; s is a nonlinear activation function (such as ReLU);
[0139] The second half of the generator network is the decoder, which gradually restores the features of the input samples through deconvolution operations; the decoder consists of 2 deconvolution layers, 2 batch normalization layers, an activation function layer (ReLU) after each deconvolution layer, and an output fully connected layer;
[0140] The fully connected layer uses the activation function Sigmoid. After multiple layers of deconvolution operations, the decoder finally generates the required matching ratio. The decoder finally generates a feature matrix of size 1×11, that is, the generated sample G ( z ); the deconvolution calculation formula is as follows:
[0141] (9)
[0142] Where: O T is the size of the output feature map; W T is the size of the input data; S T is the step size of the convolution kernel; K T is the size of the convolution kernel; P T The number of layers to fill in the edges.
[0143] Refer to the attached Figure 4 As shown, the discriminator is used to receive the generated samples G ( z ) with the conditional vector and the true ratio to distinguish true from false. The discriminator consists of 3 graph convolution layers, 2 fully connected layers, 4 batch normalization layers and activation function layers; each graph convolution layer is followed by a batch normalization layer and a ReLU activation function; specifically, in this embodiment, the conditional vector (1×6) and the matching ratio (1×11) are mapped to the same size as the graph convolution output (1×32) through the fully connected layer, and the output of the graph convolution layer, the mapping result of the conditional vector and the mapping result of the matching ratio are concatenated to obtain a merged feature vector (1×96). The first fully connected layer uses the ReLU activation function, and the second fully connected layer obtains the discrimination result through the Sigmoid activation function, mapping the output value to the range of [0,1], indicating the probability that the data input to the discriminant network is real data.
[0144] Step 5: Train GC-GAN:
[0145] Initialize the generator and discriminator network parameters; randomly select a batch of real data (mix ratio and stress-strain curve) from the dataset. Input the real data and conditional vector into the discriminator and calculate the discriminator loss.
[0146] Generate a batch of mix ratios from the generator, input the generated mix ratios and condition vectors into the discriminator, calculate the generator loss; back-propagate and update the network parameters of the generator and discriminator, and repeat the above steps until the network converges; specifically include:
[0147] Step 51, initialize the network parameters of the generator and the discriminator, divide the data set into a training set and a test set, input the data samples and condition vectors in the training set into the generator and the discriminator, generate the reconstructed mix ratio samples under the condition vector constraint after the generator operation, and compare and judge with the real mix ratio and condition vector in the discriminator. This process is a maximum and minimum optimization problem, as shown below:
[0148] (10)
[0149] Where: E [log D ( x | c )] means that the actual mix ratio data x Input the discriminator with constraint c D Get the probability of whether it is real data; E [log(1- D ( G ( z | c )| c ))] represents the probability of the generated sample generated by the constraint condition c input generator and then judged by the discriminator as real data.
[0150] Step 52: During the training process, the task of the generator is to generate a mix ratio that is as close to the real one as possible. The graph structure and the constraint condition c are spliced and input into the generator, and the generator outputs the predicted mix ratio data. G ( z | c ). The discriminator is used to judge the predicted mix ratio data G ( z | c ) and actual mix ratio data x Similarity, and judgment of predicted mix ratio G ( z | c ) satisfies the constraint condition c; the loss function of the generative model and the discriminative model in the model L G and L D They are:
[0151] (11)
[0152] (12)
[0153] Where: E z,c ( ) indicates z , c The expected value of a distribution; E x,c ( ) represents the expected value of the distribution of x and c; G ( )and D ( ) are the data output by the generator and the discriminator respectively. The generator hopes to improve the predicted mix ratio data G ( z | c ) The output value of the discriminator, and the discriminator hopes to reduce the predicted mix ratio dataG ( z | c ) and increase the actual mix ratio data x The output value of .
[0154] Step 53: When training the GC-GAN model, the root mean square error (RMSE) and the coefficient of determination (R 2 ) is used to evaluate the reconstruction performance; RMSE is used to measure the gap between the reconstructed data and the real data. 2 It is a statistical measure used to analyze the similarity between two signals. Its value ranges from 0 to 1. The closer it is to 1, the better the reconstructed signal fits the real data. 2 The expression is as follows:
[0155] (13)
[0156] (14)
[0157] Where: k is the number of mix ratios; For the i Real data; For the i Prediction data; is the average value of the real data.
[0158] Step 54: Use Stochastic Gradient Descent (SGD) to train the model with a batch size of 1, that is, only one sample is used to update the model parameters each time. Use Adam (Adaptive MomentEstimation) as the optimizer and perform 500 iterations of training. The learning rates of the generator and learner are both set to 0.0001. During the training process, G In the case of certainty, the discriminator D The update is achieved through maximization; when the discriminator is determined, the generator is optimized through minimization. Finally, after the generative adversarial network is updated alternately for enough iterations, the generator can fully learn the real data distribution, the learning ability is continuously enhanced, and finally the matching ratio is generated.
[0159] Step 6: Generate mix ratio using GC-GAN:
[0160] Input the stress-strain relationship curve and condition vector into the trained generator. The generator generates a mix ratio that meets the conditions based on the input stress-strain relationship curve and constraint vector, specifically:
[0161] After the model is successfully trained, the constraints and UHPC compressive strength are set, and the stress-strain relationship curve and condition vector are automatically calculated and input into GC-GAN. Finally, the UHPC mix ratio that meets the specific structural function is automatically generated.
[0162] Through the above steps, graph constraints and conditional vectors are effectively integrated into the training and generation process of GC-GAN, ensuring that the generated UHPC mix meets specific structural functional indicators and material performance requirements.
[0163] like Figure 5 As shown, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the above-mentioned UHPC mix AI generation method based on a graph constraint generative adversarial network.
[0164] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0165] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, server, or network device, etc.) or a processor (processor) to perform all or part of the steps of each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program codes.
[0166] The above descriptions are only some embodiments of the present invention, and are not intended to limit the protection scope of the present invention. Any equivalent device or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.
Claims
1. A UHPC mix AI generation method based on graph-constrained generative adversarial networks, characterized in that: The steps include: Step 1: Data preparation and preprocessing: Obtain the UHPC mix ratio and the corresponding compressive strength data set, and calculate the stress-strain curve corresponding to the compressive strength through the formula; Perform data preprocessing on the stress-strain curve, complete data alignment, and extract K groups of stress data under fixed strain; Step 2: Build the graph structure: Stress-strain is defined as the node of the graph structure, the coupled effect of stress-strain of UHPC on the proportion of each component of the mix ratio is defined as the edge between each node, and the graph structure is defined according to the nodes and edges; Step 3: Incorporate constraints: Set constraints and convert them into condition vectors. Input the constraint vectors into the generator and discriminator as additional information during training to guide the generation and discrimination processes. Step 4: Build GC-GAN: A graph-constrained generative adversarial network (GC-GAN) was constructed. The generator was used to generate the mix ratio corresponding to the stress-strain curve. The graph structure information was extracted using the graph convolution layer. The graph structure and conditional vector were fused and the mix ratio was generated through the fully connected layer. The discriminator is used to distinguish the difference between the generated data and the real data. It also uses the graph convolution layer to process the graph structure data and combines the conditional vector for discrimination. Step 5: Train GC-GAN: Initialize the generator and discriminator network parameters; Randomly select a batch of real data from the dataset; input the real data and conditional vector into the discriminator and calculate the discriminator loss; Generate a batch of mixes from the generator, input the generated mixes and condition vectors into the discriminator, and calculate the generator loss; back-propagate and update the network parameters of the generator and discriminator, and repeat the above steps until the network converges; Step 6: Generate mix ratio using GC-GAN: Input the stress-strain relationship curve and condition vector into the trained generator, and the generator generates a mix ratio that meets the conditions based on the input stress-strain relationship curve and constraint condition vector.
2. The UHPC mix AI generation method based on graph-constrained generative adversarial networks according to claim 1 is characterized in that: The data set in step 1 includes the proportion of each component in the UHPC mix ratio and the compressive strength corresponding to the corresponding mix ratio.
3. The UHPC mix AI generation method based on graph-constrained generative adversarial networks according to claim 1 is characterized in that: The constraints in step 3 include fiber volume content, flexural strength, tensile strength, shear strength, ultimate strain and elastic modulus; the condition vector includes structural function indicators and material performance requirements.
4. The UHPC mix AI generation method based on graph-constrained generative adversarial networks according to claim 2 is characterized in that: Step 1 specifically includes: Step 11, obtaining the components of the UHPC mix ratio, and taking the proportion of each component in the mix ratio as the output data set; the UHPC mix ratio consists of sand, water, cement, fly ash, silica fume, water reducing agent, and steel fiber; Step 12: Set the target compressive strength and fiber content, and calculate the corresponding stress-strain curve by incorporating the steel fiber UHPC axial compression constitutive model formula. The calculation formula is as follows: (1) (2) (3) Where: σ c = y × f c , σ c is the stress of concrete under compression, f c is the axial compressive strength of the prism; x = ε c / ε 0, ε c is the strain of concrete under compression, ε 0 is the peak compressive strain of concrete; n =0.8+ f c / 17; k 1 is the parameter related to the elastic modulus of UHPC, k 2Depends on the amount of steel fiber added V f and steel fiber length V l ; Step 13, taking the stress-strain curve corresponding to the target compressive strength, and setting 15000 με as the limit value for collecting axial strain; Take 128 points of the stress-strain curve at equal strain intervals, and convert all stress-strain curves into 128 groups of stress-strain data, which are used as the feature vectors of the input data set.
5. The UHPC mix AI generation method based on graph-constrained generative adversarial networks according to claim 4 is characterized in that: Step 2 specifically includes: Step 21: In the graph structure, define the stress-strain corresponding values in the stress-strain curve as nodes of the graph structure. V The coupled effect of stress-strain on the ratio of each component of UHPC mix is defined as the edge between each node E ; The graph structure consisting of nodes and their relationships is defined as ;in, is the data of all nodes in the graph structure, is the set of all connected edges; through the edges between nodes E The nodes that depend on each other V Connected to form a directed graph, that is, a graph structure Graph ( ); Step 22: Use the feature matrix To represent the node features of the graph structure, as shown in the following formula: (4) in: N is the number of nodes; M is the number of points taken at equal strain intervals on the stress-strain curve, M=128; Step 23: Define the relationship between eigenvectors as an adjacency matrix A , the cosine distance is used to measure the difference in the directions of two vectors; the adjacency matrix is used A To represent the mutual influence between all nodes, , as follows: (5) Adjacency Matrix A Represents the correlation network formed by all vectors, the eigenvector is the node in the network, and the parameter correlation coefficient ρ uq represents the edge weight of each node, where u , q are any two vectors; Step 24: Structure the graph The edge E Using the adjacency matrix in vector space A To indicate that the node V In vector space, we use a feature matrix with node features X To express.
6. The UHPC mix AI generation method based on graph-constrained generative adversarial networks according to claim 5 is characterized in that: Step 3 specifically includes: Step 31: Determine the dimension of the constraint vector according to the number of constraints to be added and the specific requirements of each constraint; normalize the condition data and scale all condition data to the interval [0, 1]; Step 32: Concatenate the normalized conditional data into a conditional vector, with each condition being an element in the conditional vector, as shown below: (6) In the formula m is the number of constraints; During training, the conditional vector is fed into the generator and discriminator as additional information; Step 33: Concatenate the input vector. In the generative adversarial network, concatenate the graph structure data with the conditional vector to form a complete input vector, as shown below: (7)。 7. The UHPC mix AI generation method based on graph-constrained generative adversarial networks according to claim 1 is characterized in that: The generator described in step 4 is used to generate the mix ratio corresponding to the stress-strain curve, and the input is the graph structure and the condition vector; The first half of the generator network is the encoder, which extracts the features of the input samples through multi-layer graph convolution calculations and generates feature representations of the graph structure; the encoder consists of three graph convolution layers, two batch normalization layers, an activation function layer after each graph convolution layer, and a fully connected layer; the activation function layer is a leaky rectified linear unit ReLU; The graph convolution layer is used to extract the graph structure information, the graph structure and the conditional vector are fused, and the matching ratio is generated through the fully connected layer. The encoder finally generates a feature matrix of size 1×64; the graph convolution layer operation mode is: (8) in: H ( l ) For the l The input feature matrix of the layer; H ( l +1) For the l +1 layer’s input feature matrix; Add the self-connected adjacency matrix to each node; I is the identity matrix; yes The degree matrix of W (l) For the l The weight matrix of the layer; σ is a nonlinear activation function; The second half of the generator network is a decoder, which gradually restores the features of the input samples through deconvolution operations; the decoder consists of 2 deconvolution layers, 2 batch normalization layers, an activation function layer ReLU after each deconvolution layer, and an output fully connected layer; The fully connected layer uses the activation function Sigmoid. After multiple layers of deconvolution operations, the decoder finally generates the required matching ratio. The decoder finally generates a feature matrix of size 1×11, that is, generates samples G ( z ); the deconvolution calculation formula is as follows: (9) Where: O T is the size of the output feature map; W T is the size of the input data; S T is the step size of the convolution kernel; K T is the size of the convolution kernel; P T The number of layers to fill the edges; The discriminator is used to receive the generated samples G ( z ) and the conditional vector and the true ratio to determine the true or false; The discriminator consists of 3 graph convolution layers, 2 fully connected layers, 4 batch normalization layers and activation function layers; each graph convolution layer is followed by a batch normalization layer and a ReLU activation function; The first fully connected layer uses the ReLU activation function, and the second fully connected layer obtains the discrimination result through the Sigmoid activation function, mapping the output value to the range of [0,1], indicating the probability that the data input to the discriminant network is real data.
8. The UHPC mix AI generation method based on graph-constrained generative adversarial networks according to claim 1 is characterized in that: Step 5 specifically includes: Step 51, initialize the network parameters of the generator and the discriminator, divide the data set into a training set and a test set, input the data samples and condition vectors in the training set into the generator and the discriminator, generate the reconstructed mix proportion samples under the condition vector constraint after the generator operation, and compare and judge with the real mix proportion and condition vector in the discriminator, as shown below: (10) Where: E [log D ( r | c )] means that the actual mix ratio data r With constraints c Input Discriminator D Get the probability of whether it is real data; E [log(1- D ( G ( z | c )| c ))] indicates the constraint condition c Input the generated samples generated by the generator, and then use the discriminator to determine the probability of it being real data; Step 52: During the training process, the generator is used to generate a mix ratio close to the real one. The graph structure and the constraint condition c are spliced and input into the generator, and the generator outputs the predicted mix ratio data. G ( z | c ); The discriminator is used to judge the predicted mix ratio data G ( z | c ) and actual mix ratio data r Similarity, and judgment of predicted mix ratio G ( z | c ) whether the constraint condition c is satisfied; the loss function of the generative model and the discriminative model in the model L G and L D They are: (11) (12) Where: E z,c () indicates z , c The expected value of a distribution; E r,c () indicates r , c The expected value of a distribution; G ()and D () are the data output by the generator and the discriminator respectively; Step 53: When training the GC-GAN model, the root mean square error RMSE and the coefficient of determination R are used. 2 Evaluate the reconstruction performance; RMSE is used to measure the gap between the reconstructed data and the real data; R 2 is a statistical measure used to analyze the similarity between two signals, RSME and R 2 The expression is as follows: (13) (14) Where: k is the number of mix ratios; For the i Real data; For the i Prediction data; is the average value of the real data; Step 54: Use stochastic gradient descent SGD to train the model with a batch size of 1; Adam was used as the optimizer and trained for 500 iterations. The learning rates of both the generator and the learner were set to 0.0001. During the training process, in the generator G In the case of certainty, the discriminator D The update is achieved by maximization; while the discriminator is fixed, the generator is optimized by minimization.
9. The UHPC mix AI generation method based on graph-constrained generative adversarial networks according to claim 1 is characterized in that: Step 6 specifically includes: After the model is successfully trained, the constraints and UHPC compressive strength are set, and the stress-strain relationship curve and condition vector are automatically calculated and input into GC-GAN. Finally, the UHPC mix ratio that meets the specific structural function is automatically generated.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the UHPC mix AI generation method based on a graph-constrained generative adversarial network as described in any one of claims 1 to 9 is implemented.
Citation Information
Patent Citations
Simultaneous Localization and Mapping Constraints In Generative Adversarial Networks
CN110399775A
BP neural network analysis method for predicting compressive strength by using key indexes of mix proportion of gelled sand gravel
CN111027117A
