Building model construction method and system based on AI drawing recognition
Through AI-based drawing recognition and deep learning algorithms, the component information and natural language data of the building model are extracted, a topological relationship diagram is generated, and the intelligent analysis model is combined with the quality inspection to solve the minor anomalies in the construction of building models in the existing technology. It leads to accuracy and stability problems, achieving higher model quality and management efficiency.
Patent Information
- Application Number
- CN202411180543.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-27
- Publication Date
- 2024-10-29
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing building model building systems are prone to minor anomalies when identifying and processing building drawings, causing the generated models to appear garbled and distorted during later use, affecting the accuracy and stability of the models.
Using AI-based drawing recognition method, electronic drawings are obtained through the building management platform, converted into digital images and pre-processed, and deep learning algorithms are used to extract basic information of building components and natural language data into structured data to generate topological relationship diagrams , combined with intelligent analysis models for quality analysis and detection to ensure data accuracy and completeness.
It improves the recognition and processing effect of building models, ensures the accuracy and stability of the model, and generates management strategies through quality analysis and detection, improving the overall quality of the model and the efficiency of evaluation management.
Smart Images

Figure CN118711204B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of building model construction, and in particular to a building model construction method and system based on AI drawing recognition. Background Art
[0002] In the development of smart cities, building models of buildings not only help urban planning and management, but also support the application of technologies such as virtual reality and augmented reality, and enhance public participation and urban experience. The building model construction system is an advanced technology that quickly generates high-precision building models by identifying and parsing local archive drawings. It mainly targets historical and modern architectural drawings archived in archives and other institutions, and aims to provide accurate building model support for the planning and management of smart cities;
[0003] The prior art has the following defects:
[0004] Before building a building model, a series of extractions are required before three-dimensional modeling can be performed. Existing construction systems usually generate spatial and non-spatial data codes that can be recognized by the building model software, and then perform accuracy detection on the spatial and non-spatial data codes to determine whether the three-dimensional modeling step can be performed. However, since the spatial and non-spatial data codes need to be obtained through a series of extraction steps, when there are multiple minor anomalies in the recognition and processing steps, it may not affect the accuracy of the spatial and non-spatial data code detection, but it will cause problems in later use after the building model is established (such as garbled and distorted secondary startup of the building model, making it unusable), and the accuracy and stability of the building model after construction cannot be guaranteed.
[0005] Based on this, the present invention proposes a building model construction method and system based on AI drawing recognition, which improves the recognition and processing effects of building drawings based on AI drawing recognition, and then combines the recognition of the building model, the processing step status and the detection results of the building model to conduct a comprehensive quality analysis of the building model to ensure the use accuracy and stability of the building model after construction. Summary of the invention
[0006] The purpose of the present invention is to provide a building model construction method and system based on AI drawing recognition to solve the shortcomings of the background technology.
[0007] In order to achieve the above object, the present invention provides the following technical solution: a building model construction method based on AI drawing recognition, the construction method comprising the following steps:
[0008] The construction system obtains the electronic drawings of the building through the building management platform and converts them into digital images. After preprocessing the digital images, the digital images are initially recognized based on the AI recognition algorithm, and the building information of the digital images is extracted. The basic information of the building components in the digital images is extracted and classified using the deep learning algorithm. The natural language data in the digital images is converted into structured data, and the spatial relationship between the components is analyzed to generate a topological relationship diagram between the components.
[0009] Record multiple feature data in the extraction step, substitute the multiple feature data into the intelligent analysis model to perform quality analysis on the extracted components and spatial relationship information, if the quality analysis fails, repeat the component and spatial relationship information extraction step, if the quality analysis passes, convert the extracted components and spatial relationship information into logical expressions, obtain spatial data and non-spatial data, perform quality inspection on the spatial data and non-spatial data, if the quality inspection fails, repeat the spatial data and non-spatial data acquisition step;
[0010] If the quality inspection is qualified, the spatial data and non-spatial data will be used to generate a building model using 3D modeling software, and the building model will be optimized. The overall quality of the building model will be evaluated by combining the component and spatial relationship information quality analysis results with the spatial data and non-spatial data quality inspection results, and a management strategy will be generated based on the evaluation results.
[0011] In a preferred embodiment, multiple feature data are substituted into an intelligent analysis model to perform quality analysis on the extracted component and spatial relationship information, including the following steps:
[0012] Record multiple feature data in the extraction step, including character error rate, feature point matching accuracy, and topological relationship Figure 1 consistency index;
[0013] Character error rate, feature point matching accuracy and topological relationship Figure 1 The consistency index is substituted into the intelligent analysis model, and the intelligent analysis model outputs the extraction coefficient. The model expression is: , where is the extraction coefficient, is the feature point matching accuracy, is the character error rate, For topological relationships Figure 1 Consistency index, , , They are feature point matching accuracy, character error rate, and topological relationship Figure 1 The proportionality coefficient of the consistency index is , , All are greater than 0;
[0014] The intelligent analysis model compares the obtained extraction coefficient with the preset coefficient threshold, and performs quality analysis on the extracted components and spatial relationship information based on the comparison results.
[0015] In a preferred embodiment, the intelligent analysis model compares the obtained extraction coefficient with a preset coefficient threshold, and performs quality analysis on the extracted components and spatial relationship information based on the comparison result, including the following steps:
[0016] The larger the extraction coefficient is, the better the quality of the extracted components and spatial relationship information is. If the extraction coefficient is greater than or equal to the coefficient threshold, the quality of the extracted components and spatial relationship information is good. If the extraction coefficient is less than the coefficient threshold, the quality of the extracted components and spatial relationship information is poor. When the quality of the extracted components and spatial relationship information is poor, the extraction step of the components and spatial relationship information is performed again.
[0017] In a preferred embodiment, the spatial data and the non-spatial data are quality checked. If the quality check fails, the spatial data and the non-spatial data acquisition steps are performed again, including the following steps:
[0018] Obtain the spatial resolution and geometric error of the spatial data, obtain the correlation index of the non-spatial data, normalize the spatial resolution, geometric error and correlation index, map the value range of the spatial resolution, geometric error and correlation index to [0,1], obtain the normalized value of the spatial resolution, the normalized value of the geometric error and the normalized value of the correlation index, add the normalized value of the spatial resolution to the normalized value of the spatial resolution and subtract the normalized value of the geometric error to obtain the detection value;
[0019] The detection assignment is compared with the detection threshold. If the detection assignment is greater than or equal to the detection threshold, the quality inspection of the spatial data and non-spatial data is qualified. If the detection assignment is less than the detection threshold, the quality inspection of the spatial data and non-spatial data is unqualified, and the spatial data and non-spatial data acquisition steps need to be repeated.
[0020] In a preferred embodiment, the overall quality of the building model is evaluated by combining the component and spatial relationship information quality analysis results with the spatial data and non-spatial data quality detection results, and a management strategy is generated based on the evaluation results, including the following steps:
[0021] After the building model is constructed, the extraction coefficient after the component and spatial relationship information are extracted, the detection value after the spatial data and non-spatial data quality detection is obtained, and the extraction coefficient and the detection value are comprehensively calculated to obtain the quality index of the building model. The expression is: , where is the quality index, is the extraction coefficient, Assign values to the test;
[0022] The quality index is compared with the index threshold. If the quality index is greater than or equal to the index threshold, the overall quality of the building model is evaluated to be excellent. If the quality index is less than the index threshold, the overall quality of the building model is evaluated to be poor. When the overall quality of the building model is evaluated to be poor, a management strategy is generated that requires secondary inspection and optimization of the building model.
[0023] In a preferred embodiment, the spatial data and the non-spatial data are used to generate a building model using a three-dimensional modeling software, comprising the following steps:
[0024] Import qualified spatial data and non-spatial data into the modeling software, generate the external outline and basic form of the building based on the spatial data, and apply materials and textures to the external wall and roof structure of the building based on the non-spatial data;
[0025] Add openings and additional structures and divide interior spaces, construct interior walls and partitions according to the building's interior design.
[0026] In a preferred embodiment, the character error rate is calculated as follows: , where Indicates the number of recognized character replacement errors. Indicates the number of recognized character deletion errors. Indicates the number of recognized character insertion errors. is the actual total number of characters;
[0027] The calculation logic of the feature point matching accuracy is as follows: obtaining the number of correctly matched feature points, obtaining the total number of feature points, and dividing the number of correctly matched feature points by the total number of feature points to obtain the feature point matching accuracy;
[0028] The topological relationship Figure 1 The calculation logic of the consistency index is as follows: obtain the total number of actual topological relationships, obtain the edit distance between the generated topological relationship graph and the real topological relationship graph, subtract the edit distance between the generated topological relationship graph and the real topological relationship graph from the total number of actual topological relationships to obtain the numerical difference, and then divide the numerical difference by the total number of actual topological relationships to obtain the topological relationship. Figure 1 Consistency index.
[0029] In a preferred embodiment, converting the natural language data in the digital image into structured data and analyzing the spatial relationship between the components to generate a topological relationship diagram between the components includes the following steps:
[0030] Use optical character recognition technology to extract text data from digital images, segment the extracted text data and identify named entities in the text;
[0031] Use dependency analysis tools to analyze the structure of sentences, identify subject, predicate, and object components, and the relationships between different components. Based on the results of word segmentation, NER, semantic disambiguation, and syntactic analysis, convert natural language data into structured data, which is then stored in a database.
[0032] The geometric features of building components extracted from digital images are associated with the text information extracted through NLP to obtain the spatial position information of each component, and to identify and calculate the spatial relationship between each building component;
[0033] Based on the analysis results of spatial relationships, a topological relationship diagram between each building component is generated. The nodes in the topological relationship diagram represent each component, the edges represent the spatial relationship between the components, and the attributes on the edges describe the specific relationship type and parameters.
[0034] In a preferred embodiment, performing preliminary recognition on a digital image based on an AI recognition algorithm and extracting building information from the digital image comprises the following steps:
[0035] The type of digital image is identified through image classification algorithm. For each type of digital image, the Canny edge detection method is used to extract the edges in the digital image, and then the contour detection algorithm is used to identify the building structure. The YOLO target detection algorithm is used to locate and identify the building elements in the image. The SIFT feature point detection algorithm is used to extract the key points in the digital image, match and mark different building elements.
[0036] The building model construction system based on AI drawing recognition includes a drawing recognition and processing module, a primary quality analysis module, a secondary quality inspection module, a model construction module, and an evaluation management module;
[0037] Drawing recognition and processing module: obtain the electronic drawings of the building through the building management platform and convert them into digital images. After preprocessing the digital images, perform preliminary recognition on the digital images based on the AI recognition algorithm, extract the building information from the digital images, use the deep learning algorithm to extract the basic information of the building components in the digital images and classify them, convert the natural language data in the digital images into structured data, analyze the spatial relationship between the components, and generate the topological relationship diagram between the components;
[0038] A quality analysis module: records multiple feature data in the extraction step, substitutes the multiple feature data into the intelligent analysis model to perform quality analysis on the extracted components and spatial relationship information. If the quality analysis fails, the extraction step of the components and spatial relationship information is repeated;
[0039] Secondary quality inspection module: If the quality analysis is qualified, the extracted components and spatial relationship information are converted into logical expressions, spatial data and non-spatial data are obtained, and quality inspection is performed on the spatial data and non-spatial data. If the quality inspection fails, the spatial data and non-spatial data acquisition steps are repeated;
[0040] Model building module: If the quality inspection is qualified, the spatial data and non-spatial data will be used to generate a building model using 3D modeling software, and the model will be optimized;
[0041] Evaluation and management module: Combine the component and spatial relationship information quality analysis results with the spatial data and non-spatial data quality detection results to evaluate the overall quality of the building model, and generate management strategies based on the evaluation results.
[0042] In the above technical solution, the technical effects and advantages provided by the present invention are:
[0043] 1. The present invention records multiple feature data in the extraction step, substitutes the multiple feature data into the intelligent analysis model to perform quality analysis on the extracted components and spatial relationship information. If the quality analysis fails, the extraction step of the components and spatial relationship information is repeated. If the quality analysis is qualified, the extracted components and spatial relationship information are converted into logical expressions, spatial data and non-spatial data are obtained, and quality inspection of the spatial data and non-spatial data is performed. If the quality inspection fails, the spatial data and non-spatial data acquisition step is repeated. If the quality inspection is qualified, the spatial data and non-spatial data are used to generate a building model using three-dimensional modeling software. The construction system improves the recognition and processing effect of building drawings based on AI drawing recognition, and then combines the recognition of the building model, the processing step status and the detection results of the building model to perform a comprehensive quality analysis on the building model to ensure the accuracy and stability of the building model after construction.
[0044] 2. After the building model is constructed, the present invention obtains the extraction coefficient after the components and spatial relationship information are extracted, obtains the detection value after the spatial data and non-spatial data quality detection, and comprehensively calculates the extraction coefficient and the detection value to obtain the quality index of the building model. According to the comparison result of the quality index and the index threshold, the quality analysis of the constructed building model is performed, which is convenient for the secondary management of the building model and improves the evaluation and management efficiency of the building model. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present invention. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.
[0046] Figure 1 The present invention is a flow chart of the method. DETAILED DESCRIPTION
[0047] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments 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.
[0048] Example 1: Please refer to Figure 1 As shown, the building model construction method based on AI drawing recognition described in this embodiment includes the following steps:
[0049] The construction system obtains the electronic drawings of the building through the building management platform and converts them into digital images. It performs preprocessing such as denoising, binarization, and grayscale transformation on the digital images to improve the quality of the digital images. It performs preliminary recognition of the digital images based on the AI recognition algorithm, and extracts the building information of the digital images, including the floor plan, elevation, and section of the building. It uses the deep learning algorithm to extract the geometric features, text annotations, symbols and other information of the building components in the digital images, and classifies them, such as walls, doors and windows, columns, etc. It performs word segmentation, named entity recognition, semantic disambiguation and syntactic analysis on the natural language data (such as annotations and annotations) in the digital images, converts the natural language data into structured data, analyzes the spatial relationships between the components, such as adjacency, intersection, inclusion, etc., generates a topological relationship diagram between the components, records multiple feature data in the extraction step, and substitutes the multiple feature data into the intelligent analysis model for the extracted The extracted component and spatial relationship information is subjected to quality analysis. If the quality analysis fails, the step of extracting the component and spatial relationship information is repeated. If the quality analysis passes, the extracted component and spatial relationship information is converted into logical expressions to obtain spatial data and non-spatial data. The spatial data and non-spatial data are subjected to quality inspection. If the quality inspection fails, the step of obtaining the spatial data and non-spatial data is repeated. If the quality inspection passes, the spatial data and non-spatial data are used to generate a building model using 3D modeling software (such as P3D graphics engine), including external form, internal structure and detailed features. The model is optimized (such as mesh simplification, texture optimization, etc.) to improve the rendering efficiency and visual effect of the model. The overall quality of the building model is evaluated by combining the component and spatial relationship information quality analysis results with the spatial data and non-spatial data quality inspection results, and a management strategy is generated based on the evaluation results.
[0050] This application records multiple feature data in the extraction step, substitutes the multiple feature data into the intelligent analysis model to perform quality analysis on the extracted components and spatial relationship information. If the quality analysis fails, the extraction step of the components and spatial relationship information is repeated. If the quality analysis passes, the extracted components and spatial relationship information are converted into logical expressions, spatial data and non-spatial data are obtained, and quality inspection of the spatial data and non-spatial data is performed. If the quality inspection fails, the spatial data and non-spatial data acquisition step is repeated. If the quality inspection passes, the spatial data and non-spatial data are used to generate a building model using 3D modeling software. This construction system improves the recognition and processing effect of building drawings based on AI drawing recognition, and then combines the recognition of the building model, the processing step status and the inspection results of the building model to conduct a comprehensive quality analysis of the building model to ensure the accuracy and stability of the building model after construction.
[0051] Embodiment 2: The construction system obtains the electronic drawings of the building through the building management platform and converts them into digital images, including the following steps:
[0052] Access the building management platform through a dedicated interface or API to obtain the electronic drawings of the required building. This step may require authentication and authorization to ensure that the drawings are obtained legally, and download the electronic drawings on the building management platform to the local storage system.
[0053] These drawings are usually in CAD, PDF or other common electronic formats. Convert the downloaded drawings to digital image formats such as JPEG, PNG, etc. This step can be completed using professional drawing conversion software or tools.
[0054] The digital image is preprocessed by denoising, binarization, grayscale conversion, etc. to improve the quality of the digital image, including the following steps:
[0055] 1. Denoising
[0056] Denoising refers to reducing or eliminating noise in an image to improve image quality. Common methods include:
[0057] Median-Filtering: Use a median filter to replace the value of each pixel in the image, effectively removing salt and pepper noise.
[0058] Gaussian-Filtering: Use a Gaussian kernel to smooth the image and reduce high-frequency noise.
[0059] Bilateral-Filtering: It is a nonlinear filtering method that removes noise while retaining edge details.
[0060] 2. Binarization
[0061] Binarization is the process of converting a grayscale image into a binary image (black and white image), which is very useful for identifying and extracting structural information in an image. Commonly used methods include:
[0062] Global-Thresholding: Use a global threshold and set pixels above the threshold to white and pixels below the threshold to black.
[0063] Adaptive-Thresholding: Dynamically determines the threshold based on the local information of the image, which is suitable for images with uneven lighting.
[0064] Otsu's method: Automatically calculate the optimal threshold to segment the image into foreground and background.
[0065] 3. Grayscale-Transformation
[0066] Grayscale transformation refers to converting a color image into a grayscale image to simplify image information for processing and analysis. Common methods include:
[0067] Linear weighted method: Combine the values of the three RGB channels according to certain weights, such as Gray=0.2989*R+0.5870*G+0.1140*B.
[0068] Maximum value method: select the largest value among the three RGB channels as the grayscale value.
[0069] Average method: take the average value of the three RGB channels.
[0070] 4. Contrast-Enhancement
[0071] Contrast enhancement is to increase the difference between different gray levels in an image. Common methods include:
[0072] Histogram-Equalization: Redistribute the gray levels of the image so that its histogram is evenly distributed and the contrast is improved.
[0073] Adaptive-Histogram-Equalization (AHE): Perform histogram equalization on local areas of the image to enhance local contrast.
[0074] Gamma correction: adjusts the brightness and contrast of the image and adjusts the grayscale distribution through nonlinear transformation.
[0075] Based on the AI recognition algorithm, the digital image is preliminarily recognized and the building information of the digital image is extracted, including the floor plan, elevation, section, etc. of the building, including the following steps:
[0076] Identify the type of image (plan, elevation, section, etc.) through image classification algorithms. For example, use models pre-trained on large-scale image datasets, such as VGG and ResNet, and fine-tune them on small datasets to improve classification results.
[0077] For each type of image, further extract specific building information features, such as walls, doors, windows, stairs, etc. The following methods can be used:
[0078] Use Canny edge detection, Sobel operator and other methods to extract edges in the image, then use contour detection algorithms (such as findContours in OpenCV) to identify building structures, use YOLO, FasterR-CNN and other target detection algorithms to locate and identify building elements in the image, use SIFT, SURF, ORB and other feature point detection algorithms to extract key points in the image, match and mark different building elements, specifically including the following steps:
[0079] 1) Edge detection (CannyEdgeDetection)
[0080] Perform edge detection on the classified images to highlight important edges and contours in the image: Convert the color image to grayscale. Use a Gaussian filter to smooth the image and reduce noise. Calculate the gradient of each pixel in the image to determine the edge strength and direction. Thin the edges and retain the maximum value in the gradient direction. Apply two thresholds to distinguish between strong edges, weak edges, and non-edges.
[0081] 2) Contour Detection
[0082] Use the contour detection algorithm in the OpenCV library to identify and extract contours in the image: Use the cv2.findContours function to find contours in the image. Use the cv2.drawContours function to draw the identified contours on the image for visual inspection.
[0083] 3) Feature point detection (SIFT)
[0084] Use SIFT (Scale-Invariant Feature Transform) algorithm to extract key points and feature descriptors in the image: Use SIFT algorithm to identify feature points in the image. Calculate feature descriptors for each feature point to describe the image structure around it. By calculating the distance between feature descriptors, similar feature points in different images are matched.
[0085] 4) Object Detection (YOLO)
[0086] Use the YOLO (YouOnlyLookOnce) object detection algorithm to locate and identify building elements in the image. Load the pre-trained YOLO model and the corresponding weight file. Input the image and use the YOLO model to detect the objects in it. Output the bounding box including the object category, location and confidence. Draw the bounding box and label on the image to mark the detected building elements.
[0087] The deep learning algorithm is used to extract the geometric features, text annotations, symbols and other information of building components in digital images and classify them, such as walls, doors, windows, columns, etc., including the following steps:
[0088] Data collection and annotation: Collect various types of digital images of buildings, including floor plans, elevations, sections, etc. Manually annotate the images to define the categories of building components (such as walls, doors, windows, columns, etc.), as well as the types of text annotations and symbols.
[0089] Use the labeled dataset to train the convolutional neural network model, including:
[0090] Detection of geometric features in images (such as lines, corners, etc.).
[0091] Identify and classify building components such as walls, doors, windows, columns, etc.
[0092] Text recognition (OCR) and symbol detection.
[0093] Use convolutional layers to extract low-level features (such as edges and textures) in the image, and then gradually extract high-level features through deep networks. Detect specific geometric shapes such as lines and circles by generating feature maps to identify building components. Use object detection algorithms to identify and classify various building components in the image, and output bounding boxes including category, location, and size.
[0094] Check and correct the automatic detection results to ensure accuracy and completeness, use post-processing techniques (such as non-maximum suppression) to remove duplicate detections, refine bounding boxes, store the extracted and classified information in a structured database for easy retrieval and analysis, and use visualization tools to display the detection results, such as drawing bounding boxes and labels on the image, and provide an interactive interface for users to view and analyze the information of building components.
[0095] Perform word segmentation, named entity recognition, semantic disambiguation and syntactic analysis on natural language data (such as annotations, labels, etc.) in digital images, convert natural language data into structured data, analyze the spatial relationship between components, such as adjacency, intersection, inclusion, etc., and generate a topological relationship diagram between components, including the following steps:
[0096] Use optical character recognition (OCR) technology to extract text data from images, such as annotations, labels, etc. This step requires a high-quality OCR tool to ensure accurate extraction of text content.
[0097] Perform word segmentation on the extracted text data. Word segmentation can split continuous text into independent words or phrases. Common tools include NLTK, spaCy, etc.
[0098] Identify named entities in text, such as building component names, materials, sizes, locations, etc. NER models can be based on deep learning (such as BERT) or traditional statistical models (such as CRF).
[0099] Resolve different meanings of the same word in different contexts, even if a word has multiple possible interpretations, and determine its specific meaning in the current context.
[0100] Analyze the structure of the sentence, identify the subject, predicate, object, and other components, as well as the relationship between different components. You can use dependency analysis or syntax tree analysis tools.
[0101] According to the results of word segmentation, NER, semantic disambiguation and syntactic analysis, natural language data is converted into structured data. For example, "wall A is on the right side of door B" is converted into a record with a clear relationship. The structured data is stored in the database to facilitate subsequent query and analysis.
[0102] The geometric features of building components extracted from the image (such as bounding box, center point, size, etc.) are associated with the text information extracted by NLP to obtain the spatial location information of each component.
[0103] Identify and calculate the spatial relationships between building components, including:
[0104] Adjacency: Determines whether two components are adjacent or touching.
[0105] Intersection: Determine whether two components have overlapping parts.
[0106] Containment: Determines whether one component is completely contained within another component.
[0107] Distance: Calculates the distance between two components.
[0108] Based on the analysis results of spatial relationships, a topological relationship diagram between each building component is generated. The nodes in the topological relationship diagram represent each component, the edges represent the spatial relationship between the components, and the attributes on the edges describe the specific relationship type and parameters (such as distance, intersection area, etc.).
[0109] Record multiple feature data in the extraction step, substitute the multiple feature data into the intelligent analysis model to perform quality analysis on the extracted components and spatial relationship information, and if the quality analysis is unqualified, perform the component and spatial relationship information extraction step again, including the following steps:
[0110] Record multiple feature data in the extraction step, including character error rate, feature point matching accuracy, and topological relationship Figure 1 consistency index;
[0111] Character error rate, feature point matching accuracy and topological relationship Figure 1 The consistency index is substituted into the intelligent analysis model, and the intelligent analysis model outputs the extraction coefficient. The model expression is: , where is the extraction coefficient, is the feature point matching accuracy, is the character error rate, For topological relationships Figure 1 Consistency index, , , They are feature point matching accuracy, character error rate, and topological relationship Figure 1 The proportionality coefficient of the consistency index is , , All are greater than 0;
[0112] The intelligent analysis model compares the obtained extraction coefficient with the preset coefficient threshold, and performs quality analysis on the extracted components and spatial relationship information based on the comparison results.
[0113] The larger the extraction coefficient is, the better the quality of the extracted components and spatial relationship information is. If the extraction coefficient is greater than or equal to the coefficient threshold, the quality of the extracted components and spatial relationship information is good. If the extraction coefficient is less than the coefficient threshold, the quality of the extracted components and spatial relationship information is poor. When the quality of the extracted components and spatial relationship information is poor, the extraction step of the components and spatial relationship information is performed again.
[0114] The calculation expression of character error rate is: , where Indicates the number of recognized character replacement errors. Indicates the number of recognized character deletion errors. Indicates the number of recognized character insertion errors. is the actual total number of characters. The larger the character error rate is, the easier it is to reduce the extraction quality of component and spatial relationship information.
[0115] The calculation logic of the feature point matching accuracy is as follows: obtain the number of correctly matched feature points, that is, the number of correctly identified feature point pairs during the feature point matching process, obtain the total number of feature points, that is, the number of all feature points detected in the image, and divide the number of correctly matched feature points by the total number of feature points to obtain the feature point matching accuracy. The smaller the feature point matching accuracy, the easier it is to reduce the extraction quality of component and spatial relationship information.
[0116] Topological relationships Figure 1 The calculation logic of the consistency index is as follows: Get the total number of actual topological relationships, that is, the number of all relationships that exist in the real topological relationship graph. It can be the total number of edges, connections, or other relationships between nodes, get the edit distance between the generated topological relationship graph and the real topological relationship graph, that is, the minimum number of edit operations (insert, delete, replace) required to convert one topological relationship graph into another topological relationship graph, subtract the edit distance between the generated topological relationship graph and the real topological relationship graph from the total number of actual topological relationships to get the numerical difference, and then divide the numerical difference by the total number of actual topological relationships to get the topological relationship. Figure 1 Consistency index, topological relationship Figure 1 The smaller the consistency index is, the easier it is to reduce the extraction quality of component and spatial relationship information.
[0117] If the quality analysis is qualified, the extracted components and spatial relationship information are converted into logical expressions to obtain spatial data and non-spatial data, including the following steps:
[0118] Define spatial relationships: Define corresponding logical relationships based on the physical spatial relationships between components, such as adjacency, intersection, and inclusion.
[0119] Establish logical rules: Establish corresponding logical rules for each spatial relationship. For example, the adjacency relationship can be expressed as Adjacent(A, B), where A and B are two building components.
[0120] Convert to logical expressions: Use defined logical rules to convert the extracted spatial relationships into logical expressions. Each expression represents the spatial relationship between two or more components.
[0121] Identify and extract non-spatial data: Extract non-spatial information from architectural drawings and other documents, such as the material, size, and purpose of components.
[0122] Structured non-spatial data: The extracted non-spatial information is organized into structured data form for subsequent processing and analysis.
[0123] Define spatial data model: Establish a spatial data model to define the spatial attributes of components such as geometry, position, and orientation.
[0124] Spatial data format conversion: Convert the extracted geometry and spatial relationship information into standard spatial data formats (such as Shapefile, GeoJSON, etc.) for use in spatial analysis tools such as GIS.
[0125] The extracted spatial data and non-spatial data are associated to form complete component description information.
[0126] Export data: Export the sorted logical expressions, spatial data, and non-spatial data into usable formats, such as database format, XML, JSON, etc.
[0127] Storage and Management: Store the exported data in an appropriate database or data management system to facilitate subsequent query, analysis, and model building.
[0128] Perform quality inspection on spatial data and non-spatial data. If the quality inspection fails, the spatial data and non-spatial data acquisition steps are repeated, including the following steps:
[0129] Obtain the spatial resolution and geometric error of the spatial data, obtain the correlation index of the non-spatial data, normalize the spatial resolution, geometric error and correlation index, map the value range of the spatial resolution, geometric error and correlation index to [0,1], obtain the normalized value of the spatial resolution, the normalized value of the geometric error and the normalized value of the correlation index, add the normalized value of the spatial resolution to the normalized value of the spatial resolution and subtract the normalized value of the geometric error to obtain the detection value;
[0130] The larger the detection assignment value, the more qualified the quality of the spatial data and non-spatial data. The detection assignment value is compared with the preset detection threshold. If the detection assignment value is greater than or equal to the detection threshold, the quality inspection of the spatial data and non-spatial data is qualified. If the detection assignment value is less than the detection threshold, the quality inspection of the spatial data and non-spatial data is unqualified, and the spatial data and non-spatial data acquisition steps need to be repeated.
[0131] The logic of obtaining spatial resolution is as follows: Spatial resolution usually refers to the size of the smallest resolvable object in geographic data. For remote sensing data, it is the actual size represented by a pixel on the ground. When opening spatial data files using GIS software (such as QGIS, ArcGIS), spatial resolution information can be found in data attributes or metadata. The smaller the spatial resolution, the more likely it is to cause quality problems such as blurring of building models.
[0132] The logic of obtaining geometric error is as follows: Geometric error refers to the spatial position accuracy of geographic data. Select reference data in the same area as the target data. The geometric accuracy of these data is known and is generally considered to be high-precision. Align the data to be tested and the reference data to ensure that they are compared in the same coordinate system. Use GIS software (such as ArcGIS, QGIS) to calculate the offset between each point, which is usually expressed as root mean square error (RMSE). The larger the geometric error, the more likely it is to cause distortion of the building model.
[0133] The calculation logic of the correlation index is: the correlation index is obtained by dividing the number of attributes actually contained in the data set that are directly related to the application requirements by the total number of data attributes. The larger the correlation index, the more similar the spatial data and non-spatial data are to the expected data attributes, which helps to avoid the complexity and potential errors caused by processing redundant data during data analysis. The simplicity and focus of the data improves processing efficiency and analysis accuracy.
[0134] If the quality inspection is qualified, the spatial data and non-spatial data will be used to generate a building model using 3D modeling software (such as P3D graphics engine), including external form, internal structure and detailed features, including the following steps:
[0135] Import spatial data: Import qualified spatial data (such as the geometric shape and location of buildings) into the modeling software.
[0136] Import non-spatial data: Import relevant non-spatial data (such as material information, functional attributes, etc.) to ensure that these data can assist in the detailed presentation of the 3D model.
[0137] Set the reference coordinate system: Ensure that the data is in a unified coordinate system to avoid model offset or deformation due to inconsistent coordinate systems.
[0138] Construct basic geometric forms: Generate the building's outer contour and basic form based on spatial data, such as the building's length, width, height and other main dimensions.
[0139] Apply materials and textures: Based on the non-spatial data, apply appropriate materials and textures to the building's exterior structures, such as its exterior walls and roof, to improve the realism of the model.
[0140] Add openings and ancillary structures: such as doors, windows, balconies, roof structures, etc., add detailed features of the building according to the level of detail and needs of the data.
[0141] Divide interior space: Divide the interior of a building into different areas, such as rooms, corridors, stairways, etc., based on floor plan and section data.
[0142] Construct internal walls and partitions: Construct internal walls and partitions according to the interior design of the building to ensure the separation of different functional areas.
[0143] Configure interior details: Add details of the interior structure, such as doors, windows, ceilings, floors, and other decorative elements.
[0144] Refinement processing: Refine the building model and add details to the building surface, such as decorative lines, sculptures, window frames, etc.
[0145] Apply Lighting and Shadows: Set lighting conditions and shadow effects to enhance the visual impact and realism of your model.
[0146] Simulate building materials and physical properties: Set the physical properties of different materials, such as reflectivity, light transmittance, etc., based on the material information provided in non-spatial data.
[0147] Optimize the building model (such as mesh simplification, texture optimization, etc.) to improve the rendering efficiency and visual effect of the model, including the following steps:
[0148] Analyze Mesh Density: Check the mesh density of the building model and identify areas with high polygon counts, such as complex geometric details and small objects.
[0149] Polygon reduction: Use mesh simplification algorithms (such as progressive meshing, quad merging, etc.) to reduce the number of polygons while maintaining the overall appearance and key features of the model. Common tools include Blender, MeshLab, etc.
[0150] LOD (Level of Detail) model creation: Create model versions of different precisions for different viewing distances, use high-precision models for close distances, and use low-precision models for long distances to optimize rendering performance.
[0151] Texture resolution adjustment: Adjust the texture resolution according to application requirements to avoid using too high a resolution, which will cause unnecessary storage and rendering overhead. Low-resolution textures are used in long-distance perspectives, and high-resolution textures are used in close-up perspectives.
[0152] Texture compression: Use texture compression technology (such as DXT, PVR, ETC, etc.) to reduce the size of texture files and improve loading speed and rendering efficiency.
[0153] Texture merging: Merge multiple texture maps into one large map (atlas), reducing the number of texture switching times and improving rendering efficiency.
[0154] Tiling: Use tiling appropriately to reduce the number of independent textures.
[0155] Normal Mapping: Use normal maps to increase surface detail without increasing polygon count. For example, you can use normal maps to simulate complex surface details such as bricks or sculptures on a low-polygon model.
[0156] Bump Mapping and Parallax Mapping: Use these mapping techniques to simulate surface unevenness and further enrich visual details.
[0157] Environment Mapping: Used to simulate reflection effects and improve the realism of materials.
[0158] Simplify material types: Try to reduce the types of material types and shaders, and use appropriate unified material processing methods.
[0159] Reduce real-time calculations: Avoid using overly complex real-time shader calculations, and try to complete some special effects processing, such as lighting and shadows, offline.
[0160] Geometry merging: Merge similar or adjacent geometry parts to reduce the number of draw calls and improve rendering efficiency.
[0161] Instancing technology: For recurring geometric shapes (such as windows, doors, etc.), use instancing technology to share the same geometric data to reduce memory usage and calculation.
[0162] Precomputed Lighting (Baking): Precompute lighting and shadows during the modeling phase and bake them into textures to reduce real-time computing requirements.
[0163] Simplified shadow processing: Use simplified shadow mapping techniques, such as shadow planes or simplified shadow volumes, to improve performance.
[0164] Combine the component and spatial relationship information quality analysis results with the spatial data and non-spatial data quality detection results to evaluate the overall quality of the building model, and generate a management strategy based on the evaluation results, including the following steps:
[0165] After the building model is constructed, the extraction coefficient after the component and spatial relationship information are extracted, the detection value after the spatial data and non-spatial data quality detection is obtained, and the extraction coefficient and the detection value are comprehensively calculated to obtain the quality index of the building model. The expression is: , where is the quality index, is the extraction coefficient, Assign a value to the test.
[0166] The quality index is compared with the index threshold. If the quality index is greater than or equal to the index threshold, the overall quality of the building model is evaluated to be excellent. If the quality index is less than the index threshold, the overall quality of the building model is evaluated to be poor. When the overall quality of the building model is evaluated to be poor, a management strategy is generated that requires secondary inspection and optimization of the building model.
[0167] After the building model is constructed, the application obtains the extraction coefficient after the components and spatial relationship information are extracted, obtains the detection value after the spatial data and non-spatial data quality are detected, and comprehensively calculates the extraction coefficient and the detection value to obtain the quality index of the building model. According to the comparison result of the quality index and the index threshold, the quality analysis of the constructed building model is performed, which is convenient for the secondary management of the building model and improves the evaluation and management efficiency of the building model.
[0168] Embodiment 3: The building model construction system based on AI drawing recognition described in this embodiment includes a drawing recognition processing module, a primary quality analysis module, a secondary quality detection module, a model construction module, and an evaluation management module;
[0169] Drawing recognition and processing module: obtain the electronic drawings of the building through the building management platform and convert them into digital images, perform pre-processing such as denoising, binarization, and grayscale transformation on the digital images to improve the quality of the digital images, perform preliminary recognition of the digital images based on the AI recognition algorithm, extract the building information of the digital images, including the floor plan, elevation, and section of the building, etc., use the deep learning algorithm to extract the geometric features, text annotations, symbols and other information of the building components in the digital images, and classify them, such as walls, doors and windows, columns, etc., perform word segmentation, named entity recognition, semantic disambiguation and syntactic analysis on the natural language data (such as comments and annotations) in the digital images, convert the natural language data into structured data, analyze the spatial relationship between the components, such as adjacency, intersection, inclusion, etc., generate a topological relationship diagram between the components, and extract the step information and send it to the primary quality analysis module;
[0170] Primary quality analysis module: records multiple feature data in the extraction step, substitutes multiple feature data into the intelligent analysis model to perform quality analysis on the extracted components and spatial relationship information. If the quality analysis fails, the extraction step of the components and spatial relationship information is repeated, and the quality analysis results are sent to the secondary quality inspection module and the evaluation management module;
[0171] Secondary quality inspection module: if the quality analysis is qualified, the extracted components and spatial relationship information are converted into logical expressions, spatial data and non-spatial data are obtained, and quality inspection is performed on the spatial data and non-spatial data. If the quality inspection fails, the spatial data and non-spatial data acquisition steps are repeated, and the quality inspection results are sent to the model construction module and the evaluation management module;
[0172] Model building module: If the quality inspection is qualified, the spatial data and non-spatial data will be used to generate a building model using 3D modeling software (such as P3D graphics engine), including external form, internal structure and detailed features, and the model will be optimized (such as mesh simplification, texture optimization, etc.) to improve the rendering efficiency and visual effect of the model. The building model will be sent to the evaluation management module;
[0173] Evaluation and management module: Combine the component and spatial relationship information quality analysis results with the spatial data and non-spatial data quality detection results to evaluate the overall quality of the building model, and generate management strategies based on the evaluation results.
[0174] The above formulas are all dimensionless and numerical calculations. The formula is a formula for the most recent real situation obtained by collecting a large amount of data and performing software simulation. The preset parameters in the formula are set by technicians in this field according to actual conditions.
[0175] In the description of this specification, the description with reference to the terms "one embodiment", "example", "specific example", etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or more embodiments or examples in a suitable manner.
[0176] The preferred embodiments of the present invention disclosed above are only used to help explain the present invention. The preferred embodiments do not describe all the details in detail, nor do they limit the invention to only specific implementation methods. Obviously, many modifications and changes can be made according to the content of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the present invention, so that those skilled in the art can understand and use the present invention well. The present invention is limited only by the claims and their full scope and equivalents.
Claims
1. A building model construction method based on AI drawing recognition, characterized in that: The construction method comprises the following steps: The construction system obtains the electronic drawings of the building through the building management platform and converts them into digital images. After preprocessing the digital images, the digital images are initially recognized based on the AI recognition algorithm, and the building information of the digital images is extracted. The basic information of the building components in the digital images is extracted and classified using the deep learning algorithm. The natural language data in the digital images is converted into structured data, and the spatial relationship between the components is analyzed to generate a topological relationship diagram between the components. Record multiple feature data in the extraction step, substitute the multiple feature data into the intelligent analysis model to perform quality analysis on the extracted components and spatial relationship information, if the quality analysis fails, repeat the component and spatial relationship information extraction step, if the quality analysis passes, convert the extracted components and spatial relationship information into logical expressions, obtain spatial data and non-spatial data, perform quality inspection on the spatial data and non-spatial data, if the quality inspection fails, repeat the spatial data and non-spatial data acquisition step; If the quality inspection is qualified, the spatial data and non-spatial data will be used to generate a building model using 3D modeling software, and the building model will be optimized. The overall quality of the building model will be evaluated by combining the component and spatial relationship information quality analysis results with the spatial data and non-spatial data quality inspection results, and a management strategy will be generated based on the evaluation results; Substituting multiple feature data into the intelligent analysis model to perform quality analysis on the extracted components and spatial relationship information includes the following steps: Record multiple feature data in the extraction step, the multiple feature data including character error rate, feature point matching accuracy and topological relationship graph consistency index; The character error rate, feature point matching accuracy, and topology graph consistency index are substituted into the intelligent analysis model, and the intelligent analysis model outputs the extraction coefficient. The model expression is: , where is the extraction coefficient, is the feature point matching accuracy, is the character error rate, is the consistency index of the topological relationship graph, , , are the proportional coefficients of feature point matching accuracy, character error rate, and topological relationship graph consistency index, respectively, and , , All are greater than 0; The intelligent analysis model compares the obtained extraction coefficient with the preset coefficient threshold, and performs quality analysis on the extracted components and spatial relationship information based on the comparison results; Perform quality inspection on spatial data and non-spatial data. If the quality inspection fails, the spatial data and non-spatial data acquisition steps are repeated, including the following steps: Obtain the spatial resolution and geometric error of the spatial data, obtain the correlation index of the non-spatial data, normalize the spatial resolution, geometric error and correlation index, map the value range of the spatial resolution, geometric error and correlation index to [0,1], obtain the normalized value of the spatial resolution, the normalized value of the geometric error and the normalized value of the correlation index, add the normalized value of the spatial resolution to the normalized value of the spatial resolution and subtract the normalized value of the geometric error to obtain the detection value; Compare the detection value with the detection threshold. If the detection value is greater than or equal to the detection threshold, the quality detection of the spatial data and non-spatial data is qualified. If the detection value is less than the detection threshold, the quality detection of the spatial data and non-spatial data is unqualified, and the spatial data and non-spatial data acquisition steps need to be repeated. Combine the component and spatial relationship information quality analysis results with the spatial data and non-spatial data quality detection results to evaluate the overall quality of the building model, and generate a management strategy based on the evaluation results, including the following steps: After the building model is constructed, the extraction coefficient after the component and spatial relationship information are extracted, the detection value after the spatial data and non-spatial data quality detection is obtained, and the extraction coefficient and the detection value are comprehensively calculated to obtain the quality index of the building model. The expression is: , where is the quality index, is the extraction coefficient, Assign values to the test; The quality index is compared with the index threshold. If the quality index is greater than or equal to the index threshold, the overall quality of the building model is evaluated to be excellent. If the quality index is less than the index threshold, the overall quality of the building model is evaluated to be poor. When the overall quality of the building model is evaluated to be poor, a management strategy is generated that requires secondary inspection and optimization of the building model.
2. The method for constructing a building model based on AI drawing recognition according to claim 1, characterized in that: The intelligent analysis model compares the obtained extraction coefficient with the preset coefficient threshold, and performs quality analysis on the extracted components and spatial relationship information based on the comparison results, including the following steps: The larger the extraction coefficient, the better the quality of the extracted components and spatial relationship information. If the extraction coefficient is greater than or equal to the coefficient threshold, the quality of the extracted components and spatial relationship information is good. If the extraction coefficient is less than the coefficient threshold, the quality of the extracted components and spatial relationship information is poor. When the quality of the extracted components and spatial relationship information is poor, the extraction step of the components and spatial relationship information is performed again.
3. The building model construction method based on AI drawing recognition according to claim 2 is characterized in that: Using 3D modeling software to generate a building model using spatial data and non-spatial data includes the following steps: Import qualified spatial data and non-spatial data into the modeling software, generate the external outline and basic form of the building based on the spatial data, and apply materials and textures to the external wall and roof structure of the building based on the non-spatial data; Add openings and additional structures and divide interior spaces, construct interior walls and partitions according to the building's interior design.
4. The method for constructing a building model based on AI drawing recognition according to claim 3, characterized in that: The calculation expression of the character error rate is: , where Indicates the number of recognized character replacement errors. Indicates the number of recognized character deletion errors. Indicates the number of recognized character insertion errors. is the actual total number of characters; The calculation logic of the feature point matching accuracy is as follows: obtaining the number of correctly matched feature points, obtaining the total number of feature points, and dividing the number of correctly matched feature points by the total number of feature points to obtain the feature point matching accuracy; The calculation logic of the topological relationship graph consistency index is: obtain the total number of actual topological relationships, obtain the edit distance between the generated topological relationship graph and the real topological relationship graph, subtract the edit distance between the generated topological relationship graph and the real topological relationship graph from the total number of actual topological relationships to obtain the numerical difference, and divide the numerical difference by the total number of actual topological relationships to obtain the topological relationship graph consistency index.
5. The method for constructing a building model based on AI drawing recognition according to claim 4, characterized in that: The natural language data in the digital image is converted into structured data, and the spatial relationship between the components is analyzed to generate a topological relationship diagram between the components, including the following steps: Use optical character recognition technology to extract text data from digital images, segment the extracted text data and identify named entities in the text; Use dependency analysis tools to analyze the structure of sentences, identify subject, predicate, and object components, and the relationships between different components. Based on the results of word segmentation, NER, semantic disambiguation, and syntactic analysis, convert natural language data into structured data, which is then stored in a database. The geometric features of building components extracted from digital images are associated with the text information extracted through NLP to obtain the spatial position information of each component, and to identify and calculate the spatial relationship between each building component; Based on the analysis results of spatial relationships, a topological relationship diagram between each building component is generated. The nodes in the topological relationship diagram represent each component, the edges represent the spatial relationship between the components, and the attributes on the edges describe the specific relationship type and parameters.
6. The method for constructing a building model based on AI drawing recognition according to claim 5, characterized in that: The digital image is preliminarily identified based on the AI recognition algorithm to extract the building information of the digital image, including the following steps: The type of digital image is identified through image classification algorithm. For each type of digital image, the Canny edge detection method is used to extract the edges in the digital image, and then the contour detection algorithm is used to identify the building structure. The YOLO target detection algorithm is used to locate and identify the building elements in the image. The SIFT feature point detection algorithm is used to extract the key points in the digital image, match and mark different building elements.
7. A building model construction system based on AI drawing recognition, used to implement the construction method according to any one of claims 1 to 6, characterized in that: It includes drawing recognition and processing module, primary quality analysis module, secondary quality inspection module, model building module and evaluation management module; Drawing recognition and processing module: obtain the electronic drawings of the building through the building management platform and convert them into digital images. After preprocessing the digital images, perform preliminary recognition on the digital images based on the AI recognition algorithm, extract the building information from the digital images, use the deep learning algorithm to extract the basic information of the building components in the digital images and classify them, convert the natural language data in the digital images into structured data, analyze the spatial relationship between the components, and generate the topological relationship diagram between the components; A quality analysis module: records multiple feature data in the extraction step, substitutes the multiple feature data into the intelligent analysis model to perform quality analysis on the extracted components and spatial relationship information. If the quality analysis fails, the extraction step of the components and spatial relationship information is repeated; Secondary quality inspection module: If the quality analysis is qualified, the extracted components and spatial relationship information are converted into logical expressions, spatial data and non-spatial data are obtained, and quality inspection is performed on the spatial data and non-spatial data. If the quality inspection fails, the spatial data and non-spatial data acquisition steps are repeated; Model building module: If the quality inspection is qualified, the spatial data and non-spatial data will be used to generate a building model using 3D modeling software, and the model will be optimized; Evaluation and management module: Combine the component and spatial relationship information quality analysis results with the spatial data and non-spatial data quality detection results to evaluate the overall quality of the building model, and generate management strategies based on the evaluation results.
Citation Information
Patent Citations
College teaching building plane learning space connection cohesiveness evaluation method and system
CN112115536A
Fabricated building quality information supervision system based on big data
CN116720752A
