Building restoration method and system based on generative model

Through generative models and neural process models, combined with drones and 3D printing technology, the problem of lack of original drawings in building repairs is solved, rapid and accurate repairs of damaged buildings are achieved, and repair efficiency and consistency are improved.

CN118657692AActive Publication Date: 2024-09-17HUAZHONG UNIV OF SCI & TECH
View PDF 9 Cites 0 Cited by

Patent Information

Application Number
CN202410837593.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-26
Publication Date
2024-09-17
Estimated Expiration
2044-06-26

AI Technical Summary

Technical Problem

In the absence of original drawings, existing building repair technology makes it difficult to quickly determine a repair plan, especially for ancient buildings or decorative components with complex patterns. The repair process is complex and relies on customized templates, which is inefficient.

Method used

Using a method based on generative models, by obtaining the overall three-dimensional model of the damaged building, constructing a training set and training the neural process model, using latent space encoder, deterministic encoder and decoder to generate a repair model, realizing the intelligentization of damaged parts of the building Automatically generated, combined with drone and 3D printing technology for repair.

Benefits of technology

It reduces the reliance on original drawings, improves the efficiency and accuracy of the repair process, can effectively handle complex decorative components, ensures the overall consistency and continuity of the repair model and the overall building, and reduces the investment in repair materials and personnel.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118657692A
    Figure CN118657692A
Patent Text Reader

Abstract

The invention belongs to the field of building repair, and particularly discloses a building repair method and system based on a generative model, and the method comprises the steps: obtaining an overall three-dimensional model of a damaged building and a three-dimensional model of a damaged part, the range of the three-dimensional model of the damaged part is larger than that of the damaged part of the building, and the three-dimensional model of the damaged part completely comprises the damaged part of the building; randomly intercepting from the overall three-dimensional model for multiple times to obtain truncation models with a certain volume, carrying out position coding on voxels in each truncation model, randomly intercepting a secondary truncation model with a certain volume on the truncation model, and constructing a training set; training the neural process model based on the training set to obtain a generative model; and based on the three-dimensional model of the damaged part and the generative model, obtaining a repair model of the damaged part of the building to realize repair of the damaged part of the building. According to the method, the problem that building repair depends on an original drawing or a three-dimensional model is solved, the situation that a construction template needs to be redesigned is avoided, and the building repair efficiency is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of building restoration, and more specifically, relates to a building restoration method and system based on a generative model. Background Art

[0002] The building restoration industry covers a wide range of areas, including structural restoration, decorative restoration, leakage restoration, etc. In addition to the wide coverage of the restoration industry, the number of buildings that need restoration will continue to grow over time.

[0003] However, there are still many difficulties and shortcomings in building restoration technology, which hinder the development of the building restoration industry. Current building restoration technology is generally based on comparing existing buildings with complete building design drawings or three-dimensional models, and judging the location and specific shape of damaged parts by the differences. However, the buildings that need to be repaired are often planned, designed and built many years ago. Especially for ancient buildings or decorative components with complex patterns on the surface, it is easy to encounter the problem of loss of original drawings or three-dimensional models during the restoration process, and it is difficult to determine the repair plan. In addition, after re-determining the restoration model and restoration plan, customized templates are still needed to complete the restoration of damaged buildings.

[0004] Therefore, studying how to solve the problem of difficulty in obtaining original drawings of damaged buildings and the complexity of the restoration process is of great significance to promoting the development of the building restoration industry. Summary of the invention

[0005] In view of the above defects or improvement needs of the prior art, the present invention provides a building repair method and system based on a generative model, which aims to achieve rapid repair of damaged buildings in the absence of original drawings.

[0006] To achieve the above object, according to one aspect of the present invention, a building restoration method based on a generative model is proposed, comprising the following steps:

[0007] Model training phase:

[0008] Obtaining an overall three-dimensional model of the damaged building and a three-dimensional model of the damaged part, wherein the scope of the three-dimensional model of the damaged part is larger than the damaged part of the building and completely includes the damaged part of the building;

[0009] A model of a certain volume is randomly cut off multiple times from the overall three-dimensional model to obtain multiple truncated models; for each truncated model, the voxels therein are positionally encoded, and a model of a certain volume is randomly cut off from the truncated model as a secondary truncated model, and the remaining part is a remaining truncated model, thereby constructing a training set;

