Design method and system of building structure component size based on diffusion model

Through the design method based on the diffusion model, the characteristics and design conditions of the structural components are integrated to generate component size characteristic data, which solves the problem of low design efficiency in the existing technology and achieves fast, economical and safe dimensional design of building structural components.

CN117993048BActive Publication Date: 2024-09-17TSINGHUA UNIVERSITY
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202311827345.X
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

Technical Problem

The existing building structural component size design process requires many years of design experience and repetitive labor, resulting in low design efficiency and difficulty in automating processing, and it is difficult for the optimization algorithm to consider the local size of the component.

Method used

The design method based on the diffusion model is used to determine the characteristics and design conditions of the structural components, integrate them into feature tensors and mask tensors, input the diffusion generation model, and iteratively generate component size feature data to achieve rapid generation of actually usable component sizes.

Benefits of technology

It improves the efficiency of building structure design, ensures the economy and safety of design results, reduces labor costs, and can quickly generate efficient component sizes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117993048B
    Figure CN117993048B
Patent Text Reader

Abstract

The present invention provides a design method and system for the size of a building structural component based on a diffusion model, the method comprising: determining the characteristics of a structural component and the design conditions of the structural component; integrating the characteristics of the structural component and the design conditions of the structural component into a characteristic tensor of the structural component; the structural component includes a component to be designed; determining a mask tensor of the component to be designed; inputting the characteristic tensor and the mask tensor of the structural component into a diffusion generation model for the size design of the building structural component to obtain the component size characteristic data output by the diffusion generation model; and determining the design size of the component to be designed according to the component size characteristic data. The present invention can complete the efficient design of the size of the building structural component, while ensuring the economy and safety of the size design result.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of the intersection of building structure design and artificial intelligence technology, and in particular to a design method and system for the size of building structure components based on a diffusion model. Background Art

[0002] The building structure is a skeleton structure formed by basic building components such as plates, beams, columns and walls, which has certain spatial functions and can safely withstand various normal loads of the building. The existing dimension design process of building structural components usually requires structural engineers with many years of design experience to make preliminary size settings, and needs to be adjusted through repeated modeling calculations. This process has high professional barriers, a lot of repetitive labor, a long time consumption, high labor costs, and is difficult to automate, resulting in low efficiency of structural design.

[0003] In response to this challenge, experts and scholars at home and abroad are committed to studying methods for automatically designing the dimensions of building structural components. Some solutions use optimization algorithms, which can reduce the manual operation process to a certain extent, but require a lot of time for iterative solutions, and the optimization goal is relatively single, making it difficult to take into account the local dimensions of the components.

[0004] Therefore, in order to improve the efficiency of structural design, an efficient method for generating the dimensions of building structural components is urgently needed. Summary of the invention

[0005] In order to solve the above technical problems, the present invention provides a design method and system for the size of building structure components based on a diffusion model, which can quickly generate actually available building structure component sizes, improve the efficiency of building structure design, and ensure the effect of design results.

[0006] The present invention provides a design method for the size of a building structural component based on a diffusion model, comprising: determining the characteristics of a structural component and the design conditions of the structural component; integrating the characteristics of the structural component and the design conditions of the structural component into a characteristic tensor of the structural component; the structural component includes a component to be designed; determining a mask tensor of the component to be designed; inputting the characteristic tensor of the structural component and the mask tensor into a diffusion generation model for the size design of a building structural component to obtain component size characteristic data output by the diffusion generation model; and determining the design size of the component to be designed according to the component size characteristic data.

[0007] According to a method for designing the size of a building structural component based on a diffusion model provided by the present invention, the determining of the characteristics of the structural component and the design conditions of the structural component includes: obtaining the characteristics of the structural component from a structural layout drawing through a priority traversal algorithm, and saving the characteristics of the structural component in a structured form; the characteristics of the structural component include position coordinates and related characteristics, and the related characteristics are a combination of one or more of material properties, connection relationships and estimated loads; by searching for a structural size design text, extracting the design conditions of the structural component, and saving the design conditions of the structural component in a numerical form.

