BIM component classification method fusing profile graph learning and ifc description
By integrating contour map learning and IFC description, the problems of low accuracy and high computational load in BIM component classification are solved, achieving efficient and accurate BIM component identification, which is applicable to component classification in building information modeling.
Patent Information
- Application Number
- CN202611314524.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-27
- Publication Date
- 2026-11-24
AI Technical Summary
Existing BIM component classification methods rely on external related information and ignore the inherent semantic attributes and geometric structure of individual components, resulting in low classification accuracy and high computational and storage costs.
A BIM component classification method that integrates contour map learning and IFC description is proposed. By constructing a contour-aware map modeling module to extract the graph structure of the rendered image, and combining graph learning with a multi-view embedding fusion module and IFC semantic description, the geometric structure and semantic features of BIM components are fused. The GINEConv module and Bi-GRU network are used for feature extraction and aggregation.
It improves the accuracy and efficiency of BIM component classification, reduces computational and storage overhead, and can more accurately identify components with similar geometric shapes but different semantics. It improves the balanced accuracy, precision and recall of classification, while reducing inference time and resource consumption.
Smart Images

Figure CN123160944A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the technical field of BIM component classification methods, and relates to a BIM component classification method that integrates contour map learning and IFC description. Background Technology
[0002] Building Information Modeling (BIM) is a widely used digital technology in the fields of architecture, engineering, and construction, and various supporting BIM tools are constantly emerging due to the differentiated needs of different professions and projects. To achieve data interoperability between heterogeneous BIM software, Building SMART has developed and implemented the IFC (Industry Foundation Classes) standard. However, in engineering practice, even if the geometric information of BIM components is completely preserved, the exported IFC entity types often show mismatches or omissions. These BIM-IFC mapping errors reduce the reliability of IFC entities, leading to errors in downstream BIM applications such as compliance reviews, numerical simulations, and facility operation and maintenance. Therefore, accurately determining the corresponding IFC entity type based on the geometric information of BIM components is crucial to ensuring BIM interoperability and supporting collaborative BIM work throughout the entire lifecycle of building projects.
[0003] BIM component classification is a core technology that relies on computer technology to learn feature representations from the geometric information of BIM components, thereby determining the IFC entity type of the component. Current mainstream solutions primarily use multi-view methods. The core idea is to render 3D BIM components into 2D images from multiple perspectives, then use Convolutional Neural Networks (CNNs) to extract multi-view features and perform feature fusion to ultimately achieve automatic classification of BIM components. While this method can achieve high classification accuracy, it commonly uses deep convolutional networks designed for natural images, such as VGGNet, AlexNet, and ResNet, as the underlying feature extraction architecture. These modeling paradigms have poor adaptability to the geometric structural features of BIM rendered views, easily leading to redundant feature computation and high storage overhead. Furthermore, existing methods ignore the semantic attributes and geometric construction logic of individual components, resulting in low classification accuracy. Summary of the Invention
[0004] The purpose of this invention is to provide a BIM component classification method that integrates contour map learning and IFC description, which solves the problem in the prior art that relies on external correlation information between BIM components and ignores the inherent semantic attributes and geometric structure of individual components, resulting in low classification accuracy.
[0005] The technical solution adopted in this invention is a BIM component classification method that integrates contour map learning and IFC description, specifically implemented according to the following steps: Step 1: Construct a BIM component classification training set, which includes M sets of rendered images corresponding to M BIM components, and perform rendering image preprocessing. Step 2: Construct a contour-aware graph modeling module to obtain the graph structure of each rendered image after preprocessing; Step 3: Construct a graph learning and multi-view embedding fusion module. Use the graph structure of all rendered images of each BIM component in the training set as the input of the graph learning and multi-view embedding fusion module to obtain the geometric structural features of the corresponding BIM component. Step 4: Parse the IFC-SPF file corresponding to the BIM component to obtain the IFC description features of the BIM component; Step 5: Construct a dual-modal feature fusion module to splice the geometric structural features of BIM components with the IFC description features, and then pass the spliced features through a classification prediction module to obtain the classification result. Step 6: Following the process of steps 3-5, input the M sets of data in the training set into the graph learning and multi-view embedding fusion module in sequence to train the graph learning and multi-view embedding fusion module and obtain the trained graph learning and multi-view embedding fusion module. Step 7: Using the trained graph learning and multi-view embedding fusion module, classify BIM components according to steps 1-5.
[0006] Preferably, the construction of the BIM component classification training set in step 1 specifically involves: Step 1.1: Determine the M BIM components; Step 1.2: Loading and preprocessing BIM components IfcOpenShell reads the IFC-SPF file of the target BIM component, extracts the 3D bounding box of the target BIM component, normalizes the 3D bounding box of the component, aligns the geometric center of the BIM component with the world coordinate origin, and unifies the display ratio of the BIM component in the camera's field of view. Step 1.3, Virtual Surround Camera Deployment With the vertical Z-axis of the component as the rotation center axis, the observation distance and pitch angle of the virtual camera are fixed, and 12 sets of fixed virtual cameras are arranged around the horizontal plane; the rotation angle between two adjacent cameras around the Z-axis is fixed at 30°, which completely covers the 360° horizontal outline of the component and forms a uniform surrounding observation array. Step 1.4, Rendering Parameter Configuration The Phong reflection lighting model is adopted, and a pure white solid color rendering background is set to preserve the grayscale outline shape of the component entity. The resolution of all output renderings is unified to 224×224 pixels. The multi-view data corresponding to each BIM component is input in the rendering order to obtain multiple standardized renderings corresponding to each target BIM component. Step 1.5: For each target BIM component, obtain multiple standardized rendering images as a group to obtain M sets of training samples, which serve as the training set; The preprocessing of the rendered image in step 1 specifically involves: performing Gaussian filtering noise reduction on the rendered image; and using the Canny edge detection algorithm to obtain the edge information in the denoised rendered image after Gaussian filtering noise reduction.
[0007] Preferably, in step 1.3, the camera observation distance is set to 1.5 times the maximum size of the bounding box of the target BIM component; In step 1.4, adjusting the horizontal rotation angle of the camera around the center of the target BIM component is specifically as follows: At 30° intervals, select 12 viewing angles within a 360° horizontal range: 0°, 30°, 60°, 90°, 120°, 150°, 180°, 210°, 240°, 270°, 300°, and 330°. Render these angles sequentially to obtain 12 sets of rendered images covering all structural features of the target BIM component, and then place them into a set. middle, ,in For any given observation viewpoint, the rendered image. , T =12.
[0008] Preferably, step 2 specifically includes: Step 2.1: Using the Suzuki-Abe algorithm, extract the contours of all rendered images corresponding to the same BIM component from the edge information obtained in Step 1.6 and place them into a contour set. The hierarchical relationship matrix between the middle and the contours In this process, each rendered image corresponds to the extraction of multiple contours; Step 2.2, Node Definition For any set of contours of a rendered image The first in i A silhouette The contour is obtained through a polygon approximation algorithm. Key point set ,in For outline The number of key points is determined, and the contour is obtained using formula (1). center of mass :
[0009] in, Outline center of mass The horizontal and vertical coordinates in the rendered image; , Key points The horizontal and vertical coordinates in the rendered image; Contour keypoints and centroids are collectively referred to as directed graph nodes, and all directed graph nodes of the contours of the rendered image are placed into a set. In this process, the set of directed graph nodes of the rendered image is obtained. ; Step 2.3, Node Feature Definition For the set of nodes in a directed graph Any directed graph node v The directed graph node v The x and y coordinates are respectively and Calculate the nodes of the directed graph. v With the center of mass coordinate difference and Thus, the node of the directed graph is obtained. v Node features : (2) Store all node features in a set In this process, the node feature set of the corresponding rendered image is obtained. ; Step 2.4, Defining Directed Edges Based on the key point set in step 2.3 The order of key points in a directed graph establishes directed edges between key points in the graph. Directed edge Key point Pointing to key points Directed edges; establish key points Pointing to the center of mass Directed edge ; Based on the hierarchical relationship matrix between contours obtained in step 2.1 Obtain the outline Parent outline Kazuko Outline Thus establishing the center of mass. point to Directed edge , point to Directed edge This yields the set of directed edges for the corresponding rendered image. E ; Step 2.6, Defining Directed Edge Features For the set of directed edges E any directed edge in ,in, and The directed edges are respectively e The source node and the destination node, calculate the source node. With the target node Distance between and direction Directed edge characteristics corresponding to directed edge e ;
[0010]
[0011] in, These are the corresponding directed edges. e Source node u The x and y coordinates, The destination nodes of directed edge e are respectively The horizontal and vertical coordinates; Store the directed edge features of the directed edges into a set. In this process, the directed edge feature set of the corresponding rendered image is obtained. ; Step 2.7: Obtain the graph structure of the corresponding rendered image based on steps 2.1-2.6. Following steps 2.1-2.7, the graph structure of the T rendered images of the target BIM component is obtained, denoted as... .
[0012] Preferably, the graph learning and multi-view embedding fusion module in step 3 includes a GINEConv module, a multi-level aggregation strategy layer, and a bidirectional gated recurrent neural network connected in sequence; the graph structure corresponding to the target BIM components in the training set is then used to... The input is fed into the GINEConv module, and the bidirectional gated recurrent neural network outputs the geometric features of the corresponding BIM components. .
[0013] Preferably, the working process of the graph learning and multi-view embedding fusion module is as follows: Step 3.1, for directed graphs The GINEConv module is used to process the set of nodes in its directed graph. The features of all nodes are updated, as shown in formula (5):
[0014] in, They are respectively Source node of directed edge u and destination node Node characteristics; For directed edges Features To point to the destination node The set of source nodes, For learnable parameters, destination node Features updated by formula (5); Step 3.2: Process the updated graph structure using a multi-level aggregation strategy layer to obtain the graph structures respectively. Corresponding embedding representation The specific process is as follows: Step 3.2.1, Contour In-line Node Feature Aggregation For the graph structure corresponding to the t-th standardized rendering graph Using the node features updated in step 3.1, the updated node features are aggregated by contour using formula (6) to obtain the contour. Embedded representation :
[0015] in, , for the first i A silhouette The set of key points Nodes of a directed graph According to the updated node features in step 3.1; Step 3.2.2, Feature aggregation between contours By fusing the embedded representations of all contours corresponding to the same standardized rendering image in step 3.2.1 using formula (7), the first... t The graph structure corresponding to each rendered image Embedded representation : (7) in, For step 3.2.1 i A silhouette Embedded representation The Middle d Values of each dimension , D For outline The number of dimensions in the embedded representation; Step 3.2.3: Obtain the graph structure corresponding to each step according to steps 3.2.1-3. Corresponding embedding representation ; Step 3.3: By fusing the embedded representations of the graph structures corresponding to all rendered images through a bidirectional gated recurrent neural network, the geometric structural features of the BIM components are obtained. Specifically: Step 3.3.1: Construct the embedded representation of the graph structure corresponding to the rendered images of the target BIM component from all viewpoints as a feature sequence. ; Step 3.3.2, Forward View Embedding Representation Fusion Gated recurrent neural networks according to t=1 to t= T Read the target BIM components in sequence T The corresponding embedding representation from the i-th perspective, for any i-th viewpoint t Embedded representation of a rendered image First, the reset door is calculated using formula (8). Filter and retain the first The embedded representation passed by each rendered image The update gate is then calculated using formula (9). The information transmitted by the (t-1)th rendered image and the fusion weight of the embedded representation of the tth rendered image are controlled; then, the information is fused using formula (10). The filtered information is fused with the embedding representation of the t-th rendered image to generate candidate latent features for the t-th rendered image. Finally relying on Fusion and To obtain the hidden state of the currently rendered image and pass it to the first Each rendered image participates in the subsequent fusion calculation, and the final hidden state at the end of the forward traversal is output through formula (11). : (8) (9) (10) (11) in, , This is the learnable weight matrix applied to the input features; This is the learnable weight matrix that acts on the historical hidden states; For the learnable bias vector corresponding to the gating and candidate hidden states, σ( ) represents the Sigmoid activation function, tanh( ) represents the hyperbolic tangent activation function, and ⊙ represents the element-wise multiplication operation; Step 3.3.3, Back view representation fusion The gated recurrent neural network reads the embedding representations of the target BIM component from t=12 to t=1 in reverse order. It then uses the same gating update rule as in step 3.3.2 to iteratively update the embedding representations of all rendered images, obtaining the hidden states of each rendered image in the reverse time sequence. Finally, it outputs the hidden states at the end of the reverse traversal. ; Step 3.3.4, View Feature Fusion The positive terminal hidden state With reverse terminal hidden state By stitching together the data, the geometric structural features of the target BIM component from all perspectives can be obtained. .
[0016] Preferably, step 4 specifically includes: Step 4.1: Count the number of times the IfcRepresentationItem subclass is instantiated in the IFC-SPF file to which the BIM component belongs. The instantiation frequency is obtained by logarithmic compression using formula (12). I : (12); Step 4.2: Based on IfcOpenShell, parse the 3D set information of BIM components, calculate the bounding box aligned with the construction axis, extract the corresponding length, height, and width of the bounding box, and normalize the 3D dimension values using formula (13): (13) in, B represents the length, height, or width of the bounding box of the BIM component, where B is the normalized length, height, or width. Step 4.3: Concatenate the instantiation frequency I obtained in Step 4.1 with the bounding box size B obtained in Step 4.2 to obtain the IFC description feature of the BIM component. .
[0017] Preferably, step 5 specifically involves: combining the geometric structural features output in step 3 with the IFC description features output in step 4 to obtain the fused BIM component features; The fused BIM component features are used as input to the classification and prediction module. The working process of the classification and prediction module is as follows: The fused BIM component features are input into a multi-layer fully connected layer to obtain the output of the multi-layer fully connected layer for the k-th IFC entity category of the BIM component; then the predicted probability of the BIM component belonging to each IFC entity category is calculated by formula (14). : (14) in, Let be the probability that the s-th BIM component belongs to the k-th IFC entity category. For the multi-layer fully connected layer, the output of the s-th BIM component to the k-th IFC entity category is given, where K is the number of IFC entity categories. The category with the highest probability is selected as the IFC entity type of the BIM component.
[0018] Preferably, during training in step 6, the cross-entropy loss function shown in formula (15) is used. Update the trainable parameter values in the GINEConv module and the bidirectional gated recurrent neural network within the graph learning and multi-view embedding fusion module: (15) in, Let be the true label of the k-th class corresponding to the s-th BIM component sample, and M be the total number of BIM components in the training set.
[0019] The beneficial effects of this invention are: This invention utilizes nodes and directed edges to describe the contour morphology and topological relationships between contours in a rendered image, thereby extracting the geometric features of BIM components at the contour level, resulting in lower computational cost compared to existing methods. Simultaneously, this invention completes IFC semantic modeling by statistically analyzing the instantiation frequency of geometric entities and the bounding box size of components, which helps distinguish BIM components with similar geometric shapes but different semantics, thus achieving a BIM object classification method with high classification accuracy and low computational cost. Comparative verification experiments were conducted using the public dataset IFCNetCore (Example 7). The experimental results are shown in Tables 1 and 2 and Figure 6. After fusing geometric and semantic modal features, the method of this invention significantly improves accuracy, precision, recall, and F1 score compared to existing technologies; at the same time, inference time and training resource consumption are greatly reduced. While achieving high-precision BIM component classification, it effectively reduces computational overhead and accelerates component recognition speed, meeting the engineering needs of automated recognition of massive components in large-scale BIM models. Attached Figure Description
[0020] Figure 1 This is the overall flowchart of the BIM component classification method that integrates contour map learning and IFC description in this invention; Figure 2 This is a multi-view rendering diagram of the BIM component classification method that integrates contour map learning and IFC description in this invention; Figure 3This is a flowchart of the contour-aware map modeling module in the BIM component classification method that integrates contour map learning and IFC description in this invention; Figure 4 This invention provides a flowchart of the workflow for the BIM component classification method that integrates contour map learning and IFC description, specifically the module for integrating map learning and multi-view embedding. Figure 5 This invention provides a schematic diagram of a graph structure obtained by integrating contour map learning and IFC-described BIM component classification methods. Figure 6 This is the confusion matrix of the classification results of the BIM component classification method that integrates contour map learning and IFC description in this invention. Detailed Implementation
[0021] The following detailed description is provided in conjunction with specific implementation methods.
[0022] Example 1 This invention integrates contour map learning and IFC description into a BIM component classification method, the process of which is as follows: Figure 1 As shown, the specific steps are as follows: Step 1: Construct a BIM component classification training set, which includes M sets of rendered images corresponding to M BIM components, and perform rendering image preprocessing. Step 2: Construct a contour-aware graph modeling module to obtain the graph structure of each rendered image after preprocessing; Step 3: Construct a graph learning and multi-view embedding fusion module. Use the graph structure of all rendered images of each BIM component in the training set as the input of the graph learning and multi-view embedding fusion module to obtain the geometric structural features of the corresponding BIM component. Step 4: Construct an IFC semantic description modeling module, which takes the IFC-SPF file corresponding to the BIM component as input, and is used to extract the component statistical semantics and dimensional semantics to obtain the IFC description features of the BIM component; Step 5: Construct a dual-modal feature fusion module to stitch together the geometric structural features of BIM components with the IFC description features. After stitching, the features are processed by a classification prediction module to obtain the classification result. Step 6: Following the process of steps 3-5, input the M sets of data in the training set into the graph learning and multi-view embedding fusion module in sequence to train the graph learning and multi-view embedding fusion module and obtain the trained graph learning and multi-view embedding fusion module. Step 7: Using the trained graph learning and multi-view embedding fusion module, classify BIM components according to steps 1-5.
[0023] The contour-aware graph modeling module takes a preprocessed rendered image (view) as input and connects to a GGAN-based graph learning and embedding fusion module at the output end. This module converts the two-dimensional rendered view into a directed graph structure with topological relationships, providing structured input for graph feature learning. The graph learning and multi-view embedding fusion module incorporates the GINEConv module and Bi-GRU (Bidirectional Gated Recurrent Neural Network), and its output is connected to the dual-modal feature fusion module to complete view embedding representation extraction and cross-view geometric feature aggregation. The IFC semantic description modeling module takes an IFC-SPF file as its input and connects to a dual-modal feature fusion module as its output. This module is used to extract statistical semantics and dimensional semantics of components and generate IFC description features for BIM components. The dual-modal feature fusion module simultaneously receives geometric structure features and IFC description features, and its output is connected to the classification prediction module to complete the splicing and fusion of dual-modal features. The classification prediction module adopts a multilayer perceptron structure. The output terminal outputs the final IFC entity classification result, and at the same time, it back-propagates the loss value to update the learnable parameters of the entire device.
[0024] Example 2 Based on Example 1, the specific steps in step 1 for constructing the BIM component classification training set are as follows: The specific steps in step 1 for constructing the BIM component classification training set are as follows: Step 1.1: Determine the M BIM components; Step 1.2: Loading and preprocessing BIM components The IFC-SPF file used in this invention can be exported from any BIM software. In this embodiment, the IFC-SPF file of the target BIM component is read by IfcOpenShell, the three-dimensional bounding box of the target BIM component is extracted, the three-dimensional bounding box of the component is normalized, the geometric center of the BIM component is aligned with the world coordinate origin, the display ratio of the BIM component in the camera field of view is unified, and the interference of component size difference on imaging is eliminated. Step 1.3, Virtual Surround Camera Deployment With the vertical Z-axis of the component as the rotation center axis, 12 fixed virtual cameras are arranged around the horizontal plane with fixed observation distance and pitch angle. The included angle between two adjacent cameras around the Z-axis is fixed at 30°, completely covering the 360° horizontal outline of the component, forming a uniform surrounding observation array. Figure 2 As shown; The camera observation distance is 1.5 times the maximum size of the bounding box of the target BIM component; Step 1.4, Rendering Parameter Configuration Using the Phong reflection lighting model, a pure white background was set for rendering. Irrelevant rendering elements such as material maps, textures, text annotations, and coordinate axes were disabled, while preserving the grayscale outline of the component entities. All output renderings were standardized to a resolution of 224×224 pixels. Multi-view data for each BIM component was input in the rendering order to obtain multiple standardized renderings for each target BIM component, specifically: The horizontal rotation angle of the camera around the center of the target BIM component is adjusted as follows: At 30° intervals, rendering is performed sequentially from 12 viewing angles: 0°, 30°, 60°, 90°, 120°, 150°, 180°, 210°, 240°, 270°, 300°, and 330°. This results in 12 sets of rendered images covering all structural features of the target BIM component, which are then placed into a set. middle, ,in For any given observation viewpoint, the rendered image. , T =12.
[0025] Step 1.5: For each target BIM component, obtain multiple standardized rendering images as a group to obtain M sets of training samples, which serve as the training set; The preprocessing of the rendered image in step 1 specifically involves: performing Gaussian filtering noise reduction on the rendered image; and using the Canny edge detection algorithm to obtain the edge information in the denoised rendered image after Gaussian filtering noise reduction.
[0026] Example 3 Based on Example 2, the workflow of the contour-aware map modeling module in step 2 is as follows: Figure 3 As shown, specifically: Step 2.1: Using the Suzuki-Abe algorithm, extract the contours of all rendered images corresponding to the same BIM component from the edge information obtained in Step 1.6 and place them into a contour set. The hierarchical relationship matrix between the middle and the contours In this process, each rendered image corresponds to the extraction of multiple contours; Step 2.2, Node Definition For any set of contours of a rendered image The first in i A silhouette The contour is obtained through a polygon approximation algorithm. Key point set , For outline The number of key points is determined, and the contour is obtained using formula (1). center of mass : (1) in, Outline center of mass The horizontal and vertical coordinates in the rendered image; , Key points The horizontal and vertical coordinates in the rendered image; Contour keypoints and centroids are collectively referred to as directed graph nodes, and all directed graph nodes of the contours of the rendered image are placed into a set. In this process, the set of directed graph nodes of the rendered image is obtained. ; Step 2.3, Node Feature Definition For the set of nodes in a directed graph Any directed graph node v The directed graph node v The x and y coordinates are respectively and Calculate the nodes of the directed graph. v With the center of mass coordinate difference and Thus, the node of the directed graph is obtained. v Node features : (2) Store all node features in a set In this process, the node feature set of the corresponding rendered image is obtained. ; Step 2.4, Defining Directed Edges Based on the key point set in step 2.3 The order of key points in a directed graph establishes directed edges between key points in the graph. Directed edge Key point Pointing to key points Directed edges; establish key points Pointing to the center of mass Directed edge ; Based on the hierarchical relationship matrix between contours obtained in step 2.1 Obtain the outline Parent outline Kazuko Outline Thus establishing the center of mass. point to Directed edge , For the father's outline The corresponding centroid, centroid point to Directed edge , For sub-outline For each corresponding centroid, all directed edges are added to the set, resulting in the set of directed edges for the corresponding rendered image. E ; Step 2.6, Defining Directed Edge Features For the set of directed edges E any directed edge in e , ,in, and The directed edges are respectively e The source node and the destination node, calculate the source node. With the target node Distance between and direction Directed edge characteristics corresponding to directed edge e ;
[0027]
[0028] in, These are the corresponding directed edges. e Source node u The x and y coordinates, The destination nodes of directed edge e are respectively The horizontal and vertical coordinates; Store the directed edge features of the directed edges into a set. In this process, the directed edge feature set of the corresponding rendered image is obtained. ; Step 2.7: Obtain the graph structure of the corresponding rendered image based on steps 2.1-2.6. Following steps 2.1-2.7, the graph structure of the T rendered images of the target BIM component is obtained, denoted as... , Obtain graph structure That is, as Figure 5 The directed graph shown.
[0029] Example 4 Based on Example 3, the graph learning and multi-view embedding fusion module in step 3 includes a GINEConv module, a multi-level aggregation strategy layer, and a bidirectional gated recurrent neural network connected in sequence; the graph structure corresponding to the target BIM components in the training set is then used. The input is fed into the GINEConv module, and the bidirectional gated recurrent neural network outputs the geometric features of the corresponding BIM components. .
[0030] The working process of the graph learning and multi-view embedding fusion module is as follows: Figure 4 As shown, the details are as follows: Step 3.1, for directed graphs The directed graph node set is processed by the GINEConv module (Graph Isomorphism Network with Edge Features Convolution). The features of all nodes are updated, as shown in formula (5):
[0031] in, They are respectively Source node of directed edge u and destination node Node characteristics; For directed edges Features To point to the destination node The set of source nodes, For learnable parameters, destination node Features updated by formula (5); Step 3.2: Process the updated graph structure using a multi-level aggregation strategy layer to obtain the graph structures respectively. Corresponding embedding representation The specific process is as follows: Step 3.2.1, Contour In-line Node Feature Aggregation For the graph structure corresponding to the t-th standardized rendering graph Using the node features updated in step 3.1, the updated node features are aggregated by contour using formula (6) to obtain the contour. Embedded representation :
[0032] in, , for the first i A silhouette The set of key points Nodes of a directed graph According to the updated node features in step 3.1; Step 3.2.2, Feature Aggregation Between Contours By fusing the embedded representations of all contours corresponding to the same standardized rendering image in step 3.2.1 using formula (7), the first... t The graph structure corresponding to each rendered image Embedded representation : (7) in, For step 3.2.1 i A silhouette Embedded representation The Middle d Values of each dimension , D For outline The number of dimensions in the embedded representation; Step 3.2.3: Obtain the graph structure corresponding to each step according to steps 3.2.1-3. Corresponding embedding representation ; Step 3.3: By fusing the embedded representations of the graph structures corresponding to all rendered images through a bidirectional gated recurrent neural network (Bi-GRU), the geometric structural features of the BIM components are obtained. Specifically: Step 3.3.1: Construct the embedded representation of the graph structure corresponding to the rendered images of the target BIM component from all viewpoints as a feature sequence. ; Step 3.3.2, Forward View Embedding Representation Fusion The gated recurrent neural network sequentially reads the embedding representations of the target BIM component from t=1 to t=T under T different views. For any t-th rendered image, the embedding representation... First, the reset door is calculated using formula (8). Filter and retain the first The embedded representation passed by each rendered image The update gate is then calculated using formula (9). The information transmitted by the (t-1)th rendered image and the fusion weight of the embedded representation of the tth rendered image are controlled; then, the information is fused using formula (10). The filtered information is fused with the embedding representation of the t-th rendered image to generate candidate latent features for the t-th rendered image. Finally relying on Fusion and To obtain the hidden state of the currently rendered image and pass it to the first Each rendered image participates in the subsequent fusion calculation, and the final hidden state at the end of the forward traversal is output through formula (11). : (8) (9) (10) (11) in, , This is the learnable weight matrix applied to the input features; This is the learnable weight matrix that acts on the historical hidden states; Let σ( be the learnable bias vector corresponding to the gating and candidate hidden states) ) represents the Sigmoid activation function, tanh( ) represents the hyperbolic tangent activation function, and ⊙ represents the element-wise multiplication operation; Step 3.3.3, Back view representation fusion The gated recurrent neural network reads the embedding representations of the target BIM component from t=12 to t=1 in reverse order. It then uses the same gating update rule as in step 3.3.2 to iteratively update the embedding representations of all rendered images, obtaining the hidden states of each rendered image in the reverse time sequence. Finally, it outputs the hidden states at the end of the reverse traversal. ; Step 3.3.4, View Feature Fusion The positive terminal hidden state With reverse terminal hidden state By stitching together the data, the geometric structural features of the target BIM component from all perspectives can be obtained. .
[0033] Example 5 Based on Example 4, step 4 specifically includes: Step 4.1: Count the number of times the IfcRepresentationItem subclass is instantiated in the IFC-SPF file to which the BIM component belongs. The instantiation frequency is obtained by logarithmic compression using formula (12). I : (12); Step 4.2: Based on IfcOpenShell, parse the 3D set information of BIM components, calculate the bounding box aligned with the construction axis, extract the corresponding length, height, and width of the bounding box, and normalize the 3D dimension values using formula (13): (13) in, B represents the length, height, or width of the bounding box of the BIM component, where B is the normalized length, height, or width. Step 4.3: Concatenate the instantiation frequency I obtained in Step 4.1 with the bounding box size B obtained in Step 4.2 to obtain the IFC description feature of the BIM component. .
[0034] Example 6 Based on Example 5, step 5 specifically involves: combining the geometric structural features output in step 3 with the IFC description features output in step 4 to obtain the fused BIM component features; The fused BIM component features are used as input to the classification and prediction module. The working process of the classification and prediction module is as follows: The fused BIM component features are input into a multi-layer fully connected layer to obtain the output of the multi-layer fully connected layer for the k-th IFC entity category of the BIM component; then the predicted probability of the BIM component belonging to each IFC entity category is calculated by formula (14). : (14) in, Let be the probability that the s-th BIM component belongs to the k-th IFC entity category. For the multi-layer fully connected layer, the output of the s-th BIM component to the k-th IFC entity category is given, where K is the number of IFC entity categories. The category with the highest probability is selected as the IFC entity type of the BIM component.
[0035] During training in step 6, the cross-entropy loss function shown in formula (15) is used. Update the trainable parameter values in the GINEConv module and the bidirectional gated recurrent neural network within the graph learning and multi-view embedding fusion module: (15) in, Let be the true label of the k-th class corresponding to the s-th BIM component sample, and M be the total number of BIM components in the training set.
[0036] Step 7 specifically involves processing the BIM components to be classified according to steps 1.2-1.4 to obtain 12 sets of rendered images of the BIM components to be classified. After preprocessing the rendered images, the corresponding 12 graph structures are obtained according to the processing method in step 2. The 12 graph structures are then input into the trained graph learning and multi-view embedding fusion module to obtain the geometric structural features of the target BIM component. After obtaining the probability of the target BIM component belonging to the kth IFC entity category according to the methods in steps 4 and 5, the category corresponding to the highest probability is selected as the IFC entity type of the BIM component, thus realizing the classification of BIM components.
[0037] Example 7 Based on Example 6, the method of the present invention is compared with existing methods. The results are shown in Table 1. It can be seen that compared with existing methods such as MVCNN (Multi-view Convolutional Neural Networks), MCEA (Multi-view Convolutional Encoder-Aggregator), View-GCN (View-based Graph Convolutional Network), and CRF-RNN-MVCNN (Conditional Random Field - Recurrent Neural Network - Multi-view Convolutional Neural Network), the method of the present invention achieves the best balance in accuracy, precision, recall, and F1 score, and has stronger BIM component recognition capabilities. Combined with the confusion matrix in Figure 6, it can be confirmed that the present invention can accurately distinguish BIM components with similar geometric shapes but different IFC engineering semantics. As shown in Table 2, the computational cost and storage resource comparison results of the method of the present invention and existing methods are shown. As can be seen from Table 2, the inference time of the present invention is significantly lower than that of mainstream methods such as MVCNN, MCEA, and View-GCN; at the same time, the training time and peak memory usage are significantly reduced, effectively reducing computational resource costs and improving the component recognition inference speed while achieving excellent classification accuracy.
[0038] Table 1
[0039] Table 2
Claims
1. A BIM component classification method fusing learning of a profile graph and IFC description, characterized in that, The specific steps are as follows: Step 1: Construct a BIM component classification training set, which includes M sets of rendered images corresponding to M BIM components, and perform rendering image preprocessing. Step 2: Obtain the graph structure of each rendered image after preprocessing; Step 3: Construct a graph learning and multi-view embedding fusion module. Use the graph structure of all rendered images of each BIM component in the training set as the input of the graph learning and multi-view embedding fusion module to obtain the geometric structural features of the corresponding BIM component. Step 4: Parse the IFC-SPF file corresponding to the BIM component to obtain the IFC description features of the BIM component; Step 5: After splicing the geometric features of the BIM components with the IFC description features, the classification prediction module is used to obtain the classification result. Step 6: Following the process of steps 3-5, input the M sets of data in the training set into the graph learning and multi-view embedding fusion module in sequence to train the graph learning and multi-view embedding fusion module and obtain the trained graph learning and multi-view embedding fusion module. Step 7: Using the trained graph learning and multi-view embedding fusion module, classify BIM components according to steps 1-5.
2. The BIM component classification method of claim 1, wherein, The specific steps for constructing the BIM component classification training set in step 1 are as follows: Step 1.1: Determine the M BIM components; Step 1.2: Loading and preprocessing BIM components IfcOpenShell reads the IFC-SPF file of the target BIM component, extracts the 3D bounding box of the target BIM component, normalizes the 3D bounding box of the component, aligns the geometric center of the BIM component with the world coordinate origin, and unifies the display ratio of the BIM component in the camera's field of view. Step 1.3, Virtual Surround Camera Deployment With the vertical Z-axis of the component as the rotation center axis, the observation distance and pitch angle of the virtual camera are fixed, and 12 sets of fixed virtual cameras are arranged around the horizontal plane; the rotation angle between two adjacent cameras around the Z-axis is fixed at 30°, which completely covers the 360° horizontal outline of the component and forms a uniform surrounding observation array. Step 1.4, Rendering Parameter Configuration The Phong reflection lighting model is adopted, and a pure white solid color rendering background is set to preserve the grayscale outline shape of the component entity. The resolution of all output renderings is unified to 224×224 pixels. The multi-view data corresponding to each BIM component is input in the rendering order to obtain multiple standardized renderings corresponding to each target BIM component. Step 1.5: For each target BIM component, obtain multiple standardized rendering images as a group to obtain M sets of training samples, which serve as the training set; The rendering image preprocessing in step 1 specifically involves: performing Gaussian filtering noise reduction on the rendering image; and obtaining edge information in the denoised rendering image using the Canny edge detection algorithm on the denoised rendering image after Gaussian filtering noise reduction.
3. The fused profile graph learning and IFC described BIM element classification method of claim 2, wherein, In step 1.3, the camera observation distance is set to 1.5 times the maximum size of the bounding box of the target BIM component; The step 1.4 adjusts the horizontal rotation angle of the camera around the center of the target BIM component, specifically: 0°, 30°, 60°, 90°, 120°, 150°, 180°, 210°, 240°, 270°, 300°, and 330° are selected as observation angles at intervals of 30° within a horizontal range of 360°, rendering is sequentially completed, 12 groups of rendering images covering the overall structural features of the target BIM component are obtained, and are placed into a set , wherein is a rendering image corresponding to any one observation angle, , T =12.
4. The BIM component classification method that integrates contour map learning and IFC description according to claim 3, characterized in that, Step 2 specifically involves: Step 2.1: Using the Suzuki-Abe algorithm, extract the contours of all rendered images corresponding to the same BIM component from the edge information obtained in Step 1.6 and place them into a contour set. The hierarchical relationship matrix between the middle and the contours In this process, each rendered image corresponds to the extraction of multiple contours; Step 2.2, Node Definition For any set of contours of a rendered image The first in i A silhouette The contour is obtained through a polygon approximation algorithm. Key point set , For outline The number of key points is determined, and the contour is obtained using formula (1). center of mass : (1) in, Outline center of mass The horizontal and vertical coordinates in the rendered image; , Key points The horizontal and vertical coordinates in the rendered image; Contour keypoints and centroids are collectively referred to as directed graph nodes, and all directed graph nodes of the contours of the rendered image are placed into a set. In this process, the set of directed graph nodes of the rendered image is obtained. ; Step 2.3, Node Feature Definition For the set of nodes in a directed graph Any directed graph node v The directed graph node v The x and y coordinates are respectively and Calculate the nodes of the directed graph. v With the center of mass coordinate difference and Thus, the node of the directed graph is obtained. v Node features : (2) Store all node features in a set In this process, the node feature set of the corresponding rendered image is obtained. ; Step 2.4, Defining Directed Edges Based on the key point set in step 2.3 The order of key points in a directed graph establishes directed edges between key points in the graph. Directed edge Key point Pointing to key points Directed edges; establish key points Pointing to the center of mass Directed edge ; Based on the hierarchical relationship matrix between contours obtained in step 2.1 Obtain the outline Parent outline Kazuko Outline Thus establishing the center of mass. point to Directed edge , For the father's outline The corresponding centroid, centroid point to Directed edge , For sub-outline For each corresponding centroid, all directed edges are added to the set, resulting in the set of directed edges for the corresponding rendered image. E ; Step 2.6, Defining Directed Edge Features For the set of directed edges E any directed edge in e , ,in, and The directed edges are respectively e The source node and the destination node, calculate the source node. With the target node Distance between and direction Directed edge characteristics corresponding to directed edge e ; in, These are the corresponding directed edges. e Source node u The x and y coordinates, The destination nodes of directed edge e are respectively The horizontal and vertical coordinates; Store the directed edge features of the directed edges into a set. In this process, the directed edge feature set of the corresponding rendered image is obtained. ; Step 2.7: Obtain the graph structure of the corresponding rendered image based on steps 2.1-2.
6. Following steps 2.1-2.7, the graph structure of the T rendered images of the target BIM component is obtained, denoted as... .
5. The BIM component classification method that integrates contour map learning and IFC description according to claim 4, characterized in that, The graph learning and multi-view embedding fusion module in step 3 includes a GINEConv module, a multi-level aggregation strategy layer, and a bidirectional gated recurrent neural network connected in sequence; it integrates the graph structure corresponding to the target BIM components in the training set. The input is fed into the GINEConv module, and the bidirectional gated recurrent neural network outputs the geometric features of the corresponding BIM components. .
6. The BIM component classification method that integrates contour map learning and IFC description according to claim 5, characterized in that, The working process of the graph learning and multi-view embedding fusion module is as follows: Step 3.1, for directed graphs The GINEConv module is used to process the set of nodes in its directed graph. The features of all nodes are updated, as shown in formula (5): in, They are respectively Source node of directed edge u and destination node Node characteristics; For directed edges Features To point to the destination node The set of source nodes, For learnable parameters, destination node Features updated by formula (5); Step 3.2: Process the updated graph structure using a multi-level aggregation strategy layer to obtain the graph structures respectively. Corresponding embedding representation ; Step 3.3: By fusing the embedded representations of the graph structures corresponding to all rendered images through a bidirectional gated recurrent neural network, the geometric structural features of the BIM components are obtained. .
7. The BIM component classification method that integrates contour map learning and IFC description according to claim 6, characterized in that, The specific process of step 3.2 is as follows: Step 3.2.1, Contour In-Node Feature Aggregation For the graph structure corresponding to the t-th standardized rendering graph Using the node features updated in step 3.1, the updated node features are aggregated by contour using formula (6) to obtain the contour. Embedded representation : in, , for the first i A silhouette The set of key points Nodes of a directed graph According to the updated node features in step 3.1; Step 3.2.2, Feature aggregation between contours By fusing the embedded representations of all contours corresponding to the same standardized rendering image in step 3.2.1 using formula (7), the first... t The graph structure corresponding to each rendered image Embedded representation : (7) in, For step 3.2.1 i A silhouette Embedded representation The Middle d Values of each dimension , D For outline The number of dimensions in the embedded representation; Step 3.2.3: Obtain the graph structure corresponding to each step according to steps 3.2.1-3. Corresponding embedding representation ; Step 3.3 specifically involves: Step 3.3.1: Construct the embedded representation of the graph structure corresponding to the rendered images of the target BIM component from all viewpoints as a feature sequence. ; Step 3.3.2, Forward View Embedding Representation Fusion Gated recurrent neural networks according to t=1 to t= T Read the target BIM components in sequence T The corresponding embedding representation from the i-th perspective, for any i-th viewpoint t Embedded representation of a rendered image First, the reset door is calculated using formula (8). Filter and retain the first The embedded representation passed by each rendered image The update gate is then calculated using formula (9). The information transmitted by the (t-1)th rendered image and the fusion weight of the embedded representation of the tth rendered image are controlled; then, the information is fused using formula (10). The filtered information is fused with the embedding representation of the t-th rendered image to generate candidate latent features for the t-th rendered image. Finally relying on Fusion and To obtain the hidden state of the currently rendered image and pass it to the first Each rendered image participates in subsequent fusion calculations, and the final hidden state at the end of the forward traversal is output through formula (10). : (8) (9) (10) (11) in, , This is the learnable weight matrix applied to the input features; This is the learnable weight matrix that acts on the historical hidden states; Let σ( be the learnable bias vector corresponding to the gating and candidate hidden states) ) represents the Sigmoid activation function, tanh( ) represents the hyperbolic tangent activation function, and ⊙ represents the element-wise multiplication operation; Step 3.3.3, Back view representation fusion The gated recurrent neural network reads the embedding representations of the target BIM component from t=12 to t=1 in reverse order. It then uses the same gating update rule as in step 3.3.2 to iteratively update the embedding representations of all rendered images, obtaining the hidden states of each rendered image in the reverse time sequence. Finally, it outputs the hidden states at the end of the reverse traversal. ; Step 3.3.4, View Feature Fusion The positive terminal hidden state With reverse terminal hidden state By stitching together the data, the geometric structural features of the target BIM component from all perspectives can be obtained. .
8. The BIM component classification method that integrates contour map learning and IFC description according to claim 7, characterized in that, Step 4 specifically involves: Step 4.1: Count the number of times the IfcRepresentationItem subclass is instantiated in the IFC-SPF file to which the BIM component belongs. The instantiation frequency is obtained by logarithmic compression using formula (12). I : (12); Step 4.2: Based on IfcOpenShell, parse the 3D set information of BIM components, calculate the bounding box aligned with the construction axis, extract the corresponding length, height, and width of the bounding box, and normalize the 3D dimension values using formula (13): (13) in, B represents the length, height, or width of the bounding box of the BIM component, where B is the normalized length, height, or width. Step 4.3: Concatenate the instantiation frequency I obtained in Step 4.1 with the bounding box size B obtained in Step 4.2 to obtain the IFC description feature of the BIM component. .
9. The BIM component classification method according to claim 8, which integrates contour map learning and IFC description, is characterized in that, Step 5 specifically involves: combining the geometric structural features output in step 3 with the IFC description features output in step 4 to obtain the fused BIM component features. The fused BIM component features are used as input to the classification and prediction module. The working process of the classification and prediction module is as follows: The fused BIM component features are input into a multi-layer fully connected layer to obtain the output of the multi-layer fully connected layer for the k-th IFC entity category of the BIM component; then the predicted probability of the BIM component belonging to each IFC entity category is calculated by formula (14). : (14) in, Let be the probability that the s-th BIM component belongs to the k-th IFC entity category. For the multi-layer fully connected layer, the output of the s-th BIM component to the k-th IFC entity category is given, where K is the number of IFC entity categories. The category with the highest probability is selected as the IFC entity type of the BIM component.
10. The BIM component classification method that integrates contour map learning and IFC description according to claim 9, characterized in that, During training in step 6, the cross-entropy loss function shown in formula (15) is used. Update the trainable parameter values in the GINEConv module and the bidirectional gated recurrent neural network within the graph learning and multi-view embedding fusion module: (15) in, Let be the true label of the k-th class corresponding to the s-th BIM component sample, and M be the total number of BIM components in the training set.
