Building shear wall disease identification method and system based on digital twinning
By establishing a virtual model in a digital twin system and deploying YOLOv5 and U-Net models, the accuracy and efficiency problems of traditional detection methods have been solved, enabling efficient and accurate identification and visualization of shear wall defects, thus ensuring building safety.
Patent Information
- Application Number
- CN202410062394.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-16
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2044-01-16
Smart Images

Figure CN117876347B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of non-destructive testing technology for building defects, specifically to a method and system for identifying defects in building shear walls based on digital twins. Background Technology
[0002] With rapid economic development and accelerated urbanization, my country's construction industry has experienced rapid growth over the past few decades. Construction projects are becoming increasingly large-scale and complex, with reinforced concrete structures, steel-concrete composite structures, and brick-concrete structures seeing rapid development. However, the lifespan of buildings is finite. For example, the design service life of ordinary residential buildings is only 50 years. With the widespread and prolonged use of concrete structures, the possibility and severity of damage to shear wall structures are increasing, making the health diagnosis and maintenance of shear walls increasingly important and urgent. Hollow walls, water seepage, and cracks are common defects in shear wall structures, posing significant safety hazards to the stability of the building structure and seriously endangering the safety of people inside.
[0003] Traditional methods for detecting shear wall defects often rely on manual inspections. Measuring the dimensions of these defects typically requires experienced inspectors using specialized measuring tools such as tape measures or rangefinders. This approach suffers from low accuracy and significant errors, and different inspectors may yield conflicting results. Furthermore, the building environment can necessitate multiple site visits for measurements, leading to significant time and effort commitments. Current methods and systems for detecting shear wall defects suffer from limitations in achieving both high intelligence and efficiency, and may fail to meet the specific needs of modern buildings. Summary of the Invention
[0004] To address the shortcomings of existing technologies, the purpose of this invention is to provide a method and system for identifying defects in building shear walls based on digital twins.
[0005] In a first aspect, embodiments of this application provide a method for identifying defects in building shear walls based on digital twins, including:
[0006] Step 1: Create a virtual model of the physical building in the digital twin system based on existing architectural models or drawings;
[0007] Step 2: Deploy the trained improved YOLOv5 model and U-Net model into the disease identification module and disease information processing module of the digital twin system, respectively;
[0008] Step 3: Staff collect images of the shear walls of the physical building corresponding to the current virtual building model, and perform the first stage of identification through the YOLOv5 model in the defect identification module to obtain the first stage detection results;
[0009] Step 4: The detection results from the first stage and the original acquired images are processed using the U-Net model mounted in the disease information processing module to obtain detailed information on the shear wall image diseases.
[0010] Optionally, before performing step 1, the method further includes:
[0011] A dataset was created, and an improved YOLOv5 model and a U-Net model were built. The improved YOLOv5 model replaced the original CSPDarknet53 with a FasterNet network as the backbone network, and used an SVM classifier to classify the disease types of shear wall disease samples. The coordinate loss function of the U-Net model was improved and optimized using the EIoU loss function.
[0012] The Adam optimization algorithm was used to train the improved YOLOv5 model and the U-Net model, resulting in well-trained improved YOLOv5 and U-Net models.
[0013] Optionally, the FasterNet backbone network includes: four levels of stages, each stage having a set of FasterNet blocks, with an embedding or merging layer preceding the FasterNet blocks, and the last three layers being used for feature classification;
[0014] Each FasterNet block contains one PConv layer followed by two PWConv layers, with normalization and activation layers placed only after the first PWConv layer.
[0015] Optionally, the EIoU loss function includes: IoU loss, distance loss, and width / height loss, and satisfies the following relationship:
[0016]
[0017] Among them, L EIoU It is EIoU loss, L IoU It is IoU loss, L dis It is a distance loss, L asp It is the aspect ratio loss, IoU represents the intersection-union ratio of the predicted box and the ground truth box, b and b gt Let w and w' represent the center points of the predicted bounding box and the ground truth bounding box, respectively. gt Let h and h represent the widths of the predicted bounding box and the ground truth bounding box, respectively. gtLet represent the heights of the predicted bounding box and the ground truth bounding box, respectively; ρ(*,*) represent the Euclidean distance between the two points; and c represent the diagonal distance between the minimum bounding boxes of the predicted and ground truth bounding boxes. w and C h These represent the width and height of the smallest bounding box of the predicted box and the ground truth box, respectively.
[0018] Optionally, a dataset is created, including:
[0019] Shear wall images were acquired and preprocessed using either on-site high-definition camera photography by staff or by collecting open-source data online. The preprocessing included one or more of the following methods:
[0020] Randomly rotate the shear wall image;
[0021] Translate the shear wall image;
[0022] Apply Gaussian blur to the shear wall image;
[0023] Adjust the brightness of the shear wall image;
[0024] Adjust the grayscale of the shear wall image.
[0025] Optionally, step 3 includes:
[0026] Step 3.1: Staff members use high-definition cameras to collect images of the shear walls at the construction site;
[0027] Step 3.2: Staff members upload the shear wall images collected in Step 3.1 to the database of the digital twin system via the image upload module;
[0028] Step 3.3: Read the shear wall image saved to the database in step 3.2 using the disease identification module;
[0029] Step 3.4: Perform the first stage of recognition on the image read in Step 3.3 using the YOLOv5 model;
[0030] Step 3.5: Upload the first-stage identification results to the database of the digital twin system.
[0031] Optionally, step 4 includes:
[0032] Step 4.1: Read the original images uploaded by the staff and the first-stage recognition results through the disease information processing module;
[0033] Step 4.2: Perform second-stage image segmentation processing on the acquired images using the U-Net semantic segmentation model deployed in the disease information processing module;
[0034] Step 4.3: Upload detailed information on shear wall image defects to the database of the digital twin system through the defect information processing module; wherein, the detailed information on shear wall image defects includes: the length, width or area of the defects in the shear wall.
[0035] Secondly, embodiments of this application provide a building shear wall defect identification system based on digital twins, applying the building shear wall defect identification method based on digital twins as described in any one of the first aspects. The system includes:
[0036] The system comprises a front-end UI module and a back-end image recognition and processing module, which interact with each other via a database.
[0037] The backend image recognition and processing module includes: a backend disease identification module, a backend disease information processing module, and a system database. The backend disease identification module includes: a YOLOv5 model, used for the first stage of identification to obtain the type of shear wall disease; the backend disease information processing module includes: a U-Net model, used for the second stage of identification to obtain detailed information about the existing diseases in the shear wall; the system database is used to store the first stage identification results and the second stage processing results.
[0038] The front-end UI module includes an image upload module and a building information visualization module. The image upload module is used to upload images of shear walls collected by staff to the system database. The building information visualization module is used to display the current virtual model of the building, as well as detailed information on the defects existing in the shear walls of the current building, and to provide guidance on the repair of the defects.
[0039] Optionally, defects in shear walls include: wall hollowing, water seepage, and cracks.
[0040] Optionally, the system database is used to store a shear wall defect information table, the fields of which include: shear wall image path, defect type, defect length, defect width, and defect area.
[0041] Thirdly, embodiments of this application provide a building shear wall defect identification device based on digital twins, comprising: a processor and a memory, wherein the memory stores executable program instructions, and when the processor invokes the program instructions in the memory, the processor is used to:
[0042] Perform the steps of the digital twin-based method for identifying defects in building shear walls as described in any one of the first aspects.
[0043] Fourthly, embodiments of this application provide a computer-readable storage medium for storing a program, which, when executed, implements the steps of the digital twin-based building shear wall defect identification method as described in any one of the first aspects.
[0044] Compared with the prior art, the present invention has the following beneficial effects:
[0045] This application establishes a virtual model of a physical building within a digital twin system based on existing building models or drawings. A trained and improved YOLOv5 model and a U-Net model are deployed into the defect identification module and defect information processing module of the digital twin system, respectively. Staff collect images of the shear walls of the physical building corresponding to the current virtual building model, and perform a first-stage identification using the YOLOv5 model in the defect identification module to obtain the first-stage detection result. The U-Net model in the defect information processing module processes the first-stage detection result and the original collected images to obtain detailed information about the defects in the shear walls. This allows for accurate identification of the types of defects existing in the building's shear walls, ensuring both detection accuracy and efficiency, and visualizing detailed information about the building's shear wall defects, thereby ensuring the safety of the building structure and the people inside. Attached Figure Description
[0046] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are merely embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort. Other features, objects, and advantages of the present invention will become more apparent by reading the following detailed description of non-limiting embodiments with reference to the accompanying drawings:
[0047] Figure 1 A flowchart illustrating the method for identifying building shear wall defects based on digital twins provided in this embodiment of the invention;
[0048] Figure 2 A schematic diagram illustrating the principle of the deep learning recognition model provided in this embodiment of the invention;
[0049] Figure 3 This is a schematic diagram illustrating the principle of the improved YOLOv5 model in the first stage of this invention.
[0050] Figure 4 This is a schematic diagram of the FasterNet backbone network structure in the first-stage improved YOLOv5 model of this invention.
[0051] Figure 5This is a schematic diagram illustrating the principle of the U-Net model in the second stage of an embodiment of the present invention;
[0052] Figure 6 This is a schematic diagram of the overall structure of a building shear wall defect identification system based on digital twins, provided in an embodiment of the present invention. Detailed Implementation
[0053] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0054] It should be noted that when a component is said to be "fixed" to another component, it can be directly on the other component or it can be in a middle component. When a component is said to be "connected" to another component, it can be directly connected to the other component or it may be in a middle component.
[0055] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein in the specification of this application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. The term "and / or" as used herein includes any and all combinations of one or more of the associated listed items.
[0056] The terms “first,” “second,” “third,” “fourth,” etc. (if present) in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a particular order or sequence. It should be understood that such data can be interchanged where appropriate so that embodiments of the invention described herein can be implemented, for example, in orders other than those illustrated or described herein. Furthermore, the terms “comprising” and “having,” and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0057] The technical solutions of the present invention and how they solve the above-mentioned technical problems are described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments.
[0058] The following detailed description of some embodiments of this application is provided in conjunction with the accompanying drawings. Unless otherwise specified, the following embodiments and features can be combined with each other.
[0059] Figure 1 A flowchart of a method for identifying building shear wall defects based on digital twins provided in an embodiment of the present invention is shown below. Figure 1 As shown, the method in this embodiment may include:
[0060] Step 1: Create a virtual model of the physical building in the digital twin system based on the existing architectural model or drawings.
[0061] For example, before performing step 1, the method further includes: creating a dataset and building an improved YOLOv5 model and a U-Net model; wherein, the improved YOLOv5 model uses the FasterNet network to replace the original CSPDarknet53 as the backbone network, and uses an SVM classifier to classify the disease types of shear wall disease samples; the coordinate loss function of the U-Net model is improved and optimized using the EIoU loss function; the improved YOLOv5 model and the U-Net model are trained using the Adam optimization algorithm to obtain the trained improved YOLOv5 model and U-Net model.
[0062] In this embodiment, the FasterNet backbone network includes: four levels of stages, each stage having a set of FasterNet blocks, with an embedding or merging layer in front of the FasterNet blocks, and the last three layers being used for feature classification; each FasterNet block contains a PConv layer followed by two PWConv layers, and a normalization and activation layer is placed only after the first PWConv layer.
[0063] In this embodiment, the EIoU loss function includes: IoU loss, distance loss, and width / height loss, and satisfies the following relationship:
[0064]
[0065] Among them, L EIoU It is EIoU loss, L IoU It is IoU loss, L dis It is a distance loss, L asp It is the aspect ratio loss, IoU represents the intersection-union ratio of the predicted box and the ground truth box, b and b gt Let w and w' represent the center points of the predicted bounding box and the ground truth bounding box, respectively. gt Let h and h represent the widths of the predicted bounding box and the ground truth bounding box, respectively. gtLet represent the heights of the predicted bounding box and the ground truth bounding box, respectively; ρ(*,*) represent the Euclidean distance between the two points; and c represent the diagonal distance between the minimum bounding boxes of the predicted and ground truth bounding boxes. w and C h These represent the width and height of the smallest bounding box of the predicted box and the ground truth box, respectively.
[0066] In this embodiment, shear wall images are acquired and preprocessed by either on-site photography using a high-definition camera or by collecting open-source data online. The preprocessing includes any one or a combination of the following methods:
[0067] Randomly rotate the shear wall image;
[0068] Translate the shear wall image;
[0069] Apply Gaussian blur to the shear wall image;
[0070] Adjust the brightness of the shear wall image;
[0071] Adjust the grayscale of the shear wall image.
[0072] For example, a dataset is created and an optimized YOLOv5 and U-Net convolutional neural network is built for training. In this embodiment, the dataset consists of 1030 images of shear walls with and without defects, collected from on-site photos taken by staff or from open-source data collected online. In this embodiment, the optimized and improved YOLOv5 algorithm uses the FasterNet network as the backbone network. The construction, training, and testing of the U-Net convolutional neural network are all carried out on a server with 16GB of main memory and an AMD R7-6800H CPU. To improve the training efficiency of the network model, an NVIDIA RTX 3060 GPU with 6GB of memory is also configured for acceleration.
[0073] Step 2: Deploy the trained improved YOLOv5 model and U-Net model into the disease identification module and disease information processing module of the digital twin system, respectively.
[0074] In this embodiment, the trained YOLOv5 object detection model can be deployed in the backend disease identification module; and the trained U-Net semantic segmentation model can be deployed in the backend disease information processing module.
[0075] Step 3: Staff collect images of the shear walls of the physical building corresponding to the current virtual building model, and perform the first stage of identification using the YOLOv5 model in the defect identification module to obtain the first stage detection results.
[0076] In this embodiment, staff members collect shear wall images at the construction site using a high-definition camera; the collected shear wall images are uploaded to the database of the digital twin system via an image upload module; the shear wall images saved in step 3.2 are read through the defect identification module; the read images are used to perform the first stage of identification using the YOLOv5 model; and the results of the first stage of identification are uploaded to the database of the digital twin system.
[0077] For example, staff collect images of the shear walls of the physical building corresponding to the current virtual building model, upload the images to the system database through the front-end image upload module of the building virtual system, and perform the first stage of identification through the YOLOv5 target detection model of the back-end defect identification module to obtain the types of defects existing in the shear walls, and save the first stage detection results to the system MySQL database.
[0078] Step 4: The first-stage detection results and the original acquired images are processed using the U-Net model in the disease information processing module to obtain detailed information on shear wall image diseases.
[0079] In this embodiment, the original acquired images uploaded by the staff and the first-stage recognition results are read through the disease information processing module; the acquired images are processed in the second stage using the U-Net semantic segmentation model deployed in the disease information processing module; and the detailed information of the shear wall image disease is uploaded to the database of the digital twin system through the disease information processing module. The detailed information of the shear wall image disease includes the length, width or area of the disease in the shear wall.
[0080] For example, the U-Net semantic segmentation model of the backend disease information processing module of the digital twin system performs second-stage image segmentation on the acquired image and extracts the semantic information after segmentation to obtain detailed information on shear wall image diseases. In this embodiment, the backend disease information processing module reads the original acquired image and the recognition results of the first stage stored in the MySQL database, performs second-stage detection processing on it through the U-Net semantic segmentation model, and evaluates the processing results. If the average accuracy and error loss value meet the requirements, the final processing result is uploaded to the system database.
[0081] In this embodiment, the backend defect information processing module uploads the final detection results to the database of the digital twin system. The backend shear wall defect identification module also uploads the final detection results to the digital twin system database. The system analyzes the final detection results according to relevant building codes, and staff can view the results through the system's front-end UI module, guiding subsequent maintenance work. This invention summarizes and uploads the identification results to the digital twin system, displaying them visually on the front-end UI module. This helps staff comprehensively grasp the overall condition of the inspected building's shear walls, thereby enabling them to develop more reasonable countermeasures for subsequent defect maintenance.
[0082] Figure 2 This is a schematic diagram illustrating the principle of the deep learning recognition model provided in an embodiment of the present invention. (See also...) Figure 2 As shown, the model can be divided into the YOLOv5 object detection model and the U-Net semantic segmentation model. The YOLOv5 object detection model replaces the original CSPDarknet53 with the FasterNet network as the backbone network. It uses the SVM classifier algorithm to perform the first-stage identification on the original acquired images stored in the system database to obtain the type of disease, and then saves the first-stage identification result to the system database. The U-Net semantic segmentation model improves and optimizes the network using the EIoU loss function. It performs the second-stage detection processing on the first-stage identification result in the system database and the original acquired images to obtain detailed disease information. Then, the final processing result is uploaded to the front-end visualization module of the digital twin system for staff to view. This ensures both the speed of detection and greatly improves the accuracy of identification.
[0083] Figure 3 This is a schematic diagram illustrating the principle of the improved YOLOv5 model in the first stage of this embodiment of the invention. Figure 4 This is a schematic diagram of the FasterNet backbone network structure in the first-stage improved YOLOv5 model of this invention, as shown in the embodiment of the invention. Figure 3 and Figure 4 As shown, the original images of the shear wall are first preprocessed by image cropping, image enhancement, and image annotation to create a training set. Then, the improved YOLOv5 target detection model is trained using the training set. If the model's detection accuracy meets the actual requirements, it is used for the identification of defects in building shear walls. If it does not meet the requirements, the model and image preprocessing methods are adjusted, and the model is retrained.
[0084] Figure 5 This is a schematic diagram illustrating the principle of the second stage U-Net model in an embodiment of the present invention, as shown below. Figure 5As shown, the original images of the shear wall are first preprocessed by image cropping, image enhancement, and image annotation to create a training set. Then, the U-Net semantic segmentation model is trained using the training set. If the model's detection accuracy meets the actual requirements, it is used for disease image segmentation. If it does not meet the requirements, the model and image preprocessing methods are adjusted, and the model is retrained.
[0085] In this embodiment, the method first uses the YOLOv5 target detection model in the backend disease identification module to perform preliminary detection on the original acquired images, and then uses the U-Net semantic segmentation model in the backend disease information processing module to perform secondary recognition processing on the images in the second stage. This method can identify a variety of different diseases of shear walls in real time, with higher classification accuracy and lower computational complexity, thus significantly improving the accuracy and efficiency of disease image recognition.
[0086] The method in this embodiment summarizes and uploads the identification and processing results to the digital twin system database. By analyzing the defect information through relevant building codes, the information is displayed on the front-end building information visualization module of the digital twin system. This helps staff to fully grasp the overall condition of the shear walls of the inspected building, thereby enabling them to formulate more reasonable countermeasures for subsequent defect repair work.
[0087] Figure 6 This is a schematic diagram of the overall structure of the digital twin-based building shear wall defect identification system provided in an embodiment of the present invention, as shown below. Figure 6 As shown, the system includes: a front-end UI module and a back-end image recognition and processing module. The front-end UI module and the back-end recognition and processing module interact via a back-end database. The back-end image recognition and processing module includes a back-end defect identification module, a back-end defect information processing module, and a system database. The back-end defect identification module includes a YOLOv5 object detection model for the first stage of identification to determine the type of shear wall defects. The back-end defect information processing module includes a U-Net semantic segmentation model for the second stage of identification to obtain specific information about the defects in the shear walls. The system database stores the results of the first stage of identification and the final processing results of the second stage. The front-end UI module includes an image upload module and a building information visualization module. The image upload module allows staff to upload collected shear wall images to the system database. The building information visualization module displays the current virtual building model and specific information about the defects in the shear walls, the degree of defects, and suggestions for repair.
[0088] For example, as a further improvement to the above solution, the degree of defects can be configured according to management standards, such as the "Code for Acceptance of Construction Engineering Quality" and the "Code for Design of Building Structures," which classify the degree of defects as follows: Load-bearing (shear) wall structures should not have water seepage, cracks, or hollow areas. The standards for the two degrees of defects are shown in Tables 1 and 2 below:
[0089] Table 1. Standards for Cracks in the Code for Design of Building Structures
[0090]
[0091] Table 2. Standards for hollow areas in the "Code for Acceptance of Construction Quality"
[0092]
[0093] As a further improvement to the above solution, the system database includes a building shear wall defect information table. This table includes fields such as shear wall image path, defect type, defect length, defect width, and defect area.
[0094] The system in this embodiment includes a front-end UI module and a back-end image recognition and processing module. The front-end UI module and the back-end recognition and processing module interact via a back-end database. The back-end recognition and processing module includes a back-end defect identification module, a back-end defect information processing module, and a system database. The back-end defect identification module includes a YOLOv5 target detection model for the first stage of identification to determine the type of shear wall defects. The back-end defect information processing module includes a U-Net semantic segmentation model for the second stage of identification to obtain specific information about the defects existing in the shear walls. The system database stores the results of the first stage of identification and the final processing results of the second stage. The front-end UI module includes an image upload module and a building information visualization module. The image upload module is used by staff to upload collected shear wall images to the system database. The building information visualization module displays the current virtual model of the building and specific information about the defects existing in the shear walls of the current building, and provides guidance on the degree of defects and repair. The digital twin building shear wall defect identification system of this invention is intelligent, convenient, and easy to operate. It visualizes detailed information on building shear wall defects and provides maintenance suggestions to staff based on existing defects. It is applicable to various types of engineering inspections, with building shear wall defect identification as the main focus, and has strong versatility.
[0095] It should be noted that those skilled in the art will understand that various aspects of the present invention can be implemented as systems, methods, or program products. Therefore, various aspects of the present invention can be specifically implemented in the following forms: a completely hardware implementation, a completely software implementation (including firmware, microcode, etc.), or a combination of hardware and software implementations, collectively referred to herein as a "circuit," "module," or "platform."
[0096] Furthermore, embodiments of this application also provide a computer-readable storage medium storing computer-executable instructions. When at least one processor of a user device executes these computer-executable instructions, the user device performs the various possible methods described above. The computer-readable medium includes a computer storage medium and a communication medium, wherein the communication medium includes any medium that facilitates the transfer of a computer program from one location to another. The storage medium can be any available medium accessible to a general-purpose or special-purpose computer. An exemplary storage medium is coupled to a processor, enabling the processor to read information from and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and storage medium can reside in an ASIC. Additionally, the ASIC can reside in the user device. Alternatively, the processor and storage medium can exist as discrete components in a communication device.
[0097] This application also provides a program product including a computer program stored in a readable storage medium. At least one processor of the server can read the computer program from the readable storage medium, and the at least one processor executes the computer program to cause the server to implement any of the methods described in the embodiments of the present invention.
[0098] The program product may employ any combination of one or more readable media. A readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (a non-exhaustive list) of readable storage media include: electrical connections having one or more wires, portable disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0099] The specific embodiments of the present invention have been described above. It should be understood that the present invention is not limited to the specific embodiments described above, and those skilled in the art can make various modifications or variations within the scope of the claims, which do not affect the essence of the present invention.
Claims
1. A method for identifying defects in building shear walls based on digital twins, characterized in that, include: Step 1: Create a virtual model of the physical building in the digital twin system based on existing architectural models or drawings; Step 2: Deploy the trained improved YOLOv5 model and U-Net model into the disease identification module and disease information processing module of the digital twin system, respectively; Step 3: Staff collect images of the shear walls of the physical building corresponding to the current virtual building model, and perform the first stage of identification through the YOLOv5 model in the defect identification module to obtain the first stage detection results; Step 4: The detection results and original acquired images from the first stage are processed by the U-Net model in the disease information processing module to obtain detailed information on the disease in the shear wall image; Before performing step 1, the method further includes: A dataset was created, and an improved YOLOv5 model and a U-Net model were built. The improved YOLOv5 model replaced the original CSPDarknet53 with a FasterNet network as the backbone network, and used an SVM classifier to classify the disease types of shear wall disease samples. The coordinate loss function of the U-Net model was improved and optimized using the EIoU loss function. The FasterNet backbone network consisted of four levels, each with a set of FasterNet blocks, preceded by an embedding or merging layer, and the last three layers were used for feature classification. Each FasterNet block contained one PConv layer followed by two PWConv layers, with normalization and activation layers placed only after the first PWConv layer. The Adam optimization algorithm was used to train the improved YOLOv5 model and the U-Net model, resulting in well-trained improved YOLOv5 and U-Net models.
2. The method for identifying building shear wall defects based on digital twins according to claim 1, characterized in that, The EIoU loss function includes: IoU loss, distance loss, and width / height loss, and satisfies the following relationship: , in, It is an EIoU loss. It's an IoU loss. It is a distance loss. It is the aspect ratio loss, and IoU represents the intersection-union ratio between the predicted box and the ground truth box. and These represent the center points of the predicted bounding box and the ground truth bounding box, respectively. and These represent the widths of the predicted bounding box and the ground truth bounding box, respectively. and Let represent the heights of the predicted bounding box and the ground truth bounding box, respectively; ρ(*,*) represent the Euclidean distance between the two points; and c represents the diagonal distance between the minimum bounding boxes of the predicted and ground truth bounding boxes. and These represent the width and height of the minimum bounding boxes of the predicted and ground truth boxes, respectively.
3. The method for identifying building shear wall defects based on digital twins according to claim 1, characterized in that, Creating the dataset includes: Shear wall images were acquired and preprocessed using either on-site high-definition camera photography by staff or by collecting open-source data online. The preprocessing included one or more of the following methods: Randomly rotate the shear wall image; Translate the shear wall image; Apply Gaussian blur to the shear wall image; Adjust the brightness of the shear wall image; Adjust the grayscale of the shear wall image.
4. The method for identifying building shear wall defects based on digital twins according to claim 1, characterized in that, Step 3 includes: Step 3.1: Staff members use high-definition cameras to collect images of the shear walls at the construction site; Step 3.2: Staff members upload the shear wall images collected in Step 3.1 to the database of the digital twin system via the image upload module; Step 3.3: Read the shear wall image saved to the database in step 3.2 using the disease identification module; Step 3.4: Perform the first stage of recognition on the image read in Step 3.3 using the YOLOv5 model; Step 3.5: Upload the first-stage identification results to the database of the digital twin system.
5. The method for identifying building shear wall defects based on digital twins according to claim 1, characterized in that, Step 4 includes: Step 4.1: Read the original images uploaded by the staff and the first-stage recognition results through the disease information processing module; Step 4.2: Perform second-stage image segmentation processing on the acquired images using the U-Net semantic segmentation model deployed in the disease information processing module; Step 4.3: Upload detailed information on shear wall image defects to the database of the digital twin system through the defect information processing module; wherein, the detailed information on shear wall image defects includes: the length, width or area of the defects in the shear wall.
6. A building shear wall defect identification system based on digital twins, characterized in that, The system employs the digital twin-based method for identifying defects in building shear walls as described in any one of claims 1-5, comprising: a front-end UI module and a back-end image recognition and processing module, wherein the front-end UI module and the back-end image recognition and processing module interact with each other via a database, wherein: The backend image recognition and processing module includes: a backend disease identification module, a backend disease information processing module, and a system database. The backend disease identification module includes: a YOLOv5 model, used for the first stage of identification to obtain the type of shear wall disease; the backend disease information processing module includes: a U-Net model, used for the second stage of identification to obtain detailed information about the existing diseases in the shear wall; the system database is used to store the first stage identification results and the second stage processing results. The front-end UI module includes an image upload module and a building information visualization module. The image upload module is used to upload images of shear walls collected by staff to the system database. The building information visualization module is used to display the current virtual model of the building, as well as detailed information on the defects existing in the shear walls of the current building, and to provide guidance on the repair of the defects.
7. The building shear wall defect identification system based on digital twin according to claim 6, characterized in that, Defects of shear walls include: hollow areas, water seepage, and cracks.
8. The building shear wall defect identification system based on digital twin according to claim 6, characterized in that, The system database is used to store shear wall defect information tables. The fields in the shear wall defect information tables include: shear wall image path, defect type, defect length, defect width, and defect area.
Citation Information
Patent Citations
Digital twin-driven man-machine interaction type building apparent disease intelligent inspection method and system
CN116225225A
Fabric defect detection method based on improved YOLOv5 model
CN117372333A