[0008] According to a method for designing the size of a building structural component based on a diffusion model provided by the present invention, the characteristics of the structural component and the design conditions of the structural component are integrated into a characteristic tensor of the structural component, including: constructing a three-dimensional component tensor according to the characteristics of the structural component; the first dimension and the second dimension of the three-dimensional component tensor correspond to the position coordinates, and the third dimension of the three-dimensional component tensor corresponds to the relevant characteristics; the design conditions of the structural component are integrated and corresponded with the three-dimensional component tensor to obtain the characteristic tensor of the structural component.

[0009] According to a method for designing the size of a building structure component based on a diffusion model provided by the present invention, the method of determining the mask tensor of the component to be designed includes: determining the component to be designed; constructing a mask three-dimensional tensor according to the component to be designed; the first dimension and the second dimension of the mask three-dimensional tensor correspond to the position coordinates, the third dimension of the mask three-dimensional tensor has a first value when the current mask position is the position of the component to be designed, and has a second value when the current mask position is not the position of the component to be designed.

[0010] According to a method for designing the size of a building structure component based on a diffusion model provided by the present invention, the feature tensor of the structural component and the mask tensor are input into a diffusion generation model for designing the size of the building structure component to obtain the component size feature data output by the diffusion generation model, including: generating a Gaussian noise tensor; connecting the inner product of the Gaussian noise tensor and the mask tensor with the feature tensor of the structural component to obtain a noisy input feature tensor; inputting the noisy input feature tensor into the diffusion generation model for designing the size of the building structure component to obtain a predicted noise feature tensor output by the diffusion generation model; updating the noisy input feature tensor according to the predicted noise feature tensor, and repeatedly iterating the steps of executing the diffusion generation model until the number of iteration steps reaches a preset number of steps to obtain the component size feature data output by the diffusion generation model.

[0011] According to a method for designing the size of a building structure component based on a diffusion model provided by the present invention, before inputting the feature tensor of the structural component and the mask tensor into the diffusion generation model for the design of the size of the building structure component to obtain the component size feature data output by the diffusion generation model, the method also includes: creating a training set for the size of the building structure component; and training the generation capability of the diffusion generation model based on the training set for the size of the building structure component.

[0012] According to a method for designing the size of a building structure component based on a diffusion model provided by the present invention, the design size of the component to be designed is determined according to the component size characteristic data, including: obtaining a preliminary size of the component to be designed according to the component size characteristic data corresponding to each position of the component to be designed; and obtaining the design size of the component to be designed by making the preliminary size of the component to be designed correspond to a preset building structure modulus.

[0013] According to a method for designing the size of a building structure component based on a diffusion model provided by the present invention, after determining the design size of the component to be designed according to the component size characteristic data, the method further includes: determining a component size drawing and a structural analysis model according to the size of the component to be designed.

[0014] According to a method for designing the size of a building structure component based on a diffusion model provided by the present invention, after determining the component size drawing and the structural analysis model according to the size of the component to be designed, it also includes: verifying the generation effect of the diffusion generation model according to the structural analysis model.

[0015] The present invention also provides a design system for the size of building structural components based on a diffusion model, comprising: a pre-processor, used to determine the characteristics of structural components and the design conditions of the structural components; a feature fuser, used to integrate the characteristics of the structural components and the design conditions of the structural components into a feature tensor of the structural components; the structural components include components to be designed; a component selector, used to determine the mask tensor of the components to be designed; a model processing module, used to input the feature tensor of the structural components and the mask tensor into a diffusion generation model for the size design of building structural components, and obtain component size feature data output by the diffusion generation model; a post-processor, used to determine the design size of the component to be designed based on the component size feature data.

