Method and device for completing missing data of ancient building point cloud

Through the combination of generative adversarial neural network and ancient building knowledge graph, the noise and occlusion problems in the point cloud data completion of ancient buildings are solved, efficient and accurate point cloud data completion is achieved, and the generated data is more in line with the characteristics of ancient buildings. and attributes, improving the accuracy and semantic consistency of completion results.

CN117593224BActive Publication Date: 2024-08-27BEIJING UNIV OF CIVIL ENG & ARCHITECTURE

Patent Information

Application Number
CN202311664268.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-06
Publication Date
2024-08-27
Estimated Expiration
2043-12-06

AI Technical Summary

Technical Problem

Existing point cloud data completion methods cannot accurately restore the complete structure of ancient buildings, especially when dealing with noise and occlusion problems, and missing information cannot be effectively completed.

Method used

The generative adversarial neural network is combined with the ancient architectural knowledge graph, trained through semantic information, and the generator and discriminator networks are constructed. The loss function is used for alternate training to achieve efficient completion of point cloud data.

Benefits of technology

It improves the completeness and semantic consistency of point cloud data. The generated point cloud data is more in line with the characteristics and attributes of ancient buildings, can accurately express the relationship between components and the logic of the building structure, and significantly improves the accuracy and accuracy of the completion results. rationality.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117593224B
    Figure CN117593224B
Patent Text Reader

Abstract

The present invention discloses a method for completing missing data of ancient building point clouds, including: collecting original point cloud data of ancient buildings including complete parts and missing parts, and using them as training sample sets; constructing an ancient building knowledge graph; constructing a generative adversarial neural network including a generator network and a discriminator network; using the semantic information in the ancient building knowledge graph as one of the constraints of the generator network, using the training sample set to train the generative adversarial neural network to obtain an optimal generative adversarial neural network; completing the missing point clouds of ancient buildings by using the optimal generative adversarial neural network; and a device for completing missing data of ancient building point clouds. The method of the present invention has the advantages of being able to efficiently complete the point cloud data of ancient buildings, fill in the missing parts, and make the point cloud data more complete.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of point cloud processing, and more specifically, to a method and device for completing missing data of ancient building point clouds. Background Art

[0002] The digital reconstruction of ancient buildings requires a large amount of point cloud data, but due to noise and occlusion in the acquisition process, there is missing information in the point cloud data. Existing point cloud data completion methods generally restore holes caused by weak texture areas by inferring and analyzing existing areas, or densifying sparse parts based on existing point clouds. However, the above methods mainly focus on geometric point cloud completion, which has limitations for ancient building point cloud completion and cannot accurately restore the complete structure of ancient buildings. Summary of the invention

[0003] An object of the present invention is to provide a method and device for completing missing data of ancient building point cloud, so as to at least solve the above-mentioned problems.

[0004] In order to achieve the purpose and other advantages of the present invention, a method for completing missing data of ancient building point clouds is provided, comprising: collecting original point cloud data of ancient buildings including complete parts and missing parts, and using them as training sample sets; constructing an ancient building knowledge graph; constructing a generative adversarial neural network including a generator network and a discriminator network; using the semantic information in the ancient building knowledge graph as one of the constraints of the generator network, and using the training sample set to train the generative adversarial neural network to obtain an optimal generative adversarial neural network; completing the missing point clouds of ancient buildings through the optimal generative adversarial neural network.

[0005] Preferably, in the method for completing missing data of ancient building point cloud, the semantic information includes component names and relationships between components.

[0006] Preferably, in the method for completing missing data of ancient building point cloud, the loss function of the generative adversarial neural network is:

[0007] L=λ1*L R +λ2*L SM +λ3*L SE +λ1*L A

[0008] Assume that the point cloud input to the generator network is A, the real complete point cloud is B, and the point cloud generated by the generator is G, then,

[0009] L R =Chamfer_Distance(A,G)+Chamfer_Distance(B,G)

[0010] L SM =Smoothness(G)

[0011] L SE =Cross_Entropy(A_semantic,G_semantic)

