Urban three-dimensional point cloud change detection method and device based on prior knowledge guidance
By introducing prior knowledge and change masks into 3D point cloud change detection, combined with the difference attention method, the problem of insufficient expression of change features and insufficient attention to change points is solved, and efficient city-level 3D change detection is achieved.
Patent Information
- Application Number
- CN202410201210.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-23
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2044-02-23
AI Technical Summary
Existing 3D point cloud change detection methods have problems such as insufficient expression of change characteristics, insufficient attention to change points, and lack of large-scale urban real scene detection methods, resulting in low detection accuracy and efficiency.
Using a method guided by prior knowledge, by mining the difference values of geometric shapes and texture materials, designing change masks and using the change-aware difference attention method to strengthen the feature encoder's learning of change features and improve the performance of change detection and efficiency.
It achieves full expression and attention to change characteristics, improves the performance and efficiency of city-level three-dimensional change detection, reduces computational complexity, and solves the problems of insufficient expression of change characteristics and insufficient attention to change points caused by the long tail effect. .
Smart Images

Figure CN118608931A
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of three-dimensional GIS, and in particular relates to a method and device for detecting changes in urban three-dimensional point clouds based on prior knowledge guidance. Background Art
[0002] Three-dimensional change detection is a technology that observes the same three-dimensional space multiple times at different times and obtains the differences and changes in it through comparative analysis. With the improvement of three-dimensional data acquisition accuracy and the shortening of data acquisition cycle, three-dimensional change detection technology has gradually become popular and is widely used in many fields such as resource monitoring, urban planning, and land management. Point cloud data has become the mainstream data for three-dimensional change detection due to its simple data structure, high data accuracy, and easy acquisition. However, there are differences in internal and external factors of each point cloud sampling, which will lead to inconsistent density, missing occlusions, etc. in the point cloud data, which will produce a large number of false change samples, thereby confusing the detection of real change objects, which will bring great challenges to three-dimensional change detection technology.
[0003] At present, the methods of 3D point cloud change detection are mainly divided into two categories, namely 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 need to rely on manually constructed features, which cannot fully express point cloud objects and have poor generalization and portability, which will lead to reduced change detection accuracy in different scenarios.
[0004] Deep learning methods have good learning and generalization capabilities, and can automatically extract multi-scale abstract features of point clouds in different scenes. Therefore, they are widely used in the field of change detection. The mainstream idea of 3D change detection based on deep learning is to form a twin structure (Siamese) by combining two feature extraction backbone networks with shared weights, and to achieve change detection by obtaining feature differences between point clouds of different time series. A good feature difference calculation method is an important basis for achieving efficient 3D change detection, which mainly includes three methods: direct difference method, multi-scale difference method and feature fusion.
[0005] By subtracting corresponding position features or cross-fusion of multiple time series features, deep learning methods can easily obtain feature differences, but there are the following problems: (1) Insufficient expression of change features. Rich change features can effectively improve the performance of the model, but the existing model can only implicitly extract change features and does not fully express change-related features. (2) Insufficient attention to change points. Change detection is a typical long-tail problem, but existing change detection models over-focus on unchanged information, resulting in a failure to focus on mining change information. These problems will greatly limit the performance of three-dimensional change detection models. (3) Scarcity of large-scale urban real-scene three-dimensional change detection methods. At present, most of the research objects of three-dimensional change detection are small scenes and independent objects, and large-scale real-scene change detection methods at the city level are very scarce. Therefore, there is an urgent need to study an explainable city-level three-dimensional change detection method. Summary of the invention
[0006] The present invention is made to solve the above-mentioned problems, and its purpose is to provide a method and device for urban three-dimensional point cloud change detection based on prior knowledge guidance, which can fully express and focus on change characteristics and realize efficient city-level three-dimensional change detection.
[0007] In order to achieve the above object, the present invention adopts the following scheme:
[0008] <Method>
[0009] The present invention provides a method for detecting changes in urban three-dimensional point clouds based on prior knowledge, comprising:
[0010] Step 1: Mining prior knowledge of 3D change detection;
[0011] The changes existing in multi-time sequence point clouds are mined a priori from the perspective of geometric form and texture material, the neighborhood points between different time sequence point clouds are confirmed, the difference values of the neighborhood points in the geometric space and texture space are obtained, and the difference values are compared with the set threshold to calculate the a priori change values of different time sequence point clouds;
[0012] Step 2, designing a change mask;
[0013] According to the prior changes of point clouds at different time series, a weight matrix is calculated that can strengthen the model's learning of the features of the changed area and suppress the model's learning effect on the unchanged area, and the weight matrix is used as the change mask;
[0014] Step 3: Encode the change features through the change-aware difference attention method;
[0015] Based on the change mask, a change-aware difference attention method is formed to strengthen the feature encoder's learning of change features, and the enhanced feature values are algebraically differencing at the corresponding positions to obtain the differences between point clouds of different time series;
[0016] Step 4: Based on steps 1 to 3, a deep learning model for three-dimensional point cloud change detection guided by prior knowledge is formed, and the model is used to perform three-dimensional change detection in the city.
[0017] Preferably, in the method for detecting changes in urban three-dimensional point clouds based on prior knowledge provided by the present invention, step 1 comprises the following sub-steps:
[0018] Step 1-1, confirm the corresponding positions of different time sequence point clouds: given the sampling points in point cloud PC1 The sampling points in point cloud PC2 Get the K nearest neighbors of s1 in PC2 And the K nearest neighbors of s2 in PC1 These nearest neighbor points are the neighborhood points of the corresponding position of each sampling point in the point cloud of another period;
[0019] Step 1-2, perform a priori calculation of the change information: Confirm through step 1-1 the neighboring points PC1 and PC2 of the input point cloud in another time series point cloud 12 With PC 21 Then, calculate PC 12 With PC1, PC 21 Spatial distance from each point in PC2 And texture material difference Then, according to the density of the input point clouds PC1 and PC2, the spatial distance threshold is set and And the texture material threshold and If the spatial distance or texture material exceeds the 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 material; finally, the spatial distance and texture material are weighted and summed, and the result is input into the model as the prior change value to provide a priori guidance for subsequent change detection; the closer the prior change value is to 1, the more likely the sampling point is a change point; the closer the prior change value is to 0, the more likely the sampling point is an unchanged point; the prior calculation formula is as follows:
[0020]
[0021]
[0022]
[0023] Where P is the spatial coordinate of the point cloud, and M is the texture information of the point cloud; is the spatial distance threshold, is the texture material threshold; is the spatial distance difference of the point cloud, is the texture material difference of the point cloud; λ1 and λ2 are weight values; KNN represents the K nearest neighbor algorithm.
[0024] Preferably, in the urban three-dimensional point cloud change detection method based on prior knowledge guidance provided by the present invention, in the change detection process of step 1, the spatial distance threshold and the texture material threshold are dynamically adjusted according to different point cloud attributes:
[0025] The spatial distance threshold should be adapted to the point cloud density, with a point cloud density of 15 points / m 2 As the density reference value, when the actual point cloud density is equal to the density reference value, the spatial distance threshold is set to 2.0; if the actual point cloud density is greater than the density reference value, the spatial distance threshold is set to be less than 2.0, and the greater the actual point cloud density, the smaller the spatial distance threshold; if the actual point cloud density is less than the density reference value, the spatial distance threshold is set to be greater than 2.0, and the smaller the actual point cloud density, the larger the spatial distance threshold; the value range of the spatial distance threshold is [0, +∞);
[0026] The texture material threshold should be adapted to the lighting conditions of point clouds of different time series. For the point cloud data of two time series being compared: the lighting difference benchmark is the difference in lighting intensity between the two point cloud data at noon in summer and at 5 pm in summer, and the texture material threshold is set to 0.6; if the actual lighting difference between the point cloud data of the two time series is greater than the lighting difference benchmark, the texture material threshold is set to be greater than 0.6, and the greater the actual lighting difference, the greater the texture material threshold; if the actual lighting difference between the point cloud data of the two time series is less than the lighting difference benchmark, the texture material threshold is set to be less than 0.6, and the smaller the actual lighting difference, the smaller the texture material threshold. When the actual lighting difference is 0, the texture material threshold is 0.2; the value range of the texture material threshold is [0.2,1].
[0027] Preferably, in the urban three-dimensional point cloud change detection method based on prior knowledge guidance provided by the present invention, in step 1, when the spatial distance and texture material are weightedly summed to calculate the prior change, λ1 and λ2 are both set to 0.5.
[0028] Preferably, the urban three-dimensional point cloud change detection method based on prior knowledge guidance provided by the present invention, in step 2, given a point cloud exist The prior change values of point clouds of different time series are obtained, and weights are assigned to each sampling point according to the size of the prior change value. The larger the prior change value, the larger the weight value assigned, thereby obtaining a change mask containing the weight values of each sampling point.
[0029] Preferably, in the urban three-dimensional point cloud change detection method based on prior knowledge guidance provided by the present invention, the change masks are divided into two types: a continuous mask in which the weight value continuously changes within a certain interval, and a discrete mask in which the weight value takes a single discrete value within a set. Any one of the change masks is used in step 2.
[0030] Preferably, in the urban three-dimensional point cloud change detection method based on prior knowledge guidance 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 three-dimensional point cloud change detection method based on prior knowledge guidance provided by the present invention, in step 3, the input data of the change-aware difference self-attention method is the features of the two-period point cloud. First, the point cloud input is transformed into a feature space to obtain the feature weight matrix Matrix and the converted eigenvalue Value of each point in the point cloud respectively; then, the feature weight matrix Matrix is matrix-multiplied with the change mask Mask to obtain the modified feature matrix fine_matrix; then, the modified feature matrix fine_matrix is normalized to obtain the energy matrix Energy, and the energy matrix Energy is matrix-multiplied with the converted eigenvalue Value to obtain the modified point cloud eigenvalue; finally, the point clouds of the two periods are subtracted by algebraic difference to obtain the feature difference values of the point clouds of different time series; the calculation formula of the change-aware difference self-attention method is:
[0032] CSA(f)=Softmax(L(f)·Mask)·L(f)
[0033] Where 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 three-dimensional point cloud change detection method based on prior knowledge guidance provided by the present invention, in step 4, the three-dimensional point cloud change detection deep learning model includes multiple down-sampling feature extraction modules and down-sampling feature extraction modules and several change-aware point cloud difference attention modules, the multiple down-sampling feature extraction modules and the down-sampling feature extraction modules respectively form a multi-layer feature encoder and a multi-layer feature decoder, and the change-aware point cloud difference attention module (CADA) is formed by coupling steps 1 to 3; after each down-sampling feature extraction, a multi-time series 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, and then calculates the change mask based on the prior knowledge of 3D change detection. In the change feature encoding stage, the attention strength of the model is corrected based on the change mask in each layer of feature encoder. The learning of change features by the change-aware difference self-attention method is strengthened, and the difference value between the two phases of point clouds is calculated. The difference value is fused with the semantic information of the same layer and used as the input of the next layer of feature encoder. The features output by the last layer of feature encoder are input into the feature decoder for multi-level decoding to detect 3D point cloud changes.
[0036] <Device>
[0037] Furthermore, the present invention provides a device for detecting changes in urban three-dimensional point clouds based on prior knowledge, which can automatically control and implement the above <method>, including:
[0038] The model building department builds a deep learning model for 3D point cloud change detection guided by prior knowledge;
[0039] The detection department uses a 3D point cloud change detection deep learning model to detect 3D changes in the city;
[0040] The input display unit allows the operator to input operation instructions and displays corresponding information according to the operation instructions;
[0041] The control unit is connected to the model building unit, the detection unit, and the input and display unit to control their operations.
[0042] Preferably, in the urban three-dimensional point cloud change detection device based on prior knowledge guidance provided by the present invention, the input display unit can display the input, intermediate processing, and output data of each unit accordingly according to the operating instructions, and can display the detected changes in comparison with the situation before the change, and can also dynamically display the change process within any time period in time sequence.
[0043] Functions and Effects of the Invention
[0044] The urban three-dimensional point cloud change detection method and device provided by the present invention based on prior knowledge guidance mine the three-dimensional change detection prior knowledge by calculating the prior differences of multi-time series point clouds from the geometric form and texture features, designs a change mask based on the prior knowledge, and then forms a difference attention method for change perception according to the change mask, which fully expresses and pays attention to the change features from two aspects of geometric form and texture material, improves the performance of change detection, and at the same time, reduces the computational complexity as much as possible, thereby improving the efficiency of city-level three-dimensional change detection.
[0045] The present invention constructs the first deep learning model (deep learning model for three-dimensional point cloud change detection) that uses interpretable prior knowledge to guide neural networks to mine change information between multi-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 of three-dimensional change detection, and realizes efficient large-scale three-dimensional change detection at the city level. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] Figure 1 It is a structural block diagram of a deep learning model for three-dimensional point cloud change detection involved in an embodiment of the present invention;
[0047] Figure 2 These are two types of change masks involved in the embodiments of the present invention;
[0048] Figure 3 A flow chart of prior knowledge calculation involved in an embodiment of the present invention;
[0049] Figure 4 A flow chart of a change-aware difference self-attention module CADA according to an embodiment of the present invention;
[0050] Figure 5 The figure is a comparison chart of the three-dimensional change detection performance between the method of the present invention and the existing detection method involved in the embodiment of the present invention. DETAILED DESCRIPTION
[0051] The specific implementation scheme of the urban three-dimensional point cloud change detection method and device based on prior knowledge guidance according to the present invention is described in detail below with reference to the accompanying drawings.
[0052] <Example 1>
[0053] like Figure 1 As shown, the left side is the input of the model, which is the old time series point cloud and the new time series point cloud, and the right side is the output of the model, which represents the old time series change and the new time series change. This embodiment takes two time series input point clouds as an example to illustrate the detection method of the present invention, as follows:
[0054] Step 1: Build a prior knowledge of 3D change detection.
[0055] Three-dimensional change detection is different from change detection in two-dimensional images. It has more obvious differences in geometric form and texture features, and this difference is foreseeable and predictable. Therefore, the changes existing in multi-time point clouds are mined a priori from the perspective of geometric form and texture material. By confirming the neighborhood points between different time point clouds, calculating the difference value of the neighborhood points in geometric space and texture space, and comparing this value with the set threshold, it is determined whether it is a priori change point.
[0056] The present invention defines the change of three-dimensional point cloud as the obvious difference in geometry or texture material of point clouds of different time series in the same spatial area. According to this definition, the changes existing in multi-time series point clouds can be mined a priori from the perspective of geometry and texture material, which can be divided into two steps. The first is to confirm the corresponding positions of point clouds of different time series. In order to compare multi-period point cloud data, it is first necessary to confirm the correspondence between the points. The corresponding positions are spatially adjacent, so this paper uses the shortest Euclidean distance as the judgment criterion for the corresponding positions. Given the sampling points in point cloud PC1 The 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 neighbor points are the corresponding points of each sampling point in the point cloud of another period. Then the change information is calculated a priori. The above method is used to confirm the neighboring points PC1 and PC2 of the input point cloud in another time series point cloud. 12 With PC 21 After that, the potential changes need to be calculated a priori from the geometric space and texture space. First, PC 12 With PC1, PC 21 Spatial distance from each point in PC2 And texture material difference Then, according to the density of the input point clouds PC1 and PC2, the spatial distance threshold is set and And the texture material threshold and If the spatial distance or texture material exceeds the 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 material. Finally, the spatial distance and texture material are weighted and summed, and the result is input into the model as the prior change. The closer the prior change is to 1, the more likely the point is a change point; the closer the prior change is to 0, the more likely the point is an unchanged point; that is, the possibility of the point being a change point is calculated through the nearest neighbor point k of the sampling point s. The closer the change value is to 1, the more likely the sampling point s is a change point; otherwise, it is more likely to be an unchanged point. It can be expressed as follows:
[0057]
[0058]
[0059]
[0060] Where P is the spatial coordinate of the point cloud, and M is the texture information of the point cloud; is the spatial distance threshold, is the texture material threshold; is the spatial distance difference of the point cloud, is the texture material difference of the point cloud; λ1 and λ2 are weight values; KNN is the K-Nearest Neighbor algorithm.
[0061] Given point cloud data of the same position in two different time series, these two data periods must be registered point cloud data. First, the K nearest neighbor algorithm is used to calculate the 16 neighboring points of one time series point cloud in another time series, and the spatial distance and texture material difference of these neighboring points from the sampling point are calculated respectively, and then these values are normalized. If the spatial distance is greater than the threshold value 2.0, the value is changed to 1; if the spatial distance is less than 2.0, the value is divided by 2.0 for normalization. Similarly, if the texture material difference is greater than the threshold value 0.6, the value is changed to 1; if the texture material difference is less than 0.6, the value is divided by 0.6 for normalization. It should be noted that before calculating the texture material difference, the texture material value needs to be normalized to ensure that it is between 0 and 1. After obtaining the normalized spatial distance and texture material difference, the spatial distance and texture material need to be weighted summed, with weight values of 0.5 and 0.5 respectively. The result is the prior change, which provides a priori guidance for subsequent change detection.
[0062] Step 2: Calculate a change mask.
[0063] Based on the prior knowledge of three-dimensional change detection in step 1, the change mask is calculated. This mask is a weight matrix used to correct the attention strength of the model to strengthen the model's learning of the features of the changed area and inhibit the deep learning model from learning the unchanged area.
[0064] According to the a priori change calculated by the above three-dimensional change detection a priori knowledge, the change mask can be calculated. The present invention designs two types of change mask calculation methods, namely continuous mask and discrete mask. Figure 2 As shown. A continuous mask is a continuous value of the weight value within a range, for example: 0 to 1 or 1 to 2. A discrete mask is a single discrete value of the weight value within a set, for example: 0 and 1 or 1 and 2.
[0065] For example, given a point cloud exist The prior changes of different time-series point clouds are calculated through the prior knowledge of the above three-dimensional change detection. The closer the value is to 1, the more likely the point is a potential change point; and the closer the value is to 0, the more likely the point is an unchanged point. Then the prior change is binarized, and a value of 1 is assigned if it is greater than 0.1, and a value of 2 is assigned if it is less than 0.5, and a discrete mask with each element value of 0 or 1 can be obtained. By giving a greater weight to the prior change point and a smaller weight to the prior unchanged point, the model's learning of the change point is strengthened, and the model's learning of the unchanged point is suppressed, thereby effectively guiding the shallow neural network to mine the features of the change area and improving the efficiency of change detection.
[0066] Through experiments on multiple change detection datasets, it is found that continuous masks usually have the best effect. Specifically, a normalized value from 0 to 1 can more effectively guide the model to focus on the learning of the changed area. It should be noted that during the calculation process, the selection of texture material threshold and spatial distance threshold will change according to different external factors. The spatial distance threshold needs to be adapted to the density of the point cloud. If the density of the point cloud is very large, a relatively small spatial distance threshold needs to be set. Otherwise, the spatial distance threshold needs to be increased. The setting of the texture material threshold is related to the lighting conditions of different time series point clouds. If the lighting conditions are very different, the threshold needs to be increased. Otherwise, the threshold needs to be reduced. Both need to be dynamically adjusted according to the different point cloud properties. The range of the spatial distance threshold is [0, +∞), while the range of the texture material is [0.2, 1].
[0067] Step 3: Design a change-aware difference attention method (CADA for short).
[0068] In the change feature encoding stage, the feature extraction module needs to pay as much attention as possible to the areas with changes and weaken the influence of the unchanged areas. Figure 3 As shown, in this embodiment, by combining the change mask in step 2 with the point cloud self-attention, a change-guided point cloud self-attention calculation method is formed to strengthen the feature encoder's learning of change features, thereby improving the performance of change detection. And the enhanced feature values are algebraically differencing at the corresponding positions to obtain the differences between point clouds of different time series. At the same time, the computational complexity and computational overhead of the point cloud self-attention are reduced as much as possible, and the efficiency of city-level three-dimensional change detection is improved.
[0069] The common point cloud self-attention method is through query∈R N×C Matrix with key∈R N×C Matrix multiplication is used to obtain the attention weight. This calculation method has a high computational complexity of O(N 2×C), when the number of input points N is large, ordinary point cloud self-attention will cause huge memory overhead. In order to reduce the computational complexity of attention and cause the smallest possible overhead, the present invention adopts a linear change function to directly convert the input features into attention weights, and the computational complexity is O(N×C). In the shallow feature encoding stage, the attention weights are discrete, and their attention is consistent in the entire point cloud scene. They will not focus on feature learning in the changed area, which will be detrimental to mining the features of the changed area. In order to guide attention to pay more attention to the changed area, the present invention adopts a change mask, which can increase the weight of the changed area and reduce the weight of the unchanged area. After multiplying with the attention weight, the attention weight can be corrected to have a clear change detection direction and purpose, further reducing the computational complexity. The corrected attention weight will undergo a Softmax operation and be multiplied with value∈R N ×C The point cloud self-attention guided by the entire change can be expressed by the following formula.
[0070] CSA(f)=Softmax(L(f)·Mask)·L(f)
[0071] Where CSA(·) is the change-guided point cloud self-attention function, and L(·) is the linear change function.
[0072] Specifically, the input data of the change-aware difference attention method is the features of the two-period point cloud. First, the torch.nn.Linear function is used to transform the point cloud input features into feature space, and the feature weight matrix Matrix and the converted eigenvalue Value of each point in the point cloud are obtained respectively. Then, the feature weight matrix Matrix is matrix-multiplied with the change mask Mask in step 2 to obtain the modified feature matrix fine_matrix. Subsequently, the nn.Softmax function is used to normalize the modified feature matrix fine_matrix to obtain the energy matrix Energy, and the energy matrix Energy is matrix-multiplied with the converted eigenvalue Value to obtain the modified point cloud eigenvalue. Finally, the algebraic difference is used to subtract the point clouds of the two periods to obtain the difference values of the point clouds of different time series.
[0073] Step 4: Form a deep learning model for 3D point cloud change detection 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-sharing 3D change detection twin network model is formed. The model first fully expresses the change characteristics from the two aspects of geometry and texture through the 3D change detection prior knowledge, and then effectively guides the neural network to learn the characteristics of the change area through the change-guided point cloud self-attention algorithm, and finally realizes explainable large-scale urban 3D change detection.
[0075] The specific process is described as follows:
[0076] The model uses a zero-parameter, easy-to-generalize three-dimensional change detection prior knowledge to guide the model to focus on the learning of change points and strengthen the expression of change features. The overall structure of the model is as follows: Figure 1 As shown in the figure, it is a twin network with model weight sharing (model parameter sharing, including weights of convolution operations, attention operations, etc.), which includes a downsampling feature extraction module, a change-driven point cloud difference attention module, and an upsampling feature extraction module. The downsampling feature extraction module and the upsampling feature extraction module are arbitrary feature extraction baseline models, which are mainly responsible for extracting the semantic information of the point cloud. The module first calculates the change mask through empirical knowledge, guides the attention module to focus on the changed area, and weakens the feature learning of the unchanged area, thereby correcting the model features, and then subtracts the corrected features to obtain the differences between multi-time series point clouds. The input of the model is two-phase point cloud data and The data will first pass through a multi-layer feature encoder to extract multi-scale semantic information and And use the change-driven point cloud difference attention module in each layer of feature encoder to calculate the difference between the two phases of point clouds at this scale and The difference value will be fused with the semantic information of the same layer and used as the input of the feature encoder of the next layer. The encoded features (output data of the third layer encoder) have rich semantic information, spatial information and change information, and have the necessary conditions for change detection. It will be input into the feature decoder for multi-level decoding, and finally detect the changes between the two phases of point cloud data. and
[0077] In this embodiment, the model includes 3 downsampling feature extraction modules, 4 change-aware point cloud difference attention modules CADA (formed by steps 1 to 3) and 3 upsampling feature extraction modules. The backbone network in the downsampling feature extraction module adopts the KPConv model, the downsampling feature extraction module adopts grid downsampling, and the upsampling feature extraction module adopts linear interpolation upsampling. After each downsampling feature extraction, a change-aware point cloud difference attention module needs to be connected to calculate the multi-time series point cloud difference. During training, the data area is divided into multiple cylinders, each with a radius of 15 meters and an unlimited height. Each training epoch inputs a total of 6,000 data within the range of the cylinder, and the input data is enhanced before input, such as: point cloud position rotation, translation, noise addition, point cloud texture material change, etc. For the hyperparameters of model training, the initial learning rate of the model is 0.001, Batch_size is set to 10, and a total of 550 cycles are performed. The input data is the spatial coordinate points and texture material information of the point cloud. The first feature space dimension is 64. Each subsequent downsampling expands the feature dimension by two times, and the grid range expands by two times. The range of the first KPConv sampling is 1.0, the number of kernel points is 25, and the maximum number of neighbors is 25, 30, and 38. The model needs to perform a Dropout operation at the end, with a ratio of 0.5. The model uses the Negative Log Likelihood (NLL) loss function to describe the model error. The data sets used in this article are all bi-temporal data. The error of each temporal point cloud is calculated during the calculation, and the error values are accumulated to obtain the overall error of the model. The specific calculation formula is as follows:
[0078]
[0079] In the formula, y t is the true value, y p is the predicted value, is the true value of point cloud 1, is the predicted value of point cloud 1, is the true value of point cloud 2, is the predicted value of 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 decay is step decay, with each decay of 0.02.
[0080] In order to verify the effectiveness of the proposed method, we compared the performance of the proposed method with that of the most advanced model (method) on the public 3D change detection dataset Urb3DCD-V2. The results are shown in Table 1 and Figure 5 shown.
[0081] Table 1 Performance comparison of the three-dimensional change detection method of the present invention and the most advanced method
[0082]
[0083] Table 1 uses mAcc, mIoU and IoU indicators to evaluate the performance of each detection method. The last row is the method proposed in this invention. As can be seen from the table, the method of this invention achieves the best performance of 88.08% mIoU, which is 2.89% higher than the most advanced method in the prior art, and also achieves excellent performance in seven categories, such as vegetation growth (+6.79%). This significant improvement proves the effectiveness of the proposed method in three-dimensional change detection.
[0084] Further, from Figure 5 It can be seen that the method of the present invention reduces the misclassification of changes compared to the prior art method and improves the detection efficiency of changes in dense objects (plants).
[0085] In summary, the present invention proposes the first three-dimensional change detection model guided by prior knowledge, which uses prior knowledge to guide the model to focus on the learning of change points and strengthen the expression of change features. First, the prior differences of multi-time series point clouds are calculated from the geometric morphology and texture features, and the difference values are introduced into the feature learning module to provide a prior change value for the model learning. The feature weight value of the model is then corrected by this value to strengthen the learning of the change area, thereby achieving efficient and accurate urban three-dimensional change detection.
[0086] <Example 2>
[0087] The second embodiment provides a device for automatically detecting changes in urban three-dimensional point clouds based on the above method of the present invention. The device includes a model building unit, a detection unit, an input and display unit, and a control unit.
[0088] The model building unit can execute the contents described in steps 1 to 4 above to build a three-dimensional point cloud change detection deep learning model guided by prior knowledge.
[0089] The detection department uses a 3D point cloud change detection deep learning model to detect 3D changes in cities.
[0090] The input display unit is used to allow the operator to input operation instructions and display corresponding information according to the operation instructions. For example, it can display the input, output and processing data of each unit, compare the detected change situation with the situation before the change, and dynamically display the change process in any period of time according to the time sequence.
[0091] The control unit is connected to the model building unit, the detection unit, and the input display unit to control their operations.
[0092] The above embodiments are merely examples of the technical solutions of the present invention. The urban three-dimensional point cloud change detection method and device based on prior knowledge guidance involved in the present invention are not limited to the contents described in the above embodiments, but are subject to the scope defined by the claims. Any modification, supplement or equivalent replacement made by technicians in the field of the present invention based on this embodiment is within the scope of protection required 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: The steps include: Step 1: Mining prior knowledge of 3D change detection; The changes existing in multi-time sequence point clouds are mined a priori from the perspective of geometric form and texture material, the neighborhood points between different time sequence point clouds are confirmed, the difference values of the neighborhood points in the geometric space and texture space are obtained, and the difference values are compared with the set threshold to calculate the a priori change values of different time sequence point clouds; Step 2, designing a change mask; According to the prior changes of point clouds at different time series, a weight matrix is calculated that can strengthen the model's learning of the features of the changed area and suppress the model's learning effect on the unchanged area, and the weight matrix is used as a change mask; Step 3: Encode the change features through the change-aware difference attention method; Based on the change mask, a change-aware difference attention method is formed to strengthen the feature encoder's learning of change features, and the enhanced feature values are algebraically differencing at the corresponding positions to obtain the differences between point clouds of different time series; Step 4: Based on steps 1 to 3, a deep learning model for three-dimensional point cloud change detection guided by prior knowledge is formed, and the model is used to perform three-dimensional change detection in the city.
2. The urban three-dimensional point cloud change detection method based on prior knowledge guidance according to claim 1 is characterized by: in, Step 1 includes the following sub-steps: Step 1-1, confirm the corresponding positions of different time sequence point clouds: given the sampling points in point cloud PC1 The sampling points in point cloud PC2 Get the K nearest neighbors of s1 in PC2 And the K nearest neighbors of s2 in PC1 These nearest neighbor points are the neighborhood points of the corresponding position of each sampling point in the point cloud of another period; Step 1-2, perform a priori calculation of the change information: Confirm through step 1-1 the neighboring points PC1 and PC2 of the input point cloud in another time series point cloud 12 With PC 21 Then, calculate PC 12 With PC1, PC 21 Spatial distance from each point in PC2 And texture material difference Then, according to the density of the input point clouds PC1 and PC2, the spatial distance threshold is set and And the texture material threshold and If the spatial distance or texture material exceeds the 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 material; finally, the spatial distance and texture material are weighted and summed, and the result is input into the model as the prior change value to provide a priori guidance for subsequent change detection; the closer the prior change value is to 1, the more likely the sampling point is a change point; the closer the prior change value is to 0, the more likely the sampling point is an unchanged point; the prior calculation formula is as follows: Where P is the spatial coordinate of the point cloud, and M is the texture information of the point cloud; is the spatial distance threshold, is the texture material threshold; is the spatial distance difference of the point cloud, is the texture material difference of the point cloud; λ1 and λ2 are weight values; KNN represents the K nearest neighbor algorithm.
3. The urban three-dimensional point cloud change detection method based on prior knowledge guidance according to claim 2 is characterized in that: in, In the change detection process of 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 the density reference value, when the actual point cloud density is equal to the density reference value, the spatial distance threshold is set to 2.0; if the actual point cloud density is greater than the density reference value, the spatial distance threshold is set to be less than 2.0, and the greater the actual point cloud density, the smaller the spatial distance threshold; if the actual point cloud density is less than the density reference value, the spatial distance threshold is set to be greater than 2.0, and the smaller the actual point cloud density, the larger the spatial distance threshold; the value range of the spatial distance threshold is [0, +∞); The texture material threshold should be adapted to the lighting conditions of point clouds of different time series. For the point cloud data of two time series being compared: the lighting difference benchmark is the difference in lighting intensity between the two point cloud data at noon in summer and at 5 pm in summer, and the texture material threshold is set to 0.6; if the actual lighting difference between the point cloud data of the two time series is greater than the lighting difference benchmark, the texture material threshold is set to be greater than 0.6, and the greater the actual lighting difference, the greater the texture material threshold; if the actual lighting difference between the point cloud data of the two time series is less than the lighting difference benchmark, the texture material threshold is set to be less than 0.6, and the smaller the actual lighting difference, the smaller the texture material threshold. When the actual lighting difference is 0, the texture material threshold is 0.2; the value range of the texture material threshold is [0.2,1].
4. The urban three-dimensional point cloud change detection method based on prior knowledge guidance according to claim 2 is characterized by: in, In step 1, when the spatial distance and texture material are weighted and summed to calculate the prior variation, both λ1 and λ2 are set to 0.
5.
5. The method for detecting changes in urban three-dimensional point clouds based on prior knowledge guidance according to claim 1, characterized in that: in, In step 2, given a point cloud exist The prior change values of point clouds of different time series are obtained, and weights are assigned to each sampling point according to the size of the prior change value. The larger the prior change value, the larger the weight value assigned, thereby obtaining a change mask containing the weight values of each sampling point.
6. The method for detecting changes in urban three-dimensional point clouds based on prior knowledge guidance according to claim 1, characterized in that: in, There are two types of change masks: a continuous mask in which the weight value changes continuously within a certain range, and a discrete mask in which the weight value takes a single discrete value within a set. Any change mask is used in step 2.
7. The method for detecting changes in urban three-dimensional point clouds based on prior knowledge according to claim 1, characterized in that: in, The variation mask used in step 2 is a continuous mask with weight values ranging from 0 to 1.
8. The method for detecting changes in urban three-dimensional point clouds based on prior knowledge guidance according to claim 1, characterized in that: in, In step 3, the input data of the change-aware difference self-attention method is the features of the two-period point cloud. First, the point cloud input is transformed into the feature space to obtain the feature weight matrix Matrix and the converted eigenvalue Value of each point in the point cloud respectively; then the feature weight matrix Matrix is matrix-multiplied with the change mask Mask to obtain the modified feature matrix fine_matrix; then, the modified feature matrix fine_matrix is normalized to obtain the energy matrix Energy, and the energy matrix Energy is matrix-multiplied with the converted eigenvalue Value to obtain the modified point cloud eigenvalue; finally, the point clouds of the two periods are subtracted by algebraic difference to obtain the feature difference values of point clouds of different time series; the calculation formula of the change-aware difference self-attention method is: CSA(f)=Softmax(L(f)·Mask)·L(f) Where CSA(·) is the difference self-attention function for change perception, L(·) is the linear change function, and f represents the point cloud feature.
9. The method for detecting changes in urban three-dimensional point clouds based on prior knowledge guidance according to claim 1, characterized in that: in, In step 4, the 3D point cloud change detection deep learning model includes multiple down-sampling feature extraction modules and down-sampling feature extraction modules and several change-aware point cloud difference attention modules, the multiple down-sampling feature extraction modules and the down-sampling feature extraction modules respectively form a multi-layer feature encoder and a multi-layer feature decoder, and the change-aware difference self-attention module is formed by coupling steps 1 to 3; after each down-sampling feature extraction, a multi-time series 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, and then calculates the change mask based on the prior knowledge of 3D change detection. In the change feature encoding stage, the attention strength of the model is corrected based on the change mask in each layer of feature encoder. The learning of change features by the change-aware difference self-attention method is strengthened, and the difference value between the two phases of point clouds is calculated. The difference value is fused with the semantic information of the same layer and used as the input of the next layer of feature encoder. The features output by the last layer of feature encoder are input into the feature decoder for multi-level decoding to detect 3D point cloud changes.
10. A device for detecting changes in urban three-dimensional point clouds based on prior knowledge, capable of automatically executing a method for detecting changes in urban three-dimensional point clouds based on prior knowledge as claimed in any one of claims 1 to 9, characterized in that: include: The model building department builds a deep learning model for 3D point cloud change detection guided by prior knowledge; The detection department uses a 3D point cloud change detection deep learning model to detect 3D changes in the city; The input and display part allows the operator to input operation instructions and displays corresponding information according to the operation instructions; the control part is communicated with the model building part, the detection part, and the input and display part to control their operation.
Citation Information
Cited By
Unmanned aerial vehicle ground three-dimensional change detection method based on neighborhood display feature attention
CN119152332A
Urban scene-oriented three-dimensional change point cloud data set construction method and system
CN120070747A
A method and system for constructing 3D changing point cloud datasets for urban scenes
CN120070747B
Three-dimensional semantic change point cloud data set construction method and system based on deep learning
CN120071043A
Progressive three-dimensional point cloud change detection method based on bidirectional geometric constraint
CN122049793A