[0016] The present invention provides a design method and system for the size of a building structural component based on a diffusion model, the method comprising: determining the characteristics of a structural component and the design conditions of the structural component; integrating the characteristics of the structural component and the design conditions of the structural component into a characteristic tensor of the structural component; the structural component includes a component to be designed; determining a mask tensor of the component to be designed; inputting the characteristic tensor and the mask tensor of the structural component into a diffusion generation model for the size design of the building structural component to obtain the component size characteristic data output by the diffusion generation model; and determining the design size of the component to be designed according to the component size characteristic data. The present invention can complete the efficient design of the size of the building structural component, while ensuring the economy and safety of the size design result. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] 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.

[0018] Figure 1 It is a schematic flow chart of a method for designing dimensions of building structure components based on a diffusion model provided by the present invention;

[0019] Figure 2 It is a schematic diagram of the overall training process of the neural network in the building structure component size design diffusion model provided by the present invention;

[0020] Figure 3 It is a schematic diagram of the process of constructing a data set required for a neural network provided by the present invention;

[0021] Figure 4 It is a schematic diagram of a single-step training process in the diffusion model provided by the present invention;

[0022] Figure 5 It is a schematic diagram of the overall inference process of the neural network in the building structure component size design diffusion model provided by the present invention;

[0023] Figure 6 It is a schematic diagram of a single-step inference process in the diffusion model denoising process provided by the present invention;

[0024] Figure 7 This is a schematic diagram of the process of verifying the model effect based on mechanical properties and material dosage provided by the present invention.

[0025] Figure 8 It is a structural schematic diagram of a design system for building structure component dimensions based on a diffusion model provided by the present invention;

[0026] Fig. 9It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0027] 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.

[0028] Please refer to Figure 1 , Figure 1 A schematic flow chart of a method for designing dimensions of building structure components based on a diffusion model provided by the present invention.

[0029] Please refer to Figure 2 , Figure 2 A schematic diagram of the overall training process of a neural network in a building structure component size design diffusion model provided by the present invention.

[0030] Please refer to Figure 3 , Figure 3 A schematic diagram of the process of constructing a data set required for a neural network provided by the present invention.

[0031] The present invention provides a method for designing the size of a building structure component based on a diffusion model, comprising:

[0032] 101: Determine the characteristics of structural components and the design conditions of structural components;

[0033] As a preferred embodiment, determining the characteristics of a structural member and the design conditions of the structural member includes: obtaining the characteristics of the structural member from a structural layout drawing through a priority traversal algorithm, and saving the characteristics of the structural member in a structured form; the characteristics of the structural member include position coordinates and related characteristics, and the related characteristics are a combination of one or more of material properties, connection relationships, and estimated loads; by searching for structural dimension design text, extracting the design conditions of the structural member, and saving the design conditions of the structural member in a numerical form.

[0034] Collect the structural layout drawings of different structural types. The size design of the structure has been completed by the engineer, and the design results can be considered as reasonable values. First, grid the drawings and select the appropriate modulus, which is set to 50mm here. In order to represent the size as a feature, remove the influence of the size in the grid and set the width of all components to 1 grid.

[0035] According to the division of layers in CAD drawings, structural components can be classified into different categories of components, such as walls, beams, columns, supports, etc.

[0036] The axes of all components in the drawings are extracted based on graphics algorithms to determine the specific positions of structural components.

[0037] All grids are traversed using a priority traversal algorithm (depth-first traversal or breadth-first traversal can be used) to obtain the corresponding position coordinates of all components, and each component is saved in the form of a class (structured). The corresponding features and labels of the component are stored in the class, where the features include material properties, connection relationships between components, estimated loads, etc., and the label is the specific size of the component. The size is embedded, and the corresponding size embedding vector can be obtained for different components.

[0038] The size feature is constructed and represented by a three-dimensional tensor, where the first two dimensions are the coordinates of the grid and the third dimension is the size embedding vector of the corresponding component. This tensor is used as the training set of the diffusion model.

[0039] Use Python's ezdxf library to extract text from the drawings, and input other design condition data to search among them, find the fortification intensity, seismic level, site conditions, earthquake grouping and other information in the drawings, construct a design condition vector, and save it in the form of a numerical value.