[0012] Among them, L is the loss function, L R is the reconstruction loss, L SM is the smoothing loss, L SE is the semantic consistency loss, L A To generate adversarial loss, Chamfer_Distance() is the chamfer distance function, Smoothness() is the smoothing function, Cross_Entropy() is the cross entropy function, A_semantic is the semantic information of each component of the input point cloud A, G_semantic is the semantic information of each component of the generated point cloud G, λ1, λ2, λ3, λ4 are weight parameters, λ1+λ2+λ3+λ4=1.

[0013] Preferably, the method for completing missing data of ancient building point cloud adopts an alternating training method when training the generative adversarial neural network, and fixes the parameters of the discriminator network when training the generator network, and updates the parameters of the generator network through a back propagation algorithm according to the loss function; and fixes the parameters of the generator network when training the discriminator network, and updates the parameters of the discriminator network through a back propagation algorithm according to the loss function.

[0014] Preferably, the method for completing missing data of ancient building point clouds, before training the generative adversarial neural network, uses the complete part of the original point cloud data of ancient buildings in the training sample set to perform supervised training on the generator network to optimize the generator network.

[0015] Preferably, the method for completing missing data of ancient building point cloud, before training the generative adversarial neural network, also includes preprocessing the samples in the training sample set, and the preprocessing includes data cleaning, denoising, normalization, point cloud segmentation, feature extraction and adding semantic labels.

[0016] Preferably, the method for completing missing data of ancient building point cloud further comprises rotating, translating and / or scaling the preprocessed samples.

[0017] The present invention also provides a device for completing missing data of ancient building point clouds, comprising: a collection module, which is used to collect original point cloud data of ancient buildings including complete parts and missing parts, and use it as a training sample set; a first construction module, which is used to construct an ancient building knowledge graph; a second construction module, which is used to construct a generative adversarial neural network including a generator network and a discriminator network; a training module, which is used to use the semantic information in the ancient building knowledge graph as one of the constraints of the generator network, and use the training sample set to train the generative adversarial neural network to obtain an optimal generative adversarial neural network; a point cloud completion module, which is used to complete the missing point clouds of ancient buildings through the optimal generative adversarial neural network.

[0018] The present invention also provides a storage medium, in which a computer program is stored. When the computer program is loaded and executed by a processor, the above-mentioned method for completing missing data of the ancient building point cloud is implemented.

[0019] The present invention also provides an electronic device, comprising: a processor and a memory; wherein the memory is used to store a computer program; the processor is used to load and execute the computer program so that the electronic device executes the above-mentioned method for completing missing data of ancient building point cloud.

[0020] The present invention has at least the following beneficial effects:

[0021] First, efficiently complete the point cloud data of ancient buildings: The present invention utilizes the knowledge graph in the field of ancient buildings to enhance the model's ability to infer and complete missing data. It can efficiently complete the point cloud data of ancient buildings, fill in the missing parts, and make the point cloud data more complete.

[0022] Second, it combines generative adversarial neural networks (GANs) and knowledge graph reasoning: The present invention combines GANs and knowledge graph reasoning technology to improve the accuracy and rationality of the completion results, and uses the generation ability of GANs and the semantic information of the knowledge graph to improve the accuracy and semantic consistency of point cloud data completion.

[0023] Third, using data enhancement to increase the number of training samples: Through data enhancement technology, the present invention can generate more training samples, enrich the training sample set, and improve the generalization ability and robustness of the method through optimized data preparation and network design.

[0024] Fourth, the point cloud data and knowledge information are comprehensively considered: the method of the present invention not only relies on the point cloud data itself, but also combines the structural knowledge and semantic information related to the ancient buildings. Through the construction and reasoning of the knowledge graph, the completed point cloud data has more characteristics and attributes of ancient buildings, and can accurately express the mortise and tenon connection relationship between components and the structural logic of the building. That is, compared with the traditional point cloud completion method, the method of the present invention has obvious advantages in maintaining semantic consistency and visual consistency. The traditional method may only focus on the geometric features of the point cloud, which easily leads to the generated point cloud being semantically inconsistent with the original ancient building, and the building components cannot be disassembled, and cannot provide good materials for the design of antique buildings. The method of the present invention solves the above two pain points very well. By introducing semantic information and the corresponding loss function, the semantic consistency of the point cloud can be better maintained, and the generated point cloud is more in line with the specific semantic attributes of the ancient building.

