Space identification method and device based on BIM data and medium
By analyzing and preprocessing BIM data component-by-component, and using machine learning and natural language processing technology to generate classification feature vectors, the automatic recognition of building functional area spaces is realized, which solves the time-consuming and labor-intensive problem of traditional methods and improves the recognition efficiency. efficiency and productivity.
Patent Information
- Application Number
- CN202410937942.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-12
- Publication Date
- 2024-10-01
AI Technical Summary
In architectural design and construction management, the identification and classification of functional areas requires a lot of manpower and professional knowledge, and traditional methods are time-consuming and lack efficient automated solutions.
Based on BIM data, by analyzing and preprocessing the BIM model component by component, using machine learning methods and natural language processing technology, classification feature vectors are generated to achieve automatic identification of functional area spaces. Specific steps include preprocessing the component-by-component data of the BIM model, calculating the BIM space, trimming the components to form a divided space, generating text corpus and converting it into a classification feature vector, and using the random forest algorithm and support vector machine for training to obtain the trained classification. device.
It achieves efficient automatic identification of building functional area spaces. Compared with traditional manual annotation, it has the advantages of high efficiency and automation. The trained classifier can be applied to similar projects, improving productivity.
Smart Images

Figure CN118734408A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of BIM technology, and specifically relates to a space recognition method, device and medium based on BIM data. Background Art
[0002] The identification and classification of functional areas is a crucial task in building design and construction management. Traditionally, this process is manual, time-consuming and requires a lot of manpower and expertise. Summary of the invention
[0003] In order to overcome the above-mentioned deficiencies of the prior art, the present invention provides a space recognition method, device and medium based on BIM data, which realizes automatic recognition of functional area space based on BIM data and classifier.
[0004] According to one aspect of the present invention, a space recognition method based on BIM data is provided, comprising: Analyze the BIM model component by component to obtain analytical data for each component; The component data obtained by parsing is input into a pre-trained classifier, and the spatial classification recognition result is output; Wherein, the pre-training of the classifier further includes: Preprocess the component-by-component data of the BIM model; Calculate the BIM space, and perform spatial trimming of components within the calculated BIM space to form several divided spaces; Construct a space corpus and generate text corpus for each partitioned space; The text corpus of each partitioned space is converted into a classification feature vector, and trained using the random forest algorithm and support vector machine to obtain a trained classifier.
[0005] The above technical solution is based on the geometric information, attribute data and relationship information contained in the BIM model, parses the data of each component, and inputs it into a pre-trained classifier for classification to obtain spatial classification and recognition results, thereby realizing automatic recognition of the functional area space of the building.
[0006] Furthermore, the above technical solution utilizes machine learning methods for classification, which has the advantages of high efficiency and automation compared to traditional manual labeling. At the same time, the trained classifier can be applied to all similar projects, thereby improving productivity.
[0007] As a further technical solution, preprocessing the component-by-component data of the BIM model further includes: The geometric descriptions of all structural plate components and structural wall components in the component are re-described, and the continuous wall components are first interrupted and then re-described.
[0008] The above technical solution takes into account the problem of inconsistent thickness of walls and panels, and completes the standardization of walls and panels through re-description.
[0009] As a further technical solution, calculating the BIM space further includes: using an outer bounding box method to calculate the bounding box of the full BIM model, and describing the bounding box of the full BIM model as the BIM space.
[0010] As a further technical solution, spatial trimming of components is performed in the calculated BIM space, further comprising: trimming re-described structural plate components and structural wall components in the calculated BIM space, and each connected area after trimming is used as a divided space.
[0011] As a further technical solution, constructing a space corpus to generate text corpora for each divided space further includes: Calculate the partition space to which each component belongs; Calculate the shortest path of components in the partitioned space and sort them; Based on the shortest path sorting results of the components in each divided space, the pre-formed classification results of each component are extracted to generate the text corpus of each space.
[0012] The above technical solution converts the component features of the space classification into textual expressions so as to classify them in the form of natural language processing. In addition, the technical solution uses the shortest path sorting method to transfer the potential spatial relationship between components in the BIM partition space to the corpus for accurate classification.
[0013] As a further technical solution, converting the text corpus of each divided space into a classification feature vector further includes: converting the text corpus of each space into a word vector using a word vector model.
[0014] As a further technical solution, the method further includes: evaluating the classification results using a confusion matrix.
[0015] According to one aspect of the present invention, there is provided a space recognition device based on BIM data, comprising: The parsing module is used to parse the BIM model component by component to obtain the parsing data of each component; The classifier module is used to input the component data obtained by analysis into a pre-trained classifier and output the spatial classification recognition result; Wherein, the pre-training of the classifier further includes: Preprocess the component-by-component data of the BIM model; Calculate the BIM space, and perform spatial trimming of components within the calculated BIM space to form several divided spaces; Construct a space corpus and generate text corpus for each partitioned space; The text corpus of each partitioned space is converted into a classification feature vector, and trained using the random forest algorithm and support vector machine to obtain a trained classifier.
[0016] As a further technical solution, the classifier module is also used to execute the following instructions: Calculate the partition space to which each component belongs; Calculate the shortest path of components in the partitioned space and sort them; Based on the shortest path sorting results of the components in each divided space, the pre-formed classification results of each component are extracted to generate the text corpus of each space.
[0017] According to one aspect of the present invention, there is provided a computer storage medium having a computer program stored thereon, which implements the steps of the BIM data-based space recognition method when executed by a processor.
[0018] Compared with the prior art, the present invention has the following beneficial effects: Based on the geometric information, attribute data and relationship information contained in the BIM model, the present invention parses the data of each component and inputs it into a pre-trained classifier for classification to obtain a spatial classification and recognition result, thereby realizing automatic recognition of the functional area space of the building.
[0019] The present invention converts the component features of the divided space classes into text expressions to perform classification in the form of NLP.
[0020] The present invention uses the shortest path sorting method to transfer the potential spatial relationship between components in the BIM partition space to the corpus, ensuring the accuracy of the text corpus.
[0021] The present invention utilizes machine learning methods for classification, which has the advantages of high efficiency and automation compared to traditional manual labeling. At the same time, the trained classifier can be applied to all similar projects to support related applications and improve productivity. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 4 is a flow chart of a method for space recognition based on BIM data according to an embodiment of the present invention.
[0023] Figure 2 Schematic diagram of a classifier training process according to an embodiment of the present invention. DETAILED DESCRIPTION
[0024] The identification and classification of functional areas in existing building design and construction management is time-consuming and labor-intensive. With the emergence of BIM technology, although digital models containing geometric information, attribute data and relationship information can be created, there is still a lack of an efficient and automated method to realize the identification of functional areas based on BIM data. To this end, the present invention provides an automatic identification method for functional area space, which is based on the BIM digital model containing geometric information, attribute data and relationship information, and uses machine learning to realize efficient automatic identification of functional area space.
[0025] It should be noted that: Functional area refers to the space with certain functions divided based on the entire project in architectural design and construction management, such as pipe wells, exhaust wells, pump rooms, etc., which are also called functional area spaces. The purpose of the present invention is to automatically identify and classify different functional areas in a building.
[0026] In some processes described in the specification and claims of the present invention and the above-mentioned drawings, multiple operations appearing in a specific order are included, but it should be clearly understood that these operations may not be performed in the order in which they appear in this document or may be performed in parallel. For example, step 1, step 2, etc. are only used to distinguish different operations, and the sequence number itself does not represent any execution order. In addition, these processes may include more or fewer operations, and these operations may be performed in sequence or in parallel.
[0027] The following will clearly and completely describe the technical solutions of various embodiments of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are only 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 making creative work are within the scope of protection of the present invention. Example 1
[0028] This embodiment provides a space recognition method based on BIM data, which is used for efficient and automatic recognition of functional area spaces of buildings.
[0029] like Figure 1 As shown, the method includes: Step 1: Analyze the BIM model component by component to obtain the analytical data of each component.
[0030] Step 2: Input the parsed component data into a pre-trained classifier and output the spatial classification recognition result.
[0031] In the above steps, the IFC format of the entire BIM model (which can be multiple IFCs) is first parsed component by component to obtain the geometry, space, and attribute information of each component, and then the parsed component data is given to the classifier, which outputs the functional definition classification of each space.
[0032] like Figure 2 As shown, the pre-training of the classifier further includes: Step 2.1, preprocess the component data of the BIM model.
[0033] Before preprocessing, it also includes model analysis, exporting IFC format data containing geometric information, component properties, and associated information from various ecological software, and ensuring component integrity and property integrity.
[0034] After the model is parsed, the IFC format data from various ecological software are managed component by component, that is, component-level management is performed.
[0035] Furthermore, after preprocessing, it also includes: component plate re-description and component wall re-description.
[0036] Specifically, the component plates are redescribed as follows: all structural plates (including cast-in-place plates and PC component plates) are found and redescribed as plates with a thickness of 1 cm according to their geometric descriptions.
[0037] The component wall redescription is as follows: find all component walls (including cast-in-place structural walls, PC component walls, and building walls), interrupt the continuous walls, redescribe them into cubes with a thickness of 1 cm based on their geometric descriptions, and ensure that the longitudinal walls and panels intersect. In other words, after redescription of the wall panels, it is necessary to ensure that the previous intersection relationship between "walls and panels" is retained and not destroyed.
[0038] This embodiment takes into account the situation that the thickness of walls and panels are inconsistent, and uniformly describes them as 1 cm panels or walls to complete the standardization of walls and panels.
[0039] Step 2.2, calculate the BIM space, and perform spatial trimming of components within the calculated BIM space to form several divided spaces.
[0040] Optionally, the AABB outer bounding box method is used to calculate the bounding box of the full BIM model, and the outer bounding box is described as the BIM space.
[0041] Optionally, all the above-redescribed component plates and component walls are clipped in the BIM space.
[0042] After clipping, each connected region is the classification space partition result, and then the partition space is obtained.
[0043] Step 2.3, construct the space corpus and generate the text corpus for each divided space.
[0044] Step 2.31, Calculate the space to which the component belongs: Calculate the center coordinates of the bounding box of each component, perform spatial intersection calculation based on the divided space, and calculate the space to which each component belongs. Ignore components whose center coordinates do not fall within the divided space.
[0045] Furthermore, performing spatial intersection calculation based on the divided spaces refers to calculating the relationship between the center point of each component and the aforementioned divided spaces, and determining in which divided space the center point of the component is included.
[0046] Step 2.32, calculate the shortest path of the components in the divided space: calculate the distance adjacency matrix based on the spatial coordinates, find the pair of points with the longest distance from the distance adjacency matrix, use one of them as the starting point for the shortest path calculation, use the Dijkstra algorithm to find the shortest path, and record the order.
[0047] It should be noted that the distance adjacency matrix is a way of describing the distance between points in space. Based on this, the Dijkstra algorithm can calculate the shortest path and record the order of each component under the shortest path.
[0048] Step 2.33, component standard classification: Classify uniformly according to the preset standard, which can be based on the standard of sub-items or other custom standards. The classification results are recorded in the component management table.
[0049] This step completes the classification of components based on preset unified standards to ensure consistency of classification standards in different projects.
[0050] After completing the classification of components, each component has its own "classification label", such as water supply and drainage, fire protection, etc.
[0051] Step 2.34, generate corpus space by space: based on the shortest path sorting results of the components in each divided space, extract the classification results of each component to generate the text corpus of each space.
[0052] Just as an example, the calculation result of the shortest path of components in a divided space is: "Component A-Component B-Component C-Component D-Component E...", among which the classification labels of components A, C, and D are water supply and drainage; the classification label of component B is fire protection; and the label of component E is electrical. Then the text corpus result is: "Water supply and drainage, fire protection, water supply and drainage, water supply and drainage, electrical..."
[0053] In step 2.4, the text corpus of each partitioned space is converted into a classification feature vector, and trained using the random forest algorithm and support vector machine to obtain a trained classifier.
[0054] Specifically, the text corpus of each space is converted into a word vector based on the Word2vec (word vector) model. This step requires determining the following parameters: (1) Word vector dimension: The word vector dimension is set based on the number of classification results. In this task, the number of standard classification results is 252, and the output word vector dimension is set to 50. (2) Model selection: Select the CBOW model; (3) Window size setting: 5.
[0055] In addition, the feature vector description of the classification space also includes the depth ratio of the bounding box of the divided space, the number of structural components in the divided space, the number of water supply and drainage components in the divided space, the number of HVAC components in the divided space, the number of electrical components in the divided space, etc., so as to enrich the dimension of the feature vector used for classification and improve the classification accuracy.
[0056] Before you start training, you should also: Classification sample preparation: 400 spaces in multiple projects were labeled in the form of annotations. The categories included: pipe shafts, exhaust shafts, pump rooms, passenger elevators, fire elevators, water wells, etc., and the number of spaces in each category was kept consistent as much as possible.
[0057] Pre-training: Use the random forest algorithm to train the samples, use the feature importance measurement method provided by the random forest algorithm to sort the classification features, and record the top ten features.
[0058] Support vector machine training: The top ten features are used for training, and the trained model is the final classifier.
[0059] After the training is completed, it also includes: using the confusion matrix to evaluate the final classification results to obtain the classification accuracy.
[0060] This embodiment analyzes the attributes and relationship information in the BIM model, uses the word2vec model to describe the spatial features, and uses machine learning technology to enable it to automatically identify and classify different functional areas in the building. Example 2
[0061] Based on the same inventive concept as that of Embodiment 1, this embodiment provides a space recognition device based on BIM data, including: The parsing module is used to parse the BIM model component by component to obtain the parsing data of each component; The classifier module is used to input the component data obtained by analysis into a pre-trained classifier and output the spatial classification recognition result; Wherein, the pre-training of the classifier further includes: Preprocess the component-by-component data of the BIM model; Calculate the BIM space, and perform spatial trimming of components within the calculated BIM space to form several divided spaces; Construct a space corpus and generate text corpus for each partitioned space; The text corpus of each partitioned space is converted into a classification feature vector, and trained using the random forest algorithm and support vector machine to obtain a trained classifier.
[0062] The above modules can be implemented by referring to the method embodiment, which will not be described in detail here. It should be noted that: The classifier module is also used to execute the following instructions: Calculate the partition space to which each component belongs; Calculate the shortest path of components in the partitioned space and sort them; Based on the shortest path sorting results of the components in each divided space, the pre-formed classification results of each component are extracted to generate the text corpus of each space.
[0063] It should be noted that the implementation solution provided by the device to solve the problem is similar to the implementation solution recorded in the above method. Therefore, the specific limitations in the implementation methods of the aforementioned modules can be referred to the limitations of the method for implementing the planning and scheduling flow segment division above, and will not be repeated here. Example 3
[0064] Based on the same inventive concept as that of Example 1, this embodiment provides a computer storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the space recognition method based on BIM data are implemented.
[0065] In summary, the present invention achieves the following technical effects: The present invention converts the component features of the divided space classes into text expressions to perform classification in the form of NLP.
[0066] The present invention uses the shortest path sorting method to transfer the potential spatial relationship between components in the BIM partition space to the corpus, thereby improving the classification accuracy.
[0067] The present invention utilizes a machine learning method for classification, which is more efficient and automated than traditional manual labeling, and the trained classifier can be applied to all similar projects, thereby improving productivity.
[0068] The method for automatically identifying functional area space of the present invention can support related applications.
[0069] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0070] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0071] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0072] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0073] 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 replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the technical solutions of the embodiments of the present invention.
Claims
1. Spatial recognition method based on BIM data, It is characterized in that include: Analyze the BIM model component by component to obtain analytical data for each component; The component data obtained by parsing is input into a pre-trained classifier, and the spatial classification recognition result is output; Wherein, the pre-training of the classifier further includes: Preprocess the component-by-component data of the BIM model; Calculate the BIM space, and perform spatial trimming of components within the calculated BIM space to form several divided spaces; Construct a space corpus and generate text corpus for each partitioned space; The text corpus of each partitioned space is converted into a classification feature vector, and trained using the random forest algorithm and support vector machine to obtain a trained classifier.
2. According to the space recognition method based on BIM data according to claim 1, It is characterized in that Preprocessing the component-by-component data of the BIM model further includes: The geometric descriptions of all structural plate components and structural wall components in the component are re-described, and the continuous wall components are first interrupted and then re-described.
3. According to the space recognition method based on BIM data according to claim 2, It is characterized in that Calculating the BIM space further includes: calculating the bounding box of the full BIM model using an outer bounding box method, and describing the bounding box of the full BIM model as the BIM space.
4. According to the space recognition method based on BIM data according to claim 3, It is characterized in that The spatial trimming of components in the calculated BIM space further includes: trimming the re-described structural plate components and structural wall components in the calculated BIM space, and each connected area after trimming is used as a divided space.
5. According to the space recognition method based on BIM data according to claim 4, It is characterized in that The construction space corpus generates the text corpus of each partition space, further including: Calculate the partition space to which each component belongs; Calculate the shortest path of components in the partitioned space and sort them; Based on the shortest path sorting results of the components in each divided space, the pre-formed classification results of each component are extracted to generate the text corpus of each space.
6. According to the space recognition method based on BIM data according to claim 5, It is characterized in that Converting the text corpus of each divided space into a classification feature vector further includes: converting the text corpus of each space into a word vector using a word vector model.
7. According to the space recognition method based on BIM data according to claim 1, It is characterized in that The method also includes: evaluating the classification results using a confusion matrix.
8. Space recognition device based on BIM data, It is characterized in that include: The parsing module is used to parse the BIM model component by component to obtain the parsing data of each component; The classifier module is used to input the component data obtained by analysis into a pre-trained classifier and output the spatial classification recognition result; Wherein, the pre-training of the classifier further includes: Preprocess the component-by-component data of the BIM model; Calculate the BIM space, and perform spatial trimming of components within the calculated BIM space to form several divided spaces; Construct a space corpus and generate text corpus for each partitioned space; The text corpus of each partitioned space is converted into a classification feature vector, and trained using the random forest algorithm and support vector machine to obtain a trained classifier.
9. According to the space recognition device based on BIM data as claimed in claim 8, It is characterized in that The classifier module is also used to execute the following instructions: Calculate the partition space to which each component belongs; Calculate the shortest path of components in the partitioned space and sort them; Based on the shortest path sorting results of the components in each divided space, the pre-formed classification results of each component are extracted to generate the text corpus of each space.
10. A computer storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the space recognition method based on BIM data as described in any one of claims 1 to 7 are implemented.