[0040] Relevant features include but are not limited to material properties, connection relationships, and estimated loads.

[0041] 102: Integrate the characteristics of the structural component and the design conditions of the structural component into a characteristic tensor of the structural component; the structural component includes the component to be designed;

[0042] As a preferred embodiment, the characteristics of the structural component and the design conditions of the structural component are integrated into a characteristic tensor of the structural component, including: constructing a three-dimensional tensor of the component according to the characteristics of the structural component; the first dimension and the second dimension of the three-dimensional tensor of the component correspond to the position coordinates, and the third dimension of the three-dimensional tensor of the component corresponds to the relevant characteristics; the design conditions of the structural component are integrated and corresponded with the three-dimensional tensor of the component to obtain the characteristic tensor of the structural component.

[0043] The structural drawings are uniformly gridded, and the size of the grid is selected as the corresponding modulus, so that all components can be represented by an integer number of grids. Since the width of the component is unknown, it is represented by a grid length. The extracted structural component features are represented as a component three-dimensional tensor; the first and second dimensions of the component three-dimensional tensor correspond to the position coordinates, and the third dimension of the component three-dimensional tensor corresponds to the relevant features, and normalization operations are performed.

[0044] The design conditions of structural components are stacked one by one as features onto the three-dimensional tensor of the component. The value of the design condition is taken where there is a component, and the value is 0 where there is no component. The design conditions are not normalized to retain their physical meaning.

[0045] 103: Determine the mask tensor of the component to be designed;

[0046] As a preferred embodiment, determining the mask tensor of the component to be designed includes: determining the component to be designed; constructing a three-dimensional mask tensor based on the component to be designed; the first dimension and the second dimension of the three-dimensional mask tensor correspond to the position coordinates, the third dimension of the three-dimensional mask tensor has a first value when the current mask position is the position of the component to be designed, and the third dimension of the three-dimensional mask tensor has a second value when the current mask position is the position of a non-component to be designed.

[0047] Select a component to be designed, such as a wall, beam, column, etc. Construct a mask three-dimensional tensor, the first dimension and the second dimension of the mask three-dimensional tensor correspond to the position coordinates, the third dimension of the mask three-dimensional tensor is a first value when the current mask position is the position of the component to be designed, and the third dimension of the mask three-dimensional tensor is a second value when the current mask position is not the position of the component to be designed. For example, if it is a component to be designed, the third dimension of the mask three-dimensional tensor is assigned a value of 1, otherwise it is 0, thereby obtaining the mask tensor for the component.

[0048] 104: inputting the characteristic tensor and the mask tensor of the structural component into the diffusion generation model of the building structure component size design to obtain the component size characteristic data output by the diffusion generation model;

[0049] As a preferred embodiment, before inputting the feature tensor and mask tensor of the structural component into the diffusion generation model of the building structure component size design to obtain the component size feature data output by the diffusion generation model, it also includes: creating a building structure component size training set; and training the generation capability of the diffusion generation model based on the building structure component size training set.

[0050] Before applying the above method for generation, the diffusion model needs to be trained first. The training process can be divided into two parts: the processing of training set data and the training of the model. The size feature labels, component mask tensors and feature tensors are extracted from the existing structural layout drawings. The size feature labels are used as the original input, and the number of steps t for adding noise is randomly selected so that the neural network can predict the noise.

[0051] According to the different design components, the corresponding diffusion generation model is trained respectively. After obtaining the size feature tensor, component mask tensor and structural component feature tensor, the model training can be started.

[0052] Please refer to Figure 4 , Figure 4A schematic diagram of a single-step training process in the diffusion model provided by the present invention.