[0025] Fifth, it can be applied to the protection and research of ancient buildings: The present invention provides an effective method for completing point cloud data of ancient buildings, which can be widely used in the fields of protection, research and digital reconstruction of ancient buildings, and is of great significance for the protection of historical and cultural heritage.

[0026] Other advantages, objectives and features of the present invention will be embodied in part through the following description, and in part will be understood by those skilled in the art through study and practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] Figure 1 It is a flow chart of a method for completing missing data of ancient building point cloud according to an embodiment of the present invention;

[0028] Figure 2 It is a structural schematic diagram of a device for completing missing data of ancient building point cloud according to an embodiment of the present invention;

[0029] Figure 3 This is the main view 3D model of the Notre Dame Hall of Jin Temple constructed with missing point clouds;

[0030] Figure 4 This is the main view 3D model of the Our Lady Hall of Jin Temple constructed with the completed point cloud;

[0031] Figure 5 This is the side view 3D model of the Notre Dame Hall of Jin Temple constructed with missing point cloud;

[0032] Figure 6 This is the side-view 3D model of the Our Lady Hall of Jin Temple constructed from the completed point cloud;

[0033] Figure 7 This is a 3D model of the cross-section of the Notre Dame Hall of Jin Temple constructed with missing point clouds;

[0034] Figure 8This is a 3D cross-sectional model of the Our Lady Hall in Jin Temple constructed with completed point cloud. DETAILED DESCRIPTION

[0035] The present invention is further described in detail below in conjunction with embodiments and drawings so that those skilled in the art can implement the invention with reference to the description.

[0036] It should be understood that the terms such as “having”, “including” and “comprising” used herein do not exclude the existence or addition of one or more other elements or combinations thereof.

[0037] It should be noted that the experimental methods described in the following embodiments are conventional methods unless otherwise specified, and the reagents and materials can be obtained from commercial channels unless otherwise specified.

[0038] like Figure 1 As shown, an embodiment of the present invention provides a method for completing missing data of an ancient building point cloud, comprising:

[0039] S1. Collect the original point cloud data of ancient buildings including complete and missing parts, and use them as training sample sets.

[0040] When collecting raw point cloud data, it is necessary to ensure that the data has a certain degree of diversity, such as including point cloud data of ancient buildings of different construction ages and architectural styles, so that the subsequent generator network can learn different types of data.

[0041] Before using the training sample set for training, the samples (point cloud data) in the training sample set need to be preprocessed, including data cleaning, outlier removal, denoising, normalization, point cloud segmentation, feature extraction and adding semantic labels, etc., to improve the quality and consistency of the point cloud data. Among them, data cleaning, outlier removal, denoising, normalization, point cloud segmentation and feature extraction are all performed using existing point cloud processing methods, which will not be repeated here. The addition of semantic labels is manually added based on the segmentation and feature extraction results of the point cloud data.

[0042] Furthermore, since the ancient building point cloud data may have changes in shape and angle, in order to increase the generalization ability of the model, the pre-processed point cloud data is rotated, translated and / or scaled to generate more training samples to expand the training sample set.

[0043] S2. Construct a knowledge graph of ancient architecture.

[0044] Collect the knowledge information related to ancient buildings, such as the structure, style, construction rules, and building materials of ancient buildings, and use existing knowledge graph construction tools, such as RDF (Resource Description Framework) or graph databases, to build an ancient building knowledge graph, abstract these knowledge information into nodes and edges of the knowledge graph, and establish the association relationship between them. Among them, the nodes in the ancient building knowledge graph represent physical components, and the edges represent the connection relationship between components. The semantic information in the knowledge graph mainly consists of two parts: first: the names of each physical component of the building (i.e., the semantic labels manually added in S1), such as the columns include gold columns, corner columns, middle columns, mountain columns, child columns, etc.; second: the connection relationship between components, such as eaves columns-flat beams, sitting buckets-mud road arches, mud road arches-Daohua arches, etc., that is, the semantic information in the knowledge graph corresponds exactly to the points of entities and the edges of relationships in the knowledge graph.

