Building structural arrangement generation method and system and generation model construction method
By constructing a neural network model based on the diffusion method and using architectural design drawings and design condition data for building structure design, the problems of low manual design efficiency and poor stability are solved, and an intelligent and efficient building structure layout generation method is realized.
Patent Information
- Application Number
- PCT/CN2023/137395
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-04-27
- Filing Date
- 2023-12-08
- Publication Date
- 2024-10-31
AI Technical Summary
In the existing technology, building structure design relies on manual experience, resulting in low design efficiency, unstable results, low intelligence, and difficulty in inheritance.
By obtaining architectural design drawings and design condition structured data, extracting building component characteristic data and design condition characteristic data, constructing input characteristic data, and using diffusion method to train neural network model, generate structural layout generation model, and realize intelligent design of target structural components. .
It improves the efficiency and stability of building structure design, avoids the subjectivity of manual design, and achieves the reliability and intelligence of automated design results.
Smart Images

Figure CN2023137395_31102024_PF_FP_ABST
Abstract
Description
Building structure layout generation method, system and generation model construction method
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to Chinese patent application No. 2023104773351, filed on April 27, 2023, entitled “Method, system and method for constructing a generation model of building structure layout,” which is incorporated herein by reference in its entirety. Technical Field
[0003] The present application relates to the technical field of building structure design, and in particular to a method and system for generating a building structure layout, and a method for constructing a generation model. Background Art
[0004] At present, in the preliminary design stage of building structures, the design of building structures mainly relies on manual experience, which has low design efficiency. At the same time, there are many subjective judgments in the design process, which leads to unstable design results of structural components, difficulty in inheriting existing design experience, and low degree of intelligence.
[0005] Therefore, there is an urgent need for an intelligent building structure design method that can quickly and reliably complete building structure design.
[0006] Summary of the Invention
[0007] The present application provides a method and system for generating a building structure layout, and a method for constructing a generation model, in order to solve the defects in the prior art of manually designing building structure components based on experience, resulting in unstable structural component design results, difficulty in inheriting existing design experience, and low intelligence.
[0008] The present application provides a method for generating a building structure layout, comprising:
[0009] Acquire an architectural design drawing and design condition structured data corresponding to the architectural design drawing;
[0010] constructing input feature data based on the building component feature data extracted from the building design drawing and the design condition feature data extracted from the design condition structured data;
[0011] Inputting the input feature data into a structural layout generation model to obtain layout feature data of a target structural component output by the structural layout generation model, wherein the structural layout generation model is a diffusion model obtained by training a neural network model using a diffusion method based on building component feature sample data, feature sample data of target structural components corresponding to the building component feature sample data, and design condition sample data;
[0012] Architectural structure layout design data is extracted from the layout feature data to generate an architectural structure design result for the target structural component.
[0013] According to the architectural structure layout generation method described in the present application, constructing input feature data based on the architectural component feature data extracted from the architectural design drawing and the design condition feature data extracted from the design condition structured data includes:
[0014] extracting first feature data and second feature data from the architectural design drawing, and extracting design condition feature data from the design condition structured data, wherein the first feature data is feature data of all building components in the architectural design drawing, and the second feature data is feature data of candidate layout positions of target structural components in the architectural design drawing;
[0015] Representing the first feature data, the second feature data, and the design condition feature data as feature tensors respectively;
[0016] Fusing the feature tensor of the first feature data and the feature tensor of the design condition feature data to obtain a building feature tensor;
[0017] Based on the feature tensor of the second feature data, corresponding positions of the building feature tensor are set to Gaussian noise to obtain an input tensor;
[0018] The input tensor is used as the input feature data.
[0019] According to the building structure layout generation method described in the present application, the characterizing the first feature data, the second feature data, and the design condition feature data as feature tensors respectively includes:
[0020] Extracting planar layout features of all the building components from the building component feature data;
[0021] Characterizing the planar layout feature as a second-order tensor of the building component;
[0022] stacking the second-order tensors of the components to obtain a third-order tensor representing the building components as a feature tensor of the first feature data;
[0023] A third-order tensor of a target component in the feature tensor of the first feature data is extracted as the feature tensor of the second feature data, wherein the third-order tensor of the target component is the third-order tensor of the candidate arrangement position of the target structural component in the feature tensor of the first feature data.
[0024] According to the architectural structure layout generation method described in the present application, the characterizing the first feature data, the second feature data, and the design condition feature data as feature tensors respectively further includes:
[0025] Characterizing the design condition characteristic data as a conditional first-order tensor;
[0026] The conditional first-order tensor is copied and dimensionally expanded into a conditional third-order tensor as a characteristic tensor of the design condition characteristic data.
[0027] According to the building structure layout generation method described in the present application, fusing the feature tensor of the first feature data and the feature tensor of the design condition feature data to obtain the building feature tensor includes:
[0028] performing normalization processing on the feature tensor of the first feature data and the feature tensor of the design condition feature data respectively;
[0029] The normalization processing results are stacked to obtain the building feature tensor.
[0030] According to the building structure layout generation method described in the present application, extracting the building structure layout design data from the layout feature data to generate a building structure design result for the target structural component includes:
[0031] Representing the building structure layout design data as a third-order structural layout tensor;
[0032] The architectural feature tensor and the feature tensor of the target structural component in the third-order structural arrangement tensor are expressed as a design drawing through affine transformation using a visualization method as the architectural structure design result for the target structural component.
[0033] The present application also provides a method for constructing a structure layout generation model applied to any of the above-mentioned building structure layout generation methods, comprising:
[0034] Acquire a sample of an architectural design drawing, and a sample of a structural design drawing and a sample of design condition structured data corresponding to the sample of the architectural design drawing;
[0035] extracting respectively the building component feature sample data from the building design drawing sample, the feature sample data of the target structural component from the structural design drawing sample, and the design condition sample data from the design condition structured data sample;
[0036] Merging the building component feature sample data, the target structural component feature sample data, and the design condition sample data to obtain building structure sample data;
[0037] extracting the building component feature sample data of the candidate arrangement position of the target structural component from the building component feature sample data as structural component sample data;
[0038] A Boolean operation is performed on the building structure sample data to which a preset number of steps of Gaussian noise is added, and on the building structure sample data to which a random number of steps of Gaussian noise is added, through the structural component sample data, to obtain input feature sample data, where the random number of steps is any number of steps that is randomly determined and is less than the preset number of steps;
[0039] Based on the input feature sample data, a preset neural network model is trained to obtain the structural arrangement generation model.
[0040] The present application also provides a building structure layout generation system, comprising:
[0041] An acquisition module, configured to acquire a building design drawing and design condition structured data corresponding to the building design drawing;
[0042] an extraction module for constructing input feature data based on the building component feature data extracted from the building design drawing and the design condition feature data extracted from the design condition structured data;
[0043] a first processing module, configured to input the input feature data into a structural layout generation model to obtain layout feature data of a target structural component output by the structural layout generation model, wherein the structural layout generation model is a diffusion model obtained by training a neural network model using a diffusion method based on building component feature sample data, feature sample data of target structural components corresponding to the building component feature sample data, and design condition sample data;
[0044] The second processing module is used to extract the building structure layout design data from the layout feature data and generate a building structure design result for the target structural component.
[0045] The present application also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the method for generating a building structure layout as described in any one of the above, or the method for constructing a structure layout generation model as described in the above, is implemented.
[0046] The present application also provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, it implements the building structure layout generation method as described in any one of the above, or the method for constructing the structure layout generation model as described above.
[0047] The present application provides a method, system and method for constructing a building structure layout generation model, which obtains building design drawings and design condition structured data corresponding to the building design drawings, and then constructs input feature data based on building component feature data extracted from the building design drawings and design condition feature data extracted from the design condition structured data. Thereafter, the input feature data is input into a structural layout generation model obtained by training a neural network model using a diffusion method based on building component feature sample data and feature sample data and design condition sample data of a target structural component corresponding to the building component feature sample data, thereby obtaining layout feature data of the target structural component using the structural layout generation model, and finally extracting building structure layout design data from the layout feature data to generate a building structure design result for the target structural component, thereby realizing intelligent design of the target structural component based on the building design drawings and the design condition structured data, which not only avoids the trouble of manual building structure design and saves labor costs, but also improves design efficiency and ensures the stability of the design results. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] In order to more clearly illustrate the technical solutions in the present application or the prior art, a brief introduction will be given below to 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 application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0049] FIG1 is a flow chart of a method for generating a building structure layout provided by the present application;
[0050] FIG2 is a schematic diagram of characteristic data of a building component provided by the present application;
[0051] FIG3 is a schematic diagram of a principle of an example of generating a building feature tensor and a mask tensor provided by the present application;
[0052] FIG4 is a schematic diagram showing the principle of an example of using a structural arrangement generation model to generate a building structure design result for a shear wall structure provided by the present application;
[0053] FIG5 is a flow chart of a method for constructing a structure arrangement generation model for use in the building structure arrangement generation method provided in the present application;
[0054] FIG6 is a flow chart of an example of building a structure arrangement generation model provided by the present application;
[0055] FIG7 is a schematic structural diagram of a building structure layout generation system provided by the present application;
[0056] FIG8 is a schematic structural diagram of the electronic device provided in this application. DETAILED DESCRIPTION
[0057] To make the objectives, technical solutions, and advantages of this application more clear, the technical solutions of this application will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the embodiments described are only part of the embodiments of this application, not all of them. Based on the embodiments of this application, all other embodiments obtained by ordinary technicians in this field without making any creative efforts are within the scope of protection of this application.
[0058] The following describes a method for generating a building structure layout of the present application in conjunction with Figures 1 to 4. The method is executed by an electronic device such as a processor or the software and / or hardware therein. As shown in Figure 1, the method includes the following steps.
[0059] 101. Obtain an architectural design drawing and design condition structured data corresponding to the architectural design drawing.
[0060] It can be understood that the architectural design drawings include information such as the layout positions of building components such as doors, windows, and building partitions. The design condition structured data corresponding to the architectural design drawings include information such as the seismic fortification parameters of the building structure, the external shape parameters of the structural components, and the site parameters.
[0061] 102. Construct input feature data based on the building component feature data extracted from the building design drawing and the design condition feature data extracted from the design condition structured data.
[0062] Specifically, the input characteristic data constructed based on the building component characteristic data including the layout information of the building components and the design condition characteristic data including the seismic fortification parameters of the building structure includes parameter information required for the building structure design.
[0063] In one specific embodiment, an automatic building component feature extraction program developed based on a CAD secondary development API can be used to extract building component feature data for building components such as partitions, doors, windows, and railings from architectural design drawings, while extracting design condition feature data from structured design condition data. Furthermore, the extracted building component feature data can be visualized. Figure 2 shows an example of a visualization of building component feature data, allowing users to more intuitively understand the layout of various building components.
[0064] More specifically, in order to extract design condition feature data from design condition structured data, it is necessary to determine the design condition feature data extraction method based on the different structures of the design condition structured data. The design condition feature data extraction method may include multiple methods, such as manual feature extraction, deep neural network feature extraction, etc.
[0065] Furthermore, for deep neural network feature extraction, a deep neural network feature extraction model for extracting design condition feature data can be trained based on the following method, namely:
[0066] First, the design conditional structured sample data is collected, and then the design conditional structured sample data is deeply clustered using a self-supervised training method to optimize the preset neural network model parameters until the preset neural network model converges. The converged preset neural network model is then used as a deep neural network feature extraction model.
[0067] 103. Input the input feature data into a structural layout generation model to obtain layout feature data of a target structural component output by the structural layout generation model, wherein the structural layout generation model is a diffusion model obtained by training a neural network model using a diffusion method based on building component feature sample data, feature sample data of target structural components corresponding to the building component feature sample data, and design condition sample data.
[0068] Specifically, the structural layout generation model is a diffusion model obtained by training a neural network model using a diffusion method based on building component feature sample data, and feature sample data and design condition sample data of target structural components corresponding to the building component feature sample data. Therefore, after the constructed input feature data is input into the structural layout generation model, the structural layout generation model can obtain the layout feature data of the target structural component that matches the architectural design drawing and the design condition structured data corresponding to the architectural design drawing based on the information contained in the input feature data.
[0069] 104. Extract building structure layout design data from the layout feature data, and generate a building structure design result for the target structural component.
[0070] The building structure layout generation method provided in the embodiment of the present application extracts building component feature data and design condition feature data for designing target structural components from building design drawings and design condition structured data respectively, and then inputs input feature data constructed based on the building component feature data and design condition feature data into a structure layout generation model trained based on a large amount of building component feature sample data, feature sample data of target structural components and design condition sample data, so that the structure layout generation model can input the layout feature data of the target structural components that match the building design drawings and the design condition structured data, and then generates a building structure design result for the target structural components by extracting the building structure layout design data from the layout feature data, thereby realizing automatic design of the target structural components based on the building design drawings and the design condition structured data corresponding to the building design drawings, effectively solving the problem of low design efficiency in building structure design relying on manual experience and many subjective judgments in the design process, which leads to unstable structural component design results, difficulty in inheriting existing design experience and low intelligence.
[0071] Based on the content of the above embodiment, the input feature data is constructed based on the building component feature data extracted from the building design drawing and the design condition feature data extracted from the design condition structured data, including:
[0072] extracting first feature data and second feature data from the architectural design drawing, and extracting design condition feature data from the design condition structured data, wherein the first feature data is feature data of all building components in the architectural design drawing, and the second feature data is feature data of candidate layout positions of target structural components in the architectural design drawing;
[0073] Representing the first feature data, the second feature data, and the design condition feature data as feature tensors respectively;
[0074] Fusing the feature tensor of the first feature data and the feature tensor of the design condition feature data to obtain a building feature tensor;
[0075] Based on the feature tensor of the second feature data, corresponding positions of the building feature tensor are set to Gaussian noise to obtain an input tensor;
[0076] The input tensor is used as the input feature data.
[0077] Specifically, taking the shear wall structure as the target structural component as an example, we first need to extract the feature data of all building components including doors, windows, building partitions, etc. from the architectural design drawing as the first feature data, and then extract the feature data of the possible layout positions of the shear wall structure on the architectural design drawing, that is, the feature data of the candidate layout positions of the shear wall structure as the second feature data.
[0078] More specifically, after the first feature data, the second feature data and the design condition feature data are respectively represented as feature tensors, the feature tensor of the first feature data and the feature tensor of the design condition feature data are fused to obtain a building feature tensor corresponding to all building components in the building design drawing. Then, based on the feature tensor of the second feature data, the corresponding position of the building feature tensor is set to Gaussian noise, so that all positions in the building design drawing that may be shear wall structures are set to Gaussian noise. When this input tensor is input as input feature data into the structural layout generation model, the structural layout generation model can gradually remove the Gaussian noise, thereby determining the position where the shear wall structure should be arranged in the building design drawing.
[0079] It should be noted that in the building structure layout generation method provided in the embodiment of the present application, the feature tensor of the second feature data is used to guide the corresponding position of the building feature tensor to be set to Gaussian noise, so the feature tensor of the second feature data is essentially a mask tensor.
[0080] Based on the content of the above embodiment, the characterizing the first feature data, the second feature data, and the design condition feature data as feature tensors respectively includes:
[0081] Extracting planar layout features of all the building components from the building component feature data;
[0082] Characterizing the planar layout feature as a second-order tensor of the building component;
[0083] stacking the second-order tensors of the components to obtain a third-order tensor representing the building components as a feature tensor of the first feature data;
[0084] A third-order tensor of a target component in the feature tensor of the first feature data is extracted as the feature tensor of the second feature data, wherein the third-order tensor of the target component is the third-order tensor of the candidate arrangement position of the target structural component in the feature tensor of the first feature data.
[0085] Specifically, first, the planar layout features of all building components such as doors, windows and building partitions are extracted from the building component feature data, and then the planar layout features of building components such as doors, windows and building partitions are respectively represented as second-order tensors. Then, the second-order tensors of all building components are stacked up and represented as a third-order tensor, so that the third-order tensor of all building components can be obtained, that is, the feature tensor of the first feature data.
[0086] Furthermore, the second feature data is the feature data of the candidate layout position of the target structural component in the first feature data. That is, taking the target structural component as a shear wall structure as an example, the feature tensors of all wall structures in the feature tensor of the first feature data may be shear wall structures. Therefore, the feature tensor of the second feature data can be obtained by extracting all third-order tensors corresponding to the wall structure in the feature tensor of the first feature data.
[0087] More specifically, the second-order tensor of the building component represents the position of each building component on the building component layout drawing by setting the position where the corresponding building component exists in the building component layout drawing to a first preset value, such as 1, and the position where the corresponding building component does not exist to a second preset value, such as 0.
[0088] Based on the content of the above embodiment, the characterizing the first feature data, the second feature data, and the design condition feature data as feature tensors respectively further includes:
[0089] Characterizing the design condition characteristic data as a conditional first-order tensor;
[0090] The conditional first-order tensor is copied and dimensionally expanded into a conditional third-order tensor as a characteristic tensor of the design condition characteristic data.
[0091] Specifically, the categorical data in the design condition feature data can be represented as a conditional first-order tensor using one-hot encoding, and the numerical data in the design condition feature data can be converted into a zero-order tensor. Then, all types of data are stacked up, represented as a first-order tensor, and copied and expanded into a conditional third-order tensor, thereby obtaining the feature tensor of the design condition feature data.
[0092] It is understandable that other encoding methods can also be used to represent the category data in the design condition feature data as a conditional first-order tensor. However, considering that the category data in the design condition feature data belongs to a variable with a non-partial order relationship, the use of one-hot encoding can make the values of the variable with a non-partial order relationship not have a partial order, and are equidistant from the origin and from each other. Therefore, in the building structure layout generation method provided in the embodiment of the present application, it is preferred to use one-hot encoding to represent the category data in the design condition feature data as a conditional first-order tensor to improve the accuracy of the automatically generated building structure design results.
[0093] Based on the content of the above embodiment, the step of fusing the feature tensor of the first feature data and the feature tensor of the design condition feature data to obtain the building feature tensor includes:
[0094] performing normalization processing on the feature tensor of the first feature data and the feature tensor of the design condition feature data respectively;
[0095] The normalization processing results are stacked to obtain the building feature tensor.
[0096] Specifically, by normalizing the feature tensor of the first feature data and the feature tensor of the design condition feature data, the dimensional effects between the different feature tensors can be eliminated. By stacking the normalized results, a building feature tensor can be obtained. The normalization process can employ an extreme value scaling method, which linearly maps the original input to the interval [-1, 1].
[0097] In summary, taking the building component feature data within the box in the building component feature data shown in Figure 2 as the original image as an example, the principle of constructing the building feature tensor and the mask tensor (feature tensor of the second feature data) through it and the design condition structured data corresponding to Figure 2 is shown in Figure 3, and the principle of constructing the building feature tensor and mask tensor shown in Figure 3 as input tensors to generate the building structure design results for the shear wall structure is shown in Figure 4.
[0098] The following uses the example of generating a building structure design result for a shear wall structure using the structural layout generation model as shown in FIG4 to specifically illustrate the process of obtaining the layout characteristic data of the shear wall structure based on the structural layout generation model provided in an embodiment of the present application, namely, the process of generating the structural characteristic tensor shown in FIG4. The structural layout generation model processes the input tensor by gradually eliminating noise from the input tensor until a predetermined number of steps are reached, thereby obtaining a generated structural characteristic tensor containing the shear wall structure layout characteristic data.
[0099] It should be noted that, in the exemplary embodiment, it is assumed that the predetermined number of steps is T steps, and the input tensor is recorded as y T , then the structure layout generation model can predict the size of Gaussian noise based on the input tensor, and the value is The subscript T indicates that this is based on y T The predicted noise size. Further, based on the predicted Gaussian noise Can predict the original image Based on the original image predicted Predicted Gaussian noise and the input tensor y of step T T , we can predict the image y of step T-1T-1 After such iteration, when step T is reached, the structural layout generation model can predict y0, which is the generated structural characteristic tensor containing the shear wall structural layout characteristic data as shown in FIG4 .
[0100] Based on the content of the above embodiment, the step of extracting the building structure layout design data from the layout feature data and generating a building structure design result for the target structural component includes:
[0101] Representing the building structure layout design data as a third-order structural layout tensor;
[0102] The architectural feature tensor and the feature tensor of the target structural component in the third-order structural arrangement tensor are expressed as a design drawing through affine transformation using a visualization method as the architectural structure design result for the target structural component.
[0103] Specifically, by means of design drawings, users can obtain intuitive building structure design results.
[0104] The present application also provides a method for constructing a structure layout generation model for use in the building structure layout generation method provided in any of the above embodiments. The method can be executed by an electronic device such as a processor or the software and / or hardware therein. As shown in FIG5 , the method includes the following steps.
[0105] 501. Obtain an architectural design drawing sample, a structural design drawing sample corresponding to the architectural design drawing sample, and a design condition structured data sample.
[0106] 502. Extract architectural component feature sample data from the architectural design drawing sample, feature sample data of target structural components from the structural design drawing sample, and design condition sample data from the design condition structured data sample.
[0107] 503. Merge the building component feature sample data, the target structural component feature sample data, and the design condition sample data to obtain building structure sample data.
[0108] 504. Extract the building component feature sample data of the candidate arrangement position of the target structural component from the building component feature sample data as structural component sample data.
[0109] 505. A Boolean operation is performed on the building structure sample data to which a preset number of steps of Gaussian noise is added, and on the building structure sample data to which a random number of steps of Gaussian noise is added, through the structural component sample data, to obtain input feature sample data, where the random number of steps is any randomly determined number of steps smaller than the preset number of steps.
[0110] 506. Based on the input feature sample data, train a preset neural network model to obtain the structural layout generation model.
[0111] Specifically, still taking the target structural member as the shear wall structure as an example, in the process of constructing the structural layout generation model, it is first necessary to construct a data set. That is, by obtaining the architectural design drawing samples of buildings with shear wall structures, the design drawing samples of structural designs, such as CAD drawing samples, and the corresponding structured design condition data samples, and then extracting the building components and structural components from the drawing samples to obtain the building component feature sample data, the feature sample data of the shear wall structure, and extracting the design condition feature sample data from the structured design condition data samples. After that, the building component feature sample data, the feature sample data of the shear wall structure, and the design condition feature sample data are fused into building structure sample data, and the building component feature sample data of the possible layout positions of the shear wall structure in the building component feature sample data, that is, the building component feature sample data of the building partition walls in the building component feature sample data, is extracted as the structural member sample data, and the training data set is obtained.
[0112] Furthermore, after obtaining the training data set, by performing a Boolean operation on the building structure sample data added with a preset number of steps, such as T steps of Gaussian noise, through the structural member sample data, and the building structure sample data added with a random number of steps, such as t (0 < t < T) steps of Gaussian noise, the input feature sample data can be obtained. After obtaining the input feature sample data, the preset neural network model can be trained based on the input feature sample data using the diffusion method, that is, the construction of the structural layout generation model is completed.
[0113] It can be understood that for the construction of the structural layout generation model, it needs to include three processes: data set creation, model training, and model testing.
[0114] The following uses a specific embodiment for the shear wall structure to illustrate the construction method of the structural layout generation model provided by the embodiments of the present application. The principle of this construction method is shown in Figure 6.
[0115] It should be noted that the following method is only an example provided for the convenience of understanding the technical solution of the present application, and is not the only method for the embodiments of the present application to complete the construction of the structural generation model.
[0116] Among them, the data set construction part includes:
[0117] The first step: Extract the plane layout features of building components such as doors, windows, and building partition walls from the building structure design sample data extracted from the architectural design drawing samples.
[0118] Step 2: Represent the planar layout features of building components such as doors, windows, and building partitions as second-order tensors. Stack all the second-order tensors of building components and represent them as a third-order tensor to obtain building component feature tensor samples.
[0119] It should be noted that the second-order tensor indicates whether there is a corresponding component at that position in the layout diagram. If there is a corresponding component, the value is 1, otherwise it is 0.
[0120] Step 3: Extracting the planar layout features of the shear wall from the structural component feature sample data extracted from the structural design drawing sample corresponding to the architectural design drawing sample, and representing the shear wall planar layout features as a third-order tensor to obtain a structural component feature tensor sample;
[0121] Step 4: Represent the design condition feature data samples extracted from the design condition structured data samples corresponding to the architectural design drawing samples as a first-order tensor, and copy and expand the dimension to a third-order tensor to obtain the design condition feature tensor samples.
[0122] For example, the categorical data in the design condition feature data sample can be represented as a first-order tensor using one-hot encoding, and the numerical data in the design condition feature data sample can be converted into a zero-order tensor. All types of data are then stacked and represented as a first-order tensor, and then replicated and expanded to a third-order tensor to obtain the design condition feature tensor sample.
[0123] Step 5: Normalize the obtained building component feature tensor samples, structural component feature tensor samples, and design condition feature tensor samples respectively, and stack the normalization results to obtain the building structure feature tensor samples.
[0124] Step 6: Extract the building component feature tensor samples of the candidate layout positions of the shear wall structure from the building component feature tensor samples as the feature tensor samples of the structural component sample data, that is, the mask tensor samples.
[0125] The building structure feature tensor samples and mask tensor samples are randomly divided into training sets and test sets to complete the dataset creation.
[0126] The training part of the structure layout generation model includes:
[0127] The first step is to build a preset neural network model, where the preset neural network model uses the U-Net+Attention neural network structure.
[0128] The second step is to gradually add T steps of Gaussian noise to the building structure feature tensor samples in the training set;
[0129] Step 3: Perform a Boolean operation on the feature tensor samples after adding T-step Gaussian noise with the masked tensor samples and the feature tensor samples after adding t (1 < t < T) steps of Gaussian noise to obtain the model input tensor samples;
[0130] Step 4: Input the model input tensor samples into the pre-constructed U-Net+Attention neural network model to obtain the T-step Gaussian noise samples output by the preset neural network model;
[0131] Step 5: Calculate the loss value between the T-step Gaussian noise samples output by the U-Net+Attention neural network model and the T-step Gaussian noise samples of the label values, and use it as the noise prediction loss value;
[0132] Step 6: Optimize the parameters of the U-Net+Attention neural network model based on the noise prediction loss value until the U-Net+Attention neural network model converges.
[0133] Step 7: Use the converged U-Net+Attention neural network model as the structural layout generation model.
[0134] The test part of the structural layout generation model includes:
[0135] Step 1: Set the corresponding positions of the building structure feature tensor samples to Gaussian noise according to the masked tensor samples to obtain the model input tensor samples;
[0136] Step 2: Use the trained structural layout generation model to gradually remove the noise from the model input tensor samples. After reaching the predetermined number of steps, obtain the generated structural feature tensor samples containing the shear wall structure layout feature data, and further obtain the building structure layout design data;
[0137] Step 3: Calculate the loss value between the building structure layout design data obtained by the trained structural layout generation model and the actual building structure layout data in the test set;
[0138] Step 4: Based on the loss value, determine whether the trained structural layout generation model is qualified.
[0139] The following describes a building structure layout generation system provided by the present application with reference to FIG. 7. The building structure layout generation system described below can be correspondingly referred to the building structure layout generation method described above.
[0140] A building structure layout generation system provided by the present application, as shown in FIG. 7, includes: an acquisition module 710, an extraction module 720, a first processing module 730, and a second processing module 740; where
[0141] The acquisition module 710 is used to acquire a building design drawing and design condition structured data corresponding to the building design drawing;
[0142] The extraction module 720 is used to construct input feature data based on the building component feature data extracted from the building design drawing and the design condition feature data extracted from the design condition structured data;
[0143] The first processing module 730 is configured to input the input feature data into a structural layout generation model to obtain layout feature data of a target structural component output by the structural layout generation model, wherein the structural layout generation model is a diffusion model obtained by training a neural network model using a diffusion method based on the building component feature sample data, the feature sample data of the target structural component corresponding to the building component feature sample data, and the design condition sample data;
[0144] The second processing module 740 is used to extract the building structure layout design data from the layout feature data and generate a building structure design result for the target structural component.
[0145] The building structure layout generation system provided by the embodiment of the present application obtains building design drawings and design condition structured data corresponding to the building design drawings, and then constructs input feature data based on building component feature data extracted from the building design drawings and design condition feature data extracted from the design condition structured data. Thereafter, the input feature data is input into a structural layout generation model obtained by training a neural network model using a diffusion method based on building component feature sample data and feature sample data and design condition sample data of a target structural component corresponding to the building component feature sample data, thereby obtaining layout feature data of the target structural component using the structural layout generation model. Finally, the building structure layout design data in the layout feature data is extracted to generate a building structure design result for the target structural component, thereby realizing intelligent design of the target structural component based on the building design drawings and the design condition structured data. This not only avoids the trouble of manual building structure design and saves labor costs, but also improves design efficiency and ensures the stability of the design results.
[0146] Optionally, the extraction module 720 is specifically configured to:
[0147] Extracting first feature data and second feature data from the architectural design drawing, and extracting design condition feature data from the design condition structured data, wherein the first feature data is feature data of all architectural components in the architectural design drawing, and the second feature data is feature data of candidate layout positions of target structural components in the architectural design drawing; representing the first feature data, the second feature data, and the design condition feature data as feature tensors respectively; fusing the feature tensor of the first feature data and the feature tensor of the design condition feature data to obtain an architectural feature tensor; based on the feature tensor of the second feature data, setting corresponding positions of the architectural feature tensor to Gaussian noise to obtain an input tensor; and using the input tensor as the input feature data.
[0148] Optionally, the extraction module 720 is further specifically configured to:
[0149] Extracting planar layout features of all the building components in the building component feature data; representing the planar layout features as second-order component tensors of the building components; stacking the second-order component tensors to obtain a third-order tensor representing the building components as a feature tensor of the first feature data; extracting a third-order tensor of a target component from the feature tensor of the first feature data as a feature tensor of the second feature data, wherein the third-order tensor of the target component is a third-order tensor of the candidate layout position of the target structural component in the feature tensor of the first feature data.
[0150] Optionally, the extraction module 720 is further specifically configured to:
[0151] The design condition characteristic data is represented as a conditional first-order tensor; the conditional first-order tensor is copied and dimensionally expanded into a conditional third-order tensor as a characteristic tensor of the design condition characteristic data.
[0152] Optionally, the extraction module 720 is further specifically configured to:
[0153] Normalization processing is performed on the feature tensor of the first feature data and the feature tensor of the design condition feature data respectively; and processing results of the normalization processing are stacked to obtain the building feature tensor.
[0154] Optionally, the second processing module 740 is specifically configured to:
[0155] The building structure layout design data is represented as a third-order structural layout tensor; the building feature tensor and the feature tensor of the target structural component in the third-order structural layout tensor are expressed as a design drawing through affine transformation using a visualization method, as the building structure design result for the target structural component.
[0156] Figure 8 illustrates a schematic diagram of the physical structure of an electronic device. As shown in Figure 8, the electronic device may include: a processor (processor) 810, a communication interface (Communications Interface) 820, a memory (memory) 830 and a communication bus 840, wherein the processor 810, the communication interface 820, and the memory 830 communicate with each other through the communication bus 840. The processor 810 can call the logic instructions in the memory 830 to execute the building structure layout generation method or the method for constructing a structure layout generation model, wherein the building structure layout generation method includes: obtaining a building design drawing and design condition structured data corresponding to the building design drawing; constructing input feature data based on building component feature data extracted from the building design drawing and design condition feature data extracted from the design condition structured data; inputting the input feature data into the structure layout generation model to obtain layout feature data of the target structural component output by the structure layout generation model, wherein the structure layout generation model is a diffusion model obtained by training a neural network model using a diffusion method based on building component feature sample data and feature sample data and design condition sample data of the target structural component corresponding to the building component feature sample data; extracting building structure layout design data from the layout feature data to generate a building structure design result for the target structural component. The method for constructing a structural layout generation model includes: obtaining a building design drawing sample, and a structural design drawing sample and a design condition structured data sample corresponding to the building design drawing sample; respectively extracting building component feature sample data from the building design drawing sample, target structural component feature sample data of a target structural component in the structural design drawing sample, and design condition sample data from the design condition structured data sample; fusing the building component feature sample data, the target structural component feature sample data, and the design condition sample data to obtain building structure sample data; extracting the building component feature sample data of the candidate arrangement position of the target structural component from the building component feature sample data as structural component sample data; performing a Boolean operation on the building structure sample data to which a preset number of steps of Gaussian noise is added, and on the building structure sample data to which a random number of steps of Gaussian noise is added, to obtain input feature sample data, wherein the random number of steps is any randomly determined number of steps less than the preset number of steps; and training a preset neural network model based on the input feature sample data to obtain the structural layout generation model.
[0157] In addition, the logic instructions in the above-mentioned memory 830 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on this understanding, the technical solution of the present application, 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, which is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0158] On the other hand, the present application also provides a computer program product, which includes a computer program, which 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 building structure layout generation method or the structure layout generation model construction method provided by the above-mentioned methods, wherein the building structure layout generation method includes: obtaining a building design drawing and design condition structured data corresponding to the building design drawing; constructing input feature data based on building component feature data extracted from the building design drawing and design condition feature data extracted from the design condition structured data; inputting the input feature data into the structure layout generation model to obtain layout feature data of the target structural component output by the structure layout generation model, wherein the structure layout generation model is a diffusion model obtained by training a neural network model using a diffusion method based on building component feature sample data and feature sample data and design condition sample data of the target structural component corresponding to the building component feature sample data; extracting building structure layout design data from the layout feature data to generate a building structure design result for the target structural component. The method for constructing a structural layout generation model includes: obtaining a building design drawing sample, and a structural design drawing sample and a design condition structured data sample corresponding to the building design drawing sample; respectively extracting building component feature sample data from the building design drawing sample, target structural component feature sample data of a target structural component in the structural design drawing sample, and design condition sample data from the design condition structured data sample; fusing the building component feature sample data, the target structural component feature sample data, and the design condition sample data to obtain building structure sample data; extracting the building component feature sample data of the candidate arrangement position of the target structural component from the building component feature sample data as structural component sample data; performing a Boolean operation on the building structure sample data to which a preset number of steps of Gaussian noise is added, and on the building structure sample data to which a random number of steps of Gaussian noise is added, to obtain input feature sample data, wherein the random number of steps is any randomly determined number of steps less than the preset number of steps; and training a preset neural network model based on the input feature sample data to obtain the structural layout generation model.
[0159] On the other hand, the present application also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the building structure layout generation method or the method for constructing a structure layout generation model provided by the above-mentioned methods, wherein the building structure layout generation method includes: obtaining a building design drawing and design condition structured data corresponding to the building design drawing; constructing input feature data based on building component feature data extracted from the building design drawing and design condition feature data extracted from the design condition structured data; inputting the input feature data into the structure layout generation model to obtain layout feature data of the target structural component output by the structure layout generation model, wherein the structure layout generation model is a diffusion model obtained by training a neural network model using a diffusion method based on building component feature sample data and feature sample data and design condition sample data of the target structural component corresponding to the building component feature sample data; extracting building structure layout design data from the layout feature data to generate a building structure design result for the target structural component. The method for constructing a structural layout generation model includes: obtaining a building design drawing sample, and a structural design drawing sample and a design condition structured data sample corresponding to the building design drawing sample; respectively extracting building component feature sample data from the building design drawing sample, target structural component feature sample data of a target structural component in the structural design drawing sample, and design condition sample data from the design condition structured data sample; fusing the building component feature sample data, the target structural component feature sample data, and the design condition sample data to obtain building structure sample data; using the building component feature sample data of the candidate arrangement position of the target structural component in the building component feature sample data as structural component sample data; performing a Boolean operation on the building structure sample data to which a preset number of steps of Gaussian noise is added, and on the building structure sample data to which a random number of steps of Gaussian noise is added, to obtain input feature sample data, wherein the random number of steps is any randomly determined number of steps less than the preset number of steps; and training a preset neural network model based on the input feature sample data to obtain the structural layout generation model.
[0160] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, i.e., they may be located in one location or distributed across multiple network units. Some or all of the modules may be selected based on actual needs to achieve the objectives of the present embodiment. Persons of ordinary skill in the art will be able to understand and implement the present invention without inventive effort.
[0161] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus a necessary general hardware platform, or of course, by hardware. Based on this understanding, the essence of the above technical solution or the part that contributes to the existing technology can be embodied in the form of a software product. The computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes a number of instructions for enabling 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 certain parts of the embodiments.
[0162] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application 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 application.
Claims
1. A method for generating a building structure layout, comprising: Acquire an architectural design drawing and design condition structured data corresponding to the architectural design drawing; constructing input feature data based on the building component feature data extracted from the building design drawing and the design condition feature data extracted from the design condition structured data; Inputting the input feature data into a structural layout generation model to obtain layout feature data of a target structural component output by the structural layout generation model, wherein the structural layout generation model is a diffusion model obtained by training a neural network model using a diffusion method based on building component feature sample data, feature sample data of target structural components corresponding to the building component feature sample data, and design condition sample data; The building structure layout design data in the layout feature data is extracted to generate a building structure design result for the target structural component.
2. The method for generating a building structure layout according to claim 1, wherein: The step of constructing input feature data based on the building component feature data extracted from the building design drawing and the design condition feature data extracted from the design condition structured data comprises: Extracting first feature data and second feature data from the architectural design drawing, and extracting design condition feature data from the design condition structured data, wherein the first feature data is feature data of all building components in the architectural design drawing, and the second feature data is feature data of candidate arrangement positions of the target structural components in the architectural design drawing; Characterizing the first feature data, the second feature data, and the design condition feature data as feature tensors respectively; Fusing the feature tensor of the first feature data and the feature tensor of the design condition feature data to obtain a building feature tensor; Based on the feature tensor of the second feature data, a corresponding position of the building feature tensor is set to Gaussian noise to obtain an input tensor; The input tensor is used as the input feature data.
3. The method for generating a building structure layout according to claim 2, wherein: The characterizing the first feature data, the second feature data, and the design condition feature data as feature tensors respectively includes: Extracting the planar layout features of all the building components in the building component feature data; Characterizing the planar layout feature as a component second-order tensor of the building component; Stacking the second-order tensors of the components to obtain a third-order tensor representing the building components as a feature tensor of the first feature data; A third-order tensor of a target component in the feature tensor of the first feature data is extracted as the feature tensor of the second feature data, wherein the third-order tensor of the target component is the third-order tensor of the candidate arrangement position of the target structural component in the feature tensor of the first feature data.
4. The method for generating a building structure layout according to claim 3, wherein: The characterizing the first characteristic data, the second characteristic data and the design condition characteristic data as characteristic tensors respectively further includes: Characterizing the design condition characteristic data as a conditional first-order tensor; The conditional first-order tensor is copied and expanded into a conditional third-order tensor as a feature tensor of the design condition feature data.
5. The method for generating a building structure layout according to claim 2, wherein: The step of fusing the feature tensor of the first feature data with the feature tensor of the design condition feature data to obtain a building feature tensor comprises: Normalizing the feature tensor of the first feature data and the feature tensor of the design condition feature data respectively; The normalization processing results are stacked to obtain the building feature tensor.
6. The method for generating a building structure layout according to claim 2, wherein: The step of extracting the architectural structure layout design data from the layout feature data and generating an architectural structure design result for the target structural component includes: Characterizing the building structure layout design data as a third-order structural layout tensor; The architectural feature tensor and the feature tensor of the target structural component in the third-order tensor of the structural arrangement are expressed as a design drawing through affine transformation using a visualization method as a result of the architectural structure design for the target structural component.
7. A method for constructing a structure arrangement generation model applied to the building structure arrangement generation method according to any one of claims 1 to 6, comprising: Acquire a sample of an architectural design drawing, and a sample of a structural design drawing and a sample of design condition structured data corresponding to the sample of the architectural design drawing; Extract the building component feature sample data and the structure sample data from the building design sample respectively feature sample data of a target structural component in a sample of a structural design drawing, and design condition sample data in the sample of the design condition structured data; Merging the building component feature sample data, the target structural component feature sample data and the design condition sample data to obtain building structure sample data; Extracting the building component feature sample data of the candidate arrangement position of the target structural component from the building component feature sample data as structural component sample data; The building structure sample data to which the preset number of steps of Gaussian noise is added is subjected to a Boolean operation through the structural component sample data and the building structure sample data to which the Gaussian noise is added with a random number of steps, so as to obtain input feature sample data, wherein the random number of steps is any number of steps that is randomly determined and is less than the preset number of steps; Based on the input feature sample data, a preset neural network model is trained to obtain the structural arrangement generation model.
8. A building structure layout generation system, comprising: An acquisition module, used to acquire a building design drawing and design condition structured data corresponding to the building design drawing; An extraction module, for constructing input feature data based on the building component feature data extracted from the building design drawing and the design condition feature data extracted from the design condition structured data; A first processing module is used to input the input feature data into a structural layout generation model to obtain layout feature data of a target structural component output by the structural layout generation model, wherein the structural layout generation model is a diffusion model obtained by training a neural network model using a diffusion method based on building component feature sample data, feature sample data of target structural components corresponding to the building component feature sample data, and design condition sample data; The second processing module is used to extract the architectural structure layout design data from the layout feature data and generate an architectural structure design result for the target structural component.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the building structure layout generation method according to any one of claims 1 to 6, or the method for constructing a structure layout generation model according to claim 7 is implemented.
10. A non-transitory computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the method for generating a building structure layout as described in any one of claims 1 to 6, or the method for constructing a structure layout generation model as described in claim 7 is implemented.
Citation Information
Patent Citations
Multi-modal data driven building structure component generation method and device
CN114417464A
Building structure design method and device based on joint structure optimization neural network
CN114741766A
Building structure generation method and device based on data conversion
CN114925416A
Structural plane arrangement overall generation method and device, electronic equipment and storage medium
CN116011084A
Building structure arrangement generation method and system and construction method of generation model
CN116680778A
Cited By
Generative shear wall structure arrangement method based on flow matching frame
CN121936026A