[0010] The neural process model is trained based on the training set, and the trained neural process model is used as a generative model; the input of the neural process model is the position information and color information of the voxels in the residual truncation model, and the position information of the voxels in the secondary truncation model, and the output is the color information of the voxels in the secondary truncation model;

[0011] Model application phase:

[0012] Pre-constructing a computational model, which is a smallest cuboid that completely contains a three-dimensional model of a damaged part, and encoding the positions of voxels in the computational model;

[0013] The position information and color information of the voxels in the three-dimensional model of the damaged part, as well as the position information of the voxels outside the three-dimensional model of the damaged part in the calculation model are input into the generative model to obtain a repair model of the damaged part of the building, and the damaged part of the building is repaired based on the repair model.

[0014] As further preferred, the neural process model includes a latent space encoder, a deterministic encoder and a decoder, wherein:

[0015] The latent space encoder includes a self-attention layer, which takes the position information and color information of the voxels in the residual truncation model as input and outputs a global latent distribution;

[0016] The deterministic encoder comprises a self-attention layer and a coordinate attention layer, wherein the self-attention layer takes the position information and color information of the voxels in the residual truncation model as input and outputs a latent variable; the coordinate attention layer takes the latent variable, the position information of the voxels in the residual truncation model and the position information of the voxels in the secondary truncation model as input and outputs a global latent variable;

[0017] The decoder comprises a multi-layer perceptron, which takes the position information of the voxels in the quadratic truncation model, the global latent variable and the global latent distribution as input, and outputs the color information of the voxels in the quadratic truncation model.

[0018] As a further preference, the self-attention layers of the latent space encoder and the deterministic encoder both use a multi-head attention mechanism.

[0019] As a further preferred embodiment, for the neural process model, several input modes are pre-constructed, and different input modes use position information and color information of different numbers of voxels as input pairs;

[0020] For the self-attention layer of the latent space encoder, different input methods correspond to different output latent distributions, and all latent distributions are averaged to obtain the global latent distribution;

[0021] For the self-attention layer of the deterministic encoder, different input methods correspond to different output latent variables; then for the coordinate attention layer, the intermediate global latent variables corresponding to the number of latent variables are output, and all the intermediate global latent variables are averaged to obtain the global latent variable.

[0022] As a further preference, the volume of the three-dimensional model of the damaged part is 10 to 20 times the volume of the damaged part of the building.

[0023] As a further preference, the volume of the remaining truncation model is consistent with the volume of the three-dimensional model of the damaged part; and the volume of the secondary truncation model is consistent with the volume of the damaged part of the building.

[0024] As a further preferred method, obtaining the overall three-dimensional model of the damaged building and the three-dimensional model of the damaged part includes the following steps:

[0025] The drone first flew around the entire building to be repaired for several weeks, and then flew around the damaged parts of the building for several weeks. During the flight, the RGB-D camera on the drone collected depth images.

[0026] Based on the acquired depth images, the overall 3D model of the damaged building and the 3D model of the damaged parts are constructed through simultaneous positioning and mapping methods.

[0027] As a further preferred method, repairing damaged parts of a building is implemented based on the repair model, including: obtaining a corresponding physical print model through 3D printing based on the repair model, and installing the physical print model to the damaged part of the building to complete the repair.

[0028] As a further preferred embodiment, ABS material is used to obtain a corresponding physical print model through 3D printing; polyurethane building adhesive is applied to the junction of the physical print model and the damaged part of the building, so that the physical print model is fixedly installed on the damaged part of the building.

[0029] According to another aspect of the present invention, a generative model-based building restoration system is provided, which includes a processor, and the processor is used to execute the above-mentioned generative model-based building restoration method.

[0030] In general, the above technical solution conceived by the present invention has the following technical advantages compared with the prior art:

[0031] 1. The present invention obtains a truncation model and a secondary truncation model based on the overall three-dimensional model of the damaged building, and divides the original three-dimensional spatial information into position information and color information, constructs a training set to train the neural process model, and further realizes the intelligent automatic generation of the repair model; reduces the dependence on the original drawings or three-dimensional models when repairing buildings, and can help repairers determine the repair plan for ancient buildings or decorative components with complex patterns on the surface, which has profound engineering practice significance and broad application prospects.

[0032] 2. The neural process model can infer the local information of the secondary truncation model through the overall information of the residual truncation model, which can perfectly fit the scene of building repair. At the same time, the attention mechanism and the design of global latent variables can make the model pay more attention to global information, and the training set is generated by the model of random truncation of the entire building. The combination of the three can well ensure the global consistency and continuity of the generated damaged part model with the whole.