[0045] S3. Construct a generative adversarial neural network consisting of a generator network and a discriminator network.

[0046] Among them, the generator network is used to complete the point cloud data according to the input point cloud sample data, and output the completed point cloud data; the discriminator network is used to determine whether the input point cloud data is real point cloud data or generated point cloud data.

[0047] Specifically, the generator network can adopt the TransE model, and the discriminator network can adopt the bilinear model.

[0048] S4. Use the semantic information in the ancient architecture knowledge graph as one of the constraints of the generator network, and use the training sample set to train the generative adversarial neural network to obtain the optimal generative adversarial neural network, that is, the generative adversarial neural network with added semantic constraints.

[0049] The loss function of the generative adversarial neural network is:

[0050] L=λ1*L R +λ2*L SM +λ3*L SE +λ1*L A

[0051] Assume that the point cloud input to the generator network is A, the real complete point cloud is B, and the point cloud generated by the generator is G, then,

[0052] L R =Chamfer_Distance(A,G)+Chamfer_Distance(B,G)

[0053] L SM=Smoothness(G)

[0054] L SE =Cross_Entropy(A_semantic,G_semantic)

[0055] Among them, L is the loss function, L R is the reconstruction loss, L SM is the smoothing loss, L SE is the semantic consistency loss, L A To generate adversarial loss, Chamfer_Distance() is the chamfer distance function, Smoothness() is the smoothing function, Cross_Entropy() is the cross entropy function, A_semantic is the semantic information of each component of the input point cloud A, G_semantic is the semantic information of each component of the generated point cloud G, λ1, λ2, λ3, λ4 are weight parameters, λ1+λ2+λ3+λ4=1.

[0056] Specifically, the reconstruction loss is used to encourage the generated point cloud to accurately reconstruct the missing parts, and the chamfer distance can be used to calculate the reconstruction loss; the smoothness loss is used to make the generated point cloud have a smooth surface, which can be achieved by calculating the average distance or variance between adjacent points in the generated point cloud, and is only used for cylinders and circular purlins; the semantic consistency loss is used to ensure the consistency of the generated point cloud with the semantic information, by inputting the input point cloud and the generated point cloud into a pre-trained semantic segmentation network respectively, to obtain their semantic information, and then using the cross entropy loss to calculate the consistency between the semantic information of the generated point cloud and the semantic information of the input point cloud; the adversarial loss is used to improve the quality and realism of the generated point cloud, and the generative adversarial network (GAN) framework can be used, in which the generator network and the discriminator network compete with each other, the generator improves the quality of the generated point cloud by minimizing the loss of the discriminator, and the discriminator improves the discrimination ability of the generated point cloud by maximizing the discrimination accuracy.

[0057] The training process of the generative adversarial neural network is as follows: the preprocessed and expanded training sample set is used, and the alternating training method is used to iteratively train the generator and discriminator parameters, so that the generator can generate realistic point cloud data and the discriminator can accurately judge whether it is true or false.

[0058] A. Randomly initialize the parameters of the generator network and the discriminator network;

[0059] B. Use the original point cloud data of the ancient buildings in the training sample set to conduct supervised training on the generator network, and optimize the generator network so that it can generate high-quality point cloud data;

[0060] C. Use the complete point cloud data and the missing point cloud data in the training sample set, as well as the semantic information in the ancient architecture knowledge graph, to train the optimized generator network. During training, fix the parameters of the discriminator network, and update the parameters of the generator network through the back propagation algorithm according to the above loss function;

[0061] D. Use the generator to generate the completed point cloud data, and mix it with the complete part of the real point cloud data in the training sample set as the input of the discriminator network. Train the discriminator network. During training, fix the parameters of the generator network, and update the parameters of the discriminator network through the back propagation algorithm according to the above loss function.

