Architectural structure design method based on text-image multimodal fusion diffusion model
Through the text-image multi-modal fusion diffusion model, the architectural structure design drawings and text information are extracted, a matrix is generated and input into the diffusion model, which solves the problem of text and image data fusion in the existing technology and achieves efficient preliminary design of the building structure with high efficiency. Improved by 10 times.
Patent Information
- Application Number
- CN202311833089.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-27
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2043-12-27
AI Technical Summary
Existing architectural structure design methods are difficult to effectively integrate text and image data, resulting in limited design efficiency and quality.
Using a text-image multi-modal fusion diffusion model, the mask matrix and condition matrix are generated by extracting the key image information in the architectural structure design drawings and the key text information in the design requirements text, and input them into the pre-trained building structure Lay out the design diffusion model and generate the building structure layout matrix.
It significantly improves the layout design efficiency in the preliminary design stage of the building structure. It can complete the component layout design within 2 minutes, which is more than 10 times more efficient than traditional methods.
Smart Images

Figure CN117993052B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of architectural design, and in particular to an architectural structure design method based on a text-image multimodal fusion diffusion model. Background Art
[0002] During the design phase of a building structure, structural engineers need to communicate and coordinate with owners, architects, HVAC engineers, water supply and drainage engineers, electrical engineers and other parties to provide a preliminary structural component layout plan. This design scheme will significantly affect the effect of the final design. It is necessary to meet the owner's requirements for the functional use of the building structure while ensuring safety and economy. At present, requirements such as building functional use, safety, and economy are usually expressed in the form of text (such as specification provisions, verbal instructions from owners and engineers) and images (such as professional design drawings of architecture, HVAC, etc.). Due to the heterogeneity of data formats, existing computer-aided design methods are still difficult to perform architectural structure design under text and image constraints, which restricts the design efficiency and quality of the construction industry. Therefore, there is an urgent need for an intelligent design method for architectural structures that integrates text and images. Summary of the invention
[0003] The present invention provides a building structure design method based on a text-image multimodal fusion diffusion model, which is used to solve the problem of low layout design efficiency in the preliminary design stage of existing building structures.
[0004] The present invention provides a building structure design method based on a text-image multimodal fusion diffusion model, comprising:
[0005] Obtain multi-disciplinary design drawings of building structures to be processed and design requirement texts in natural language form;
[0006] Extracting key image information from the multi-disciplinary design drawings of the building structure, performing matrix processing on the information, and generating a mask matrix to be input;
[0007] Extract key text information from the design requirement text, perform matrix processing on the information, and generate a condition matrix to be input;
[0008] Inputting the condition matrix to be input, the mask matrix to be input and the randomly generated pure noise matrix into a pre-trained building structure layout design diffusion model to generate a building structure layout matrix;
[0009] The pre-trained building structure layout design diffusion model is obtained after training based on conditional matrix and mask matrix sample data and pre-calibrated building structure layout matrix label data.
[0010] According to a method for architectural structure design based on a text-image multimodal fusion diffusion model provided by the present invention, the step of obtaining multi-disciplinary design drawings of architectural structures to be processed and design requirement texts in natural language form specifically includes:
[0011] Building structures include frame structures, shear wall structures, frame-shear wall structures, frame-core tube structures, and frame-support structures;
[0012] The multi-disciplinary design drawings include design drawings for architecture, HVAC, water supply and drainage, and electromechanical;
[0013] The design requirements text includes rigid design conditions stipulated by laws and regulations and flexible design conditions required by owners and engineers.
[0014] According to a building structure design method based on a text-image multimodal fusion diffusion model provided by the present invention, key image information is extracted from the multi-professional design drawings of the building structure, the information is matrixed, and a mask matrix to be input is generated, which specifically includes:
[0015] Preprocess multi-disciplinary design drawings of building structures to obtain coordinates and attributes corresponding to key image information;
[0016] Initialize the single-layer conditional matrix and mask matrix with all elements set to zero;
[0017] For the spatial position information, geometric size information, and topological connectivity information in the key image information, locate the element positions on the single-layer condition matrix according to the coordinates, assign values to the elements according to the attributes, and obtain several single-layer condition matrices;
[0018] For the potential structure position information in the key image information, the element position on the mask matrix is located according to the coordinates, and the elements are assigned values according to the attributes to obtain the mask matrix.
[0019] According to a building structure design method based on a text-image multimodal fusion diffusion model provided by the present invention, key text information is extracted from the design requirement text, the information is matrixed, and a condition matrix to be input is generated, which specifically includes:
[0020] Input the design requirement text and operation instructions in natural language into the large language model enhanced with civil engineering domain knowledge to obtain the attributes corresponding to the key text information;
[0021] According to the pre-specified mapping relationship, a design requirement vector is obtained based on the attributes corresponding to the key text information;
[0022] By copying and stacking, the size of the design requirement vector is expanded to be consistent with the single-layer condition matrix, and several single-layer condition matrices are obtained;
[0023] The condition matrix is obtained by stacking all single-layer condition matrices corresponding to the key image information and the key text information.
[0024] According to a building structure design method based on a text-image multimodal fusion diffusion model provided by the present invention, the condition matrix to be input, the mask matrix to be input and the randomly generated pure noise matrix are input into a pre-trained building structure layout design diffusion model to generate a building structure layout matrix, which specifically includes:
[0025] The randomly generated pure noise matrix S 0 The condition matrix C is input into the building structure layout design diffusion model to obtain the noise matrix N 1 , the noise matrix N 1 Multiply the mask matrix M element by element, and then convert the pure noise matrix S 0 Subtract element by element from the above result to obtain the denoising matrix S for subsequent use 1 ;
[0026] Replace the pure noise matrix with the denoising matrix, repeat the above process N-2 times, and continuously calculate the latest denoising matrix;
[0027] The denoising matrix S obtained in step N-1 is N-1 The condition matrix C is input into the building structure layout design diffusion model to obtain the noise matrix N N , the noise matrix N N Multiply element-by-element with the mask matrix M, and then convert the denoising matrix S N-1 Subtract element by element from the above result to obtain the building structure layout matrix S N .
[0028] According to a building structure design method based on a text-image multimodal fusion diffusion model provided by the present invention, the pre-trained building structure layout design diffusion model is obtained after training based on conditional matrix and mask matrix sample data and pre-calibrated building structure layout matrix label data, specifically comprising:
[0029] For any iteration, based on the building structure layout matrix label data S and the predefined noise level change law, the nth step is randomly selected and the real denoising matrix S′ corresponding to the noise level of the nth step is sampled. n-1 and the true noise matrix N′ n ;
[0030] The real denoising matrix S′ n-1 The condition matrix C is input into the building structure layout design diffusion model to obtain the predicted noise matrix N n ;
[0031] By adjusting the parameters of the diffusion model for building structure layout design, the prediction noise matrix N is minimized. n and the true noise matrix N′ n differences;
[0032] Repeat the above iterative process until the predicted noise matrix N n and the true noise matrix N′ n The difference cannot be reduced any further.
[0033] The present invention also provides a building structure design system based on a text-image multimodal fusion diffusion model, the system comprising:
[0034] A data acquisition module, used to acquire the multi-disciplinary design drawings of the building structure to be processed and the design requirement text in natural language form;
[0035] A mask matrix generation module is used to extract key image information from the multi-disciplinary design drawings of the building structure, perform matrix processing on the information, and generate a mask matrix to be input;
[0036] A condition matrix generation module is used to extract key text information from the design requirement text, perform matrix processing on the information, and generate a condition matrix to be input;
[0037] A design scheme generating module, used for inputting the condition matrix to be input, the mask matrix to be input and the randomly generated pure noise matrix into a pre-trained building structure layout design diffusion model to generate a building structure layout matrix;
[0038] The pre-trained building structure layout design diffusion model is obtained after training based on conditional matrix and mask matrix sample data and pre-calibrated building structure layout matrix label data.
[0039] The present invention also provides 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 architectural structure design method based on the text-image multimodal fusion diffusion model as described in any one of the above is implemented.
[0040] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements a building structure design method based on a text-image multimodal fusion diffusion model as described in any one of the above.
[0041] The present invention also provides a computer program product, including a computer program, which, when executed by a processor, implements any of the above-mentioned building structure design methods based on the text-image multimodal fusion diffusion model.
[0042] The architectural structure design method based on the text-image multimodal fusion diffusion model provided by the present invention quickly generates the architectural structure layout matrix by inputting the pure noise matrix, the conditional matrix and the mask matrix into the pre-trained architectural structure layout design diffusion model, thereby greatly improving the layout design efficiency in the preliminary design stage of the architectural structure. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are 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.
[0044] Figure 1 It is one of the flow diagrams of the architectural structure design method based on the text-image multimodal fusion diffusion model provided by the present invention;
[0045] Figure 2 This is the second flow chart of the architectural structure design method based on the text-image multimodal fusion diffusion model provided by the present invention;
[0046] Figure 3 This is the third flow chart of the architectural structure design method based on the text-image multimodal fusion diffusion model provided by the present invention;
[0047] Figure 4 This is the fourth flow chart of the architectural structure design method based on the text-image multimodal fusion diffusion model provided by the present invention;
[0048] Figure 5 This is the fifth flow chart of the architectural structure design method based on the text-image multimodal fusion diffusion model provided by the present invention;
[0049] Figure 6 It is a schematic diagram of module connection of a building structure design system based on a text-image multimodal fusion diffusion model provided by the present invention;
[0050] Figure 7 It is a schematic diagram of the pre-processing based on the text-image multimodal fusion diffusion model provided by the present invention;
[0051] Figure 8 It is a schematic diagram of the design process of the text-image multimodal fusion diffusion model provided by the present invention;
[0052] Fig. 9 It is a schematic diagram of the training process based on the text-image multimodal fusion diffusion model provided by the present invention;
[0053] Fig.10It is a structural schematic diagram of the electronic device provided by the present invention.
[0054] Reference numerals:
[0055] 110: data acquisition module; 120: mask matrix generation module; 130: condition matrix generation module; 140: generation module;
[0056] 1010: processor; 1020: communication interface; 1030: memory; 1040: communication bus. DETAILED DESCRIPTION
[0057] 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.
[0058] Combine the following Figure 1-Figure 5 The present invention describes a building structure design method based on a text-image multimodal fusion diffusion model, comprising:
[0059] S100, obtaining multi-disciplinary design drawings of the building structure to be processed and design requirement text in natural language form;
[0060] S200, extracting key image information from the multi-disciplinary design drawings of the building structure, performing matrix processing on the information, and generating a mask matrix to be input;
[0061] S300, extracting key text information from the design requirement text, performing matrix processing on the information, and generating a condition matrix to be input;
[0062] S400, inputting the condition matrix to be input, the mask matrix to be input and the randomly generated pure noise matrix into a pre-trained building structure layout design diffusion model to generate a building structure layout matrix;
[0063] The pre-trained building structure layout design diffusion model is obtained after training based on conditional matrix and mask matrix sample data and pre-calibrated building structure layout matrix label data.
[0064] In the present invention, a pure noise matrix, a conditional matrix and a mask matrix are input into a pre-trained building structure layout design diffusion model to quickly generate a building structure layout matrix, which greatly improves the layout design efficiency in the preliminary design stage of the building structure.
[0065] Obtain the multi-disciplinary design drawings of the building structure to be processed and the design requirement text in natural language form, including:
[0066] S101. Building structures include frame structures, shear wall structures, frame-shear wall structures, frame-core tube structures, and frame-support structures;
[0067] S102. The multi-disciplinary design drawings include design drawings of architecture, HVAC, water supply and drainage, and electromechanical;
[0068] S103. The design requirement text includes the rigid design conditions stipulated by laws and regulations and the flexible design conditions required by the owner and engineers.
[0069] Specifically, obtain the design drawings of the target building's architecture, HVAC, water supply and drainage, and electromechanical engineering;
[0070] Obtain rigid design conditions stipulated by laws and regulations, such as structural deformation index and structural internal force index corresponding to the target building structure type and local natural conditions;
[0071] Obtain the flexible design conditions required by owners and engineers, such as indoor clearance requirements, facade window opening requirements, stair and elevator location requirements, and pipeline layout space requirements.
[0072] Extracting key image information from the multi-disciplinary design drawings of the building structure, performing matrix processing on the information, and generating a mask matrix to be input, specifically includes:
[0073] S201, pre-processing the multi-disciplinary design drawings of the building structure to obtain coordinates and attributes corresponding to key image information;
[0074] S202, initializing a single-layer conditional matrix and a mask matrix whose elements are all zero;
[0075] S203, for the spatial position information, geometric size information, and topological connectivity information in the key image information, locate the element positions on the single-layer condition matrix according to the coordinates, assign values to the elements according to the attributes, and obtain a plurality of single-layer condition matrices;
[0076] S204 , for the potential structure position information in the key image information, locate the element position on the mask matrix according to the coordinates, assign values to the elements according to the attributes, and obtain the mask matrix.
[0077] refer to Figure 7In the present invention, the key image information includes extracting the position and size information of partition walls, doors and windows from architectural drawings, extracting the position, size and topology information of heating, ventilation, fresh air and air conditioning systems from HVAC drawings, extracting the position, size and topology information of water supply pipes, drainage pipes, hot water pipes and fire water pipes from water supply and drainage drawings; extracting the position, size and topology information of strong electricity, weak points and distribution boxes from electrical drawings.
[0078] For each of the above key image information, the drawing is scaled to a single-layer conditional matrix of 256×256. The matrix elements with key image information are assigned values according to the attributes, and the matrix elements without key image information are 0. The attribute of the partition wall is assigned 1, the attribute of the door is assigned 2, the attribute of the window is assigned 3, and so on. 14 single-layer conditional matrices of 256×256 are obtained.
[0079] For the potential structural position information in the key image information, such as the position and size of the partition wall, a mask matrix M similar to the single-layer conditional matrix is obtained, with a size of 256×256.
[0080] Extract key text information from the design requirement text, perform matrix processing on the information, and generate a condition matrix to be input, specifically including:
[0081] S301, inputting the design requirement text and operation instructions in natural language form into the large language model enhanced with civil engineering domain knowledge to obtain attributes corresponding to key text information;
[0082] S302, obtaining a design requirement vector based on the attributes corresponding to the key text information according to a pre-specified mapping relationship;
[0083] S303, by copying and stacking, the size of the design requirement vector is expanded to be consistent with the single-layer condition matrix, so as to obtain a plurality of single-layer condition matrices;
[0084] S304 , obtaining a condition matrix by stacking all single-layer condition matrices corresponding to the key image information and the key text information.
[0085] In the present invention, the key text information includes natural language expressions of building structure types, local natural conditions (such as earthquake risks and geological conditions), owner requirements, and engineer requirements.
[0086] For each of the above key text information, it is input into the large language model enhanced with knowledge in the field of civil engineering to obtain the corresponding attributes of the key text information. For example, according to the building structure type (such as shear wall structure), the inter-story displacement angle limit under earthquake (such as 1 / 1000) is obtained; according to the local earthquake risk and geological conditions, the design earthquake intensity (such as 8 degrees) and the site characteristic period (such as 0.4s) are obtained; according to the owner's requirements, the steel consumption per unit area is obtained (such as no more than 50kg); according to the architect's requirements, the indoor clearance requirements (such as the floor height is greater than 3m) and the facade window opening requirements (such as the beam height above the window is required to be 560mm) are obtained.
[0087] According to the above properties, a design requirement vector is obtained, such as [1 / 1000, 8, 0.4, 50, 3, 560, ...]. By copying and stacking, the size of the design requirement vector is expanded to be consistent with the single-layer condition matrix, that is, 256×256, to obtain a single-layer condition matrix.
[0088] By stacking 15 single-layer conditional matrices corresponding to key image information and key text information, a conditional matrix C with a size of 256×256×15 is obtained.
[0089] Inputting the condition matrix to be input, the mask matrix to be input and the randomly generated pure noise matrix into the pre-trained building structure layout design diffusion model to generate the building structure layout matrix, specifically includes:
[0090] S401, the randomly generated pure noise matrix S 0 The condition matrix C is input into the building structure layout design diffusion model to obtain the noise matrix N 1 , the noise matrix N 1 Multiply the mask matrix M element by element, and then convert the pure noise matrix S 0 Subtract element by element from the above result to obtain the denoising matrix S for subsequent use 1 ;
[0091] S402, replacing the pure noise matrix with the denoising matrix, repeating the above process N-2 times, and continuously calculating the latest denoising matrix;
[0092] S403, the denoising matrix S obtained in step N-1 is N-1 The condition matrix C is input into the building structure layout design diffusion model to obtain the noise matrix N N , the noise matrix N N Multiply element-by-element with the mask matrix M, and then convert the denoising matrix S N-1 Subtract element by element from the above result to obtain the building structure layout matrix S N .
[0093] Specifically, the design process of the diffusion model for building structure layout design is as follows: Figure 8 As shown, it consists of 100 steps:
[0094] Step 1: randomly generate a pure noise matrix S of size 256×256 0 , the pure noise matrix S 0 The condition matrix C is input into the building structure layout design diffusion model to obtain the noise matrix N 1 ; The noise matrix N 1 Multiply the mask matrix M element by element (⊙), and then convert the pure noise matrix S 0 Subtract element-by-element from the above result to obtain the denoising matrix S for step 2 1 ;
[0095] In the nth step (2≤n≤99), the denoising matrix S obtained in the n-1th step is n-1 The condition matrix C is input into the building structure layout design diffusion model to obtain the noise matrix N n ; The noise matrix N n Multiply the mask matrix M element by element (⊙), and then convert the denoising matrix S n-1 Subtract element-by-element from the above result to obtain the denoising matrix S for the n+1th step n ;
[0096] Step 100: The denoising matrix S obtained in step 99 is 99 The condition matrix C is input into the building structure layout design diffusion model to obtain the noise matrix N 100 ; The noise matrix N 100 Multiply the mask matrix M element by element (⊙), and then convert the denoising matrix S 99 Subtract element by element from the above result to obtain the building structure layout matrix S 100 .
[0097] From the building structure layout matrix S 100 The layout of structural components is extracted, including shear walls, connecting beams, frame columns, frame beams, and supports.
[0098] The pre-trained building structure layout design diffusion model is obtained after training based on the conditional matrix and mask matrix sample data and the pre-calibrated building structure layout matrix label data, specifically including:
[0099] For any iteration, based on the building structure layout matrix label data S and the predefined noise level change law, the nth step is randomly selected and the real denoising matrix S′ corresponding to the noise level of the nth step is sampled. n-1 and the true noise matrix N′ n ;
[0100] The real denoising matrix S′ n-1 The condition matrix C is input into the building structure layout design diffusion model to obtain the predicted noise matrix N n ;
[0101] By adjusting the parameters of the diffusion model for building structure layout design, the prediction noise matrix N is minimized. n and the true noise matrix N′ n differences;
[0102] Repeat the above iterative process until the predicted noise matrix N n and the true noise matrix N′ n The difference cannot be reduced any further.
[0103] In the present invention, the building structure layout design diffusion model is obtained after training based on the conditional matrix and mask matrix sample data and the pre-calibrated building structure layout matrix label data. The training process is as follows Fig. 9 shown.
[0104] For any iteration, based on the building structure layout matrix label data S and the predefined noise level change law, the nth step (1≤n≤100) is randomly selected and the real denoising matrix S′ corresponding to the noise level of the nth step is sampled. n-1 and the true noise matrix N′ n ;
[0105] The real denoising matrix S′ n-1 The condition matrix C is input into the building structure layout design diffusion model to obtain the predicted noise matrix N n ;
[0106] By adjusting the parameters of the diffusion model for building structure layout design, the prediction noise matrix N is minimized. n and the true noise matrix N′ n difference.
[0107] Repeat the above iterative process 1000 times until the predicted noise matrix N n and the true noise matrix N′ n The difference cannot be reduced any further.
[0108] The sample data and pre-calibrated label data are obtained by pre-processing the design drawings collected from actual projects. A total of 103 frame structures, 272 shear wall structures, 84 frame-shear wall structures, 49 frame-core tube structures, and 52 frame-support structure design drawings were collected.
[0109] The noise level changes linearly from 1e-6 to 0.01 within 100 steps.
[0110] The large language model is pre-trained on a general corpus and fine-tuned on a civil engineering corpus. The basic architecture used is Transformer, which has more than 100 billion trainable parameters. Specifically, it includes the following steps:
[0111] Prepare the dataset: Collect and prepare a civil engineering corpus as a fine-tuning dataset. The dataset contains standard specifications, professional books, scientific papers, and Wikipedia for structures, buildings, HVAC, electromechanical, and water supply and drainage.
[0112] Install required libraries: Install relevant deep learning libraries in your computer environment, such as TensorFlow or PyTorch, Transformers library, and Openai library, which contains some pre-trained models.
[0113] Loading pre-trained models: Use the Transformers library to load pre-trained models, such as GPT-3.5.
[0114] Process the data: Use a tokenizer to convert the text into a form that the model can understand and save it in a format suitable for fine-tuning, such as json.
[0115] Set training parameters: Configure fine-tuned training parameters, such as learning rate, number of training epochs, etc.
[0116] Fine-tune model: Train the model using the fine-tuning dataset.
[0117] Save fine-tuned model: After fine-tuning is complete, save the fine-tuned model for later use.
[0118] The present invention generates a building structure layout matrix through a building structure layout design diffusion model, and can complete the layout design of building structure components in about 2 minutes. Compared with the traditional manual method, the efficiency is improved by more than 10 times.
[0119] Through the building structure design method based on the text-image multimodal fusion diffusion model provided by the present invention, the pure noise matrix, the conditional matrix and the mask matrix are input into the pre-trained building structure layout design diffusion model to quickly generate the building structure layout matrix, which greatly improves the layout design efficiency in the preliminary design stage of the building structure.
[0120] refer to Figure 6 The present invention also discloses a building structure design system based on a text-image multimodal fusion diffusion model, the system comprising:
[0121] The data acquisition module 110 is used to acquire the multi-disciplinary design drawings of the building structure to be processed and the design requirement text in natural language form;
[0122] The mask matrix generation module 120 is used to extract key image information from the multi-disciplinary design drawings of the building structure, perform matrix processing on the information, and generate a mask matrix to be input;
[0123] The condition matrix generation module 130 is used to extract key text information from the design requirement text, perform matrix processing on the information, and generate a condition matrix to be input;
[0124] A design solution generation module 140 is used to input the condition matrix to be input, the mask matrix to be input and the randomly generated pure noise matrix into a pre-trained building structure layout design diffusion model to generate a building structure layout matrix;
[0125] The pre-trained building structure layout design diffusion model is obtained after training based on conditional matrix and mask matrix sample data and pre-calibrated building structure layout matrix label data.
[0126] Among them, in the data acquisition module, the building structure includes frame structure, shear wall structure, frame-shear wall structure, frame-core tube structure, and frame-support structure;
[0127] The multi-disciplinary design drawings include design drawings for architecture, HVAC, water supply and drainage, and electromechanical;
[0128] The design requirements text includes rigid design conditions stipulated by laws and regulations and flexible design conditions required by owners and engineers.
[0129] The mask matrix generation module pre-processes the multi-disciplinary design drawings of the building structure to obtain the coordinates and attributes corresponding to the key image information;
[0130] Initialize the single-layer conditional matrix and mask matrix with all elements set to zero;
[0131] For the spatial position information, geometric size information, and topological connectivity information in the key image information, locate the element positions on the single-layer condition matrix according to the coordinates, assign values to the elements according to the attributes, and obtain several single-layer condition matrices;
[0132] For the potential structure position information in the key image information, the element position on the mask matrix is located according to the coordinates, and the elements are assigned values according to the attributes to obtain the mask matrix.
[0133] The conditional matrix generation module inputs the design requirements and operation instructions in natural language into the large language model enhanced with civil engineering domain knowledge to obtain the attributes corresponding to the key text information;
[0134] According to the pre-specified mapping relationship, a design requirement vector is obtained based on the attributes corresponding to the key text information;
[0135] By copying and stacking, the size of the design requirement vector is expanded to be consistent with the single-layer condition matrix, and several single-layer condition matrices are obtained;
[0136] The condition matrix is obtained by stacking all single-layer condition matrices corresponding to the key image information and the key text information.
[0137] The design scheme generation module converts the randomly generated pure noise matrix S 0 The condition matrix C is input into the building structure layout design diffusion model to obtain the noise matrix N 1 , the noise matrix N 1 Multiply the mask matrix M element by element, and then convert the pure noise matrix S 0 Subtract element by element from the above result to obtain the denoising matrix S for subsequent use 1 ;
[0138] Replace the pure noise matrix with the denoising matrix, repeat the above process N-2 times, and continuously calculate the latest denoising matrix;
[0139] The denoising matrix S obtained in step N-1 is N-1 The condition matrix C is input into the building structure layout design diffusion model to obtain the noise matrix N N , the noise matrix N N Multiply element-by-element with the mask matrix M, and then convert the denoising matrix S N-1 Subtract element by element from the above result to obtain the building structure layout matrix S N .
[0140] The pre-trained building structure layout design diffusion model is obtained after training based on the conditional matrix and mask matrix sample data and the pre-calibrated building structure layout matrix label data, specifically including:
[0141] For any iteration, based on the building structure layout matrix label data S and the predefined noise level change law, the nth step is randomly selected and the real denoising matrix S′ corresponding to the noise level of the nth step is sampled. n-1 and the true noise matrix N′ n ;
[0142] The real denoising matrix S′ n-1 The condition matrix C is input into the building structure layout design diffusion model to obtain the predicted noise matrix N n ;
[0143] By adjusting the parameters of the diffusion model for building structure layout design, the prediction noise matrix N is minimized. n and the true noise matrix N′ n differences;
[0144] Repeat the above iterative process until the predicted noise matrix N n and the true noise matrix N′ n The difference cannot be reduced any further.
[0145] Through the building structure design system based on text-image multimodal fusion diffusion model provided by the present invention, the pure noise matrix, conditional matrix and mask matrix are input into the pre-trained building structure layout design diffusion model to quickly generate the building structure layout matrix, which greatly improves the layout design efficiency in the preliminary design stage of the building structure.
[0146] Fig.10 An example of a physical structure diagram of an electronic device is shown in FIG. Fig.10 As shown, the electronic device may include: a processor 1010, a communication interface 1020, a memory 1030 and a communication bus 1040, wherein the processor 1010, the communication interface 1020 and the memory 1030 communicate with each other through the communication bus 1040. The processor 1010 may call the logic instructions in the memory 1030 to execute a building structure design method based on a text-image multimodal fusion diffusion model, the method comprising: obtaining multi-professional design drawings of a building structure to be processed and a design requirement text in a natural language form;
[0147] Extracting key image information from the multi-disciplinary design drawings of the building structure, performing matrix processing on the information, and generating a mask matrix to be input;
[0148] Extract key text information from the design requirement text, perform matrix processing on the information, and generate a condition matrix to be input;
[0149] Inputting the condition matrix to be input, the mask matrix to be input and the randomly generated pure noise matrix into a pre-trained building structure layout design diffusion model to generate a building structure layout matrix;
[0150] The pre-trained building structure layout design diffusion model is obtained after training based on conditional matrix and mask matrix sample data and pre-calibrated building structure layout matrix label data.
[0151] In addition, the logic instructions in the above-mentioned memory 1030 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, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: 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 disk or an optical disk.
[0152] On the other hand, the present invention further provides a computer program product, the computer program product 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 a building structure design method based on a text-image multimodal fusion diffusion model provided by the above methods, the method comprising: obtaining a multi-disciplinary design drawing of a building structure to be processed and a design requirement text in a natural language form;
[0153] Extracting key image information from the multi-disciplinary design drawings of the building structure, performing matrix processing on the information, and generating a mask matrix to be input;
[0154] Extract key text information from the design requirement text, perform matrix processing on the information, and generate a condition matrix to be input;
[0155] Inputting the condition matrix to be input, the mask matrix to be input and the randomly generated pure noise matrix into a pre-trained building structure layout design diffusion model to generate a building structure layout matrix;
[0156] The pre-trained building structure layout design diffusion model is obtained after training based on conditional matrix and mask matrix sample data and pre-calibrated building structure layout matrix label data.
[0157] In another aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, which is implemented when the computer program is executed by a processor to execute a building structure design method based on a text-image multimodal fusion diffusion model provided by the above methods, the method comprising: obtaining a multi-disciplinary design drawing of a building structure to be processed and a design requirement text in a natural language form;
[0158] Extracting key image information from the multi-disciplinary design drawings of the building structure, performing matrix processing on the information, and generating a mask matrix to be input;
[0159] Extract key text information from the design requirement text, perform matrix processing on the information, and generate a condition matrix to be input;
[0160] Inputting the condition matrix to be input, the mask matrix to be input and the randomly generated pure noise matrix into a pre-trained building structure layout design diffusion model to generate a building structure layout matrix;
[0161] The pre-trained building structure layout design diffusion model is obtained after training based on conditional matrix and mask matrix sample data and pre-calibrated building structure layout matrix label data.
[0162] 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. Those of ordinary skill in the art may understand and implement it without creative effort.
[0163] 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.
[0164] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A building structure design method based on text-image multimodal fusion diffusion model, It is characterized in that include: Obtain multi-disciplinary design drawings of building structures to be processed and design requirement texts in natural language form; Extracting key image information from the multi-disciplinary design drawings of the building structure, performing matrix processing on the information, and generating a mask matrix to be input; Extract key text information from the design requirement text, perform matrix processing on the information, and generate a condition matrix to be input; Inputting the condition matrix to be input, the mask matrix to be input and the randomly generated pure noise matrix into a pre-trained building structure layout design diffusion model to generate a building structure layout matrix; The pre-trained building structure layout design diffusion model is obtained after training based on conditional matrix and mask matrix sample data and pre-calibrated building structure layout matrix label data; The step of inputting the condition matrix to be input, the mask matrix to be input and the randomly generated pure noise matrix into the pre-trained building structure layout design diffusion model to generate the building structure layout matrix specifically includes: The randomly generated pure noise matrix S 0 The condition matrix C is input into the building structure layout design diffusion model to obtain the noise matrix N 1 , the noise matrix N 1 Multiply the mask matrix M element by element, and then convert the pure noise matrix S 0 Subtract element by element from the above result to obtain the denoising matrix S for subsequent use 1 ; Replace the pure noise matrix with the denoising matrix, repeat the above process N-2 times, and continuously calculate the latest denoising matrix; The denoising matrix S obtained in step N-1 is N-1 The condition matrix C is input into the building structure layout design diffusion model to obtain the noise matrix N N , the noise matrix N N Multiply element-by-element with the mask matrix M, and then convert the denoising matrix S N-1 Subtract element by element from the above result to obtain the building structure layout matrix S N .
2. The architectural structure design method based on the text-image multimodal fusion diffusion model according to claim 1, It is characterized in that The step of obtaining the multi-disciplinary design drawings of the building structure to be processed and the design requirement text in natural language form specifically includes: Building structures include frame structures, shear wall structures, frame-shear wall structures, frame-core tube structures, and frame-support structures; The multi-disciplinary design drawings include design drawings for architecture, HVAC, water supply and drainage, and electromechanical; The design requirements text includes rigid design conditions stipulated by laws and regulations and flexible design conditions required by owners and engineers.
3. The architectural structure design method based on the text-image multimodal fusion diffusion model according to claim 1, It is characterized in that Extracting key image information from the multi-disciplinary design drawings of the building structure, performing matrix processing on the information, and generating a mask matrix to be input, specifically includes: Preprocess multi-disciplinary design drawings of building structures to obtain coordinates and attributes corresponding to key image information; Initialize the single-layer conditional matrix and mask matrix with all elements set to zero; For the spatial position information, geometric size information, and topological connectivity information in the key image information, locate the element positions on the single-layer condition matrix according to the coordinates, assign values to the elements according to the attributes, and obtain several single-layer condition matrices; For the potential structure position information in the key image information, the element position on the mask matrix is located according to the coordinates, and the elements are assigned values according to the attributes to obtain the mask matrix.
4. The architectural structure design method based on the text-image multimodal fusion diffusion model according to claim 1, It is characterized in that Extract key text information from the design requirement text, perform matrix processing on the information, and generate a condition matrix to be input, specifically including: Input the design requirement text and operation instructions in natural language into the large language model enhanced with civil engineering domain knowledge to obtain the attributes corresponding to the key text information; According to the pre-specified mapping relationship, a design requirement vector is obtained based on the attributes corresponding to the key text information; By copying and stacking, the size of the design requirement vector is expanded to be consistent with the single-layer condition matrix, and several single-layer condition matrices are obtained; The condition matrix is obtained by stacking all single-layer condition matrices corresponding to the key image information and the key text information.
5. The architectural structure design method based on the text-image multimodal fusion diffusion model according to claim 1, It is characterized in that The pre-trained building structure layout design diffusion model is obtained after training based on conditional matrix and mask matrix sample data and pre-calibrated building structure layout matrix label data, specifically including: For any iteration, based on the building structure layout matrix label data S and the predefined noise level change law, the nth step is randomly selected and the real denoising matrix S′ corresponding to the noise level of the nth step is sampled. n-1 and the true noise matrix N′ n ; The real denoising matrix S′ n-1 The condition matrix C is input into the building structure layout design diffusion model to obtain the predicted noise matrix N n ; By adjusting the parameters of the diffusion model for building structure layout design, the prediction noise matrix N is minimized. n and the true noise matrix N′ n differences; Repeat the above iterative process until the predicted noise matrix N n and the true noise matrix N′ n The difference cannot be reduced any further.
6. A building structure design system based on text-image multimodal fusion diffusion model, It is characterized in that The system comprises: A data acquisition module, used to acquire the multi-disciplinary design drawings of the building structure to be processed and the design requirement text in natural language form; A mask matrix generation module is used to extract key image information from the multi-disciplinary design drawings of the building structure, perform matrix processing on the information, and generate a mask matrix to be input; A condition matrix generation module is used to extract key text information from the design requirement text, perform matrix processing on the information, and generate a condition matrix to be input; A design scheme generating module, used for inputting the condition matrix to be input, the mask matrix to be input and the randomly generated pure noise matrix into a pre-trained building structure layout design diffusion model to generate a building structure layout matrix; The pre-trained building structure layout design diffusion model is obtained after training based on conditional matrix and mask matrix sample data and pre-calibrated building structure layout matrix label data; The step of inputting the condition matrix to be input, the mask matrix to be input and the randomly generated pure noise matrix into the pre-trained building structure layout design diffusion model to generate the building structure layout matrix specifically includes: The randomly generated pure noise matrix S 0 The condition matrix C is input into the building structure layout design diffusion model to obtain the noise matrix N 1 , the noise matrix N 1 Multiply the mask matrix M element by element, and then convert the pure noise matrix S 0 Subtract element by element from the above result to obtain the denoising matrix S for subsequent use 1 ; Replace the pure noise matrix with the denoising matrix, repeat the above process N-2 times, and continuously calculate the latest denoising matrix; The denoising matrix S obtained in step N-1 is N-1 The condition matrix C is input into the building structure layout design diffusion model to obtain the noise matrix N N , the noise matrix N N Multiply element-by-element with the mask matrix M, and then convert the denoising matrix S N-1 Subtract element by element from the above result to obtain the building structure layout matrix S N .
7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the architectural structure design method based on the text-image multimodal fusion diffusion model as described in any one of claims 1 to 5 is implemented.
8. A non-transitory computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the architectural structure design method based on the text-image multimodal fusion diffusion model as described in any one of claims 1 to 5 is implemented.
9. A computer program product comprising a computer program, It is characterized in that When the computer program is executed by a processor, the architectural structure design method based on the text-image multimodal fusion diffusion model as described in any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
Neural network fusing text and image data and design method of building structure of neural network
CN112966760A
Building design method and system of steady-state diffusion model based on deep learning
CN116776420A
