Urban three-dimensional point cloud change detection method and device based on prior knowledge guidance
By using a prior knowledge-guided approach, and by designing a change mask and a difference attention method based on differences in geometric shape and texture, the problem of insufficient expression of change features and insufficient attention in city-level 3D change detection is solved, and efficient city-level 3D change detection is achieved.
Patent Information
- Application Number
- CN202410201210.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-23
- Publication Date
- 2026-11-20
- Estimated Expiration
- 2044-02-23
AI Technical Summary
Existing 3D point cloud change detection methods suffer from insufficient expression of change features, inadequate attention to change points, and scarcity in large-scale city-level applications, resulting in low detection accuracy and efficiency.
By employing a prior knowledge-guided approach, and by mining the differences in geometric shapes and textures, we design a change mask and a difference attention method for change perception, which enhances the feature encoder's learning of change features and forms a 3D change detection deep learning model.
It improves the performance of change detection, reduces computational complexity, achieves efficient city-level 3D change detection, and enhances the expression and detection efficiency of change features.
Smart Images

Figure CN118608931B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of 3D GIS, specifically relating to a method and device for detecting changes in urban 3D point clouds based on prior knowledge. Background Technology
[0002] 3D change detection is a technique that involves observing the same 3D space multiple times at different times and comparing and analyzing the results to identify differences and changes. With improved accuracy and shorter acquisition cycles, 3D change detection technology has become increasingly widespread and is applied in various fields such as resource monitoring, urban planning, and land management. Point cloud data, due to its simple structure, high accuracy, and ease of acquisition, has become the mainstream data source for 3D change detection. However, differences in internal and external factors at each point cloud sampling point can lead to inconsistent density, occlusion, and missing data, generating a large number of false change samples that confuse the detection of truly changed objects. This poses a significant challenge to 3D change detection technology.
[0003] Currently, methods for 3D point cloud change detection are mainly divided into two categories: traditional methods and deep learning methods. Traditional methods mainly include algebra-based methods (height difference, distance difference), classification-based methods (random forest, support vector machine), and other methods (Markov random field, octree). Most traditional methods rely on manually constructed features, which cannot fully represent point cloud objects and have poor generalization and portability. This leads to a decrease in the accuracy of change detection in different scenarios.
[0004] Deep learning methods possess excellent learning and generalization capabilities, enabling them to automatically extract multi-scale abstract features from point clouds in different scenes. Therefore, they are widely used in the field of change detection. The mainstream idea behind deep learning-based 3D change detection is to construct a Siamese structure using two feature extraction backbone networks with shared weights, and then detect change by acquiring feature differences between point clouds from different time periods. Good feature difference calculation methods are crucial for achieving efficient 3D change detection, primarily including direct interpolation, multi-scale interpolation, and feature fusion.
[0005] Deep learning methods can easily obtain feature differences by subtracting corresponding location features or by cross-fusion of multiple temporal features, but they have the following problems: (1) Insufficient expression of change features. Rich change features can effectively improve the performance of the model, but existing models can only implicitly extract change features, and the expression of change-related features is insufficient. (2) Insufficient attention to change points. Change detection is a typical long-tail problem, but existing change detection models focus too much on unchanged information, which leads to an inability to focus on the mining of change information. These problems will greatly limit the performance of 3D change detection models. (3) Scarcity of large-scale urban real-scene 3D change detection methods. At present, most 3D change detection research objects are oriented towards small scenes and independent objects, and large-scale urban real-scene change detection methods are very scarce. Therefore, it is urgent to study an interpretable urban-level 3D change detection method. Summary of the Invention
[0006] This invention is made to solve the above-mentioned problems, and aims to provide a method and device for detecting changes in urban 3D point clouds based on prior knowledge, which can fully express and focus on change features and achieve efficient urban-level 3D change detection.
[0007] To achieve the above objectives, the present invention employs the following solution:
[0008] <Method>
[0009] This invention provides a method for detecting changes in urban 3D point clouds based on prior knowledge, including:
[0010] Step 1: Explore prior knowledge for 3D change detection;
[0011] The changes in multi-temporal point clouds are prospectively mined from the perspectives of geometric shape and texture material to identify the neighboring points between different temporal point clouds. The difference values of the neighboring points in geometric space and texture space are obtained and compared with a set threshold to calculate the prior change values of different temporal point clouds.
[0012] Step 2, design a variable mask;
[0013] Based on the prior changes of point clouds at different time series, a weight matrix is calculated that can enhance the model's learning of features in changed regions and suppress the model's learning effect on unchanged regions. This weight matrix is then used as a change mask.
[0014] Step 3: Encode change features using a change-aware differential attention method;
[0015] Based on the change mask, a change-aware difference attention method is formed to enhance the feature encoder's learning of change features, and the enhanced feature values are algebraically interpolated at the corresponding positions to obtain the differences between point clouds at different time series.
[0016] Step 4: Based on steps 1 to 3, a deep learning model for detecting changes in 3D point clouds guided by prior knowledge is formed, and this model is used for detecting changes in 3D urban areas.
[0017] Preferably, the urban 3D point cloud change detection method based on prior knowledge provided by the present invention includes the following sub-steps in step 1:
[0018] Step 1-1, Confirm the corresponding positions of point clouds at different time series: Given the sampling points in point cloud PC1 Sampling points in point cloud PC2 Find the K nearest neighbors of s1 in PC2 And the K nearest neighbors of s2 in PC1 These nearest neighbors are the neighborhood points of each sampling point in the point cloud at another time period;
[0019] Step 1-2: Perform prior calculations on change information: Based on Step 1-1, confirm the neighboring points PC1 and PC2 in another temporal point cloud. 12 With PC 21 Then, calculate PC respectively. 12 With PC1, PC 21 Spatial distances to various points in PC2 and texture material difference Subsequently, a spatial distance threshold is set based on the density of the input point clouds PC1 and PC2. and and texture material threshold and If the spatial distance or texture exceeds a threshold, it is assigned a value of 1; if it is less than the threshold, it is divided by the corresponding threshold to normalize the spatial distance and texture. Finally, the spatial distance and texture are weighted and summed, and the result is used as a priori change value input into the model to provide prior guidance for subsequent change detection. The closer the priori change value is to 1, the more likely the sampling point is to be a change point; the closer the priori change value is to 0, the more likely the sampling point is to be an unchanged point. The priori calculation formula is as follows:
[0020]
[0021]
[0022]
[0023] In the formula, P is the spatial coordinate of the point cloud, and M is the texture information of the point cloud; It is a spatial distance threshold. It is the texture material threshold; It is the spatial distance difference of point clouds. λ1 and λ2 are the texture material differences of the point cloud; KNN represents the K-nearest neighbor algorithm.
[0024] Preferably, the urban 3D point cloud change detection method based on prior knowledge provided by the present invention dynamically adjusts the spatial distance threshold and texture material threshold according to different point cloud attributes during the change detection process in step 1:
[0025] The spatial distance threshold should be adapted to the point cloud density, with a point cloud density of 15 points / m. 2 As a density baseline value, when the actual point cloud density equals this baseline value, the spatial distance threshold is set to 2.0; if the actual point cloud density is greater than the baseline value, the spatial distance threshold is set to less than 2.0, and the larger the actual point cloud density, the smaller the spatial distance threshold; if the actual point cloud density is less than the baseline value, the spatial distance threshold is set to greater than 2.0, and the smaller the actual point cloud density, the larger the spatial distance threshold; the range of the spatial distance threshold is [0, +∞).
[0026] The texture threshold should be adapted to the lighting conditions of point clouds at different time series. For point cloud data from two time series being compared: the lighting difference benchmark is the difference in lighting intensity between point cloud data at noon on a sunny summer day (A1) and at 5 pm on a sunny summer day (A2), and the texture threshold is set to 0.6. If the actual lighting difference between the two point cloud data at different time series is greater than the lighting difference benchmark, the texture threshold is set to be greater than 0.6, and the larger the actual lighting difference, the larger the texture threshold. If the actual lighting difference between the two point cloud data at different time series is less than the lighting difference benchmark, the texture threshold is set to be less than 0.6, and the smaller the actual lighting difference, the smaller the texture threshold. When the actual lighting difference is 0, the texture threshold is 0.2. The range of the texture threshold is [0.2, 1].
[0027] Preferably, in the urban 3D point cloud change detection method based on prior knowledge provided by the present invention, when calculating the prior change by weighted summation of spatial distance and texture material in step 1, λ1 and λ2 are both set to 0.5.
[0028] Preferably, in the urban 3D point cloud change detection method based on prior knowledge provided by the present invention, in step 2, given the point cloud... exist Obtain prior change values of point clouds at different time series. Based on the magnitude of the prior change values, assign weights to each sampling point. The larger the prior change value, the larger the weight value assigned, thus obtaining a change mask containing the weight values of each sampling point.
[0029] Preferably, the urban 3D point cloud change detection method based on prior knowledge provided by the present invention uses two types of change masks: a continuous mask in which the weight values change continuously within a certain range, and a discrete mask in which the weight values take individual discrete values within a set. In step 2, any type of change mask is used.
[0030] Preferably, in the urban 3D point cloud change detection method based on prior knowledge provided by the present invention, the change mask used in step 2 is a continuous mask with weight values ranging from 0 to 1.
[0031] Preferably, in the urban 3D point cloud change detection method based on prior knowledge provided by the present invention, in step 3, the input data of the change-aware differential self-attention method consists of features of two point clouds. First, the point cloud input is transformed into a feature space to obtain the feature weight matrix Matrix and the transformed feature value Value for each point in the point cloud. Then, the feature weight matrix Matrix is multiplied by the change mask Mask to obtain the corrected feature matrix fine_matrix. Subsequently, the corrected feature matrix fine_matrix is normalized to obtain the energy matrix Energy, and the energy matrix Energy is multiplied by the transformed feature value Value to obtain the corrected point cloud feature value. Finally, algebraic difference is used to subtract the point clouds from the two periods to obtain the feature difference values of the point clouds at different time series. The calculation formula of the change-aware differential self-attention method is as follows:
[0032] CSA(f)=Softmax(L(f)·Mask)·L(f)
[0033] In the formula, CSA(·) is the difference self-attention function for change perception, L(·) is the linear change function, and f represents the point cloud feature.
[0034] Preferably, in the urban 3D point cloud change detection method based on prior knowledge provided by the present invention, in step 4, the 3D point cloud change detection deep learning model includes multiple downsampling feature extraction modules and several change-aware point cloud difference attention modules. The multiple downsampling feature extraction modules form a multi-layer feature encoder and a multi-layer feature decoder, respectively. The change-aware point cloud difference attention module (CADA) is formed by coupling steps 1 to 3. After each downsampling feature extraction, the multi-temporal point cloud difference is calculated through a connected change-aware point cloud difference attention module.
[0035] The deep learning model for 3D point cloud change detection first mines prior change knowledge, then calculates a change mask using this prior knowledge. In the change feature encoding stage, each feature encoder adjusts the model's attention intensity based on the change mask. By using a change-aware differential self-attention method, the feature encoder's learning of change features is enhanced. The difference between two point clouds is calculated, and this difference is fused with semantic information from the same layer as the input to the next feature encoder. Finally, the features output from the last feature encoder are input to the feature decoder for multi-level decoding to detect changes in the 3D point cloud.
[0036] <device>
[0037] Furthermore, this invention provides a city 3D point cloud change detection device guided by prior knowledge, capable of automatically controlling and implementing the above <method>, including:
[0038] The model building department constructs a deep learning model for detecting changes in 3D point clouds guided by prior knowledge.
[0039] The detection department uses a deep learning model for 3D point cloud change detection to detect 3D changes in the city.
[0040] The input display unit allows operators to input operation commands and displays corresponding information based on those commands.
[0041] The control unit is connected in communication with the model building unit, the detection unit, and the input display unit, and controls their operation.
[0042] Preferably, in the urban 3D point cloud change detection device based on prior knowledge provided by the present invention, the input display unit can display the input, intermediate processing and output data of each part according to the operation instructions, and can compare the detected changes with the changes before the changes, and can also dynamically display the change process in any time period according to the time sequence.
[0043] The role and effect of invention
[0044] The present invention provides a method and apparatus for detecting changes in urban 3D point clouds based on prior knowledge. By calculating prior differences of multi-temporal point clouds from geometric shape and texture features, prior knowledge for 3D change detection is mined. Based on the prior knowledge, a change mask is designed, and then a difference attention method for change perception is formed according to the change mask. This method fully expresses and focuses on change features from both geometric shape and texture material aspects, thereby improving the performance of change detection. At the same time, it minimizes computational complexity and improves the efficiency of urban-level 3D change detection.
[0045] This invention constructs the first deep learning model (3D point cloud change detection deep learning model) that uses interpretable prior knowledge to guide neural networks to mine change information between multiple time series point clouds. It effectively solves the problems of insufficient expression of change features and insufficient attention to change points caused by the long tail effect in 3D change detection, and realizes efficient large-scale 3D change detection at the city level. Attached Figure Description
[0046] Figure 1 This is a structural block diagram of the deep learning model for detecting changes in three-dimensional point clouds according to an embodiment of the present invention;
[0047] Figure 2 These are two variations of the mask involved in the embodiments of the present invention;
[0048] Figure 3 This is a flowchart illustrating the prior knowledge calculation process involved in an embodiment of the present invention.
[0049] Figure 4 This is a flowchart of the difference self-attention module CADA for change perception involved in an embodiment of the present invention;
[0050] Figure 5 This is a comparison chart of the three-dimensional change detection performance of the method of the present invention and existing detection methods involved in the embodiments of the present invention. Detailed Implementation
[0051] The following description, in conjunction with the accompanying drawings, details the specific implementation scheme of the urban 3D point cloud change detection method and apparatus based on prior knowledge guidance involved in this invention.
[0052] <Example 1>
[0053] like Figure 1 As shown, the left side represents the model input, consisting of the old time-series point cloud and the new time-series point cloud, respectively, while the right side represents the model output, representing the changes in the old time-series and the changes in the new time-series, respectively. This embodiment uses two time-series input point clouds as an example to illustrate the detection method of the present invention, as detailed below:
[0054] Step 1: Construct a three-dimensional change detection prior knowledge.
[0055] 3D change detection differs from 2D image change detection because it exhibits more pronounced differences in geometric shape and texture features, and these differences are predictable and inferable. Therefore, this study aims to prospectively mine changes in multi-temporal point clouds based on geometric shape and texture. By identifying neighboring points between point clouds from different time periods, the difference values of these neighboring points in geometric and texture spaces are calculated, and these values are compared with a set threshold to determine whether they represent prior change points.
[0056] This invention defines the variation of 3D point clouds as significant differences in geometric shape or texture within the same spatial region between point clouds from different time periods. Based on this definition, variations in multi-time-series point clouds can be pre-discovered from the perspectives of geometric shape and texture, which can be divided into two steps. The first step is to confirm the corresponding positions of point clouds from different time periods. To compare point cloud data from multiple periods, it is first necessary to confirm the correspondence between points. Corresponding positions have spatial proximity, so this paper uses the shortest Euclidean distance as the criterion for determining corresponding positions. Given sampling points in point cloud PC1... Sampling points in point cloud PC2 Use the K-Nearest Neighbor (KNN) algorithm to obtain the K nearest neighbors of s1 in PC2. And the K nearest neighbors of s2 in PC1 These nearest neighbors are the corresponding points of each sampling point in the point cloud at another time. Then, prior calculations are performed on the change information. Using the above method, the neighboring points PC1 and PC2 in another time-series point cloud are identified. 12 With PC 21 Next, a priori calculations of potential changes are needed in both geometric and texture spaces. First, PC is calculated separately. 12 With PC1, PC 21 Spatial distances to various points in PC2 and texture material difference Subsequently, a spatial distance threshold is set based on the density of the input point clouds PC1 and PC2. and and texture material threshold and If the spatial distance or texture exceeds a threshold, it is assigned a value of 1; if it is less than the threshold, it is divided by the corresponding threshold to normalize the spatial distance and texture. Finally, the spatial distance and texture are weighted and summed, and the result is used as the prior change input into the model. The closer the prior change is to 1, the more likely the point is to be a changed point; the closer the prior change is to 0, the more likely the point is to be unchanged. That is, the probability that a point is a changed point is calculated by using the nearest neighbor k of the sampling point s. The closer the change value is to 1, the more likely the sampling point s is to be a changed point; conversely, the closer it is to 0, the more likely it is to be an unchanged point. This can be expressed by the following formula:
[0057]
[0058]
[0059]
[0060] In the formula, P is the spatial coordinate of the point cloud, and M is the texture information of the point cloud; It is a spatial distance threshold. It is the texture material threshold; It is the spatial distance difference of point clouds. λ1 and λ2 are the texture material differences of the point cloud; KNN is the K-Nearest Neighbor algorithm.
[0061] Given point cloud data of the same location in two different time series, both of which must be registered point cloud data. First, the K-nearest neighbor algorithm is used to calculate the 16 nearest neighbors of one time series point cloud in the other. The spatial distance and texture difference between these neighbors and the sampling point are calculated for each, and then these values are normalized. If the spatial distance is greater than a threshold of 2.0, the value is changed to 1; if the spatial distance is less than 2.0, the value is divided by 2.0 and normalized. The texture difference is treated similarly: if the texture difference is greater than a threshold of 0.6, the value is changed to 1; if the texture difference is less than 0.6, the value is divided by 0.6 and normalized. Note that the texture value must be normalized before calculating the texture difference to ensure it is between 0 and 1. After obtaining the normalized spatial distance and texture difference, the spatial distance and texture difference are weighted and summed with weights of 0.5 and 0.5 respectively. The result is the prior change, which provides prior guidance for subsequent change detection.
[0062] Step 2: Calculate a variation mask.
[0063] Based on the prior knowledge of 3D change detection in step 1, a change mask is calculated. This mask is a weight matrix used to adjust the attention intensity of the model, so as to enhance the model's learning of features of changed regions and suppress the deep learning model's learning of unchanged regions.
[0064] Based on the prior changes calculated using the aforementioned three-dimensional change detection prior knowledge, the change mask can be calculated. This invention designs two types of change mask calculation methods: continuous masks and discrete masks, such as... Figure 2 As shown. A continuous mask has weight values that are continuous within a range, such as 0 to 1 or 1 to 2. A discrete mask, on the other hand, has weight values that are discrete within a set, such as 0 and 1 or 1 and 2.
[0065] For example, given a point cloud exist Prior knowledge of the aforementioned 3D change detection is used to calculate prior changes in point clouds at different time series. The closer this value is to 1, the more likely the point is to be a potential change point; conversely, the closer the value is to 0, the more likely the point is to be an unchanged point. The prior changes are then binarized: values greater than 0.1 are assigned a value of 1, and values less than 0.5 are assigned a value of 2, resulting in discrete masks with elements of 0 or 1. By assigning greater weight to prior change points and less weight to prior unchanged points, the model's learning of change points is strengthened, while its learning of unchanged points is suppressed. This effectively guides the shallow neural network to mine features in change regions, improving the efficiency of change detection.
[0066] Experiments on multiple change detection datasets generally show that continuous masks perform best, specifically, normalized values between 0 and 1 more effectively guide the model to focus on learning about changing regions. It's important to note that the choice of texture threshold and spatial distance threshold during computation varies depending on different external factors. The spatial distance threshold needs to be adapted to the point cloud density; if the point cloud density is high, a relatively small spatial distance threshold needs to be set, and vice versa. The texture threshold setting is related to the lighting conditions of point clouds at different time intervals; if the lighting conditions vary greatly, the threshold needs to be increased, and vice versa. Both need to be dynamically adjusted according to different point cloud attributes. The spatial distance threshold ranges from [0, +∞), while the texture threshold ranges from [0.2, 1].
[0067] Step 3: Design a change-aware differential attention method (CADA).
[0068] During the variable feature encoding stage, the feature extraction module needs to focus as much as possible on the regions that have changed, while minimizing the influence of unchanged regions. For example... Figure 3 As shown, in this embodiment, by combining the change mask in step 2 with point cloud self-attention, a change-guided point cloud self-attention calculation method is formed, which enhances the feature encoder's learning of change features, thereby improving the performance of change detection. The enhanced feature values are then algebraically interpolated at corresponding positions to obtain the differences between point clouds at different time series. Simultaneously, the computational complexity and overhead of point cloud self-attention are minimized to improve the efficiency of city-level 3D change detection.
[0069] Ordinary point cloud self-attention methods use query∈R N×C Matrix and key∈R N×C Matrix multiplication is used to obtain attention weights, but this method has high computational complexity, O(N). 2When the number of input points N is large, ordinary point cloud self-attention will cause a huge memory overhead. To reduce the computational complexity of attention and minimize the overhead, this invention uses a linear transformation function to directly transform the input features into attention weights, with a computational complexity of O(N×C). In the shallow feature encoding stage, the attention weights are discrete, and their attention is consistent throughout the entire point cloud scene, without focusing on feature learning in changing regions, which is not conducive to mining features in changing regions. To guide attention to focus more on changing regions, this invention uses a change mask, which can increase the weight of changing regions and decrease the weight of unchanged regions. After multiplying with the attention weights, the attention weights can be modified to have a clear change detection direction and purpose, further reducing computational complexity. The modified attention weights will undergo a softmax operation and be multiplied by value∈R. N ×C The values are multiplied by a dot to obtain fine-grained variation features. Then, algebraic differences are used to subtract the corresponding positions of these fine-grained variation features to obtain the feature differences. The entire variation-guided point cloud self-attention can be expressed by the following formula.
[0070] CSA(f)=Softmax(L(f)·Mask)·L(f)
[0071] In the formula, CSA(·) is the change-guided self-attention function for point clouds, and L(·) is the linear change function.
[0072] Specifically, the input data for the change-aware differential attention method consists of features from two point clouds. First, the `torch.nn.Linear` function is used to transform the point cloud input features into a feature space, obtaining the feature weight matrix (Matrix) and the transformed feature value (Value) for each point in the point cloud. Then, the feature weight matrix (Matrix) is multiplied by the change mask (Mask) from step 2 to obtain the corrected feature matrix (fine_matrix). Next, the `nn.Softmax` function is used to normalize the corrected feature matrix (fine_matrix) to obtain the energy matrix (Energy), which is then multiplied by the transformed feature value (Value) to obtain the corrected point cloud feature values. Finally, algebraic difference is used to subtract the point clouds from the two time periods to obtain the difference values between the point clouds at different time points.
[0073] Step 4: Form a deep learning model for detecting changes in 3D point clouds guided by prior knowledge.
[0074] By coupling the 3D change detection prior knowledge in step 1, the change mask in step 2, and the change-guided point cloud self-attention method in step 3, a weight-shared 3D change detection Siamese network model is formed. This model first fully expresses change features from both geometric morphology and texture aspects using 3D change detection prior knowledge. Then, through the change-guided point cloud self-attention algorithm, it effectively guides the neural network to learn the features of the changed region, ultimately achieving interpretable large-scale urban 3D change detection.
[0075] The specific process is explained below:
[0076] This model utilizes a zero-parameter, easily generalizable 3D change detection prior to guide its learning of change points, thus strengthening the representation of change features. The overall structure of the model is as follows: Figure 1 The diagram shows a Siamese network with shared model weights (sharing model parameters, including weights for convolutional and attention operations). It includes a downsampling feature extraction module, a change-driven point cloud difference attention module, and an upsampling feature extraction module. The downsampling and upsampling feature extraction modules are arbitrary feature extraction baseline models, primarily responsible for extracting semantic information from the point clouds. This module first calculates a change mask using empirical knowledge, guiding the attention module to focus on changed regions and weaken feature learning in unchanged regions, thereby correcting the model features. Then, it subtracts from the corrected features to obtain the differences between point clouds across multiple time periods. The model input consists of two sets of point cloud data. and The data will first undergo a multi-layer feature encoder to extract multi-scale semantic information. and In each layer of the feature encoder, a change-driven point cloud interpolation attention module is used to calculate the difference between two point clouds at that scale. and This difference value will be fused with the semantic information of the same layer and used as input to the next layer of feature encoder. The encoded features (output data of the third layer encoder) possess rich semantic, spatial, and change information, meeting the necessary conditions for change detection. It will then be input into the feature decoder for multi-level decoding, ultimately detecting the change between the two point cloud datasets. and
[0077] In this embodiment, the model comprises three downsampling feature extraction modules, four change-aware point cloud interpolation attention modules (CADA, formed in steps 1-3), and three upsampling feature extraction modules. The backbone network of the downsampling feature extraction modules uses the KPConv model, and the downsampling feature extraction modules employ grid downsampling, while the upsampling feature extraction modules use linear interpolation upsampling. After each downsampling feature extraction, a change-aware point cloud interpolation attention module is connected to calculate the point cloud interpolation across multiple time series. During training, the data region is divided into multiple cylinders, each with a radius of 15 meters and unlimited height. Each training epoch inputs data within the range of 6000 cylinders, and data augmentation is performed on the input data before input, such as rotating and translating point cloud positions, adding noise, and changing point cloud texture materials. For the model training hyperparameters, the initial learning rate is 0.001, the batch size is set to 10, and a total of 550 iterations are performed. The input data consists of spatial coordinates of point clouds and texture information. The first feature space has a dimension of 64, and each subsequent downsampling doubles the feature dimension and the grid range. The initial KPConv sampling range is 1.0, the kernel number is 25, and the maximum neighborhood number is 25, 30, and 38. The model finally performs a Dropout operation with a scaling factor of 0.5. The model uses the Negative Log Likelihood (NLL) loss function to describe the model error. The dataset used in this paper is bi-temporal data. The error of each temporal point cloud is calculated during computation, and the error values are accumulated to obtain the overall model error. The specific calculation formula is as follows:
[0078]
[0079] In the formula, y t For the true value, y p For predicted values, For the true value of point cloud 1, The predicted value for point cloud 1. For the true value of point cloud 2, These are the predicted values for point cloud 2. The optimizer used in the model is SGD, with a momentum value of 0.98 and a weight_decay of 0.001. The learning rate decays in steps, decreasing by 0.02 each time.
[0080] To verify the effectiveness of the method of this invention, we compared its performance with that of the state-of-the-art models (methods) on the publicly available 3D change detection dataset Urb3DCD-V2. The results are shown in Table 1 and... Figure 5 As shown.
[0081] Table 1. Performance comparison of the method of this invention with the most advanced three-dimensional change detection methods currently available.
[0082]
[0083] Table 1 evaluates the performance of each detection method using mAcc, mIoU, and IoU indices, with the last row representing the method proposed in this invention. As can be seen from the table, the method of this invention achieves an optimal mIoU performance of 88.08%, which is 2.89% higher than the most state-of-the-art method in the prior art. It also achieves excellent performance in all seven categories, such as vegetation growth (+6.79%). This significant improvement demonstrates the effectiveness of the proposed method in three-dimensional change detection.
[0084] Furthermore, from Figure 5 As can be seen, the method of the present invention reduces misclassification of changes and improves the detection efficiency of changes in dense objects (plants) compared with the existing technology.
[0085] In summary, this invention proposes the first 3D change detection model guided by prior knowledge. By utilizing prior knowledge to guide the model's learning of change points, it enhances the representation of change features. First, prior differences between multi-temporal point clouds are calculated based on geometric morphology and texture features. This difference value is then introduced into the feature learning module, providing a prior change value for the model's learning. This value is then used to adjust the model's feature weights, strengthening the learning of changed regions and achieving efficient and accurate 3D change detection in cities.
[0086] <Example 2>
[0087] This second embodiment provides a device for automatically detecting changes in urban 3D point clouds based on the method of the present invention. The device includes a model building unit, a detection unit, an input display unit, and a control unit.
[0088] The model building unit can perform the steps 1 to 4 described above to build a 3D point cloud change detection deep learning model guided by prior knowledge.
[0089] The detection department uses a deep learning model for 3D point cloud change detection to detect 3D changes in the city.
[0090] The input display unit allows operators to input operating commands and displays corresponding information based on those commands. For example, it can display data on the input, output, and processing of various units; compare detected changes with the original state; and dynamically display changes over any given time period.
[0091] The control unit is communicatively connected to the model building unit, the detection unit, and the input display unit, controlling their operation.
[0092] The above embodiments are merely illustrative examples of the technical solutions of the present invention. The urban 3D point cloud change detection method and apparatus based on prior knowledge guidance involved in the present invention are not limited to the content described in the above embodiments, but are defined by the scope of the claims. Any modifications, additions, or equivalent substitutions made by those skilled in the art based on these embodiments are within the scope of protection claimed by the claims of the present invention.
Claims
1. A method for detecting changes in urban 3D point clouds based on prior knowledge, characterized in that, Includes the following steps: Step 1: Explore prior knowledge for 3D change detection; The changes in multi-temporal point clouds are prospectively mined from the perspectives of geometric shape and texture material to identify the neighboring points between different temporal point clouds. The difference values of the neighboring points in geometric space and texture space are obtained and compared with a set threshold to calculate the prior change values of different temporal point clouds. Step 2, design a variable mask; Based on the prior changes of point clouds at different time series, a weight matrix is calculated that can enhance the model's learning of features in changed regions and suppress the model's learning effect on unchanged regions. This weight matrix is then used as a change mask. Step 3: Encode change features using a change-aware differential attention method; Based on the change mask, a change-aware difference attention method is formed to enhance the feature encoder's learning of change features, and the enhanced feature values are algebraically interpolated at the corresponding positions to obtain the differences between point clouds at different time series. Step 4: Based on steps 1-3, a deep learning model for detecting changes in 3D point clouds guided by prior knowledge is formed, and this model is used for detecting changes in 3D urban areas. Step 1 includes the following sub-steps: Step 1-1, Confirm the corresponding positions of point clouds at different time series: Given a point cloud sampling points in and point clouds sampling points in , obtain exist In nearest neighbor , ,as well as exist In nearest neighbor , These nearest neighbors are the neighborhood points of each sampling point in the point cloud at another time period; Step 1-2, perform prior calculations on change information: confirm the input point cloud through step 1-1. and Neighboring points in another temporal point cloud and Then, calculate separately and , and Spatial distance between points , and texture material difference , ; Subsequently, based on the input point cloud and Density, set spatial distance threshold and and texture material threshold and If the spatial distance or texture exceeds a threshold, it is assigned a value of 1; if it is less than the threshold, it is divided by the corresponding threshold to normalize the spatial distance and texture. Finally, the spatial distance and texture are weighted and summed, and the result is used as a priori change value input into the model to provide prior guidance for subsequent change detection. The closer the priori change value is to 1, the more likely the sampling point is to be a change point; the closer the priori change value is to 0, the more likely the sampling point is to be an unchanged point. The priori calculation formula is as follows: In the formula, These are the spatial coordinates of the point cloud. It is the texture information of the point cloud; It is a spatial distance threshold. It is the texture material threshold; It is the spatial distance difference of point clouds. It is the difference in texture material value of the point cloud; and It is the weight value; This represents the K-nearest neighbor algorithm.
2. The urban 3D point cloud change detection method based on prior knowledge as described in claim 1, characterized in that: in, During the change detection process in step 1, the spatial distance threshold and texture material threshold are dynamically adjusted according to the different point cloud attributes: The spatial distance threshold should be adapted to the point cloud density, with a point cloud density of 15 points / m. 2 As a density baseline value, when the actual point cloud density equals this baseline value, the spatial distance threshold is set to 2.0; if the actual point cloud density is greater than the baseline value, the spatial distance threshold is set to less than 2.0, and the larger the actual point cloud density, the smaller the spatial distance threshold; if the actual point cloud density is less than the baseline value, the spatial distance threshold is set to greater than 2.0, and the smaller the actual point cloud density, the larger the spatial distance threshold; the range of the spatial distance threshold is [0, +∞). The texture threshold should be adapted to the lighting conditions of point clouds at different time series. For two point cloud data series being compared: the lighting difference benchmark is the difference in lighting intensity between point cloud data series A1 at noon on a sunny summer day and A2 at 5 pm on a sunny summer day, and the texture threshold is set to 0.6; if the actual lighting difference between the two point cloud data series is greater than the lighting difference benchmark, the texture threshold is set to be greater than 0.6, and the larger the actual lighting difference, the larger the texture threshold; if the actual lighting difference between the two point cloud data series is less than the lighting difference benchmark, the texture threshold is set to be less than 0.6, and the smaller the actual lighting difference, the smaller the texture threshold; when the actual lighting difference is 0, the texture threshold is 0.2; the range of the texture threshold is [0.2, 1].
3. The urban 3D point cloud change detection method based on prior knowledge as described in claim 1, characterized in that: in, In step 1, when calculating the prior changes by weighted summation of spatial distance and texture material, the following settings are made: and Both are 0.
5.
4. The urban 3D point cloud change detection method based on prior knowledge as described in claim 1, characterized in that: in, In step 2, given the point cloud exist The process involves obtaining prior change values of point clouds at different time series, assigning weights to each sampling point based on the magnitude of the prior change values, with larger prior change values resulting in a larger weight value, thus obtaining a change mask containing the weight values of each sampling point.
5. The urban 3D point cloud change detection method based on prior knowledge as described in claim 1, characterized in that: in, There are two types of change masks: continuous masks where the weight values change continuously within a range, and discrete masks where the weight values take individual discrete values within a set. In step 2, either type of change mask can be used.
6. The urban 3D point cloud change detection method based on prior knowledge as described in claim 1, characterized in that: in, The change mask used in step 2 is a continuous mask with weight values ranging from 0 to 1.
7. The urban 3D point cloud change detection method based on prior knowledge as described in claim 1, characterized in that: in, In step 3, the input data for the change-aware differential self-attention method consists of features from two point clouds. First, the point cloud input undergoes feature space transformation to obtain the feature weight matrix (Matrix) and the transformed feature value (Value) for each point in the point cloud. Then, the feature weight matrix (Matrix) is multiplied by the change mask (Mask) to obtain the corrected feature matrix (fine_matrix). Next, the corrected feature matrix (fine_matrix) is normalized to obtain the energy matrix (Energy), and this energy matrix is multiplied by the transformed feature value (Value) to obtain the corrected point cloud feature values. Finally, algebraic difference is used to subtract the point clouds from the two time periods to obtain the feature difference values between the point clouds at different time sequences. The calculation formula for the change-aware differential self-attention method is: In the formula, For difference self-attention function of change perception, It is a linearly changing function. f Represents the characteristics of point clouds.
8. The urban 3D point cloud change detection method based on prior knowledge as described in claim 1, characterized in that: in, In step 4, the 3D point cloud change detection deep learning model includes multiple downsampling feature extraction modules and several change-aware point cloud difference attention modules. The multiple downsampling feature extraction modules form a multi-layer feature encoder and a multi-layer feature decoder, respectively. The change-aware difference attention modules are formed by coupling steps 1 to 3. After each downsampling feature extraction, the multi-temporal point cloud difference is calculated through a connected change-aware point cloud difference attention module. The deep learning model for 3D point cloud change detection first mines prior change knowledge, then calculates a change mask using this prior knowledge. In the change feature encoding stage, each feature encoder adjusts the model's attention intensity based on the change mask. By using a change-aware differential self-attention method, the feature encoder's learning of change features is enhanced. The difference between two point clouds is calculated, and this difference is fused with semantic information from the same layer as the input to the next feature encoder. Finally, the features output from the last feature encoder are input to the feature decoder for multi-level decoding to detect changes in the 3D point cloud.
9. A city 3D point cloud change detection device guided by prior knowledge, capable of automatically executing the city 3D point cloud change detection method guided by prior knowledge as described in any one of claims 1 to 8, characterized in that, include: The model building department constructs a deep learning model for detecting changes in 3D point clouds guided by prior knowledge. The detection department uses a deep learning model for 3D point cloud change detection to detect 3D changes in the city. The input display unit allows operators to input operation commands and displays corresponding information based on those commands. The control unit is connected in communication with the model building unit, the detection unit, and the input display unit, and controls their operation.