[0062] E. Alternately train the generator network and the discriminator network, perform multiple rounds of iterations and parameter tuning, until the predetermined number of training iterations is reached or the stopping condition is met.

[0063] S5. Complete the missing point cloud of the ancient building through the optimal generative adversarial neural network.

[0064] The original point cloud data of the ancient building with missing parts is used as a test sample and input into the optimal generative adversarial neural network for point cloud completion to obtain the completed point cloud data of the ancient building.

[0065] The missing point cloud data of the Holy Mother Hall of Jinci Temple is completed by using the missing point cloud data completion method of the ancient building. The three-dimensional model constructed by the missing point cloud is as follows: Figure 3 , Figure 5 , Figure 7 As shown in the figure, the 3D model constructed by the completed point cloud is as follows Figure 4 , Figure 6 , Figure 8 As shown. It can be seen that the completion method of the present invention can generate accurate point cloud data that conforms to the characteristics of ancient buildings, providing strong support for the digital modeling, restoration and protection of the Our Lady Hall of Jinci.

[0066] like Figure 2 As shown, the present invention also provides a device for completing missing data of ancient building point clouds, including: a collection module, which is used to collect original point cloud data of ancient buildings including complete parts and missing parts, and use it as a training sample set; a first construction module, which is used to construct an ancient building knowledge graph; a second construction module, which is used to construct a generative adversarial neural network including a generator network and a discriminator network; a training module, which is used to use the semantic information in the ancient building knowledge graph as one of the constraints of the generator network, and use the training sample set to train the generative adversarial neural network to obtain an optimal generative adversarial neural network; a point cloud completion module, which is used to complete the missing point cloud of the ancient building through the optimal generative adversarial neural network.

[0067] The above-mentioned device for completing missing data of ancient building point cloud is obtained based on the same inventive concept as the method for completing missing data of ancient building point cloud, and will not be described in detail here.

[0068] The present invention also provides a storage medium, which includes: ROM, RAM, magnetic disk or optical disk and other media that can store program codes, wherein a computer program is stored. When the computer program is loaded and executed by a processor, all or part of the steps of the above-mentioned method for completing missing data of ancient building point cloud are implemented.

[0069] The present invention also provides an electronic device, which is a device including a processor (CPU / MCU / SOC) and a memory (ROM / RAM), such as a desktop computer, a portable computer, a smart phone, etc. In particular, a computer program is stored in the memory, and when the processor loads and executes the computer program, all or part of the steps of the above-mentioned method for completing missing data of ancient building point clouds are implemented.

[0070] The number of devices and processing scale described here are used to simplify the description of the present invention. The application, modification and variation of the method and device for completing missing data of ancient building point cloud of the present invention are obvious to those skilled in the art.

[0071] Although the embodiments of the present invention have been disclosed as above, they are not limited to the applications listed in the specification and the implementation modes, and they can be fully applied to various fields suitable for the present invention. For those familiar with the art, additional modifications can be easily implemented. Therefore, without departing from the general concept defined by the claims and the scope of equivalents, the present invention is not limited to the specific details and the illustrations shown and described herein.

Claims

1. A method for completing missing data of ancient building point cloud, characterized in that: include: Collect original point cloud data of ancient buildings including complete and missing parts, and use them as training sample sets; Construct a knowledge graph of ancient architecture; Build a generative adversarial neural network consisting of a generator network and a discriminator network; The semantic information in the ancient architecture knowledge graph is used as one of the constraints of the generator network, and the training sample set is used to train the generative adversarial neural network to obtain an optimal generative adversarial neural network; The missing point cloud of the ancient building is completed by using the optimal generative adversarial neural network; The semantic information includes component names and relationships between components; The loss function of the generative adversarial neural network is: L=λ1*L R +λ2*L SM +λ3*L SE +λ1*L A Assume that the point cloud input to the generator network is A, the real complete point cloud is B, and the point cloud generated by the generator is G, then, L R = Chamfer_Distance(A, G) + Chamfer_Distance(B, G) L SM = Smoothness(G) L SE = Cross_Entropy(A_semantic, G_semantic) Among them, L is the loss function, L R is the reconstruction loss, L SM is the smoothing loss, L SE is the semantic consistency loss, L A To generate adversarial loss, Chamfer_Distance() is the chamfer distance function, Smoothness() is the smoothing function, Cross_Entropy() is the cross entropy function, A_semantic is the semantic information of each component of the input point cloud A, G_semantic is the semantic information of each component of the generated point cloud G, λ1, λ2, λ3, λ4 are weight parameters, λ1+λ2+λ3+λ4=1.