[0033] 3. For the neural process model, using input pairs of different scales can allow the model to pay attention to the features of different scales in the building, so as to grasp the local details and maintain global consistency.

[0034] 4. After the repair plan is determined, the required repair model can be quickly formed through 3D printing, avoiding the need to redesign the construction template during the repair process, improving the efficiency of building repair, and reducing the investment in repair materials and repair personnel. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1 This is a flow chart of a building restoration method based on a generative model according to an embodiment of the present invention;

[0036] Figure 2 This is a schematic diagram of the structure of a drone according to an embodiment of the present invention;

[0037] Figure 3 Schematic diagram of the neural process model structure of an embodiment of the present invention.

[0038] In all drawings, the same reference numerals are used to denote the same elements or structures, where: 1-UAV, 2-RGB-D camera. DETAILED DESCRIPTION

[0039] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.

[0040] The present invention provides a method for building restoration based on a generative model. Figure 1 As shown, the following steps are included:

[0041] S1. Obtain an overall three-dimensional model of the damaged building and a three-dimensional model of the damaged part.

[0042] Specifically, the scope of the three-dimensional model of the damaged part is larger than the damaged part of the building and completely includes the damaged part of the building. Preferably, the volume of the three-dimensional model of the damaged part is 10 to 20 times the volume of the actual damaged part of the building, and the volume of the actual damaged part of the building is estimated by the repair personnel.

[0043] Further, such as Figure 2 As shown, a three-dimensional model is obtained by using a drone 1 equipped with an RGB-D camera 2 and a NUC11 microcomputer. The NUC11 microcomputer is used to communicate with a ground base station, make mission plans and decisions, and control the drone body to perform the mobile operation. The ground base station communicates with the NUC11 microcomputer of the drone through a Bluetooth module to transmit data.

[0044] Specifically, the drone is started to fly around the entire building for several weeks, and then flies to the damaged part and controls the drone to fly around the damaged part; during the flight, the drone continuously collects depth images of the building through the RGB-D camera, and sends all collected depth images to the ground base station, and then builds a three-dimensional model through the simultaneous localization and mapping (SLAM) method.

[0045] Specifically, the method for determining the overall 3D model and the damaged part 3D model by the SLAM method is the same. Here, taking obtaining the overall 3D model as an example, the following steps are included:

[0046] (1) The UAV flies around the entire building. The ground base station obtains the translation and rotation information between two adjacent frames of images through the color information and depth information of each two frames of depth images received, and uses this to form a visual odometer to estimate the movement of the UAV and obtain the camera pose information;

[0047] (2) The ground base station optimizes the camera pose information by extending the Kalman filter method to achieve local optimization;

[0048] (3) The ground base station uses the bag-of-words model to identify the features of the depth image and determines whether the drones have reached the same location by comparing the similarity of the features. If the drones have reached the same location, the pose information is set to be the same, thereby completing the loop detection, achieving global optimization, and reducing the cumulative error.

[0049] (4) The ground base station constructs an overall three-dimensional model based on the depth image and camera pose information.

[0050] S2. Based on the overall three-dimensional model, multiple truncated models are obtained; for each truncated model, it is divided into a secondary truncated model and a corresponding residual truncated model to construct a training set.

[0051] Specifically, a certain volume of the model is randomly cut off multiple times from the overall three-dimensional model to obtain multiple truncated models; in some embodiments, 50,000 truncated models are obtained;

[0052] Then for each truncated model:

[0053] Taking the center of the truncated model as the origin, position encoding is performed on all voxels contained in the truncated model. Specifically, taking the center of the smallest cuboid that can completely contain the truncated model as the origin, position encoding is performed on all voxels contained in the truncated model, and the color information of the remaining positions in the cuboid is 0.

[0054] A certain volume of the model is randomly cut off from the truncated model to obtain the secondary truncated model, and the remaining part of the truncated model is the residual truncated model.

[0055] Furthermore, the volume of the remaining truncated model is consistent with the volume of the three-dimensional model of the damaged part; the volume of the secondary truncated model is consistent with the volume of the damaged part of the building; that is, the volume of the remaining truncated model is 10 to 20 times the volume of the secondary truncated model.

[0056] S3. Train the multi-scale fusion neural process model based on the training set, and use the trained neural process model as the generative model.

