Construction defect document generation system and method based on multi-modal perception and ai collaboration
The construction defect document generation system, which integrates multimodal perception and AI collaboration, solves the problems of repetitive data entry across multiple platforms and poor data consistency in construction quality control. It automates defect identification and enables real-time compliance verification, thereby improving the efficiency and accuracy of construction quality control.
Patent Information
- Application Number
- CN202611312584.5
- 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 construction quality control systems suffer from problems such as repetitive data entry across multiple platforms, poor data consistency, time-consuming photo management and difficult retrieval, high defect identification omission rate, delayed document generation, and passive compliance verification, especially in terms of multimodal data integration and automated processing.
The construction defect document generation system adopts multimodal perception and AI collaboration, including a multimodal perception acquisition module, a defect identification and classification module, a geographic anchoring module, and an automatic report generation module. Through the fusion of data from multiple types of sensors, AI identification of defects, and automatic generation of standardized reports, it achieves cross-platform synchronization and real-time compliance verification.
It achieves automatic synchronization across multiple platforms, significantly reduces defect omission rates, ensures precise location attribution, and moves compliance verification forward, freeing quality inspectors from tedious tasks and improving data consistency and document response timeliness.
Smart Images

Figure CN123159296A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the fields of construction engineering quality control and artificial intelligence technology, and in particular to a construction defect document generation system and method based on multimodal perception and AI collaboration. Background Technology
[0002] Currently, the following representative technical solutions have emerged in the field of construction quality control: ① Mobile-based digital defect recording tools (such as Procore Field, BIM 360 Field, PlanGrid, etc.), which enable mobile collection of defect records, uploading of photo attachments, task assignment, and web-based report viewing; some platforms support offline data synchronization. ② Defect-assisted detection algorithms based on single-modal computer vision (such as YOLO series, Faster R-CNN, etc.), which can preliminarily identify typical defects such as cracks (width > 1mm) and obvious leaks in a single visible light image; some research institutions have integrated them into mobile apps as auxiliary prompts. ③ Leakage detection tools based on thermal imagers (independent devices, not integrated AI systems), which are manually operated by professional inspectors to take pictures and manually analyze thermal images. ④ GIS-based defect map annotation tools, which support manual annotation of defect locations on maps. These tools are independent of each other and lack automated cross-tool data integration capabilities.
[0003] The typical workflow of existing technology is as follows: quality inspectors discover defects on-site → take photos → manually fill in the defect description → manually upload photos → re-enter the data in the project management software → enter the data a third time in the formal report system → manually notify the responsible party → periodically summarize the processing status manually. The entire documented process takes an average of 2-4 hours.
[0004] Therefore, the existing technology has the following drawbacks:
[0005] (1) Repeated data entry on multiple platforms, resulting in poor data consistency: Quality inspectors have to repeatedly enter the same defect information in 3-5 independent systems, which takes 30-90 minutes each time. Approximately 40%-60% of the working time is consumed in data entry rather than quality supervision.
[0006] (2) Photo management is time-consuming and difficult to retrieve: Geographic annotation is done manually throughout the process, and photo organization takes several hours every day; the location is dependent on text description (such as "near the southeast corner of the third floor"), and cannot be retrieved programmatically;
[0007] (3) High omission rate of defect identification: Existing AI only processes a single visible light image and cannot integrate multi-sensor data such as thermal imaging, with an omission rate of about 15%-25%; its ability to detect hidden leaks that are not visible to the naked eye (only temperature abnormalities without appearance abnormalities) is particularly weak. Such defects are usually only discovered when obvious water stains appear (often structural damage has already occurred) under traditional methods.
[0008] (4) Document generation delay: Manual batch processing causes high-risk defect notifications to be delayed by several hours to several days;
[0009] (5) Passive compliance verification: Compliance verification relies on manual comparison with the standards, and omissions are usually only discovered during the audit.
[0010] Therefore, there is an urgent need for a construction defect document generation system and method based on multimodal perception and AI collaboration to solve the above problems. Summary of the Invention
[0011] In response to the aforementioned technical problems in related technologies, this invention proposes a construction defect document generation system and method based on multimodal perception and AI collaboration.
[0012] In a first aspect, the present invention provides a construction defect document generation system based on multimodal perception and AI collaboration, comprising the following modules:
[0013] The multimodal sensing and acquisition module is used to collect raw data from various types of sensors at the construction site and preprocess it to obtain preprocessed data frame packets.
[0014] The defect identification and classification module is used to perform visible light defect detection and thermal imaging-assisted identification on the preprocessed data frame packet, outputting the defect category, initial confidence level, and thermal anomaly area of each defect candidate. Then, based on the defect category, initial confidence level, and thermal anomaly area of each defect candidate, it calculates the comprehensive detection confidence level and severity score, classifies the severity level, constructs defect records, writes them into the defect record list, and generates a defect detection result package.
[0015] The geographic anchoring module is used to perform precise coordinate mapping or indoor coordinate inference on the defect detection result package based on the coordinate confidence level of the preprocessed data frame package and GPS coordinates to generate a geographic anchoring defect record for each defect.
[0016] The automatic report generation module is used to automatically fill in the structured report template and automatically cross-check compliance based on the defect detection result package, geographically anchored defect records and project inspection requirements specification documents to generate standardized defect reports. It also triggers quality inspector verification based on the comprehensive detection confidence and automatic compliance cross-check results, and pushes standardized defect reports with an extremely high severity level to the staff.
[0017] The multi-system synchronous writing module is used to synchronously write standardized defect report packages to multiple systems according to the project integration configuration file to obtain multi-platform synchronous result records.
[0018] Specifically, the system also includes:
[0019] The model continuous learning module is used to construct an incremental training set based on the corrected sample records generated by the quality inspector's operations, and to incrementally train and update the visible light defect detection network.
[0020] Specifically, the raw data from the various types of sensors in the multimodal sensing and acquisition module includes visible light image streams, device attitude data, thermal imaging temperature matrix, sensor reading data, and UAV data packets.
[0021] The visible light image stream originates from a mobile device camera or a fixed camera, including EXIF metadata: GPS coordinates, acquisition timestamp, and device number; the device attitude data originates from the mobile device camera's built-in IMU, including pitch angle, yaw angle, and roll angle; the thermal imaging temperature matrix originates from an IoT infrared thermal imager installed on-site, including a two-dimensional floating-point temperature array and acquisition timestamp; the sensor reading data originates from various IoT sensors deployed on-site, including sensor number, BIM component number of the installation location, installation location coordinates, acquisition timestamp, measurement type, measurement value, measurement unit, and alarm threshold; the UAV data packet originates from image streams with geographic coordinate markers, flight trajectory logs, and PLY format point cloud data collected by the UAV.
[0022] The preprocessing specifically includes:
[0023] (a) Timestamp alignment and multimodal data fusion: Based on the acquisition timestamp of each frame of visible light image stream, the thermal imaging temperature matrix and sensor reading data within the same time window are time-aligned, and nearest neighbor interpolation is used to handle the problem of inconsistent sampling rates of various devices;
[0024] For each aligned sensor reading, its measured value is compared with the alarm threshold in the sensor configuration. If it exceeds the alarm threshold, an over-threshold alarm flag = TRUE is added; otherwise, the over-threshold alarm flag = FALSE is added by default.
[0025] (b) Image quality pre-screening and enhancement: The Laplacian gradient variance is calculated as the image quality score for each frame of visible light image; if the image quality score is less than the first quality score threshold, CLAHE enhancement and bicubic interpolation super-resolution reconstruction are performed on the visible light image of that frame to update the visible light image, and then the image quality score of the visible light image is recalculated. If the image quality score is still less than the second quality score threshold, the "request re-acquisition" event is triggered to re-acquisition.
[0026] (c) GPS coordinate reliability verification:
[0027] Step 1: Check if the GPS field exists in the EXIF metadata of each visible light image frame:
[0028] If the GPS field is missing, directly mark the coordinate confidence as low and skip the second step;
[0029] Step 2: Perform a spatial inclusion test between the GPS coordinates in the EXIF metadata and the geographic boundary polygon of the construction project. If the coordinates are within the boundary, mark them as having high confidence; otherwise, mark them as having low confidence.
[0030] Finally, the preprocessed data frame packet corresponding to each frame of the visible light image stream is obtained; the preprocessed data frame packet includes: frame number, visible light image, thermal imaging temperature matrix, sensor reading data, GPS coordinates, coordinate confidence, image quality score, acquisition timestamp, device attitude data and device number.
[0031] Specifically, the defect identification and classification module detects the visible light image in the preprocessed data frame packet through a visible light defect detection network, and outputs the defect category, detection box, initial detection confidence and component type of the defect candidates in the visible light image;
[0032] The visible light defect detection network is based on Faster R-CNN architecture, including a backbone network, feature extraction layer, defect detection branch and component type classification branch;
[0033] The backbone network is based on ResNet-50 and is used to extract multi-scale feature maps of images;
[0034] The feature extraction layer employs a region proposal network, which slides across the multi-scale feature map using anchor frames to predict the probability of each anchor frame containing a defect and its precise coordinate offset, thereby generating candidate detection regions.
[0035] The defect detection branch classifies and outputs the defect category, detection frame, and initial detection confidence for each candidate detection area; the defect categories include cracks, leaks, peeling, hollow areas, material inconsistencies, and component misalignment;
[0036] The component type classification branch and the defect detection branch share the feature extraction layer and output the component types of visible building components in the image in parallel; the component types include main load-bearing structures, secondary structures and non-structural decorative layers.
[0037] Specifically, the thermal imaging-assisted identification of the defect identification and classification module includes: detecting temperature anomaly regions in the thermal imaging temperature matrix of the preprocessed data frame packet using the 3σ statistical principle, and marking continuous pixel regions that exceed the mean μ ± 3 times the standard deviation σ as thermal anomaly regions; the standard deviation σ and the mean μ are calculated independently for all pixel values in a single frame thermal imaging temperature matrix;
[0038] If the spatial overlap rate between the thermal anomaly area and the detection frame of the defect candidate is greater than or equal to 50%, it is determined to be a dual-modal confirmation. The defect category of the defect candidate remains unchanged. The comprehensive confidence of the defect candidate is calculated. Comprehensive confidence = min(1.0, initial confidence + 0.15).
[0039] If visible light defect detection fails to detect defect candidates, but thermal imaging-assisted identification detects the presence of thermal anomaly areas, additional thermal anomaly defect candidates are generated, their overall confidence level is set to 0.55, and they are marked as requiring quality inspector confirmation.
[0040] Specifically, the process of calculating a comprehensive severity score for each defect candidate based on the comprehensive detection confidence level, constructing a defect record, writing it into the defect record list, and generating a defect detection result package includes:
[0041] The severity score S of defect candidates with a comprehensive confidence level greater than 0.5 is calculated according to the following formula:
[0042] S = A1 × Visual Score + A2 × Thermal Imaging Score + A3 × Structural Risk Score + A4 × Regulatory Compliance Score;
[0043] Where A1 is the visual scoring weight, A2 is the thermal imaging scoring weight, A3 is the structural risk scoring weight, and A4 is the regulatory compliance scoring weight, A1+A2+A3+A4=1;
[0044] Then, the severity level of each defect candidate is classified according to the comprehensive severity score S:
[0045] If S is greater than or equal to 80, the severity level is extremely high risk;
[0046] If S is greater than or equal to 60 points but less than 80 points, the severity level is high risk;
[0047] If S is greater than or equal to 40 points but less than 60 points, the severity level is medium risk;
[0048] If S is less than 40, the severity level is low risk;
[0049] After completing the comprehensive detection confidence assessment and severity comprehensive score scoring, the defect candidates are converted into defect records. The component types output by the component type classification branch are used as preliminary component types and written into the defect record list, finally obtaining the defect detection result package. The defect detection result package includes frame number and defect record list. Each defect record includes a unique defect number, defect category, pixel coordinates of the detection frame, comprehensive detection confidence, severity comprehensive score, severity level, evidence source list, manual review requirement mark, and preliminary component type.
[0050] Specifically, the visual score = area sub-score × 0.5 + defect level sub-score × 0.5;
[0051] The area sub-score is obtained by converting the pixel area of the detection box of the defect candidate into cm² and then logarithmically normalizing it;
[0052] The defect level sub-scores are obtained by classifying the defect categories of the defect candidates, specifically including:
[0053] When the defect category is crack, if the crack width is less than 0.2 mm, the defect level sub-score is 20 points; if the crack width is greater than or equal to 0.2 mm and less than or equal to 0.5 mm, the defect level sub-score is 50 points; if the crack width is greater than 0.5 mm, the defect level sub-score is 80 points.
[0054] When the defect category is leakage, if the leakage area is less than 50cm², the defect level sub-score is 20 points; if the leakage area is greater than or equal to 50cm² and less than or equal to 200cm², the defect level sub-score is 40 points; if the leakage area is greater than 200cm², the defect level sub-score is 75 points.
[0055] When the defect category is spalling, if the spalling area is less than 100cm², the defect level sub-score is 30 points; if the spalling area is greater than or equal to 100cm², the defect level sub-score is 65 points.
[0056] When the defect category is hollow, if the hollow diameter is less than 20cm, the defect level sub-score is 25 points; if the hollow diameter is greater than or equal to 20cm, the defect level sub-score is 60 points.
[0057] When the defect category is material inconsistency, the defect level sub-score is uniformly set to 50 points.
[0058] When the defect category is component misalignment, if the component misalignment deviation is less than 5mm, the defect level sub-score is 30 points; if the component misalignment deviation is greater than or equal to 5mm and less than or equal to 20mm, the defect level sub-score is 55 points; if the component misalignment deviation is greater than 20mm, the defect level sub-score is 80 points.
[0059] If no thermal imaging data is available for the defect candidate, the thermal imaging score will be 50 points.
[0060] If thermal imaging data is available for the defect candidates, the thermal imaging score is obtained by mapping the normalized value of thermal anomaly intensity index from 0 to 100.
[0061] The structural risk score = visual score × component location coefficient;
[0062] The initial value of the component position coefficient is 1.
[0063] If the component type is a main load-bearing structure: Component location coefficient = Component location coefficient × 1.5;
[0064] If the component type is a secondary structure: Component position coefficient = Component position coefficient × 1.0;
[0065] If the component type is a non-structural decorative layer: Component position coefficient = Component position coefficient × 0.7;
[0066] The regulatory compliance score is calculated as: basic compliance score × regulatory clause coefficient.
[0067] Compliance base score = (visual score × 0.35 + thermal imaging score × 0.25) / 0.60, normalized to 0-100 points;
[0068] Specifically, when the clause type is mandatory, the regulatory clause coefficient is 1.3; when the clause type is recommended, the regulatory clause coefficient is 0.9; and if no relevant clause is found, the regulatory clause coefficient is 1.0.
[0069] Specifically, the geographic anchoring module includes:
[0070] The precise coordinate mapping specifically involves: using a seven-parameter Helmert coordinate transformation to convert the WGS84 GPS coordinates to the project's local coordinate system for preprocessed data frames with high coordinate confidence; combining equipment attitude data and camera intrinsic parameter matrices; performing three-dimensional ray back projection on the center pixel coordinates of the detection box of each defect record in the defect record list of the defect detection result package to obtain the three-dimensional coordinates of the defect; then searching in the BIM component spatial index using the k-nearest neighbor algorithm; and combining the BIM component number, component type, and floor number of the component to which the three-dimensional coordinates of the defect belong.
[0071] The indoor coordinate inference specifically involves employing a three-step progressive inference strategy for preprocessed data frame packets with low coordinate confidence:
[0072] The first step, coarse coordinates: using the signal strength of Bluetooth beacons or Wi-Fi hotspots, the device's planar coordinates are calculated through a trilateration algorithm;
[0073] The second step is floor confirmation: VLDN image features are used to extract the pixel positions of visible columns in the photo, generating column grid feature vectors, which are then matched with the pre-calculated column grid template vectors for each floor in the BIM using cosine similarity. If the match is successful, the floor number with the highest similarity and ≥0.8 is taken as the current floor. If the match fails, the floor number is identified by OCR and used as the floor number.
[0074] The third step is fine-tuning the position: Identify fixed reference objects with known BIM coordinates visible in the photo, establish 2D-3D matching point pairs between the photo pixel coordinates and the BIM 3D coordinates, and use the PnP algorithm to calculate the precise pose of the camera; similarly, obtain the 3D coordinates of the defect through ray back projection, and then search in the BIM component spatial index using the k-nearest neighbor algorithm, combined with the BIM component number, component type and floor number of the component to which the 3D coordinates of the defect belong.
[0075] Each defect's 3D coordinates, floor number, and component number are encapsulated into a GeoJSON element format defect location GeoJSON tag. This generates a project defect map overlay file. The defect record and location information are merged using the defect's unique ID as the primary key to form a geographically anchored defect record. The geographically anchored defect record includes the defect's unique ID, BIM component number, floor number, defect 3D coordinates, positioning method tag, positioning accuracy, and defect location GeoJSON tag.
[0076] Specifically, the automatic cross-checking of compliance in the automatic report generation module includes:
[0077] The defect category, floor number, component type, severity level are compared with the industry safety standard rule library, project contract obligation clause library and local building code applicability index one by one. Each relevant standard clause is judged to be compliant or non-compliant. The weighted sum is used to obtain a compliance verification score. When the compliance verification score is less than 60, it is marked as a non-compliant item, which is forced to enter the quality inspector for review and the non-compliant clause number and content are listed in the report.
[0078] The compliance check score = 100 - Σ(weight of violation clause × severity coefficient of clause);
[0079] Specifically, the weighting of the violation clauses includes: if the relevant regulatory clause is a mandatory clause, the weighting of the violation clause is 20 points per clause; if the relevant regulatory clause is a recommended clause, the weighting of the violation clause is 10 points per clause; if the relevant regulatory clause is a general explanatory clause, the weighting of the violation clause is 5 points per clause.
[0080] The severity coefficient of the clauses specifically includes: if the relevant regulatory clause endangers life safety, the severity coefficient of the clause is 2.0; if the relevant regulatory clause may cause structural damage, the severity coefficient of the clause is 1.5; if the relevant regulatory clause is a functional defect, the severity coefficient of the clause is 1.
[0081] Secondly, the present invention provides a construction defect document generation method based on multimodal perception and AI collaboration, and a construction defect document generation system based on multimodal perception and AI collaboration as described in the first aspect above, comprising the following steps:
[0082] S1. Collect raw data from various types of sensors at the construction site and preprocess it to obtain preprocessed data frame packets;
[0083] S2. Perform visible light defect detection and thermal imaging-assisted identification on the preprocessed data frame packet, outputting the defect category, initial confidence level, and thermal anomaly area of each defect candidate. Then, calculate the comprehensive detection confidence level and severity score based on the defect category, initial confidence level, and thermal anomaly area of each defect candidate, classify the severity level, construct defect records, write them into the defect record list, and generate a defect detection result packet.
[0084] S3. Based on the coordinate confidence level and GPS coordinates of the preprocessed data frame packet, perform precise coordinate mapping or indoor coordinate inference on the defect detection result packet to generate a geographic anchored defect record for each defect.
[0085] S4. Based on the defect detection result package, geographically anchored defect records, and project inspection requirements and specifications, a standardized defect report is generated through automatic filling of structured report templates and automatic cross-checking of compliance. The quality inspector is triggered to verify the report based on the comprehensive detection confidence level and the results of automatic cross-checking of compliance. The standardized defect report with the severity level of "extremely high risk" is pushed to the staff.
[0086] S5. Based on the project integration configuration file, the standardized defect report package is synchronously written to multiple systems to obtain multi-platform synchronization result records.
[0087] The construction defect document generation system and method based on multimodal perception and AI collaboration provided by this invention have the following advantages:
[0088] 1) Eliminate duplicate data entry across multiple platforms; enable automatic synchronization across multiple systems in a single data collection:
[0089] Documentation time has been reduced from 30-90 minutes to ≤5 minutes, and cross-platform consistency is guaranteed by two-phase commit (2PC) transactions, with an inconsistency rate approaching 0%. The core innovation lies in the design of a draft state mapping adaptation layer for heterogeneous platforms such as Procore / BIM360, achieving cross-platform transaction consistency without a native pre-commit interface.
[0090] 2) Multimodal fusion recognition reduces defect omission rate:
[0091] By superimposing and fusing the IoU space of VLDN visible light detection and thermal imaging 3σ anomaly detection (confidence +0.15 when overlap rate ≥50%), the recall rate of hidden leakage was increased from 52% to 87%, and the overall omission rate was reduced from 15%-25% to about 5%. The key innovation lies in the collaborative design that solves three technical problems: cross-modal coordinate system alignment, time synchronization, and confidence fusion.
[0092] 3) Automated geographic anchoring enables precise attribution of BIM components:
[0093] Employing Helmert coordinate transformation, k-nearest neighbor lookup, and ray back projection, the accuracy reaches ±0.3m when GPS is working effectively; when GPS fails, a three-step process—coarse positioning via Bluetooth, column grid and floor matching, and PnP component correction—achieves an accuracy of ±0.8m. This significantly improves positional accuracy from ±5-10m, and reduces manual time spent on photo annotation to near zero. The core innovation lies in combining robot vision PnP technology with BIM component references for indoor positioning on construction sites.
[0094] 4) Real-time hierarchical alarm compression of extremely high-risk response window:
[0095] When extremely high-risk defects are determined in real time using the four-dimensional scoring formula, multi-channel alarms are triggered within T+2 minutes after the report is generated, compressing the response window for extremely high-risk defects from several hours to several days to ≤5 minutes. The core innovation lies in incorporating the mandatory level of regulations and the risk weight of component location into the real-time scoring (comprehensive score of severity), breaking through the industry mindset that "appearance equals severity".
[0096] 5) Compliance verification moved to the document generation stage: Through automatic comparison using three databases—security standards, contractual obligations, and local regulations—a compliance score is output within T+5 minutes of defect discovery, and a mandatory review is triggered if the score is below 60. This significantly advances the discovery of compliance omissions from the audit stage. The core innovation lies in strongly coupling the two independent workflows of compliance verification and defect recording, and automatically extracting the obligation clauses from the contract PDF and structuring them into IF-THEN rules.
[0097] The construction defect document generation system and method provided by this invention, based on multimodal perception and AI collaboration, eliminates duplicate data entry across multiple platforms through end-to-end automated writing, significantly reduces defect omission rates through VLDN and thermal imaging dual-modal fusion, achieves precise BIM component-level assignment at ±0.3m through Helmert transformation and PnP progressive positioning, compresses the response window for extremely high-risk defects to within 5 minutes through four-dimensional real-time scoring, and shifts the discovery of omissions from the audit stage to T+5 minutes after defect discovery through joint compliance verification of three databases. Overall, it realizes a systematic upgrade of building quality inspection from "manual decentralized data entry and passive post-event rectification" to "automatic precise positioning and real-time proactive early warning," completely eliminating manual cross-system duplicate data entry and manual photo processing, greatly improving data consistency, defect traceability, and document response timeliness, and freeing quality inspectors from tedious tasks, allowing them to truly return to the core work of quality supervision. Attached Figure Description
[0098] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0099] Figure 1 A schematic diagram of a construction defect document generation system based on multimodal perception and AI collaboration provided in an embodiment of the present invention;
[0100] Figure 2 This is a schematic diagram of a construction defect document generation method based on multimodal perception and AI collaboration provided in an embodiment of the present invention. Detailed Implementation
[0101] The present invention will be explained in detail through the following embodiments. The purpose of this invention is to protect all technical improvements within its scope. In the description of this invention, it should be understood that the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this invention, "a plurality of" means two or more, unless otherwise explicitly specified.
[0102] To make the technical problems, technical solutions and advantages of the present invention clearer, a detailed description will be given below in conjunction with the accompanying drawings and specific embodiments.
[0103] Example 1
[0104] refer to Figure 1 This embodiment provides a construction defect document generation system based on multimodal perception and AI collaboration, including the following modules:
[0105] This invention constructs a six-layer AI agent collaborative architecture, consisting of a multimodal perception and acquisition module, a defect identification and classification module, a geographic anchoring module, an automatic report generation module, a multi-system synchronous writing module, and a model continuous learning module. Each layer achieves asynchronous decoupled communication through an event-driven message bus, and the modules (layers) communicate asynchronously and decoupled with each other through the event-driven message bus.
[0106] The multimodal sensing and acquisition module is used to collect raw data from various types of sensors at the construction site and preprocess it to obtain preprocessed data frame packets.
[0107] The raw data from the various types of sensors specifically includes visible light image streams, device attitude data, thermal imaging temperature matrix, sensor reading data, and UAV data packets.
[0108] The visible light image stream originates from a mobile device camera or a fixed camera, in JPEG / PNG format, with a resolution ≥1080p and a frame rate of 1-30fps. It includes EXIF metadata: GPS coordinates (WGS84 format latitude, longitude, and elevation), acquisition timestamp (millisecond-level UNIX format), and device number.
[0109] The device attitude data (IMU data) originates from the mobile device's built-in IMU (Inertial Measurement Unit, integrating a gyroscope and accelerometer, commonly found in modern smartphones and industrial tablets, accessible via API on both iOS and Android). The format is JSON, precisely synchronized with the visible light image acquisition timestamp (error <10ms). It includes: Pitch (device tilt angle, in degrees), Yaw (rotation angle, in degrees), and Roll (roll angle around an axis, in degrees). Purpose: To subsequently determine the shooting direction together with the camera's intrinsic parameter matrix, completing the ray backprojection transformation from image pixel coordinates to 3D spatial coordinates.
[0110] The thermal imaging temperature matrix is derived from the IoT infrared thermal imager installed on-site. The format is RJPEG, and the output is a two-dimensional floating-point temperature array (the temperature value of each pixel, in °C, with a temperature range of -20°C to +120°C and an accuracy of ±2°C). The acquisition timestamp is aligned with the timestamp of the visible light image acquisition and is used to detect temperature anomalies that are not visible to the naked eye.
[0111] Sensor readings are sourced from various IoT sensors (vibration sensors, humidity sensors, crack gauges, etc.) deployed on-site, in JSON format. Each reading includes: sensor number, BIM component number at installation location (configured by the engineer during system initialization), installation location coordinates (X / Y / Z, consistent with the local BIM coordinate system), acquisition timestamp, measurement type, measurement value, measurement unit, and alarm threshold.
[0112] The drone data package originates from image streams with geographic coordinates, flight trajectory logs, and PLY format point cloud data collected by the drone.
[0113] ① Image stream: It is exactly the same as the visible light image stream of the handheld device, and can enter the visible light defect detection network (VLDN) inference in the defect recognition and classification module (VLDN has no restrictions on the image source device, and the processing method is the same as that of handheld camera images).
[0114] ② Flight trajectory log: Records the acquisition time, GPS coordinates (high-precision RTK), and flight attitude angles (yaw / pitch / roll) for each UAV image. In subsequent operations, it replaces the GPS+IMU data from ground equipment and is used to construct ray back projection (3D defect localization from the UAV's perspective). The attitude angle fields in the flight trajectory log have the same meaning as the ground IMU data fields (yaw / pitch / roll), and the GPS+IMU data source can be automatically selected through device type marking.
[0115] ③PLY point cloud data: The current version is stored and can be used in subsequent extended versions for BIM model accuracy verification (comparing the point cloud with the BIM model component boundaries to find BIM deviations).
[0116] In this embodiment, the current version of the drone data is only used for collection and backup archiving and does not enter the real-time AI processing flow of subsequent operations, but the drone images can be incorporated into VLDN inference.
[0117] The preprocessing specifically includes:
[0118] (a) Timestamp alignment and multimodal data fusion: Based on the acquisition timestamp (millisecond-level UNIX timestamp) of each frame of the visible light image stream, the thermal imaging temperature matrix and sensor readings within the same time window (±500ms) are time-aligned, and nearest neighbor interpolation is used to handle the problem of inconsistent sampling rates of various devices;
[0119] For each aligned sensor reading, compare its measured value with the alarm threshold in the sensor configuration. If it exceeds the alarm threshold, add an over-threshold alarm flag = TRUE; otherwise, the default over-threshold alarm flag = FALSE.
[0120] The nearest neighbor interpolation is a prior art in the field of signal processing. The innovation of this application lies in defining a ±500ms cross-modal time alignment tolerance window and a standard encapsulation structure for multimodal data frames.
[0121] (b) Image quality pre-screening and enhancement: The Laplacian gradient variance (LGV) is calculated for each frame of visible light image as an image quality score;
[0122] If the image quality score is less than the first quality score threshold, the visible light image of the frame is processed by CLAHE enhancement and bicubic interpolation super-resolution reconstruction to update the visible light image. Then the image quality score of the visible light image is recalculated. If the image quality score is still less than the second quality score threshold, the "request re-acquisition" event is triggered to re-acquisition.
[0123] The typical range of Laplace gradient variance (LGV) is 50-800; in this embodiment, the first quality score threshold and the second quality score threshold are determined based on statistical analysis of building surface texture density; preferably, in this embodiment, the first quality score threshold is 100 and the second quality score threshold is 80.
[0124] The CLAHE and bicubic interpolation methods mentioned above are existing technologies. The innovation of this application lies in the dual-threshold quality scoring system designed for the lighting characteristics of construction sites.
[0125] (c) GPS coordinate reliability verification (two-step judgment):
[0126] Step 1: Check if the GPS field exists in the EXIF metadata of each visible light image frame:
[0127] If the GPS field is missing (the device is in a basement / deeply obscured area and cannot obtain a GPS signal), the coordinate confidence is directly marked as low, the boundary check in the second step is skipped, and the indoor inference process is triggered.
[0128] Step 2 (when the GPS field exists): Perform a spatial inclusion check (ray casting algorithm) on the GPS coordinates and the geographical boundary polygon (GeoJSON format) of the construction project. If the coordinates are within the boundary, mark the coordinate confidence as high; if they are outside the boundary (indoor / obstructed area GPS signal distortion), mark the coordinate confidence as low and trigger the indoor inference process.
[0129] Finally, the preprocessed data frame packets corresponding to each frame of the visible light image stream are obtained and pushed to the defect identification and classification module, and at the same time, the entire data is pushed to the geographic anchoring module (the geographic anchoring module requires GPS coordinates and IMU data).
[0130] The preprocessed data frame package (JSON format) contains 10 fields: frame number, visible light image, thermal imaging temperature matrix, sensor reading data (including over-threshold alarm markers), GPS coordinates, coordinate confidence (high / low), image quality score (LGV value), acquisition timestamp, device attitude data (pitch angle / yaw angle / roll angle), and device number.
[0131] The defect identification and classification module is used to perform visible light defect detection and thermal imaging-assisted identification on the preprocessed data frame packets, outputting the defect category, initial confidence level, and thermal anomaly area of each defect candidate. It calculates the comprehensive detection confidence level based on the defect category, initial confidence level, and thermal anomaly area of each defect candidate, and then calculates the comprehensive severity score of each defect candidate based on the comprehensive detection confidence level, classifies the severity level, constructs defect records, writes them into the defect record list, and generates a defect detection result package.
[0132] (a) Visible light defect detection – Visible Light Defect Detection Network (VLDN) inference:
[0133] The Visible Light Defect Detection Network (VLDN) uses the visible light image in the preprocessed data frame packet as input to detect the following 6 defect categories (only 6 visible light categories, thermal anomalies are output by thermal imaging-assisted identification). The output is the defect category, detection box, initial detection confidence, and component type of the defect candidate in the visible light image.
[0134] The defect categories of the defect candidates include:
[0135] Cracks: Surface linear fractures, with fine cracks ≥0.2mm in width and obvious cracks ≥0.5mm;
[0136] Leakage / water damage: Surface wet stains or water marks, area ≥ 50cm²;
[0137] Peeling: The detachment of concrete or coating from the surface;
[0138] Hollow areas: There are cavities between the base layer and the surface layer. In visible light images, this appears as fine mesh-like cracks on the surface, local micro-bulges, or peeling edges of the finishing layer. VLDN identifies hollow areas by recognizing the above visual features (rather than by acoustic tapping), and the area to be identified is ≥20cm².
[0139] Inconsistent materials: Materials that do not conform to design specifications were used (such as deviations in steel reinforcement specifications or abnormal concrete grade).
[0140] Component misalignment: The installation position of the component deviates from the design coordinates (such as excessive joint width of precast slabs, non-vertical door and window frames);
[0141] The Visible-Light Defect Detection Network (VLDN) is based on Faster R-CNN and is specifically designed for building construction defect detection scenarios:
[0142] ① Backbone network (feature extraction layer, shared): Based on ResNet-50, it extracts multi-scale feature maps of the image;
[0143] ② Feature extraction layer (Region Proposal Network (RPN)): It slides and scans on the multi-scale feature map with anchor boxes (preset candidate box size templates), predicts the probability of whether each anchor box contains a defect and the precise coordinate offset, and generates candidate detection regions; Anchor box size range: 8×8 pixels (minimum, used to detect ≥0.2mm fine cracks) to 256×256 pixels (maximum), aspect ratio: 1:1, 1:2, 1:4, 1:8 (high aspect ratio is used for linear cracks);
[0144] Anchor boxes are the candidate detection box size templates preset on the feature map by the RPN of VLDN. They determine the minimum target size that the network can perceive. The minimum anchor box of the standard Faster R-CNN is 32×32 pixels. In this embodiment, it is reduced to 8×8 pixels and a 1:8 high aspect ratio option is added, which enables the network to perceive minute cracks at the 0.2mm level (which only covers about 2-4 pixels wide at a shooting distance of 1 meter). Quantization advantage: the recall rate of minute cracks is increased from 31% to 74%.
[0145] ③ Defect Detection Branch: For each candidate detection area, output 6 types of defects (cracks / leakage / stripping / hollow areas / material inconsistencies / component misalignment), detection box (represented by pixel coordinates [top left x, top left y, width, height]), and initial detection confidence (0~1);
[0146] ④ Component type classification branch: Shares the feature extraction layer with the defect detection branch, and outputs the component type (main load-bearing structure / secondary structure / non-structural decorative layer) of the visible building components in the image in parallel, which is used for subsequent structural risk scoring.
[0147] The two branches share the features of the backbone network, and the inference cost is almost the same as that of a single branch.
[0148] (b) Thermal imaging-assisted identification – discovery of hidden defects (executed in parallel with (a):
[0149] Temperature anomaly regions are detected in the thermal imaging temperature matrix of the preprocessed data frame packet using the 3σ statistical principle. Continuous pixel regions that exceed the mean μ ± 3 times the standard deviation σ are marked as thermal anomaly regions. The standard deviation σ and the mean μ are calculated independently for all pixel values in a single frame of thermal imaging temperature matrix.
[0150] If the spatial overlap (IoU) between the thermal anomaly area and the detection frame of the defect candidate is ≥50%, it is determined to be a bimodal confirmation, the defect category of the defect candidate remains unchanged, and the overall confidence of the defect candidate is calculated as min(1.0, initial confidence + 0.15).
[0151] It is worth noting that dual-modal confirmation (IoU≥50%) only affects the confidence level and does not change the defect category: when the overlap rate between the thermal anomaly area and the VLDN detection frame is ≥50%, the defect category is one of the six visible light categories output by the VLDN (such as leakage / water loss), and the overall confidence level is min(1.0, initial confidence level + 0.15). In the end, it still belongs to the six visible light defects. Thermal imaging only plays the role of providing additional evidence for the visible light conclusion.
[0152] If visible light defect detection does not detect defect candidates, but thermal imaging-assisted identification detects the presence of thermal anomaly areas, additional thermal anomaly defect candidates are generated, their overall confidence level is set to 0.55, and they are marked as requiring confirmation by quality inspectors.
[0153] Spatial overlap ratio (IoU) calculation: The pixel coordinates of the VLDN detection box and the pixel coordinates of the thermal anomaly region are mapped to the same reference plane through the camera intrinsic parameter matrix calibrated by the same machine, and the ratio of their intersection area to their union area is calculated.
[0154] (c) Multidimensional severity scoring: After (a)(b) are completed in parallel and the overall confidence level is ≥0.50, a comprehensive severity score S (0-100 points) is calculated for each defect candidate:
[0155] S = A1×Visual Score + A2×Thermal Imaging Score + A3×Structural Risk Score + A4×Regulatory Compliance Score;
[0156] Where A1 is the visual scoring weight, A2 is the thermal imaging scoring weight, A3 is the structural risk scoring weight, and A4 is the regulatory compliance scoring weight, A1+A2+A3+A4=1;
[0157] In this embodiment, A1=0.35, A2=0.25, A3=0.2, and A4=0.2, which were determined through regression analysis of 50 historical defect-consequence datasets of building projects. These values can be changed or determined through regression analysis of more historical defect-consequence datasets of building projects according to actual needs.
[0158] The severity level of each defect candidate is determined based on a comprehensive severity score S:
[0159] If S is greater than or equal to 80, the severity level is extremely high risk;
[0160] If S is greater than or equal to 60 points but less than 80 points, the severity level is high risk;
[0161] If S is greater than or equal to 40 points but less than 60 points, the severity level is medium risk;
[0162] If S is less than 40, the severity level is low risk;
[0163] The scores for each sub-item are obtained as follows:
[0164] 1) Visual assessment:
[0165] Wherein, visual score = area sub-score × 0.5 + defect level sub-score × 0.5;
[0166] Area subdivision (0-100): Pixel area A = width of the detection box of the defect candidate × height of the detection box of the defect candidate (in pixels²), converted to cm² and logarithmically normalized = min(100, log... 10 (A+1) / log 10 (1000)×100);
[0167] Defect level sub-scores (0-100, graded according to the defect category of the defect candidates):
[0168] Cracks: If the crack width is less than 0.2 mm, the defect level sub-score is 20 points; if the crack width is greater than or equal to 0.2 mm and less than or equal to 0.5 mm, the defect level sub-score is 50 points; if the crack width is greater than 0.5 mm, the defect level sub-score is 80 points.
[0169] Crack width acquisition method: Perform skeleton extraction algorithm (Zhang-Suen thinning) on the image within the detection box, and measure the skeleton line width with an accuracy of approximately ±0.1mm;
[0170] Leakage / Water Loss: If the leakage / water loss area is less than 50cm², the defect level score is 20 points; if the leakage / water loss area is greater than or equal to 50cm² and less than or equal to 200cm², the defect level score is 40 points; if the leakage / water loss area is greater than 200cm², the defect level score is 75 points.
[0171] Peeling: If the peeling area is less than 100cm², the defect level score is 30 points; if the peeling area is greater than or equal to 100cm², the defect level score is 65 points.
[0172] Hollow areas: If the diameter of the hollow area is less than 20cm, the defect level score is 25 points; if the diameter of the hollow area is greater than or equal to 20cm, the defect level score is 60 points.
[0173] Inconsistent materials: Defect level sub-score is uniformly set to 50 points (appearance cannot be quantified, so a conservative median value is taken).
[0174] Component misalignment: If the component misalignment deviation is less than 5mm, the defect level score is 30 points; if the component misalignment deviation is greater than or equal to 5mm and less than or equal to 20mm, the defect level score is 55 points; if the component misalignment deviation is greater than 20mm, the defect level score is 80 points.
[0175] The method for obtaining the component misalignment deviation value is as follows:
[0176] ① Rapid estimation before BIM positioning: In the input of the multimodal perception and acquisition module, the system has pre-stored the projection templates of the BIM design edge contours of various types of components under the standard view. After the visible light defect detection branch A (defect detection branch) outputs the component edge detection box, the center coordinates of the detection box are compared with the center coordinates of the nearest matching BIM projection contour. The deviation is in pixels and converted to mm through the camera intrinsic parameter matrix and the estimated shooting distance (default 1.5m, which can be corrected by sensor ranging data). The conversion accuracy is about ±2mm (at a shooting distance of 1.5m) and is only used for the real-time scoring of the multimodal perception and acquisition module.
[0177] ② Precise correction of the geographic anchoring module: After the BIM precise positioning is completed through the geographic anchoring module, the deviation value between the actual position of the component and the BIM design position is recalculated using precise three-dimensional coordinates, replacing the estimated value of the multimodal perception acquisition module, and the precise deviation value corrected by the geographic anchoring module (accuracy of about ±3mm) is automatically reported in the module report.
[0178] 2) Thermal imaging score:
[0179] If no thermal imaging data is available for the defect candidate, the thermal imaging score will be 50 points (neutral, no points added or subtracted).
[0180] If thermal imaging data is available for the defect candidates, the normalized value of 0-100 is obtained by mapping the thermal anomaly intensity index.
[0181] Thermal anomaly intensity index = ΔT / σ (i.e., standardized z-score, which measures the degree of deviation of the point from the normal temperature, in units of standard deviation multiples);
[0182] Where ΔT / σ=0, the thermal imaging score is 50 points; when ΔT / σ≥3, the thermal imaging score is 100 points; intermediate values are calculated using linear interpolation; and ΔT / σ is taken as the absolute value.
[0183] ΔT is the difference between the temperature value T of the thermally abnormal pixel and the average temperature μ of the entire frame, i.e., ΔT = T - μ (unit: °C).
[0184] σ is the global standard deviation of all pixel values in the full-frame temperature matrix (calculated independently for each frame, not accumulated across frames, reflecting the degree of dispersion of the temperature distribution in that frame).
[0185] It is understandable that "mapping normalization" indicates that this is a mapping function, and once the two endpoints are determined, linear interpolation is the only reasonable solution:
[0186] When 0 ≤ |ΔT / σ| < 3, the score = 50 + 50 × |ΔT / σ| / 3 (when |ΔT / σ| = 1, the score is approximately 67 points, and when |ΔT / σ| = 2, the score is approximately 83 points).
[0187] 3) Structural risk scoring:
[0188] Structural risk score = visual score × component location coefficient;
[0189] The initial value of the component position coefficient is 1.
[0190] If the component type is a main load-bearing structure: Component location coefficient = Component location coefficient × 1.5;
[0191] If the component type is a secondary structure: Component position coefficient = Component position coefficient × 1.0;
[0192] If the component type is a non-structural decorative layer: Component position coefficient = Component position coefficient × 0.7;
[0193] If the component type cannot be identified, the component position coefficient is set to 1;
[0194] Each IoT sensor is pre-configured with its installation location BIM component number during system initialization (entered by the engineer in the system background, consistent with the local BIM coordinate system); when the sensor exceeds the threshold alarm, the system directly searches whether the component is the main load-bearing structure through the component number in the sensor configuration. If it is, an additional 10 points are added to the structural risk score, and the structural risk score is normalized to 0-100.
[0195] The association between sensors and structures is achieved through configuration during system initialization: During installation, engineers input the corresponding BIM component number (a unique identifier for the component consistent with the local BIM coordinate system) into the system backend for each IoT sensor. When a sensor reading exceeds its preset alarm threshold, the system directly searches for the component's type (primary load-bearing / secondary / non-structural) using the BIM component number in the sensor configuration. If it is a primary load-bearing structure, an additional 10 points are added to the structural risk score. Furthermore, after the geographic anchoring module completes precise positioning, sensor alarm records are also used to determine the distance between the sensor's installation location and the three-dimensional coordinates of the defect (if ≤2m, the sensor alarm is added to the list of evidence sources for the defect).
[0196] 4) Regulatory compliance score:
[0197] Regulatory compliance score = Basic compliance score × Regulatory clause coefficient;
[0198] Compliance base score = (visual score × 0.35 + thermal imaging score × 0.25) / 0.60, normalized to 0-100;
[0199] The relevant clause types for the defect category are queried through the compliance rule base, and the corresponding regulatory clause coefficient is obtained according to the clause type. Among them, when the clause type is a mandatory clause, the regulatory clause coefficient = 1.3; when the clause type is a recommended clause, the regulatory clause coefficient = 0.9; if no relevant clause is found, the regulatory clause coefficient = 1.0; finally, the regulatory compliance score is normalized to 0-100.
[0200] The compliance rule library comes from three sources: ① Industry safety standard rule library – During the system development phase, professional engineers manually converted the quality acceptance clauses of mandatory national standards such as GB 50204 (Code for Acceptance of Construction Quality of Concrete Structures) and GB 50208 (Code for Acceptance of Construction Quality of Underground Waterproofing Engineering) into IF-THEN rules, which are pre-installed in the system and maintained with system version updates; ② Project contract obligation clause library – Automatically extracted from the contract PDF uploaded by the client during project initialization (see Automatic Report Generation Module - (b) explanation); ③ Local building code index – The system automatically matches local standards according to the project's registration location, and relevant clauses are pre-installed in the system. The multimodal perception and acquisition module only performs a quick preliminary search (checking the coefficient of the highest risk clause corresponding to the defect category).
[0201] (d) Exception handling – Degradation mode:
[0202] This embodiment also provides a degradation mode, which stops the visible light defect detection network inference and switches to the degradation rule engine for defect identification when the visible light defect detection network inference times out or the number of defect candidates detected in the same frame exceeds a preset defect number threshold, as shown in Table 1:
[0203] Table 1 Degradation Rules Engine Table
[0204] Defect Category Color feature determination conditions Morphological / texture feature determination conditions Output conclusion Suspected leakage / water damage A sliding window (50×50 pixels, step size 16 pixels) scans the entire image. Within the window, pixels have the following HSV mean values: S-mean < 30 and V-mean < 120 (dark, damp areas). Window centers meeting these conditions are clustered (radius 50 pixels) to generate candidate region bounding rectangles. No specific texture requirements (leakage mainly depends on color characteristics). Generate suspected leakage candidate areas (using cluster bounding rectangles as detection boxes, with an accuracy of ±50 pixels), confidence level = 0.50, and require mandatory manual verification = true. Crack Suspect No specific color requirement Sobel edge detection: A continuous pixel chain with gradient direction consistency > 0.7 and amplitude > 50, and a length > 30 pixels (linear feature); the bounding rectangle of this pixel chain is used as the detection bounding box. Generate suspected crack candidate regions with a confidence level of 0.50, requiring mandatory manual verification = true. suspected of peeling 100×100 pixel window: Brightness variance > 2000 (color disorder) Canny edge detection: Closed contour area > 500 pixels² (sheet-like shedding pattern) Generate suspected peeling regions with a confidence level of 0.50 and require mandatory manual verification (true). Hollow drum suspicion Color characteristics cannot determine hollowness. Abnormally low LGV values (<30) in some areas indicate extremely weak surface texture, suggesting substrate separation. Generate a candidate region for suspected hollow areas (weak confidence), confidence level = 0.50, manual verification is required (true), on-site tapping verification is recommended. Suspicion of inconsistent materials The Barcol distance between the RGB histogram and the reference area of a similar component is >0.4 (significant color difference, suggesting different materials). No specific texture requirements Generate a candidate region for suspected material inconsistency, with a confidence level of 0.50, requiring mandatory manual verification = true. Component misalignment suspected No specific color requirement Geometric edge detection revealed component boundary displacement: the detected component edge deviated from the BIM projection position by more than 50 pixels. Generate candidate regions for suspected component misalignment, with a confidence level of 0.50, and require mandatory manual verification (true). No obvious defects The above color conditions are not met. The above texture / morphology conditions are not met. Skip, do not generate defect records
[0205] Degradation mode is triggered when: ① AI inference times out (VLDN single-frame inference time > 5 seconds); ② the number of defects detected in the same frame > 15 (identified as a dense defect area). Upon triggering, VLDN inference stops and switches to the degradation rule engine.
[0206] The preset defect quantity threshold is 15;
[0207] Degradation mode uses sliding window color / texture feature rules, which has the following limitations compared to VLDN:
[0208] ① In downgrade mode, the unified output confidence level is 0.50 (the default value for medium confidence downgrade).
[0209] ② The downgraded mode outputs the bounding rectangle (accuracy ±50 pixels) of the candidate region of the sliding window clustering result as the pixel coordinates of the detection box;
[0210] ③ All downgrade rule engines perform defect identification and forcibly mark defect candidates with "requires manual review = true";
[0211] ④ The processing mode field in the defect record is marked as "degradation mode".
[0212] The downgrade mode is only used as an emergency backup to ensure that the system can still provide actionable prompts when AI is unavailable, rather than providing accurate detection results;
[0213] After completing the assessment of comprehensive detection confidence and the scoring of comprehensive severity score, the defect candidates are converted into defect records. The component type output from the component type classification branch is used as the preliminary component type and written into the defect record list.
[0214] Finally, the above data is aggregated to obtain a defect detection result package, which is then pushed to the geographic anchoring module and the automatic report generation module.
[0215] The defect detection result package is in JSON format, including frame number and defect record list; the defect record list consists of defect records; each defect record includes: unique defect number, defect category (6 types of visible light anomalies + thermal anomalies = 7 possible values), pixel coordinates of the detection box (VLDN precise regression box, or sliding window bounding rectangle in degraded mode), comprehensive detection confidence (value after VLDN fusion thermal imaging, or unified value of 0.50 in degraded mode), comprehensive severity score S, severity level, list of evidence sources, mark requiring manual review, and preliminary component type.
[0216] The geographic anchoring module is used to perform precise coordinate mapping or indoor coordinate inference on the defect detection result package based on the coordinate confidence of the preprocessed data frame package and GPS coordinates to generate geographic anchored defect records.
[0217] Project initialization configuration (one-time configuration, a prerequisite for system deployment): ① BIM engineers export lightweight BIM component spatial indexes from the complete BIM model; ② Surveyors calibrate the 7 parameters of the Helmert transform on-site; ③ Register the project's geographical boundary polygons; ④ Pre-calculate the column grid feature vectors for each floor; ⑤ Configure the remedial measures rule base, compliance rule base, project integration configuration file, and IoT sensor BIM component number mapping. The above configurations are completed by the project manager and BIM engineers before project commencement and do not require repeated configuration during operation.
[0218] (a) Precise coordinate mapping – high confidence path (coordinate confidence = high, good outdoor GPS signal):
[0219] For preprocessed data frames with high coordinate confidence, a seven-parameter Helmert coordinate transformation is used to convert WGS84 GPS coordinates to the project's local coordinate system. Combined with IMU attitude data and camera intrinsic matrix, the center pixel coordinates of the detection box of each defect record in the defect record list in the defect detection result package are back-projected in three dimensions to obtain the three-dimensional coordinates of the defect. Then, the k-nearest neighbor (k=3) algorithm is used to search in the BIM component spatial index, and the final assignment (BIM component number / component type / floor number) is determined by combining the component to which the defect belongs. The positioning accuracy is approximately ±0.3m (based on actual measurements of 50 calibration points in 50 projects, with an average error of 0.28m).
[0220] The three-dimensional ray back projection specifically includes: starting from the optical center of the camera, emitting a ray along the direction of the center pixel of the detection frame, calculating all intersection points of the ray with the polygons on the surface of each component in the BIM model, and taking the intersection point closest to the optical center of the camera (the principle of prioritizing the nearest point to avoid misjudging the component behind the foreground component as the defect location) as the three-dimensional coordinates of the defect.
[0221] (b) Indoor coordinate inference – low confidence path (coordinate confidence = low):
[0222] A three-step progressive inference strategy is adopted for preprocessed data frame packets with low coordinate confidence:
[0223] Step 1 – Coarse Coordinates (Accuracy ±2m): Calculate the device's planar coordinates using a trilateration algorithm based on the signal strength of Bluetooth beacons or Wi-Fi hotspots.
[0224] The uses of the equipment plane coordinates include: ① narrowing down the candidate floor range for the second step of floor matching; ② serving as a consistency verification benchmark for the third step PnP results (if the difference between the PnP plane coordinates and the equipment plane coordinates is greater than the accuracy difference threshold, an alarm will be triggered and the process will be rolled back).
[0225] The difference between the PnP plane coordinates and the device plane coordinates is measured by the two-dimensional Euclidean distance between them; the accuracy difference threshold is 5m, which means that the coarse coordinate accuracy is 2.5 times; when the difference between the PnP plane coordinates and the device plane coordinates exceeds 2.5 times the coarse coordinate accuracy, it is judged as abnormal;
[0226] Step 2 – Floor Confirmation: Use VLDN image features (DeepLabV3 semantic segmentation, an existing technology) to extract the pixel positions of visible columns in the photo, generate column grid feature vectors, and perform cosine similarity matching (threshold ≥ 0.8) with the pre-calculated column grid template vectors for each floor in the BIM. If the match is successful, take the floor number with the highest similarity and ≥ 0.8 as the current floor; if the match fails, use OCR to recognize the floor sign number as the floor number.
[0227] Step 3 – Fine Position Correction (Accuracy ±0.8m): Identify known BIM coordinate fixed reference objects visible in the photo (such as axis number signs, embedded steel plates), establish 2D-3D matching point pairs (i.e., pairing of photo pixel coordinates (u,v) with BIM 3D coordinates (X,Y,Z), ≥4 sets required), and use the PnP algorithm (existing technology) to calculate the precise pose of the camera; similarly, obtain the 3D coordinates of the defect through ray back projection, and then search in the BIM component spatial index using the k-nearest neighbor (k=3) algorithm, and combine the component to which the defect's 3D coordinates belong to determine the final attribution (BIM component number / component type / floor number), thus determining the precise component type where the defect is located.
[0228] (c) Generation of GeoJSON tags for defect locations (executed after (a) accurate coordinate mapping and (b) indoor coordinate inference are completed): The three-dimensional coordinates, floor number and component number of each defect are encapsulated into GeoJSON element format to generate a project defect map overlay file. The defect record and location information are merged with the unique defect number as the primary key to form a geographically anchored defect record.
[0229] Finally, a geographic anchored defect record is generated for each defect and pushed to the automatic report generation module. The geographic anchored defect record is in JSON format, and each record contains: a unique defect number, a BIM component number, a floor number, the defect's three-dimensional coordinates, a positioning method marker (precise coordinate mapping / indoor coordinate inference / degradation mode coarse estimation), a positioning accuracy (in meters), and a defect location GeoJSON marker.
[0230] The automatic report generation module is used to automatically fill in the structured report template and automatically cross-check compliance based on the defect detection result package, geographically anchored defect records and project inspection requirements specification documents to generate standardized defect reports. It also triggers quality inspector verification based on the comprehensive detection confidence and automatic compliance cross-check results, and pushes standardized defect reports with an extremely high severity level to the staff.
[0231] The project inspection requirements specification document is pre-configured by the administrator when the project starts, including the report template number, the list of required fields, and the notification rule configuration.
[0232] (a) Automatic filling of structured report templates: The template is loaded according to the report template number, and the report items are automatically filled from the output fields of the multimodal perception acquisition module and the geographic anchoring module, including: ① unique defect number (UUID); ② defect serial number (e.g., 2025-CRK-0042); ③ defect discovery time (from the acquisition timestamp of the multimodal perception acquisition module, which is a separate field from ④ report generation time); ④ report generation time (the time when the automatic report generation module completes); ⑤ location description (calling LLM to convert BIM component attributes into natural language, if LLM is unavailable, it is downgraded to fixed template splicing: "[floor] layer, [component type] [component number], coordinates ([X], [Y], [Z])", and marked "location description to be manually improved" in the report); ⑥ severity level and S value; ⑦ defect category; ⑧ labeled photo (embedded detection box and coordinate watermark); ⑨ thermal imaging comparison image (if any); ⑩ AI detection confidence; ⑪ recommended remedial measures.
[0233] The LLM (Large Language Model) mentioned refers to a general-purpose large language model, which is accessed via cloud APIs (such as the OpenAI GPT series, Anthropic Claude series, etc.) without any specific limitations.
[0234] (b) Automatic cross-checking of compliance: The defect category, floor number, component type, severity level are compared with the three rule bases one by one. Each relevant standard clause is judged to be compliant or non-compliant. The weighted sum is used to obtain a compliance check score (0-100). When the compliance check score is less than 60 points, it is marked as a compliance deficiency, which is forced to be reviewed by the quality inspector and the non-compliant clause number and content are listed in the report.
[0235] Compliance verification score = 100 - Σ(weight of violation clause × severity coefficient of clause);
[0236] Among them, the weight of the violation clause (the basic deduction value for each regulatory clause):
[0237] If the relevant standard clause is a mandatory clause (a clause marked "must be implemented" in the national standard, such as the mandatory clause in GB 50204), then the weight of the non-compliant clause is 20 points per clause;
[0238] If the relevant regulatory clauses are recommended clauses (clauses marked "suitable for implementation"), the weight of each violation clause is 10 points; if the relevant regulatory clauses are general explanatory clauses (informative clauses), the weight of each violation clause is 5 points.
[0239] Severity level of the clause (the severity of the consequences that this type of violation may result in):
[0240] If a relevant clause in the regulations endangers life safety (such as insufficient load-bearing capacity of the main structure), the severity coefficient of the clause is 2.0;
[0241] If the relevant specification clauses may cause structural damage (such as failure of the waterproofing layer), the severity factor of the clause is 1.5;
[0242] If the relevant standard clause is a functional defect (such as the decorative layer not meeting the standard), then the severity coefficient of the clause is 1.
[0243] Both rules are manually annotated by professional engineers during the initialization of the rule base, and are determined based on the relevant provisions of national construction industry standards and historical accident case statistics. System administrators can maintain and adjust them in the background.
[0244] Maximum deduction: The maximum deduction for a single defect shall not exceed 60 points (i.e., the minimum compliance score is 40 points) to prevent extremely low scores due to multiple minor non-compliance items.
[0245] The three rule bases are as follows:
[0246] Industry safety standard rule library: includes IF-THEN rules of GB / T, ISO and other standards (pre-set during system development phase);
[0247] Project Contract Obligations Clause Library: Quality requirement clauses automatically extracted from project contract PDFs;
[0248] Local building code applicability index: automatically matched based on the project's registered location.
[0249] The contract PDF is uploaded by the project owner (construction unit) through the system's backend management interface at the start of the project, as part of the project's documentation. The system automatically processes this during the project initialization configuration phase: first, it uses PDFMiner (existing technology) to extract the text; then, it calls LLM to perform named entity recognition, identifying fields such as clause numbers, quality requirement descriptions, and acceptance criteria, and storing them in a structured format as IF-THEN rules (e.g., IF Inspection Time = Masonry Engineering Acceptance Stage AND Defect Type = Insufficient Mortar Fullness THEN Violation of Contract Clause X Quality Requirements). This rule takes effect after manual review and confirmation by the project manager.
[0250] (c) Quality inspector verification trigger: Defects with a comprehensive confidence level of 0.50~0.74, compliance gaps with a compliance check score of <60, and thermal anomaly candidates will be sent a verification request to the quality inspector's client via push notification.
[0251] The verification interface displays the original photo highlighted with a detection box, the AI classification result and overall confidence level, the recommended severity level, and optional actions (confirm / modify category / modify severity / reject). The verification response time window is 30 minutes; after this timeout, the process will proceed according to the initial AI result and be marked "Pending Processing by Quality Inspector".
[0252] After each operation by the quality inspector, the system packages the following information into a correction sample record and stores it in the correction sample library for incremental learning by the model's continuous learning module: {Original image frame (from the output cache of the multimodal perception acquisition module, limited to samples in normal VLDN inference mode), the correct defect category confirmed by the quality inspector, the severity level confirmed by the quality inspector, the bounding box coordinates corrected by the quality inspector (if the quality inspector modifies the detection box, the corrected value is used; otherwise, the VLDN output value is retained), and the operation type (confirm / modify / reject)}. Note: The identification of thermal anomaly defects relies entirely on the thermal imaging module (multimodal perception acquisition module - (b)) and does not go through VLDN. Therefore, the correction records of thermal anomaly defects are not included in the VLDN incremental training set of the model's continuous learning module (maintained independently by the thermal imaging module).
[0253] (d) Real-time alarm push: For defects with severity level = extremely high risk, within T+2 minutes after the report is generated, a notification will be pushed to the mobile terminals of the project manager, general contractor, and safety supervisor, and pushed to the project management platform via Webhook.
[0254] The final standardized defect report package (JSON+PDF dual format) is generated and pushed to the multi-system synchronous writing module. The standardized defect report includes: a unique report number, a unique defect number, a defect serial number, a defect discovery time (collection timestamp), a report generation time, a location description, a severity level and score, a compliance score, a list of compliance deficiencies, a URL of annotated photos, remedial action suggestions, the quality inspector's review status, and a notification sending time.
[0255] The multi-system synchronous writing module is used to synchronously write the standardized defect report package to multiple systems according to the project integration configuration file to obtain multi-platform synchronous result records.
[0256] The project integration configuration file contains a list of target platforms, interface addresses for each platform, field mapping rules for each platform, and synchronization priority for each platform.
[0257] (a) Multi-platform field mapping and adaptation: Based on the synchronization priority of each platform (the platform with higher priority waits for ACK first in the 2PC pre-submission stage), generate dedicated write request data packets for each platform sequentially from the target platform list (Procore / BIM 360 / self-developed quality inspection system / Excel export / notification service);
[0258] (b) Parallel Atomic Write and Transaction Management: A two-phase commit protocol (2PC, which is an existing technology in the field of distributed systems, and the innovation of this application lies in its adaptation to heterogeneous building management platforms) is adopted. Since platforms such as Procore and BIM 360 do not provide native pre-commit interfaces, this application designs the following adaptation scheme: In the Prepare phase, a "draft" status record is created on the target platform and waits for successful write confirmation (10-second timeout is regarded as pre-commit ACK); in the Commit phase, the draft record status is updated to official release; when the Commit fails, the compensation operation calls the platform's delete interface to delete the draft or mark it as "invalid".
[0259] (c) Continuous Status Tracking: Establish a defect lifecycle state machine (Pending → Assigned → In Process → Resolved → Closed). Two-way mapping of native states for each target platform: Procore's Open → Pending, In Review → In Process, Closed → Closed; BIM 360's Active → Pending, Work In Progress → In Process, Closed → Closed. Any platform state change triggers full platform state synchronization via a Webhook callback.
[0260] (d) Exception handling: After the API fails 3 times consecutively (exponential backoff retries: 2s / 4s / 8s), it is placed in the persistent retry queue and automatically resumed after the platform recovers. In offline scenarios (on-site network interruption), the mobile device will cache the results of the multimodal perception acquisition module-4 locally and automatically upload them to the edge server to resume the multi-system synchronous writing module after the connection is restored.
[0261] The final result is a multi-platform synchronization record (JSON format), including the write status of each platform, the overall synchronization status (all successful / partially successful / all failed), and audit log references.
[0262] The model continuous learning module is used to construct an incremental training set based on the corrected sample records generated by the quality inspector's operations, and to incrementally train and update the visible light defect detection network (VLDN).
[0263] This module describes how VLDN continuously evolves by utilizing data corrections from quality inspectors. It runs in the cloud backend and does not affect the real-time processing flow of the multimodal perception and acquisition module-5.
[0264] When the cumulative number of corrected sample records (excluding corrected records of thermal anomaly defects) generated by the automatic report generation module - (c) quality inspector operation reaches ≥50 (and covers ≥3 visible light defect categories), the VLDN incremental learning process is automatically triggered. The counter is reset to zero after each trigger, and accumulation resumes. If the cumulative number of samples remains below 50 for an extended period (more than 30 days), a forced trigger will be implemented based on the current cumulative sample count.
[0265] (a) Incremental training set construction: Extract ≥50 correction records (excluding thermal anomalies) from the correction sample library and pair them with original image frames (from the output buffer of the multimodal perception acquisition module) + correction labels confirmed by the quality inspector ({defect category, bounding box coordinates, severity level}, from the automatic report generation module - (c) correction sample records). Mix the initial training set data and incremental correction data in a ratio of 3:1 (the initial training set data is the original labeled training set used in the system development phase, which remains fixed, and the 3:1 ratio ensures that the new samples do not overwhelmingly cover historical knowledge) to construct this incremental training set;
[0266] (b) Incremental Learning Training: Using the incremental training set constructed in step (a) as training input, VLDN is trained in the cloud background using the Elastic Weight Consolidation (EWC, an existing technology) method. Based on the original model parameters, the EWC regularization term limits the extent of modification to important parameters of the old task, enabling the model to retain its ability to identify historical defect types while learning new samples. Training is performed in the cloud background (for samples ≥50, the training time is approximately 10-30 minutes per session, without affecting real-time inference on the edge server.
[0267] (c) Performance Evaluation and Release Decision: The new VLDN will be evaluated on a fixed validation set (100 labeled images covering 6 types of visible light defects (cracks / leakage / peeling / hollowing / material inconsistency / component misalignment), excluding thermal anomalies, fixed at project start and not updated with incremental training): ① Overall F1 score ≥ old VLDN; ② Recall rate for each category not lower than old VLDN - 2%; ③ Inference speed (single frame inference time on edge servers) not exceeding old VLDN + 20%. The new model will only be released if all three conditions are met; otherwise, it will be discarded and the development team will be alerted.
[0268] (d) Blue-green deployment: The new VLDN is pushed to each online edge server after evaluation; the old VLDN is retained for 7 days as a rollback backup, and if anomalies are found within 72 hours (manual review rate increases significantly >10%), it will be automatically rolled back.
[0269] The final updated VLDN version (including version number, update time, number of training samples, and values of each metric) is deployed to all online edge servers, forming a data flywheel closed loop of 'quality inspector error correction → incremental training → VLDN update → more accurate detection'.
[0270] The construction defect document generation system based on multimodal perception and AI collaboration provided in this embodiment has the following advantages:
[0271] 1) Eliminate duplicate data entry across multiple platforms; enable automatic synchronization across multiple systems in a single data collection:
[0272] Documentation time has been reduced from 30-90 minutes to ≤5 minutes, and cross-platform consistency is guaranteed by two-phase commit (2PC) transactions, with an inconsistency rate approaching 0%. The core innovation lies in the design of a draft state mapping adaptation layer for heterogeneous platforms such as Procore / BIM360, achieving cross-platform transaction consistency without a native pre-commit interface.
[0273] 2) Multimodal fusion recognition reduces defect omission rate:
[0274] By superimposing and fusing the IoU space of VLDN visible light detection and thermal imaging 3σ anomaly detection (confidence +0.15 when overlap rate ≥50%), the recall rate of hidden leakage was increased from 52% to 87%, and the overall omission rate was reduced from 15%-25% to about 5%. The key innovation lies in the collaborative design that solves three technical problems: cross-modal coordinate system alignment, time synchronization, and confidence fusion.
[0275] 3) Automated geographic anchoring enables precise attribution of BIM components:
[0276] Employing Helmert coordinate transformation, k-nearest neighbor lookup, and ray back projection, the accuracy reaches ±0.3m when GPS is working effectively; when GPS fails, a three-step process—coarse positioning via Bluetooth, column grid and floor matching, and PnP component correction—achieves an accuracy of ±0.8m. This significantly improves positional accuracy from ±5-10m, and reduces manual time spent on photo annotation to near zero. The core innovation lies in combining robot vision PnP technology with BIM component references for indoor positioning on construction sites.
[0277] 4) Real-time hierarchical alarm compression of extremely high-risk response window:
[0278] When extremely high-risk defects are determined in real time using a four-dimensional scoring formula, multi-channel alarms are triggered within T+2 minutes after the report is generated, compressing the response window for extremely high-risk defects from several hours to several days to ≤5 minutes. The core innovation lies in incorporating the mandatory level of regulations and the risk weight of component location into the real-time scoring, breaking through the industry's conventional thinking that "appearance equals severity."
[0279] 5) Compliance verification moved to the document generation stage: Through automatic comparison using three databases—security standards, contractual obligations, and local regulations—a compliance score is output within T+5 minutes of defect discovery, and a mandatory review is triggered if the score is below 60. This significantly advances the discovery of compliance omissions from the audit stage. The core innovation lies in strongly coupling the two independent workflows of compliance verification and defect recording, and automatically extracting the obligation clauses from the contract PDF and structuring them into IF-THEN rules.
[0280] The construction defect document generation system provided in this embodiment, based on multimodal perception and AI collaboration, eliminates duplicate data entry across multiple platforms through end-to-end automated writing, significantly reduces defect omission rates through VLDN and thermal imaging dual-modal fusion, achieves precise BIM component-level assignment at ±0.3m through Helmert transformation and PnP progressive positioning, compresses the response window for extremely high-risk defects to within 5 minutes through four-dimensional real-time scoring, and moves the discovery of omissions from the audit stage to T+5 minutes after defect discovery through joint compliance verification of three databases. Overall, it realizes a systematic upgrade of building quality inspection from "manual decentralized data entry and passive post-event rectification" to "automatic precise positioning and real-time proactive early warning," completely eliminating manual cross-system duplicate data entry and manual photo processing, greatly improving data consistency, defect traceability, and document response timeliness, and freeing quality inspectors from tedious tasks, allowing them to truly return to the core work of quality supervision.
[0281] Example 2
[0282] refer to Figure 2 This embodiment provides a method for generating construction defect documents based on multimodal perception and AI collaboration, including the following steps:
[0283] S1. Collect raw data from various types of sensors at the construction site and preprocess it to obtain preprocessed data frame packets;
[0284] S2. Perform visible light defect detection and thermal imaging-assisted identification on the preprocessed data frame packet, outputting the defect category, initial confidence level, and thermal anomaly area of each defect candidate. Calculate the comprehensive detection confidence level based on the defect category, initial confidence level, and thermal anomaly area of each defect candidate. Then, calculate the comprehensive severity score of each defect candidate based on the comprehensive detection confidence level, classify the severity level, construct defect records, write them into the defect record list, and generate a defect detection result package.
[0285] S3. Based on the coordinate confidence level and GPS coordinates of the preprocessed data frame packet, perform precise coordinate mapping or indoor coordinate inference on the defect detection result packet to generate a geographic anchored defect record for each defect.
[0286] S4. Based on the defect detection result package, geographically anchored defect records, and project inspection requirements and specifications, a standardized defect report is generated through automatic filling of structured report templates and automatic cross-checking of compliance. The quality inspector is triggered to verify the report based on the comprehensive detection confidence level and the results of automatic cross-checking of compliance. The standardized defect report with the severity level of "extremely high risk" is pushed to the staff.
[0287] S5. Based on the project integration configuration file, the standardized defect report package is synchronously written to multiple systems to obtain multi-platform synchronization result records;
[0288] S6. Based on the corrected sample records generated by the quality inspector's operation, construct an incremental training set to incrementally learn and train the visible light defect detection network and update it.
[0289] Example 3
[0290] 1) Prototype system verification:
[0291] This embodiment developed a proof-of-concept prototype based on the six-layer architecture of Embodiments 1 and 2, validating the end-to-end process from multimodal data acquisition to multi-platform writing in three building types: residential, commercial, and industrial. The average time for the entire process was 4.2 minutes, meeting the design target of ≤5 minutes.
[0292] 2) Comparative experiment on VLDN multimodal defect identification:
[0293] On a test set of 486 annotated images (from 12 projects, with defect annotations independently done by 2 quality control engineers, κ=0.87), covering 4 main types of visible light defects (cracks / leakage / peeling / hollowing, with more than 50 images for each):
[0294] Overall defect detection F1 score: 0.87 vs 0.72 (single-modal, +20.8%).
[0295] Hidden leakage recall rate: 87% vs 52% (+35%);
[0296] Empty drum recall rate: 83% vs 45% (+38%);
[0297] Minor cracks (0.2-0.5mm) recall rate (8×8 anchor frame vs 32×32 standard): 74% vs 31% (+43%)
[0298] Note: Inconsistent materials and misaligned components were not included in this comparison due to a sample size of less than 50 samples during the testing period; these will be added later.
[0299] 3) Comparison of time spent documenting a single defect:
[0300] Manual multi-platform data entry: average 47.3 minutes (±12.6 minutes);
[0301] The automation method of this invention takes an average of 4.1 minutes (±0.8 minutes), saving 91.3%.
[0302] 4) Extremely high-risk alarm response delay test:
[0303] 30 simulated tests: average latency 3.8 minutes, P90 latency 4.7 minutes (i.e. 90% of test cases had a latency of less than 4.7 minutes), maximum latency 5.2 minutes, all meeting the target of ≤5 minutes.
[0304] 5) Verification of geographic anchoring accuracy:
[0305] In 10 construction projects with actual BIM models, the positioning of 50 calibration points with known precise coordinates was verified:
[0306] High confidence path (outdoor GPS available): average positioning error 0.28m (standard deviation 0.07m), meeting the design target of ±0.3m;
[0307] Low confidence path (indoor three-step inference): average positioning error 0.71m (standard deviation 0.18m), meeting the design target of ±0.8m;
[0308] In extreme scenarios (no Bluetooth beacon + no floor markers): the system automatically downgrades to coarse coordinates as a baseline, with an average error of 4.2m, and correctly marks it as "low-precision positioning".
[0309] 6) Multi-system synchronous write module multi-platform synchronous verification:
[0310] In a normal scenario of 100 write tests: the transaction success rate was 100%, and the average write completion time was 2.3 seconds;
[0311] 50 tests in a single-platform failure scenario: the success rate of compensation transactions was 98%, and there were 0 cross-platform data inconsistency events;
[0312] After a 30-minute network outage, all 12 cached records were successfully synchronized within 3 minutes.
[0313] 7) Explanation of experimental data
[0314] ① 486 labeled images from 12 building projects (4 residential / 4 commercial / 4 industrial), κ=0.87; ② The historical defect dataset of 50 building projects is from our own engineering projects, containing 8,432 records (2018-2024), with 38% for residential, 35% for commercial, and 27% for industrial. The defect category distribution is as follows: cracks 31% / leakage 24% / peeling 18% / hollow areas 15% / others 12%; ③ The test set of 486 images covers 4 main types of defects (>50 images for each). Material inconsistency and component misalignment will be added later.
[0315] This specification is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this specification. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create a machine for implementing the flowchart illustrations and / or block diagrams. Figure 1 A process, multiple processes, and / or boxes Figure 1 Devices that specify the functions in one or more boxes.
[0316] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0317] The parts of this invention not described in detail are prior art. It will be apparent to those skilled in the art that this invention is not limited to the details of the above exemplary embodiments, and that the invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the invention. Therefore, the embodiments should be regarded as exemplary and non-limiting in all respects, and are intended to encompass all changes falling within the meaning and scope of equivalents within this invention.
Claims
1. A construction defect documentation system based on multi-modal perception and AI collaboration, characterized in that, include: The multimodal sensing and acquisition module is used to collect raw data from various types of sensors at the construction site and preprocess it to obtain preprocessed data frame packets. The defect identification and classification module is used to perform visible light defect detection and thermal imaging-assisted identification on the preprocessed data frame packet, outputting the defect category, initial confidence level, and thermal anomaly area of each defect candidate. Then, based on the defect category, initial confidence level, and thermal anomaly area of each defect candidate, it calculates the comprehensive detection confidence level and severity score, classifies the severity level, constructs defect records, writes them into the defect record list, and generates a defect detection result package. The geographic anchoring module is used to perform precise coordinate mapping or indoor coordinate inference on the defect detection result package based on the coordinate confidence level of the preprocessed data frame package and GPS coordinates to generate a geographic anchoring defect record for each defect. The automatic report generation module is used to automatically fill in the structured report template and automatically cross-check compliance based on the defect detection result package, geographically anchored defect records and project inspection requirements specification documents to generate standardized defect reports. It also triggers quality inspector verification based on the comprehensive detection confidence and automatic compliance cross-check results, and pushes standardized defect reports with an extremely high severity level to the staff. The multi-system synchronous writing module is used to synchronously write standardized defect report packages to multiple systems according to the project integration configuration file to obtain multi-platform synchronous result records.
2. The system of claim 1, wherein, The system also includes: The model continuous learning module is used to construct an incremental training set based on the corrected sample records generated by the quality inspector's operations, and to incrementally train and update the visible light defect detection network.
3. The system of claim 1, wherein, The raw data from the various types of sensors in the multimodal sensing and acquisition module specifically includes visible light image streams, device attitude data, thermal imaging temperature matrix, sensor reading data, and UAV data packets. The visible light image stream originates from a mobile device camera or a fixed camera, including EXIF metadata: GPS coordinates, acquisition timestamp, and device number; the device attitude data originates from the mobile device camera's built-in IMU, including pitch angle, yaw angle, and roll angle; the thermal imaging temperature matrix originates from an IoT infrared thermal imager installed on-site, including a two-dimensional floating-point temperature array and acquisition timestamp; the sensor reading data originates from various IoT sensors deployed on-site, including sensor number, BIM component number of the installation location, installation location coordinates, acquisition timestamp, measurement type, measurement value, measurement unit, and alarm threshold; the UAV data packet originates from image streams with geographic coordinate markers, flight trajectory logs, and PLY format point cloud data collected by the UAV. The preprocessing specifically includes: (a) Timestamp alignment and multimodal data fusion: Based on the acquisition timestamp of each frame of visible light image stream, the thermal imaging temperature matrix and sensor reading data within the same time window are time-aligned, and nearest neighbor interpolation is used to handle the problem of inconsistent sampling rates of various devices; For each aligned sensor reading, its measured value is compared with the alarm threshold in the sensor configuration. If it exceeds the alarm threshold, an over-threshold alarm flag = TRUE is added; otherwise, the over-threshold alarm flag = FALSE is added by default. (b) Image quality pre-screening and enhancement: The Laplacian gradient variance is calculated as the image quality score for each frame of visible light image; if the image quality score is less than the first quality score threshold, CLAHE enhancement and bicubic interpolation super-resolution reconstruction are performed on the visible light image of that frame to update the visible light image, and then the image quality score of the visible light image is recalculated. If the image quality score is still less than the second quality score threshold, the "request re-acquisition" event is triggered to re-acquisition. (c) GPS coordinate reliability verification: Step 1: Check if the GPS field exists in the EXIF metadata of each visible light image frame: If the GPS field is missing, directly mark the coordinate confidence as low and skip the second step; Step 2: Perform a spatial inclusion test between the GPS coordinates in the EXIF metadata and the geographic boundary polygon of the construction project. If the coordinates are within the boundary, mark them as having high confidence; otherwise, mark them as having low confidence. Finally, the preprocessed data frame packet corresponding to each frame of the visible light image stream is obtained; the preprocessed data frame packet includes: frame number, visible light image, thermal imaging temperature matrix, sensor reading data, GPS coordinates, coordinate confidence, image quality score, acquisition timestamp, device attitude data and device number.
4. The system of claim 3, wherein, The defect identification and classification module detects the visible light image in the preprocessed data frame packet through the visible light defect detection network, and outputs the defect category, detection box, initial detection confidence and component type of the defect candidates in the visible light image; The visible light defect detection network is based on Faster R-CNN architecture, including a backbone network, feature extraction layer, defect detection branch and component type classification branch; The backbone network is based on ResNet-50 and is used to extract multi-scale feature maps of images; The feature extraction layer employs a region proposal network, which slides across the multi-scale feature map using anchor frames to predict the probability of each anchor frame containing a defect and its precise coordinate offset, thereby generating candidate detection regions. The defect detection branch classifies and outputs the defect category, detection box, and initial detection confidence for each candidate detection region. The defect categories include cracks, leaks, peeling, hollow areas, material inconsistencies, and component misalignment; The component type classification branch and the defect detection branch share the feature extraction layer and output the component types of visible building components in the image in parallel; the component types include main load-bearing structures, secondary structures and non-structural decorative layers.
5. The system according to claim 4, characterized in that, The thermal imaging-assisted identification of the defect identification and classification module specifically includes: detecting temperature anomaly regions in the thermal imaging temperature matrix of the preprocessed data frame packet using the 3σ statistical principle, and marking continuous pixel regions that exceed the mean μ ± 3 times the standard deviation σ as thermal anomaly regions; the standard deviation σ and the mean μ are calculated independently based on all pixel values in a single frame thermal imaging temperature matrix. If the spatial overlap rate between the thermal anomaly area and the detection frame of the defect candidate is greater than or equal to 50%, it is determined to be a dual-modal confirmation. The defect category of the defect candidate remains unchanged. The comprehensive confidence of the defect candidate is calculated. Comprehensive confidence = min(1.0, initial confidence + 0.15). If visible light defect detection fails to detect defect candidates, but thermal imaging-assisted identification detects the presence of thermal anomaly areas, additional thermal anomaly defect candidates are generated, their overall confidence level is set to 0.55, and they are marked as requiring quality inspector confirmation.
6. The system according to claim 5, characterized in that, The process of calculating a comprehensive severity score for each defect candidate based on the overall detection confidence level, constructing a defect record, writing it into the defect record list, and generating a defect detection result package specifically includes: The severity score S of defect candidates with a comprehensive confidence level greater than 0.5 is calculated according to the following formula: S = A1×Visual Score + A2×Thermal Imaging Score + A3×Structural Risk Score + A4×Regulatory Compliance Score; Where A1 is the visual scoring weight, A2 is the thermal imaging scoring weight, A3 is the structural risk scoring weight, and A4 is the regulatory compliance scoring weight, A1+A2+A3+A4=1; Then, the severity level of each defect candidate is classified according to the comprehensive severity score S: If S is greater than or equal to 80, the severity level is extremely high risk; If S is greater than or equal to 60 points but less than 80 points, the severity level is high risk; If S is greater than or equal to 40 points but less than 60 points, the severity level is medium risk; If S is less than 40, the severity level is low risk; After completing the comprehensive detection confidence assessment and severity comprehensive score scoring, the defect candidates are converted into defect records. The component types output by the component type classification branch are used as preliminary component types and written into the defect record list, finally obtaining the defect detection result package. The defect detection result package includes frame number and defect record list. Each defect record includes a unique defect number, defect category, pixel coordinates of the detection frame, comprehensive detection confidence, severity comprehensive score, severity level, evidence source list, manual review requirement mark, and preliminary component type.
7. The system according to claim 6, characterized in that, The visual score = area sub-score × 0.5 + defect level sub-score × 0.5; The area sub-score is obtained by converting the pixel area of the detection box of the defect candidate into cm² and then logarithmically normalizing it; The defect level sub-scores are obtained by classifying the defect categories of the defect candidates, specifically including: When the defect category is crack, if the crack width is less than 0.2 mm, the defect level sub-score is 20 points; if the crack width is greater than or equal to 0.2 mm and less than or equal to 0.5 mm, the defect level sub-score is 50 points; if the crack width is greater than 0.5 mm, the defect level sub-score is 80 points. When the defect category is leakage, if the leakage area is less than 50cm², the defect level sub-score is 20 points; if the leakage area is greater than or equal to 50cm² and less than or equal to 200cm², the defect level sub-score is 40 points; if the leakage area is greater than 200cm², the defect level sub-score is 75 points. When the defect category is spalling, if the spalling area is less than 100cm², the defect level sub-score is 30 points; if the spalling area is greater than or equal to 100cm², the defect level sub-score is 65 points. When the defect category is hollow, if the hollow diameter is less than 20cm, the defect level sub-score is 25 points; if the hollow diameter is greater than or equal to 20cm, the defect level sub-score is 60 points. When the defect category is material inconsistency, the defect level sub-score is uniformly set to 50 points. When the defect category is component misalignment, if the component misalignment deviation is less than 5mm, the defect level sub-score is 30 points; if the component misalignment deviation is greater than or equal to 5mm and less than or equal to 20mm, the defect level sub-score is 55 points; if the component misalignment deviation is greater than 20mm, the defect level sub-score is 80 points. If no thermal imaging data is available for the defect candidate, the thermal imaging score will be 50 points. If thermal imaging data is available for the defect candidates, the thermal imaging score is obtained by mapping the normalized value of thermal anomaly intensity index from 0 to 100. The structural risk score = visual score × component location coefficient; The initial value of the component position coefficient is 1. If the component type is a main load-bearing structure: Component location coefficient = Component location coefficient × 1.5; If the component type is a secondary structure: Component position coefficient = Component position coefficient × 1.0; If the component type is a non-structural decorative layer: Component position coefficient = Component position coefficient × 0.7; The regulatory compliance score is calculated as: basic compliance score × regulatory clause coefficient. Compliance base score = (visual score × 0.35 + thermal imaging score × 0.25) / 0.60, normalized to 0-100 points; Specifically, when the clause type is mandatory, the regulatory clause coefficient is 1.3; when the clause type is recommended, the regulatory clause coefficient is 0.9; and if no relevant clause is found, the regulatory clause coefficient is 1.
0.
8. The system according to claim 7, characterized in that, The geographic anchoring module specifically includes: The precise coordinate mapping specifically involves: using a seven-parameter Helmert coordinate transformation to convert the WGS84 GPS coordinates to the project's local coordinate system for preprocessed data frames with high coordinate confidence; combining equipment attitude data and camera intrinsic parameter matrices; performing three-dimensional ray back projection on the center pixel coordinates of the detection box of each defect record in the defect record list of the defect detection result package to obtain the three-dimensional coordinates of the defect; then searching in the BIM component spatial index using the k-nearest neighbor algorithm; and combining the BIM component number, component type, and floor number of the component to which the three-dimensional coordinates of the defect belong. The indoor coordinate inference specifically involves employing a three-step progressive inference strategy for preprocessed data frame packets with low coordinate confidence: The first step, coarse coordinates: using the signal strength of Bluetooth beacons or Wi-Fi hotspots, the device's planar coordinates are calculated through a trilateration algorithm; The second step is floor confirmation: VLDN image features are used to extract the pixel positions of visible columns in the photo, generating column grid feature vectors, which are then matched with the pre-calculated column grid template vectors for each floor in the BIM using cosine similarity. If the match is successful, the floor number with the highest similarity and ≥0.8 is taken as the current floor. If the match fails, the floor number is identified by OCR and used as the floor number. The third step is fine-tuning the position: Identify fixed reference objects with known BIM coordinates visible in the photo, establish 2D-3D matching point pairs between the photo pixel coordinates and BIM 3D coordinates, and use the PnP algorithm to calculate the precise pose of the camera; similarly, obtain the 3D coordinates of the defect through ray back projection, and then search in the BIM component spatial index using the k-nearest neighbor algorithm, combined with the BIM component number, component type and floor number of the component to which the 3D coordinates of the defect belong. Each defect's 3D coordinates, floor number, and component number are encapsulated into a GeoJSON element format defect location GeoJSON tag. This generates a project defect map overlay file. The defect record and location information are merged using the defect's unique ID as the primary key to form a geographically anchored defect record. The geographically anchored defect record includes the defect's unique ID, BIM component number, floor number, defect 3D coordinates, positioning method tag, positioning accuracy, and defect location GeoJSON tag.
9. The system according to claim 8, characterized in that, The automatic cross-checking of compliance in the automatic report generation module specifically includes: The defect category, floor number, component type, severity level are compared with the industry safety standard rule library, project contract obligation clause library and local building code applicability index one by one. Each relevant standard clause is judged to be compliant or non-compliant. The weighted sum is used to obtain a compliance verification score. When the compliance verification score is less than 60, it is marked as a non-compliant item, which is forced to enter the quality inspector for review and the non-compliant clause number and content are listed in the report. The compliance check score = 100 - Σ(weight of violation clause × severity coefficient of clause); Specifically, the weighting of the violation clauses includes: if the relevant regulatory clause is a mandatory clause, the weighting of the violation clause is 20 points per clause; if the relevant regulatory clause is a recommended clause, the weighting of the violation clause is 10 points per clause; if the relevant regulatory clause is a general explanatory clause, the weighting of the violation clause is 5 points per clause. The severity coefficient of the clauses specifically includes: if the relevant regulatory clause endangers life safety, the severity coefficient of the clause is 2.0; if the relevant regulatory clause may cause structural damage, the severity coefficient of the clause is 1.5; if the relevant regulatory clause is a functional defect, the severity coefficient of the clause is 1.
10. A method for generating construction defect documents based on multimodal perception and AI collaboration, characterized in that, The construction defect document generation system based on multimodal perception and AI collaboration according to any one of claims 1-9 includes the following steps: S1. Collect raw data from various types of sensors at the construction site and preprocess it to obtain preprocessed data frame packets; S2. Perform visible light defect detection and thermal imaging-assisted identification on the preprocessed data frame packet, outputting the defect category, initial confidence level, and thermal anomaly area of each defect candidate. Then, calculate the comprehensive detection confidence level and severity score based on the defect category, initial confidence level, and thermal anomaly area of each defect candidate, classify the severity level, construct defect records, write them into the defect record list, and generate a defect detection result packet. S3. Based on the coordinate confidence level and GPS coordinates of the preprocessed data frame packet, perform precise coordinate mapping or indoor coordinate inference on the defect detection result packet to generate a geographic anchored defect record for each defect. S4. Based on the defect detection result package, geographically anchored defect records, and project inspection requirements and specifications, a standardized defect report is generated through automatic filling of structured report templates and automatic cross-checking of compliance. The quality inspector is triggered to verify the report based on the comprehensive detection confidence level and the results of automatic cross-checking of compliance. The standardized defect report with the severity level of "extremely high risk" is pushed to the staff. S5. Based on the project integration configuration file, the standardized defect report package is synchronously written to multiple systems to obtain multi-platform synchronization result records.