2. The method for completing missing data of ancient building point cloud according to claim 1, characterized in that: When training the generative adversarial neural network, an alternating training method is adopted. When training the generator network, the parameters of the discriminator network are fixed, and the parameters of the generator network are updated through a back propagation algorithm according to the loss function. When training the discriminator network, the parameters of the generator network are fixed, and the parameters of the discriminator network are updated through a back propagation algorithm according to the loss function.

3. The method for completing missing data of ancient building point cloud according to claim 2, characterized in that: Before training the generative adversarial neural network, supervised training is performed on the generator network using the original point cloud data of a complete portion of the ancient buildings in the training sample set to optimize the generator network.

4. The method for completing missing data of ancient building point cloud according to claim 1, characterized in that: Before training the generative adversarial neural network, the samples in the training sample set are preprocessed, and the preprocessing includes data cleaning, denoising, normalization, point cloud segmentation, feature extraction and adding semantic labels.

5. The method for completing missing data of ancient building point cloud according to claim 4, characterized in that: The method also includes rotating, translating and / or scaling the preprocessed sample.

6. The missing data completion device for ancient building point cloud is characterized by: include: A collection module is used to collect original point cloud data of ancient buildings including complete parts and missing parts, and use them as training sample sets; The first building module is used to build a knowledge graph of ancient buildings; A second building module is used to build a generative adversarial neural network including a generator network and a discriminator network; A training module, which is used to use the semantic information in the ancient architecture knowledge graph as one of the constraints of the generator network, and use the training sample set to train the generative adversarial neural network to obtain an optimal generative adversarial neural network; A point cloud completion module, which is used to complete the missing point clouds of ancient buildings through the optimal generative adversarial neural network; The semantic information includes component names and relationships between components; The loss function of the generative adversarial neural network is: L=λ1*L R +λ2*L SM +λ3*L SE +λ1*L A Assume that the point cloud input to the generator network is A, the real complete point cloud is B, and the point cloud generated by the generator is G, then, L R = Chamfer_Distance(A, G) + Chamfer_Distance(B, G) L SM = Smoothness(G) L SE = Cross_Entropy(A_semantic, G_semantic) Among them, L is the loss function, L R is the reconstruction loss, L SM is the smoothing loss, L SE is the semantic consistency loss, L A To generate adversarial loss, Chamfer_Distance() is the chamfer distance function, Smoothness() is the smoothing function, Cross_Entropy() is the cross entropy function, A_semantic is the semantic information of each component of the input point cloud A, G_semantic is the semantic information of each component of the generated point cloud G, λ1, λ2, λ3, λ4 are weight parameters, λ1+λ2+λ3+λ4=1.

7. A storage medium having a computer program stored therein, characterized in that: When the computer program is loaded and executed by the processor, the method for completing missing data of the ancient building point cloud as described in any one of claims 1-5 is implemented.

8. An electronic device, characterized in that include: A processor and a memory; wherein the memory is used to store a computer program; the processor is used to load and execute the computer program so that the electronic device executes the method for completing missing data of an ancient building point cloud as described in any one of claims 1-5.

Citation Information

Patent Citations

  • Knowledge complementing method and device for knowledge graph

    CN110147450A

  • Method for generating point cloud completion network and processing of point cloud data

    CN113424220A

  • Generative adversarial network-based point cloud completion method and device

    CN114067075A

  • Multi-level multi-scale point cloud completion method, system and device and storage medium

    CN116152611A

  • False news detection method and device and electronic equipment

    CN116383381A

Cited By

  • Building three-dimensional model completion method

    CN119784927A

  • A method for completing three-dimensional building models

    CN119784927B