[0053] First, the total number of steps to add noise and other hyperparameters are set. Based on the component size design results in the training set, samples and the number of steps to add noise are randomly selected. Then, a Gaussian noise is randomly generated, and the forward formula is used to obtain the noisy input feature tensor under this number of steps. The inner product of the noisy input feature tensor and the component mask tensor is calculated, and the range of component prediction is limited to the area where the component is located. Then it is connected to the component feature tensor as the input of the neural network, and the current number of steps is recorded at the same time to obtain a corresponding noise level embedding vector, which is also synchronously input into the neural network. The neural network selected here is U-Net.

[0054] A noise prediction value can be obtained through the neural network. The inner product of the noise prediction value and the input Gaussian noise with the mask tensor is calculated respectively, and then the differences are compared to construct the corresponding loss function to minimize the difference between the predicted noise and the real noise, thereby realizing the training of the neural network.

[0055] As a preferred embodiment, the feature tensor and mask tensor of the structural component are input into a diffusion generation model for the size design of the building structure component to obtain the component size feature data output by the diffusion generation model, including: generating a Gaussian noise tensor; connecting the inner product of the Gaussian noise tensor and the mask tensor with the feature tensor of the structural component to obtain a noisy input feature tensor; inputting the noisy input feature tensor into the diffusion generation model for the size design of the building structure component to obtain a predicted noise feature tensor output by the diffusion generation model; updating the noisy input feature tensor according to the predicted noise feature tensor, and repeatedly iterating the steps of executing the diffusion generation model until the number of iteration steps reaches a preset number of steps to obtain the component size feature data output by the diffusion generation model.

[0056] Please refer to Figure 5 , Figure 5 A schematic diagram of the overall inference process of a neural network in the building structure component size design diffusion model provided by the present invention.

[0057] After the model training is completed, the model can be inferred.

[0058] Select the components to be designed. You can design only one type of component, or you can design multiple types of components separately.

[0059] During the inference process, the component mask tensor and the feature tensor of the structural component are extracted through the existing structural layout drawings. A Gaussian noise is randomly generated, and the component mask tensor, feature tensor, and step noise level embedding vector are input into the trained neural network to obtain the predicted noise feature tensor. The predicted noise feature tensor is subtracted from the noisy input feature tensor, and denoised step by step, and finally the feature prediction tensor of a certain type of component can be obtained.

[0060] Please refer to Figure 6 , Figure 6 A schematic diagram of a single-step inference process in the diffusion model denoising process provided by the present invention.

[0061] The specific process of each denoising step is as follows: the first step is to input random Gaussian noise, that is, the noisy tensor of the Tth step, and calculate the inner product between it and the component mask tensor to retain the characteristics of the component location, and then connect it with the feature vector, and input it into the neural network together with the noise level vector of the Tth step to obtain the noise prediction value of this step, and subtract the noise prediction value from the noisy tensor of the Tth step to get the noisy tensor of the T-1th step. At this time, change the input to the noisy tensor of the T-1th step, and change the number of steps to T-1. Iterate the above process to achieve step-by-step denoising and obtain the final size feature tensor.

[0062] By predicting each type of component separately, the final feature prediction tensor of each category of components can be obtained, and the corresponding building structure component size can be obtained in the post-processing step.

[0063] 105: Determine the design size of the component to be designed based on the component size characteristic data.

[0064] As a preferred embodiment, the design size of the component to be designed is determined according to the component size characteristic data, including: obtaining the preliminary size of the component to be designed according to the component size characteristic data corresponding to each position of the component to be designed; and obtaining the design size of the component to be designed by making the preliminary size of the component to be designed correspond to the preset building structure module.

[0065] Please refer to Figure 7 , Figure 7 A schematic diagram of a process for verifying the model effect based on mechanical properties and material usage provided by the present invention.

[0066] After obtaining the dimensional characteristic data of the diffusion model, the dimensions of the building structure components are further obtained. Since the same component includes multiple different positions, the dimensional characteristic data at each position in the component are averaged to obtain the preliminary dimensional data of the component. Then, according to the provisions of the building structure modulus, the dimensions are merged into the corresponding modulus to obtain the final design dimensions of the component to be designed.