[0057] The input of the neural process model is the position information and color information of all voxels in the residual truncation model and the position information of all voxels in the corresponding secondary truncation model, and the output is the color information of all voxels in the corresponding secondary truncation model.

[0058] Further, such as Figure 3 As shown, the neural process model includes a latent space encoder, a deterministic encoder and a decoder, where:

[0059] The latent space encoder consists of a self-attention layer that takes the position and color information of all voxels in the residual truncation model as input and outputs a global latent distribution.

[0060] The deterministic encoder consists of a self-attention layer and a coordinate attention layer. The self-attention layer takes the position information and color information of voxels in the residual truncation model as input and outputs latent variables. The coordinate attention layer takes the latent variables, the position information of voxels in the residual truncation model and the position information of voxels in the secondary truncation model as input, calculates the coordinate attention, and outputs a global latent variable. Coordinate attention is more suitable for representing spatial features by separating and aggregating channel and spatial information.

[0061] The decoder includes a multi-layer perceptron, which takes the position information of voxels in the quadratic truncation model, global latent variables and global latent distribution as input, and takes the color information of voxels in the quadratic truncation model as output; the position information of voxels refers to the coordinates after position encoding, and the color information of voxels refers to RGB values.

[0062] Furthermore, several input methods are pre-constructed, and different input methods use input pairs of different scales, that is, the position information and color information of different numbers of voxels as input pairs; then for the self-attention layer of the latent space encoder, different input methods correspond to the output of the same number of latent distributions, and then all latent distributions are averaged to obtain the global latent distribution. For the self-attention layer of the deterministic encoder, different input methods correspond to the output of the same number of latent variables; and then for the coordinate attention layer, the corresponding number of intermediate global latent variables is output, and all intermediate global latent variables are averaged to obtain the global latent variable.

[0063] For example, three input methods are used: 1) the position information and color information of a single voxel are used as an input pair to form a series of input pairs; 2) the average position information and average color information of a cube formed by 8 voxels are used as an input pair to form a series of input pairs; 3) the average position information and average color information of a cube formed by 27 voxels are used as an input pair to form a series of input pairs. Since three input methods are used, the self-attention layer of the latent space encoder can obtain three latent distributions, and then the global latent distribution is obtained by averaging; similarly, the self-attention layer of the deterministic encoder can obtain three latent variables, such as Figure 3 shown.

[0064] Furthermore, the self-attention layer of the latent space encoder and the deterministic encoder uses multi-head attention, where the number of heads is m; the number of hidden layers of the decoder's multi-layer perceptron is n, and the number of hidden units is k. Larger n, m, and k can repair structures and decorate more complex buildings. For example, n = 3, m = 5, k = 8, or n = 5, m = 8, k = 11 can be taken.

[0065] S4. Input the three-dimensional model of the damaged part into the generative model to obtain a repair model of the damaged part of the building, and repair the damaged part of the building based on the repair model.

[0066] Specifically, the computational model is set as the smallest cuboid that completely contains the three-dimensional model of the damaged part, and the position of all voxels in the computational model is encoded, and the computational model is divided into two parts: the three-dimensional model of the damaged part and the remaining computational model. The position information and color information of the voxels in the three-dimensional model of the damaged part and the position information of the voxels in the remaining computational model are input into the generative model to obtain the color information of the voxels in the remaining computational model; the voxels with color information of 0 in the remaining computational model are eliminated to obtain the repair model.

[0067] Specifically, after receiving the three-dimensional model of the damaged part, the ground base station infers the repair model of the broken part through the generative model, slices the repair model using the Simplify 3D software, generates the corresponding G-Code file and starts 3D printing; after printing is completed, the adhesive is applied to the junction of the physical print model and the building, and the physical print model is installed to complete the building repair.

[0068] Furthermore, when 3D printing a solid model, the consumables used are ABS materials; and the binder is polyurethane building adhesive.

