A building design method and system based on knowledge enhanced diffusion model
Through iterative optimization and coupled learning of the knowledge-enhanced diffusion model, combined with mechanical evaluators and rule evaluators, the deficiencies in mechanical performance and empirical rules of intelligent architectural design technology are solved, and the quality and detail ideality of architectural structural design are improved.
Patent Information
- Application Number
- CN202311830750.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-27
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2043-12-27
AI Technical Summary
The existing intelligent technology for architectural design is not ideal in local details and cannot meet the constraints of mechanical properties and empirical rules, resulting in insufficient quality of intelligent design of building structures.
Using a method based on the knowledge-enhanced diffusion model, by determining the input architectural design feature tensor, combined with the noise matrix input pre-trained knowledge-enhanced diffusion generation network model, iterative optimization, combined with the mechanics evaluator and rule evaluator, to achieve data-mechanics-rules Coupled learning to improve design capabilities.
It achieves better building structure layout design, effectively improves the mechanical performance and satisfaction of empirical rules of intelligent design, and improves the quality of intelligent building design.
Smart Images

Figure CN117993050B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of architectural design, and in particular to an architectural design method and system based on a knowledge enhanced diffusion model. Background Art
[0002] At present, artificial intelligence has penetrated into all walks of life. Taking architectural design as an example, the efficiency of architectural design can be improved by using generative adversarial networks or graph neural network technology. However, the local details of the architectural structure layout image are not ideal, which makes it difficult for engineers to fully accept the intelligent design results. In addition, the design process lacks efficient and sufficient learning of knowledge in the field of architectural structure design, resulting in its design results still being difficult to effectively meet the constraints of relevant mechanical requirements and empirical rules.
[0003] Therefore, there is a large room for improvement in the quality of intelligent design of building structures, and there is an urgent need for a method of intelligent design of buildings that can quickly and reliably achieve higher quality. Summary of the invention
[0004] The present invention provides a building design method and system based on a knowledge-enhanced diffusion model, which are used to perform coupled learning on data and knowledge of building structure design, better overcome the problem of insufficient satisfaction of intelligent design mechanical properties and empirical rules, and achieve a better building structure layout design.
[0005] The present invention provides an architectural design method based on a knowledge enhancement diffusion model, comprising: determining an input architectural design feature tensor; determining a noisy architectural design feature tensor according to the input architectural design feature tensor; inputting the noisy architectural design feature tensor into a pre-trained knowledge enhancement diffusion generation network model to obtain a predicted noise tensor output by the knowledge enhancement diffusion generation network model; the knowledge enhancement diffusion generation network model comprises a diffusion generation network, a mechanical evaluator and a rule evaluator; updating the noisy architectural design feature tensor according to the predicted noise tensor, and repeatedly iterating and executing the steps of the pre-trained knowledge enhancement diffusion generation network model until the iteration time reaches a preset value, so as to obtain an architectural structure design feature tensor; and determining architectural structure design data according to the architectural structure design feature tensor.
[0006] According to an architectural design method based on a knowledge-enhanced diffusion model provided by the present invention, the determining of an input architectural design feature tensor comprises: acquiring architectural design structured data; the architectural design structured data comprises an architectural design drawing and design conditions of a structural design to be generated; and constructing a position mask matrix and a design condition feature matrix according to the architectural design structured data to obtain the input architectural design feature tensor.
[0007] According to an architectural design method based on a knowledge-enhanced diffusion model provided by the present invention, the noisy architectural design feature tensor is determined according to the input architectural design feature tensor, including: constructing a Gaussian white noise matrix; matrix coupling the design condition feature matrix and the Gaussian white noise matrix, and using the position mask matrix to perform Boolean operations to obtain the noisy architectural design feature tensor.
[0008] According to a building design method based on a knowledge-enhanced diffusion model provided by the present invention, before the noisy building design feature tensor is input into a pre-trained knowledge-enhanced diffusion generation network model to obtain a predicted noise tensor output by the diffusion generation network model, it also includes: constructing a building structure design data set, the building structure design data set includes a training data set and a test data set; based on the building structure design data set, the knowledge-enhanced diffusion generation network model is trained and tested; the stages of model training include a data-driven training stage, a data-mechanics coupling-driven training stage, and a data-mechanics-rule coupling-driven training stage.
[0009] According to a building design method based on a knowledge-enhanced diffusion model provided by the present invention, the data-driven training phase of the knowledge-enhanced diffusion generation network model includes: fusing Gaussian noise at a preset moment with the building design structured data to obtain building structure design features fused with the Gaussian noise; inputting the building structure design features fused with the Gaussian noise into the diffusion generation network to obtain predicted Gaussian noise output by the diffusion generation network; calculating the Euclidean distance between the Gaussian noise at the preset moment and the predicted Gaussian noise, and performing Hadamard product calculation based on the position mask matrix to obtain a data loss value; and repeatedly iteratively executing the fusing step, the diffusion generation network step and the calculating step in the data-driven training phase to optimize the knowledge-enhanced diffusion generation network model.
[0010] According to a building design method based on a knowledge-enhanced diffusion model provided by the present invention, the data-mechanical coupling driven training phase of the knowledge-enhanced diffusion generation network model includes: subtracting the predicted Gaussian noise from the building structure design feature that integrates the Gaussian noise to obtain a noise-reduced building structure design feature; inputting the noise-reduced building structure design feature into the mechanical evaluator to obtain a mechanical loss value output by the mechanical evaluator; the mechanical evaluator is used to assist in the training of the knowledge-enhanced diffusion generation model; and coupling the data loss value and the mechanical loss value to optimize the knowledge-enhanced diffusion generation network model.
[0011] According to a building design method based on a knowledge-enhanced diffusion model provided by the present invention, the data-mechanics-rule coupling driven training phase of the knowledge-enhanced diffusion generation network model includes: subtracting the predicted Gaussian noise from the building structure design feature that integrates the Gaussian noise to obtain a noise-reduced building structure design feature; inputting the noise-reduced building structure design feature into the rule evaluator to obtain a rule loss value output by the rule evaluator; coupling the data loss value, the mechanical loss value and the rule loss value to optimize the knowledge-enhanced diffusion generation network model.
[0012] According to a building design method based on a knowledge-enhanced diffusion model provided by the present invention, the mechanical evaluator is a mechanical performance evaluation network model constructed based on a deep convolutional network; the mechanical performance evaluation network model includes a horizontal mechanical performance evaluation network model and a vertical mechanical performance evaluation network model; the mechanical evaluator performs model training based on a mechanical performance evaluation training set until the training is completed and the prediction accuracy meets the preset mechanical requirements; the mechanical performance evaluation training set includes the noise reduction building structure design features as input, and vertical and horizontal mechanical properties as target values.
[0013] According to a building design method based on a knowledge-enhanced diffusion model provided by the present invention, the rule evaluator is specifically used to: calculate the symmetry of the noise reduction building structure design features and calculate the key position support of the noise reduction building structure design features; the calculation of the symmetry of the noise reduction building structure design features includes: using a mask matrix of symmetrical positions to extract the layout positions of structural components; calculating the difference in the layout of structural components at symmetrical positions to obtain a symmetrical layout difference value; obtaining a symmetrical rule loss based on the symmetrical layout difference value; the calculation of the key position support of the noise reduction building structure design features includes: using a position mask matrix to extract key positions; determining the existence result of the structural layout at the key positions; and obtaining the rule loss value based on the existence result of the structural layout.
[0014] The present invention also provides an architectural design system based on a knowledge-enhanced diffusion model, comprising: an input tensor determination module, used to determine an input architectural design feature tensor; a noise-containing tensor determination module, used to determine a noisy architectural design feature tensor based on the input architectural design feature tensor; a knowledge-enhanced diffusion generation network module, used to input the noisy architectural design feature tensor into a pre-trained knowledge-enhanced diffusion generation network model to obtain a predicted noise tensor output by the diffusion generation network model; the knowledge-enhanced diffusion generation network model comprises a generation network model, a mechanical evaluator and a rule evaluator; an iteration module, used to update the noisy architectural design feature tensor based on the predicted noise tensor, and repeatedly iterate the steps of executing the pre-trained knowledge-enhanced diffusion generation network model until the iteration time reaches a preset value to obtain a building structure design feature tensor; and a design data determination module, used to determine building structure design data based on the building structure design feature tensor.
[0015] The present invention provides a method and system for architectural design based on a knowledge-enhanced diffusion model, the method comprising: determining an input architectural design feature tensor; determining a noisy architectural design feature tensor according to the input architectural design feature tensor; inputting the noisy architectural design feature tensor into a pre-trained knowledge-enhanced diffusion generation network model to obtain a predicted noise tensor output by the diffusion generation network model; the knowledge-enhanced diffusion generation network model comprises a diffusion generation network, a mechanics evaluator and a rule evaluator; updating the noisy architectural design feature tensor according to the predicted noise tensor, repeating iterations to obtain an architectural structure design feature tensor; and determining architectural structure design data according to the architectural structure design feature tensor. The present invention can effectively improve the design capability of the diffusion generation network model through data-mechanics-rule coupling learning, and realize efficient and reliable intelligent architectural structure design. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are 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.
[0017] Figure 1 It is a flow chart of a building design method based on a knowledge enhancement diffusion model provided by the present invention;
[0018] Figure 2 It is a schematic diagram of a training data set of a shear wall structure diffusion generation model provided by the present invention;
[0019] Figure 3It is a schematic diagram of the architecture of the knowledge enhancement diffusion generation network model provided by the present invention;
[0020] Figure 4 It is a schematic diagram of the change of loss weight in the whole process of data-mechanics-rule coupling learning provided by the present invention;
[0021] Figure 5 It is a schematic diagram of the working mode of the mechanical evaluator provided by the present invention;
[0022] Figure 6 It is a schematic diagram of the training and design process of the knowledge enhanced diffusion generative network model provided by the present invention;
[0023] Figure 7 It is a structural schematic diagram of an architectural design system based on a knowledge enhancement diffusion model provided by the present invention;
[0024] Figure 8 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0025] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0026] Please refer to Figure 1 , Figure 1 A schematic diagram of a flow chart of an architectural design method based on a knowledge enhanced diffusion model provided by the present invention.
[0027] Please refer to Figure 2 , Figure 2 Schematic diagram of a training data set for the shear wall structure diffusion generation model provided by the present invention.
[0028] The present invention provides a building design method based on a knowledge enhanced diffusion model, comprising:
[0029] 101: Determine the input building design feature tensor.
[0030] As a preferred embodiment, determining the input architectural design feature tensor includes: obtaining architectural design structured data; the architectural design structured data includes architectural design drawings and design conditions of the structural design to be generated; and constructing a position mask matrix and a design condition feature matrix based on the architectural design structured data to obtain the input architectural design feature tensor.
[0031] The intelligent design of shear wall structure is introduced as an example. First, the architectural design drawings and their corresponding earthquake and wind resistance design conditions are obtained. Then, the axes of the building components are extracted through automated data extraction operations, including building walls, doors, windows, and shear wall components. Then, the building space information is obtained based on the topological relationship of the component axes, and the building component information and space information are organized into a structured data format of {key: value} for storage.
[0032] The design information of building structural components and spatial functions, as well as the earthquake and wind resistance design condition information, are encoded into corresponding design condition feature matrices based on location and category. Different design condition feature matrices are spliced along the channel direction to obtain the corresponding fused building structure design condition feature matrix. A mask feature matrix is created according to the layout position of the building components to obtain the input building design feature tensor.
[0033] The architectural design dataset can be further divided into training dataset and testing dataset.
[0034] 102: Determine a noisy architectural design feature tensor according to the input architectural design feature tensor.
[0035] As a preferred embodiment, a noisy architectural design feature tensor is determined based on an input architectural design feature tensor, including: constructing a Gaussian white noise matrix; matrix coupling the design condition feature matrix and the Gaussian white noise matrix, and performing Boolean operations using a position mask matrix to obtain a noisy architectural design feature tensor.
[0036] A Gaussian white noise matrix is created, and the Gaussian white noise matrix is coupled with the design condition feature matrix. The position mask matrix is used for Boolean operation to obtain the noisy building design feature tensor. The created noisy building design feature tensor is then input into the knowledge enhanced diffusion generation network model for intelligent design of shear wall structure.
[0037] Please refer to Figure 3 , Figure 3 A schematic diagram of the architecture of the knowledge-enhanced diffusion generation network model provided by the present invention.
[0038] 103: Inputting the noisy architectural design feature tensor into the pre-trained knowledge-enhanced diffusion generation network model to obtain the predicted noise tensor output by the knowledge-enhanced diffusion generation network model; the knowledge-enhanced diffusion generation network model includes a diffusion generation network, a mechanical evaluator and a rule evaluator.
[0039] 104: Update the noisy building design feature tensor according to the predicted noise tensor, and repeat the steps of iteratively executing the pre-trained knowledge enhancement diffusion generation network model until the iteration time reaches a preset value to obtain the building structure design feature tensor.
[0040] Inputting the noisy architectural design feature tensor into the trained knowledge-enhanced diffusion generative network model, outputting a predicted noise tensor through feature depth extraction and mapping of the knowledge-enhanced diffusion generative network model, removing the predicted noise tensor from the noisy architectural design feature tensor, and obtaining a new noise-reduced architectural design feature tensor;
[0041] The new noise-reduced building feature tensor is input again into the trained knowledge-enhanced diffusion generative network model, and the noise removal process is repeated until the iteration time reaches the preset value to obtain the building structure design feature tensor, completing the process from noise input to building structure design generation.
[0042] It should be noted that the diffusion generation network of the knowledge-enhanced diffusion generation network model couples the input design features of building walls, doors and windows, functional spaces, and seismic and wind-resistant design condition features, and maps the output into corresponding structural design features, including: walls, columns, beams, and supports.
[0043] The mechanical evaluator inputs the structural design characteristics and predicts the horizontal mechanical properties, including the maximum inter-story drift angle, and the vertical mechanical properties, including the axial compression ratio, respectively.
[0044] The rule evaluator is a differentiable tensor operation operator. After the structural design features are input, the degree of satisfaction of the empirical rules is obtained through tensor calculation, including symmetry and support for key positions.
[0045] 105: Determine building structure design data according to the building structure design characteristic tensor.
[0046] Combining the input structured architectural design data with the intelligently generated shear wall structure design feature tensor, it is first converted into a pixel image in RBG space. Then, the intersection of the building component axis and the shear wall structure pixel is solved to extract the endpoint position coordinates of the shear wall structure component. The data is then output as structured architectural structure design data for subsequent structural modeling and mechanical analysis.
[0047] Please refer to Figure 4 , Figure 4 Schematic diagram of the change in loss weight throughout the entire process of data-mechanics-rule coupling learning provided by the present invention.
[0048] As a preferred embodiment, before inputting the noisy architectural design feature tensor into the pre-trained knowledge-enhanced diffusion generative network model to obtain the predicted noise tensor output by the diffusion generative network model, it also includes: constructing a building structure design data set, the building structure design data set includes a training data set and a test data set; based on the building structure design data set, the knowledge-enhanced diffusion generative network model is trained and tested; the model training stages include a data-driven training stage, a data-mechanics coupling-driven training stage, and a data-mechanics-rule coupling-driven training stage.
[0049] The knowledge-enhanced diffusion generative network model is constructed using the convolutional network as the encoder and the deconvolutional network as the decoder, and then the diffusion generative network model training is performed based on the diffusion model construction principle. The training loss function is:
[0050]
[0051] in, is the generator loss, ω data and are the weight and loss value corresponding to the data loss, ω physics and are the weight and loss value corresponding to the mechanical loss, ω rule and are the weight and loss value corresponding to the rule loss respectively.
[0052] Among them, the weights of each loss are constantly changing during the training process.
[0053] As a preferred embodiment, the data-driven training phase of the knowledge-enhanced diffusion generation network model includes: fusing Gaussian noise at a preset time with architectural design structured data to obtain architectural structure design features fused with Gaussian noise; inputting the architectural structure design features fused with Gaussian noise into the diffusion generation network to obtain predicted Gaussian noise output by the diffusion generation network; calculating the Euclidean distance between the Gaussian noise at the preset time and the predicted Gaussian noise, and performing Hadamard product calculation based on the position mask matrix to obtain a data loss value; and repeatedly iteratively executing the fusion step, the diffusion generation network step, and the calculation step in the data-driven training phase to optimize the knowledge-enhanced diffusion generation network model.
[0054] In the training step ε<ε physicsWhen the training step T of the diffusion model is set, data-driven training is performed first. The specific process is as follows: (a) Set the training step T of the diffusion model; (b) Execute the process of adding Gaussian noise, arbitrarily select the time step t from 0 to T, and generate the corresponding given intensity Gaussian noise according to the time step t; (c) Fusion the given intensity Gaussian noise with the building structure design characteristics, earthquake resistance and wind resistance design condition characteristics to obtain the fusion of the given Gaussian noise building structure design characteristics, input the generation network model, and output the predicted Gaussian noise; (d) Calculate the Euclidean distance between the given intensity Gaussian noise and the predicted Gaussian noise, and perform the Hadamard product calculation on the mask matrix constructed based on the layout position of the building components to obtain the corresponding data loss value to optimize the knowledge-enhanced diffusion generation network model; (e) Repeat the process from (b) to (d) for different building structure design characteristics and time steps to optimize the knowledge-enhanced diffusion generation model.
[0055] Among them, the data loss function of the diffusion generation network is:
[0056]
[0057] in, The data loss function for the diffusion generation network, N mask is the total number of pixels of the mask; i is the predicted value, is the target value.
[0058] Please refer to Figure 5 , Figure 5 This is a schematic diagram of the working mode of the mechanical evaluator provided by the present invention.
[0059] As a preferred embodiment, the data-mechanical coupling driven training stage of the knowledge enhanced diffusion generation network model includes: subtracting the predicted Gaussian noise from the architectural structure design features fused with Gaussian noise to obtain the noise-reduced architectural structure design features; inputting the noise-reduced architectural structure design features into a mechanical evaluator to obtain the mechanical loss value output by the mechanical evaluator; the mechanical evaluator is used to assist the training of the knowledge enhanced diffusion generation model; coupling the data loss value and the mechanical loss value to optimize the diffusion generation network model.
[0060] As a preferred embodiment, the mechanical evaluator is a mechanical property evaluation network model constructed based on a deep convolutional network; the mechanical property evaluation network model includes a horizontal mechanical property evaluation network model and a vertical mechanical property evaluation network model; the mechanical evaluator performs model training based on a mechanical property evaluation training set until the training is completed and the prediction accuracy meets the preset mechanical requirements; the mechanical property evaluation training set includes noise reduction building structure design features as input, and vertical and horizontal mechanical properties as target values.
[0061] Then, ε physics <ε<ε rule, data-mechanical coupling driven training is carried out. The specific process is: after the data-driven training reaches a certain stage, the knowledge-enhanced diffusion generation model can more accurately predict Gaussian noise, and the data-mechanical coupling driven training begins. For each building structure feature input, the predicted Gaussian noise is generated, and the predicted Gaussian noise is subtracted from the aforementioned fusion of the given Gaussian noise building structure design features to obtain the noise-reduced building structure design features, which are input into the mechanical evaluator, and the corresponding mechanical performance values are output, thereby obtaining the mechanical performance loss, coupled mechanical performance loss and data loss value, and further optimizing the knowledge-enhanced diffusion generation model.
[0062] The mechanical loss function of the mechanical evaluator is:
[0063]
[0064] in, is the mechanical loss function, η h is the horizontal mechanical loss weight, θ h and [θ h ] are the predicted value and the code limit of the inter-story displacement angle, η v is the vertical mechanical loss weight, r v and [r v ] are the predicted value and the specification limit of the axial pressure ratio, N mask is the total number of pixels of the mask, and ReLU is the activation function.
[0065] The mechanical evaluator outputs the corresponding mechanical performance index based on the generated shear wall structure design characteristic tensor.
[0066] Among them, the mechanical evaluator is based on a deep convolutional network to build a mechanical performance evaluation network, and its training process is:
[0067] In the data-driven training process, the building structure design features and design condition features are obtained by fusion of the given Gaussian noise building structure design features input minus the predicted Gaussian noise, and the noise-reduced building structure design features are obtained. The intersection method of building components and structural design features is used to extract the location coordinates of the structural design and output them as structured design data.
[0068] The structural design features of the noise reduction building are preserved, and the corresponding structural mechanical performance analysis model is constructed to obtain the vertical load mechanical properties and horizontal load mechanical properties.
[0069] Taking the design characteristics of noise reduction building structures as input and the vertical and horizontal mechanical properties as target values, a mechanical evaluator training dataset is constructed, and the mechanical evaluator is trained. The mechanical evaluator that has completed the training and has appropriate prediction accuracy is used to assist the training of the diffusion generation model.
[0070] As a preferred embodiment, the data-mechanics-rule coupling driven training phase of the knowledge enhanced diffusion generation network model includes: subtracting the predicted Gaussian noise from the architectural structure design features fused with Gaussian noise to obtain the noise-reduced architectural structure design features; inputting the noise-reduced architectural structure design features into the rule evaluator to obtain the rule loss value output by the rule evaluator; coupling the data loss value, the mechanical loss value and the rule loss value to optimize the knowledge enhanced diffusion generation network model.
[0071] As a preferred embodiment, the rule evaluator is specifically used to: calculate the symmetry of the noise reduction building structure design features and calculate the key position support of the noise reduction building structure design features; calculate the symmetry of the noise reduction building structure design features, including: using a mask matrix of symmetrical positions to extract the layout positions of structural components; calculating the differences in the layout of structural components at symmetrical positions to obtain symmetrical layout difference values; obtaining symmetrical rule losses based on the symmetrical layout difference values; calculating the key position support of the noise reduction building structure design features, including: using a position mask matrix to extract key positions; determining the existence results of the structural layout at the key positions; and obtaining rule loss values based on the existence results of the structural layout.
[0072] Finally, ε>ε rule , data-mechanics-rule coupling driven training is performed. Specifically, after the data-mechanics coupling driven training reaches a certain stage, the data-mechanics-rule coupling driven training is started. The aforementioned fusion of given Gaussian noise building structure design features minus the predicted Gaussian noise is input into the rule evaluator to obtain the rule satisfaction score, and then the rule loss is obtained, and the coupled rule-mechanics-data loss value is further optimized to further optimize the knowledge enhancement diffusion generation model.
[0073] The rule loss function of the rule evaluator is:
[0074]
[0075] in, is the rule loss function, η sym is the symmetry rule loss weight, is the symmetric mask matrix, y i is the predicted value, is the predicted value at the symmetric point; η key is the loss weight of the key position rule, is the key position mask matrix, is the target value.
[0076] Among them, the evaluator for constructing the degree of satisfaction of the empirical rules is a tensor calculation operator, and the specific construction method is:
[0077] The symmetry calculation process of the noise reduction building structure design features is constructed as a tensor calculation process. In the process, the mask matrix of the symmetrical position is used to extract the structural component layout position, and the difference of the structural component layout at the symmetrical position is calculated. The symmetry rule loss is obtained based on the symmetric layout difference value;
[0078] The key position support calculation process of the noise reduction building structure design features is constructed as a tensor calculation process. In the process, the position mask matrix is used to extract the key position, calculate whether the structural arrangement at the key position exists, and obtain the key position rule loss based on the result of whether the structural arrangement exists.
[0079] Based on the created test data set (different from the training set data), the trained knowledge-enhanced diffusion generative network model is tested, and the design quality evaluation is performed based on data consistency, mechanical properties, and rule compliance. Models with qualified quality can be used for intelligent design of building structures.
[0080] Please refer to Figure 6 , Figure 6 A schematic diagram of the training and design process of the knowledge enhanced diffusion generation network model provided by the present invention.
[0081] In summary, the principle of the entire model training and testing is: model training is a process of adding noise, while model testing and design application are the process of removing noise. t-1 and X t are the noise feature tensors at time t-1 and time t respectively; q(x t |x t-1 ) is a given X t-1 Under the condition, X t The noise probability distribution; p θ (x t-1 |x t ) is a model with parameter θ, predicting a given X t Under the condition, X t-1 The probability distribution of noise.
[0082] The following is a description of the architectural design system based on the knowledge enhancement diffusion model provided by the present invention. The architectural design system based on the knowledge enhancement diffusion model described below and the architectural design method based on the knowledge enhancement diffusion model described above can refer to each other.
[0083] Please refer to Figure 7 , Figure 7 A schematic diagram of the structure of an architectural design system based on a knowledge enhanced diffusion model provided by the present invention.
[0084] The present invention also provides an architectural design system based on a knowledge-enhanced diffusion model, comprising: an input tensor determination module 1, used to determine an input architectural design feature tensor; a noisy tensor determination module 2, used to determine a noisy architectural design feature tensor based on the input architectural design feature tensor; a knowledge-enhanced diffusion generation network module 3, used to input the noisy architectural design feature tensor into a pre-trained knowledge-enhanced diffusion generation network model to obtain a predicted noise tensor output by the diffusion generation network model; the knowledge-enhanced diffusion generation network model includes a generation network model, a mechanical evaluator and a rule evaluator; an iteration module 4, used to update the noisy architectural design feature tensor based on the predicted noise tensor, and repeatedly iterate the steps of executing the pre-trained knowledge-enhanced diffusion generation network model until the number of iteration steps reaches a preset number of steps to obtain a building structure design feature tensor; a design data determination module 5, used to determine the building structure design data based on the building structure design feature tensor.
[0085] Figure 8 An example of a structural diagram of an electronic device is shown in FIG. Figure 8 As shown, the electronic device may include: a processor 801, a communication interface 802, a memory 803 and a communication bus 804, wherein the processor 801, the communication interface 802 and the memory 803 communicate with each other through the communication bus 804. The processor 801 may call the logic instructions in the memory 803 to execute the architectural design method based on the knowledge enhancement diffusion model, the method comprising: determining an input architectural design feature tensor; determining a noisy architectural design feature tensor according to the input architectural design feature tensor; inputting the noisy architectural design feature tensor into a pre-trained knowledge enhancement diffusion generation network model to obtain a predicted noise tensor output by the knowledge enhancement diffusion generation network model; the knowledge enhancement diffusion generation network model comprises a diffusion generation network, a mechanical evaluator and a rule evaluator; updating the noisy architectural design feature tensor according to the predicted noise tensor, and repeatedly iterating the steps of executing the pre-trained knowledge enhancement diffusion generation network model until the iteration time reaches a preset value, and obtaining the architectural structure design feature tensor; determining the architectural structure design data according to the architectural structure design feature tensor.
[0086] In addition, the logic instructions in the above-mentioned memory 803 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the 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 several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in 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.
[0087] On the other hand, the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the architectural design method based on the knowledge-enhanced diffusion model provided by the above-mentioned methods, the method including: determining an input architectural design feature tensor; determining a noisy architectural design feature tensor based on the input architectural design feature tensor; inputting the noisy architectural design feature tensor into a pre-trained knowledge-enhanced diffusion generation network model to obtain a predicted noise tensor output by the knowledge-enhanced diffusion generation network model; the knowledge-enhanced diffusion generation network model includes a diffusion generation network, a mechanical evaluator and a rule evaluator; updating the noisy architectural design feature tensor based on the predicted noise tensor, and repeatedly iterating the steps of executing the pre-trained knowledge-enhanced diffusion generation network model until the iteration time reaches a preset value to obtain a building structure design feature tensor; determining the building structure design data based on the building structure design feature tensor.
[0088] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to execute the architectural design method based on the knowledge-enhanced diffusion model provided by the above-mentioned methods, the method comprising: determining an input architectural design feature tensor; determining a noisy architectural design feature tensor based on the input architectural design feature tensor; inputting the noisy architectural design feature tensor into a pre-trained knowledge-enhanced diffusion generation network model to obtain a predicted noise tensor output by the knowledge-enhanced diffusion generation network model; the knowledge-enhanced diffusion generation network model comprises a diffusion generation network, a mechanical evaluator and a rule evaluator; updating the noisy architectural design feature tensor based on the predicted noise tensor, and repeatedly iterating the steps of executing the pre-trained knowledge-enhanced diffusion generation network model until the iteration time reaches a preset value to obtain an architectural structure design feature tensor; and determining architectural structure design data based on the architectural structure design feature tensor.
[0089] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0090] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0091] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A building design method based on knowledge-enhanced diffusion model, It is characterized in that include: determining an input building design feature tensor; Determining a noisy architectural design feature tensor according to the input architectural design feature tensor; Inputting the noisy architectural design feature tensor into a pre-trained knowledge-enhanced diffusion generative network model to obtain a predicted noise tensor output by the knowledge-enhanced diffusion generative network model; The knowledge-enhanced diffusion generation network model includes a diffusion generation network, a mechanical evaluator and a rule evaluator; The noisy architectural design feature tensor is updated according to the predicted noise tensor, and the steps of iteratively executing the pre-trained knowledge enhancement diffusion generation network model are repeated until the iteration time reaches a preset value, thereby obtaining the architectural structure design feature tensor; Determining building structure design data according to the building structure design feature tensor; Before inputting the noisy architectural design feature tensor into a pre-trained knowledge-enhanced diffusion generative network model to obtain a predicted noise tensor output by the diffusion generative network model, the method further includes: Constructing a building structure design dataset, wherein the building structure design dataset includes a training dataset and a test dataset; Model training and testing are performed on the knowledge enhanced diffusion generation network model based on the building structure design data set; the model training stages include a data driven training stage, a data-mechanics coupling driven training stage, and a data-mechanics-rule coupling driven training stage; The data-driven training phase of the knowledge-enhanced diffusion generative network model includes: The Gaussian noise at a preset time is fused with the architectural design structured data to obtain the architectural structure design features fused with the Gaussian noise; Inputting the architectural structure design features fused with the Gaussian noise into the diffusion generation network to obtain the predicted Gaussian noise output by the diffusion generation network; Calculating the Euclidean distance between the Gaussian noise at the preset moment and the predicted Gaussian noise, and performing Hadamard product calculation based on the position mask matrix to obtain a data loss value; Repeating and iterating the steps of fusing, generating a diffusion network and calculating in the data-driven training phase to optimize the knowledge-enhanced diffusion generation network model; The data-mechanical coupling driven training phase of the knowledge enhanced diffusion generative network model includes: Subtracting the predicted Gaussian noise from the architectural structure design feature fused with the Gaussian noise to obtain a noise-reduced architectural structure design feature; Inputting the noise reduction building structure design features into the mechanical evaluator to obtain the mechanical loss value output by the mechanical evaluator; the mechanical evaluator is used to assist in the training of the knowledge enhancement diffusion generation model; coupling the data loss value and the mechanical loss value to optimize the knowledge enhanced diffusion generation network model; The data-mechanics-rule coupling driven training phase of the knowledge-enhanced diffusion generative network model includes: Subtracting the predicted Gaussian noise from the architectural structure design feature fused with the Gaussian noise to obtain a noise-reduced architectural structure design feature; Inputting the noise reduction building structure design features into the rule evaluator to obtain a rule loss value output by the rule evaluator; The data loss value, the mechanical loss value and the rule loss value are coupled to optimize the knowledge enhanced diffusion generation network model.
2. The architectural design method based on the knowledge enhanced diffusion model according to claim 1, It is characterized in that The step of determining the input architectural design feature tensor comprises: Acquire architectural design structured data; the architectural design structured data includes architectural design drawings and design conditions of the structural design to be generated; According to the architectural design structured data, a position mask matrix and a design condition feature matrix are constructed to obtain the input architectural design feature tensor.
3. The architectural design method based on the knowledge enhanced diffusion model according to claim 2, It is characterized in that The step of determining the noisy architectural design feature tensor according to the input architectural design feature tensor comprises: Construct a Gaussian white noise matrix; The design condition feature matrix and the Gaussian white noise matrix are matrix coupled, and the position mask matrix is used to perform Boolean operation to obtain the noisy architectural design feature tensor.
4. The architectural design method based on the knowledge enhanced diffusion model according to claim 1, It is characterized in that The mechanical evaluator is a mechanical performance evaluation network model constructed based on a deep convolutional network; the mechanical performance evaluation network model includes a horizontal mechanical performance evaluation network model and a vertical mechanical performance evaluation network model; The mechanical evaluator performs model training based on a mechanical performance evaluation training set until the training is completed and the prediction accuracy meets the preset mechanical requirements; the mechanical performance evaluation training set includes the noise reduction building structure design features as input and vertical and horizontal mechanical properties as target values.
5. The architectural design method based on the knowledge enhanced diffusion model according to claim 1, It is characterized in that The rule evaluator is specifically used for: Calculating the symmetry of the noise reduction building structure design features and calculating the key position support of the noise reduction building structure design features; The calculating the symmetry of the noise reduction building structure design features comprises: The mask matrix of symmetrical position is used to extract the layout position of structural components; Calculate the difference in the arrangement of structural components at symmetrical positions to obtain the symmetrical arrangement difference value; A symmetry rule loss is obtained based on the symmetry arrangement difference value; The calculation of the key position support of the noise reduction building structure design features includes: Use position mask matrix to extract key positions; Determining the existence of the structural arrangement at the critical position; The rule loss value is obtained based on the existence result of the structural arrangement.
6. An architectural design system based on knowledge-enhanced diffusion model, It is characterized in that include: An input tensor determination module, used to determine an input building design feature tensor; A noisy tensor determination module, which determines a noisy architectural design feature tensor according to the input architectural design feature tensor; A knowledge-enhanced diffusion generation network module is used to input the noisy architectural design feature tensor into a pre-trained knowledge-enhanced diffusion generation network model to obtain a predicted noise tensor output by the diffusion generation network model; The knowledge-enhanced diffusion generation network model includes a generation network model, a mechanics evaluator and a rule evaluator; An iteration module, used for updating the noisy architectural design feature tensor according to the predicted noise tensor, and repeatedly iteratively executing the steps of the pre-trained knowledge enhancement diffusion generation network model until the iteration time reaches a preset value, thereby obtaining the architectural structure design feature tensor; A design data determination module, used to determine building structure design data according to the building structure design feature tensor; Before inputting the noisy architectural design feature tensor into a pre-trained knowledge-enhanced diffusion generative network model to obtain a predicted noise tensor output by the diffusion generative network model, the method further includes: Constructing a building structure design dataset, wherein the building structure design dataset includes a training dataset and a test dataset; Model training and testing are performed on the knowledge enhanced diffusion generation network model based on the building structure design data set; the model training stages include a data driven training stage, a data-mechanics coupling driven training stage, and a data-mechanics-rule coupling driven training stage; The data-driven training phase of the knowledge-enhanced diffusion generative network model includes: The Gaussian noise at a preset time is fused with the architectural design structured data to obtain the architectural structure design features fused with the Gaussian noise; Inputting the architectural structure design features fused with the Gaussian noise into the diffusion generation network to obtain the predicted Gaussian noise output by the diffusion generation network; Calculating the Euclidean distance between the Gaussian noise at the preset moment and the predicted Gaussian noise, and performing Hadamard product calculation based on the position mask matrix to obtain a data loss value; Repeating and iterating the steps of fusing, generating a diffusion network and calculating in the data-driven training phase to optimize the knowledge-enhanced diffusion generation network model; The data-mechanical coupling driven training phase of the knowledge enhanced diffusion generative network model includes: Subtracting the predicted Gaussian noise from the architectural structure design feature fused with the Gaussian noise to obtain a noise-reduced architectural structure design feature; Inputting the noise reduction building structure design features into the mechanical evaluator to obtain the mechanical loss value output by the mechanical evaluator; the mechanical evaluator is used to assist in the training of the knowledge enhancement diffusion generation model; coupling the data loss value and the mechanical loss value to optimize the knowledge enhanced diffusion generation network model; The data-mechanics-rule coupling driven training phase of the knowledge-enhanced diffusion generative network model includes: Subtracting the predicted Gaussian noise from the architectural structure design feature fused with the Gaussian noise to obtain a noise-reduced architectural structure design feature; Inputting the noise reduction building structure design features into the rule evaluator to obtain a rule loss value output by the rule evaluator; The data loss value, the mechanical loss value and the rule loss value are coupled to optimize the knowledge enhanced diffusion generation network model.