[0067] As a preferred embodiment, after determining the design size of the component to be designed according to the component size characteristic data, the method further includes: determining a component size drawing and a structural analysis model according to the size of the component to be designed.

[0068] Based on the position and size information of each component that has been obtained, the parametric modeling method is adopted. Python libraries such as ezdxf can be used to directly draw CAD drawings to obtain the corresponding structural component dimension drawings.

[0069] Similarly, based on the acquired position and size information of each component, as well as the number of floors and floor heights of the entire structure, parametric modeling is implemented in structural analysis software such as PKPM, YJK, and ETABS to further complete the analysis and calculation of the structure.

[0070] As a preferred embodiment, after determining the component size diagram and the structural analysis model according to the size of the component to be designed, the method further includes: verifying the generation effect of the diffusion generation model according to the structural analysis model.

[0071] In the generated structural analysis model, the mechanical properties and material usage of the structure are calculated to determine whether any indicators exceed the limit. If not, it means that the design result is safer.

[0072] The engineer's design results are calculated in the structural analysis model to obtain the material usage designed by the engineer. If the material usage generated by the diffusion model is less than the engineer's design results, it means that the design results are more economical.

[0073] In the present invention, a shear wall structure is designed, and a comparison table of the engineer design results and the diffusion model design results is shown in Table 1.

[0074] Table 1 Comparison of engineer design results and diffusion model design results

[0075]

[0076] It can be seen that the design results of this method have certain improvements compared with the design results of engineers, and the efficiency can be greatly improved.

[0077] The following is a description of the design system for the size of a building structure component based on a diffusion model provided by the present invention. The design system for the size of a building structure component based on a diffusion model described below and the design method for the size of a building structure component based on a diffusion model described above can be referenced to each other.

[0078] Please refer to Figure 8 , Figure 8 A schematic diagram of the structure of a design system for building structure component dimensions based on a diffusion model provided by the present invention.

[0079] The present invention also provides a design system for the size of building structural components based on a diffusion model, comprising: a pre-processor 1, used to determine the characteristics of structural components and the design conditions of structural components; a feature fuser 2, used to integrate the characteristics of structural components and the design conditions of structural components into a feature tensor of structural components; structural components include components to be designed; a component selector 3, used to determine the mask tensor of the component to be designed; a model processing module 4, used to input the feature tensor and the mask tensor of the structural component into a diffusion generation model for the size design of building structural components, and obtain component size feature data output by the diffusion generation model; a post-processor 5, used to determine the design size of the component to be designed according to the component size feature data.

[0080] Fig. 9 An example of a structural diagram of an electronic device is shown in FIG. Fig. 9 As shown, the electronic device may include: a processor 901, a communication interface 902, a memory 903 and a communication bus 904, wherein the processor 901, the communication interface 902 and the memory 903 communicate with each other through the communication bus 904. The processor 901 may call the logic instructions in the memory 903 to execute a design method for the size of a building structure component based on a diffusion model, the method comprising: determining the characteristics of the structural component and the design conditions of the structural component; integrating the characteristics of the structural component and the design conditions of the structural component into a characteristic tensor of the structural component; the structural component includes a component to be designed; determining a mask tensor of the component to be designed; inputting the characteristic tensor and the mask tensor of the structural component into a diffusion generation model for the size design of the building structure component to obtain the component size characteristic data output by the diffusion generation model; and determining the design size of the component to be designed according to the component size characteristic data.

[0081] In addition, the logic instructions in the above-mentioned memory 903 can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on such an understanding, the technical solution of the present invention is essentially 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 a number of instructions to enable 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.

[0082] 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 design method of the size of building structural components based on the diffusion model provided by the above-mentioned methods, and the method includes: determining the characteristics of the structural components and the design conditions of the structural components; integrating the characteristics of the structural components and the design conditions of the structural components into a characteristic tensor of the structural components; the structural components include components to be designed; determining the mask tensor of the components to be designed; inputting the characteristic tensor and the mask tensor of the structural components into a diffusion generation model for the design of the size of building structural components to obtain component size characteristic data output by the diffusion generation model; and determining the design size of the component to be designed based on the component size characteristic data.