[0069] It will be easily understood by those skilled in the art that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A building restoration method based on generative model, It is characterized in that The steps include: Model training phase: Obtaining an overall three-dimensional model of the damaged building and a three-dimensional model of the damaged part, wherein the scope of the three-dimensional model of the damaged part is larger than the damaged part of the building and completely includes the damaged part of the building; A model of a certain volume is randomly cut off multiple times from the overall three-dimensional model to obtain multiple truncated models; for each truncated model, the voxels therein are positionally encoded, and a model of a certain volume is randomly cut off from the truncated model as a secondary truncated model, and the remaining part is a remaining truncated model, thereby constructing a training set; The neural process model is trained based on the training set, and the trained neural process model is used as a generative model; the input of the neural process model is the position information and color information of the voxels in the residual truncation model, and the position information of the voxels in the secondary truncation model, and the output is the color information of the voxels in the secondary truncation model; Model application phase: Pre-constructing a computational model, which is a smallest cuboid that completely contains a three-dimensional model of a damaged part, and encoding the positions of voxels in the computational model; The position information and color information of the voxels in the three-dimensional model of the damaged part, as well as the position information of the voxels outside the three-dimensional model of the damaged part in the calculation model are input into the generative model to obtain a repair model of the damaged part of the building, and the damaged part of the building is repaired based on the repair model.

2. The building restoration method based on the generative model as claimed in claim 1, It is characterized in that The neural process model includes a latent space encoder, a deterministic encoder and a decoder, wherein: The latent space encoder includes a self-attention layer, which takes the position information and color information of the voxels in the residual truncation model as input and outputs a global latent distribution; The deterministic encoder comprises a self-attention layer and a coordinate attention layer, wherein the self-attention layer takes the position information and color information of the voxels in the residual truncation model as input and outputs a latent variable; the coordinate attention layer takes the latent variable, the position information of the voxels in the residual truncation model and the position information of the voxels in the secondary truncation model as input and outputs a global latent variable; The decoder comprises a multi-layer perceptron, which takes the position information of the voxels in the quadratic truncation model, the global latent variable and the global latent distribution as input, and outputs the color information of the voxels in the quadratic truncation model.

3. The building restoration method based on the generative model as claimed in claim 2, It is characterized in that The self-attention layers of the latent space encoder and the deterministic encoder both use a multi-head attention mechanism.

4. The building restoration method based on the generative model as claimed in claim 2, It is characterized in that For the neural process model, several input methods are pre-built, and different input methods use the position information and color information of different numbers of voxels as input pairs; For the self-attention layer of the latent space encoder, different input modes correspond to different output latent distributions, and all latent distributions are averaged to obtain the global latent distribution; For the self-attention layer of the deterministic encoder, different input methods correspond to different output latent variables; then for the coordinate attention layer, the intermediate global latent variables corresponding to the number of latent variables are output, and all the intermediate global latent variables are averaged to obtain the global latent variable.

5. The building restoration method based on generative model as claimed in claim 1, It is characterized in that The volume of the three-dimensional model of the damaged part is 10 to 20 times the volume of the damaged part of the building.

6. The building restoration method based on generative model as claimed in claim 5, It is characterized in that The volume of the remaining truncation model is consistent with the volume of the three-dimensional model of the damaged part; the volume of the secondary truncation model is consistent with the volume of the damaged part of the building.

7. The building restoration method based on generative model as claimed in claim 1, It is characterized in that Obtaining the overall 3D model of the damaged building and the 3D model of the damaged part includes the following steps: The drone first flew around the entire building to be repaired for several weeks, and then flew around the damaged parts of the building for several weeks. During the flight, the RGB-D camera on the drone collected depth images. Based on the acquired depth images, the overall 3D model of the damaged building and the 3D model of the damaged parts are constructed through simultaneous positioning and mapping methods.

8. The building restoration method based on a generative model according to any one of claims 1 to 7, It is characterized in that The damaged parts of the building are repaired based on the repair model, including: based on the repair model, a corresponding physical print model is obtained through 3D printing, and the physical print model is installed on the damaged part of the building to complete the repair.

9. The building restoration method based on generative model as claimed in claim 8, It is characterized in that ABS material is used to obtain the corresponding physical printing model through 3D printing; polyurethane building adhesive is applied to the junction of the physical printing model and the damaged part of the building to fix the physical printing model to the damaged part of the building.

10. A building repair system based on generative model, It is characterized in that It comprises a processor, wherein the processor is used to execute the building repair method based on the generative model as described in any one of claims 1-9.

Citation Information

Patent Citations

  • A three-dimensional rebuilding method and device based on a depth camera, an apparatus and a storage medium

    CN108537876A

  • Building cultural relic restoration method based on three-dimensional modeling technology and storage medium

    CN109598782A

  • Model reconstruction method and related device, electronic equipment and storage medium

    CN113706373A

  • Prediction model establishment method and prediction method for residual life of engineering mechanical part

    CN114169091A

  • Large-range indoor space three-dimensional reconstruction method based on multi-local model splicing

    CN114529678A