[0083] 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 method for designing the size of building structural components based on the diffusion model provided by the above-mentioned methods, the method comprising: determining the characteristics of the structural components and the design conditions of the structural components; integrating the characteristics of the structural components and the design conditions of the structural components into a characteristic tensor of the structural components; the structural components include components to be designed; determining a mask tensor of the components to be designed; inputting the characteristic tensor and the mask tensor of the structural components into a diffusion generation model for the design of the size of building structural components to obtain component size characteristic data output by the diffusion generation model; and determining the design size of the component to be designed based on the component size characteristic data.

[0084] 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.

[0085] 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.

[0086] 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 design method for the size of building structural components based on a diffusion model, characterized in that: include: determining characteristics of structural members and design conditions of said structural members; integrating the characteristics of the structural component and the design conditions of the structural component into a characteristic tensor of the structural component; The structural component includes a component to be designed; Determining a mask tensor of the component to be designed; Inputting the characteristic tensor of the structural component and the mask tensor into a diffusion generation model for building structural component size design to obtain component size characteristic data output by the diffusion generation model; Determining the design size of the component to be designed according to the component size characteristic data; The determining of the characteristics of the structural component and the design conditions of the structural component comprises: By using a priority traversal algorithm, the characteristics of the structural component are obtained from the structural layout drawing, and the characteristics of the structural component are saved in a structured form; the characteristics of the structural component include position coordinates and related characteristics, and the related characteristics are a combination of one or more of material properties, connection relationships and estimated loads; By searching the structural dimension design text, the design conditions of the structural component are extracted, and the design conditions of the structural component are saved in numerical form; The step of integrating the characteristics of the structural component and the design conditions of the structural component into a characteristic tensor of the structural component comprises: According to the characteristics of the structural component, a three-dimensional tensor of the component is constructed; the first dimension and the second dimension of the three-dimensional tensor of the component correspond to the position coordinates, and the third dimension of the three-dimensional tensor of the component corresponds to the relevant characteristics; Integrate the design conditions of the structural component with the three-dimensional tensor of the component to obtain the characteristic tensor of the structural component; The step of determining the mask tensor of the component to be designed comprises: Determine the components to be designed; According to the component to be designed, a three-dimensional mask tensor is constructed; the first dimension and the second dimension of the three-dimensional mask tensor correspond to the position coordinates, the third dimension of the three-dimensional mask tensor is a first value when the current mask position is the position of the component to be designed, and the third dimension of the three-dimensional mask tensor is a second value when the current mask position is not the position of the component to be designed; The step of inputting the characteristic tensor of the structural component and the mask tensor into a diffusion generation model for building structural component size design to obtain component size characteristic data output by the diffusion generation model comprises: Generate Gaussian noise tensor; Connecting the inner product of the Gaussian noise tensor and the mask tensor to the feature tensor of the structural component to obtain a noisy input feature tensor; Inputting the noisy input feature tensor into the diffusion generation model for building structure component size design to obtain a predicted noise feature tensor output by the diffusion generation model; The noisy input feature tensor is updated according to the predicted noise feature tensor, and the steps of iteratively executing the diffusion generation model are repeated until the number of iteration steps reaches a preset number of steps, thereby obtaining the component size feature data output by the diffusion generation model.

2. The design method of building structure component size based on diffusion model according to claim 1 is characterized in that: Before inputting the characteristic tensor of the structural component and the mask tensor into the diffusion generation model for building structural component size design to obtain the component size characteristic data output by the diffusion generation model, the method further includes: Create a training set of building structural component dimensions; The generation capability of the diffusion generation model is trained based on the building structure component size training set.

3. The design method of building structure component size based on diffusion model according to claim 1 is characterized in that: Determining the design size of the component to be designed according to the component size characteristic data includes: Obtaining preliminary dimensions of the component to be designed according to the component dimension characteristic data corresponding to each position of the component to be designed; The preliminary size of the component to be designed is matched with the preset building structure modulus to obtain the design size of the component to be designed.

4. The method for designing the dimensions of building structural components based on a diffusion model according to claim 1, characterized in that: After determining the design size of the component to be designed according to the component size characteristic data, the method further includes: The component dimension drawing and the structural analysis model are determined according to the dimensions of the component to be designed.

5. The method for designing the dimensions of building structural components based on the diffusion model according to claim 4 is characterized in that: After determining the component size drawing and the structural analysis model according to the size of the component to be designed, the method further includes: The generation effect of the diffusion generation model is verified according to the structural analysis model.

6. A design system for the size of building structural components based on a diffusion model, characterized in that: include: a preprocessor for determining characteristics of a structural member and design conditions of said structural member; A feature fuser, used for integrating the features of the structural component and the design conditions of the structural component into a feature tensor of the structural component; The structural component includes a component to be designed; A component selector, used to determine the mask tensor of the component to be designed; A model processing module, used for inputting the characteristic tensor of the structural component and the mask tensor into a diffusion generation model for building structural component size design, and obtaining component size characteristic data output by the diffusion generation model; A post-processor, used for determining the design size of the component to be designed according to the component size characteristic data; The determining of the characteristics of the structural component and the design conditions of the structural component comprises: By using a priority traversal algorithm, the characteristics of the structural component are obtained from the structural layout drawing, and the characteristics of the structural component are saved in a structured form; the characteristics of the structural component include position coordinates and related characteristics, and the related characteristics are a combination of one or more of material properties, connection relationships and estimated loads; By searching the structural dimension design text, the design conditions of the structural component are extracted, and the design conditions of the structural component are saved in numerical form; The step of integrating the characteristics of the structural component and the design conditions of the structural component into a characteristic tensor of the structural component comprises: According to the characteristics of the structural component, a three-dimensional tensor of the component is constructed; the first dimension and the second dimension of the three-dimensional tensor of the component correspond to the position coordinates, and the third dimension of the three-dimensional tensor of the component corresponds to the relevant characteristics; Integrate the design conditions of the structural component with the three-dimensional tensor of the component to obtain the characteristic tensor of the structural component; The step of determining the mask tensor of the component to be designed comprises: Determine the components to be designed; According to the component to be designed, a three-dimensional mask tensor is constructed; the first dimension and the second dimension of the three-dimensional mask tensor correspond to the position coordinates, the third dimension of the three-dimensional mask tensor is a first value when the current mask position is the position of the component to be designed, and the third dimension of the three-dimensional mask tensor is a second value when the current mask position is not the position of the component to be designed; The step of inputting the characteristic tensor of the structural component and the mask tensor into a diffusion generation model for building structural component size design to obtain component size characteristic data output by the diffusion generation model comprises: Generate Gaussian noise tensor; Connecting the inner product of the Gaussian noise tensor and the mask tensor to the feature tensor of the structural component to obtain a noisy input feature tensor; Inputting the noisy input feature tensor into the diffusion generation model for building structure component size design to obtain a predicted noise feature tensor output by the diffusion generation model; The noisy input feature tensor is updated according to the predicted noise feature tensor, and the steps of iteratively executing the diffusion generation model are repeated until the number of iteration steps reaches a preset number of steps, thereby obtaining the component size feature data output by the diffusion generation model.

Citation Information

Patent Citations

  • Image processing methods and devices, equipment and memory medium

    CN109361934A

  • Building contour extraction method and system, computer equipment and storage medium

    CN114529837A

  • Building structure component size design method and device embedded with domain knowledge

    CN114880741A

  • Building roof modeling method, modeling device, equipment and medium

    CN116363319A

  • Building structure arrangement generation method and system and construction method of generation model

    CN116680778A