Tree point cloud classification method based on deep point feature aggregation network
Through the deep point feature aggregation network, the adaptive graph attention module and the space filling curve sampling module are used to extract the local geometric features of the tree point cloud, and combined with the channel affinity attention module optimization processing, it solves the feature extraction shortcomings and limitations in the existing technology. For problems with low classification accuracy, higher classification accuracy and robustness are achieved.
Patent Information
- Application Number
- CN202410958470.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-17
- Publication Date
- 2024-10-08
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing deep learning methods have problems with insufficient feature extraction and low classification accuracy in tree point cloud classification, and fail to fully utilize the geometric structure and semantic information of point cloud data.
Using a method based on deep point feature aggregation network, the adaptive graph attention module and space filling curve sampling module are used to extract local geometric features, combined with the channel affinity attention module for feature optimization processing, and a fusion feature set is generated to improve classification accuracy. .
It significantly improves the accuracy and flexibility of point cloud feature representation, can more accurately capture the local geometric features of point clouds, improves classification accuracy and robustness, and is suitable for tree species classification in complex forest scenes.
Smart Images

Figure CN118747823A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the field of remote sensing technology, and in particular relates to tree point cloud classification. Background Art
[0002] In the field of remote sensing technology, the point cloud technology of UAV-mounted laser radar scanning (Light Detection and Ranging, LiDAR) has become an important tool for obtaining three-dimensional data of real scenes. Compared with traditional two-dimensional images, point cloud data provides richer vertical dimension information. Airborne laser radar point cloud data has two significant characteristics: first, the point categories in the scene show obvious geometric characteristics; second, the density of point cloud data is uneven and there is a high degree of redundancy. In terms of the acquisition of three-dimensional point cloud data of forest scenes, light detection and ranging scanning technology has become the main means for tree species identification and classification and accurate extraction of forest parameters. At present, the research methods of tree species point cloud classification are mainly concentrated in the field of machine learning, such as support vector machine (SVM) and random forest (RF). These methods usually combine multi-source remote sensing data such as hyperspectral data and echo intensity for analysis, but they face the problems of data redundancy and difficulty in manual feature selection, and are heavily dependent on professional knowledge and researchers' experience.
[0003] With the rapid development of deep learning technology, scholars have begun to explore its potential in tree point cloud recognition and classification. Related research can be divided into two categories: the first category is to convert tree point cloud data into two-dimensional views or extract voxel data, and then use deep learning models for recognition. However, this process inevitably leads to information loss, destruction of point data features, and reduced model training efficiency. The second category is deep learning network architectures based on point-by-point and hierarchical feature ideas, such as PointNet++ and DGCNN. These methods were originally designed for feature extraction of regular object point clouds, but have limitations when applied to point cloud data acquired by airborne lidar. The traditional sampling methods used in these methods, such as farthest point sampling or uniform sampling, cannot adapt well to their characteristics. Sampling and grouping based on low-dimensional Euclidean distances fail to fully utilize the high-level semantic relationship between points and their neighbors, and are prone to oversampling or undersampling problems in local areas. In addition, in the graph feature representation of point cloud data, the standard convolution operation uses a unified convolution kernel to extract features from all points, ignoring the differences between points and limiting the effect of feature learning. This unified convolution kernel method fails to fully utilize the complex geometric structure and semantic information of point cloud data when processing 3D point cloud data.
[0004] Despite the great success of deep learning models in image recognition and classification, their practical application in tree species classification of complex forest scans is still limited and their potential has not been fully utilized. Existing point cloud feature extraction methods fail to fully exploit the geometric structure of point cloud data, resulting in a lack of specificity in encoding semantic features. Summary of the invention
[0005] The present invention aims to solve the limitations of existing deep learning methods in tree point cloud classification, which leads to insufficient feature extraction and low classification accuracy. A tree point cloud classification method based on a deep point feature aggregation network is now provided.
[0006] The tree point cloud classification method based on deep point feature aggregation network includes:
[0007] The adaptive graph attention module and the space filling curve sampling module are used to extract local geometric features from the tree point cloud sample set P to obtain the fused feature set X. fus ;
[0008] The channel affinity-based attention module is used to calculate the fusion feature set X fus Carry out optimization processing;
[0009] Calculate the optimized fusion feature set F′ N×d The logarithmic probability of each sample in the processed two-dimensional tensor belonging to each category, and the category corresponding to the maximum logarithmic probability is the category of the sample.
[0010] Furthermore, the above-mentioned adaptive graph attention module and space filling curve sampling module are used to extract local geometric features from the tree point cloud sample set P to obtain the fusion feature set X fus ,include:
[0011] The spatial coordinate information set P is extracted using the adaptive graph attention module xyz The local feature set P′ of the sample in the spatial coordinate information set P xyz is a set consisting of spatial coordinate information of samples in the tree point cloud sample set P;
[0012] Based on the space filling curve sampling module, the local feature set P′ and the fused normal vector feature set P norm The samples in are sampled to obtain the local sub-cloud features X′ that can represent the global structure and local correlation of the tree point cloud sample set Z-encode and structural feature X Z-encode , the fused normal vector feature set P norm is a set consisting of fused normal vector features of samples in the tree point cloud sample set P;
[0013] Design relevant tensors to generate the local sub-cloud features X′ Z-encodeThe structure of the correlation tensor P str and incorporates the structural features X Z-encode The position-dependent tensor P pos , through the 2D convolution layer to the structure related tensor P str and the position-dependent tensor P pos Perform information fusion to obtain the fusion feature set X fus .
[0014] Furthermore, the above-mentioned adaptive graph attention module is used to extract the spatial coordinate information set P xyz The local feature set P′ of the samples in , includes:
[0015] The spatial coordinate information set P xyz Represented as P xyz ={x i |i=1,2,...,N}, where N is the number of data points in the tree point cloud, x i is the spatial coordinate point of the i-th data point;
[0016] Then the edge feature e ij =[x i ,x j -x i ], j = 1, 2, ..., N;
[0017] According to the edge feature e ij Dynamically generate convolution kernels
[0018]
[0019] Among them, g m (·) represents the feature mapping function represented by the multi-layer perceptron, m = 1, 2, ..., M, M is the dimension of the output feature of the adaptive graph attention module;
[0020] Convolve the input channel of the adaptive graph attention module with the corresponding filter weight to obtain the m-th dimension feature h in the output feature of the adaptive graph attention module ijm :
[0021]
[0022] Among them, <·,·> represents the inner product of two vectors, and σ represents the activation function;
[0023] Stack the features of all dimensions to form edge features h ij , then the aggregation function can be used to obtain x i The output feature x′ i :
[0024]
[0025] All output features x′ i The local feature set P′ that constitutes the output of the adaptive graph convolution module is:
[0026] P′={x′ i |i=1,2,...,N}.
[0027] Furthermore, the above-mentioned space filling curve sampling module samples the local feature set P′ and the fused normal vector feature set P norm The samples in are sampled to obtain the local sub-cloud features X′ that can represent the global structure and local correlation of the tree point cloud sample set Z-encode and structural feature X Z-encode ,include:
[0028] The local feature set P′ and the fused normal vector feature set P are processed using the set abstraction layer norm , obtain the point cloud position information set X containing N′ points in the original spatial position information pos ;
[0029] Use ball query to obtain the spatial coordinate point x of the i-th data point in the tree point cloud sample set P i The set of surrounding points X r , and calculate the embedded feature set X according to the following formula emb :
[0030] X emb =Pooling{Concat[Conv(X r ),X r ]},
[0031] Among them, Pooling{} represents the maximum pooling function, Concat[] represents the fusion function of point features, and Conv() is the 1D convolution function;
[0032] For the point cloud position information set X pos and embedding feature set X emb Perform Z-order curve encoding and sorting, and perform equal-space sampling in the one-dimensional feature space respectively. The point cloud position information set X pos The sampling result is the local subcloud feature X′ Z-encode , the embedded feature set X emb The sampling result is the structural feature X Z-encode .
[0033] Furthermore, the above-mentioned design related tensor generates the local sub-cloud feature X′ Z-encode The structure of the correlation tensor P str and incorporates the structural features X Z-encode The position-dependent tensor Ppos , through the 2D convolution layer to the structure related tensor P str and the position-dependent tensor P pos Perform information fusion to obtain the fusion feature set X fus ,include:
[0034] Design related tensor functions Fusion(·,·),
[0035] Use Fusion(·,·) to embed the feature set X emb and the local subcloud feature X′ Z-encode Fusion is performed to generate the structure-related tensor P str :
[0036] P str =Fusion(X emb ,X′ Z-encode );
[0037] Fusion (·,·) is used to combine the point cloud position information set Xpos with the structural feature X Z-encode Fusion is performed to generate position-related tensor P pos :
[0038] P pos =Fusion(P pos ,X Z-encode );
[0039] The structure related tensor P is transformed through a 2D convolutional layer str and the position-dependent tensor P pos Perform information fusion to obtain point cloud features X containing geometric structure and correlation information Cor&Str :
[0040] X Cor&Str =Pooling{Relu[g(Concat(P str ,P pos ))]},
[0041] Where g(·) represents a multilayer perceptron, and Relu[] represents an activation function;
[0042] Through the skip connection, X Cor&Str , X emb and X pos Fuse them together to obtain the fused feature set X fus :
[0043] X fus =Concat(X emb +X Cor&Str ,X pos ).
[0044] Furthermore, the above-mentioned related tensor function Fusion(·,·) is expressed as follows:
[0045]
[0046] Among them, X and Y are two sets with fusion.
[0047] Furthermore, the above-mentioned channel affinity-based attention module is applied to the fusion feature set X fus Optimization processing, including:
[0048] The fusion feature set X is fused using the attention module based on channel affinity. fus The input feature maps of multiple channels are processed to obtain a single channel vector c γ , and convert the single channel vector c γ The spatial dimension of is compressed from N to N′, where N is the number of data points in the tree point cloud;
[0049] Multilayer Perceptron MLP using query matrix q (·) and key matrix multilayer perceptron MLP k (·) Generate query matrix Q respectively N′×d and key matrix K N′×d :
[0050] Q N′×d =[q1,q2,...,q d ], q γ =MLP q (c γ ),
[0051] K N′×d =[k1,k2,...,k d ],k γ =MLP k (c γ );
[0052] Transpose the query matrix With the key matrix K N′×d The product of is used as the channel similarity matrix SimMat d×d ;
[0053] Along the similarity matrix SimMat d×d Find the maximum similarity in the columns, expand it to d dimensions, and then subtract the similarity matrix SimMat from the expanded matrix d×d , and then use the softmax function to convert it into weights and perform weighted averaging to obtain the affinity matrix AffMat d×d ;
[0054] Multilayer Perceptron MLP v (·) Get the value matrix V N′×d :
[0055] V N′×d =[v1,v2,...,v d ],v γ =MLP v (c γ );
[0056] The value matrix V N′×d AffMat d×d Multiply, introduce residual connection, add the weighted features to the original feature map F, and adjust the ratio according to the weight α to obtain the optimized fusion feature set F′ N×d :
[0057] F′ N×d =F+α·V N′×d ·AffMat d×d .
[0058] Further, the affinity matrix AffMat is obtained. d×d The formula is as follows:
[0059]
[0060] Among them, softmax{} represents the normalized exponential function, expand 1→d [] indicates expansion to d dimensions, Represents the similarity matrix SimMat along d×d Find the maximum similarity in the columns.
[0061] Furthermore, the above multi-layer set abstraction layer is used to optimize the fusion feature set F′ N×d Processing is performed to obtain a two-dimensional tensor, and the logarithmic probability of each sample in the two-dimensional tensor belonging to each category is calculated, including:
[0062] Use a multi-layer set abstraction layer to optimize the fusion feature set F′ N×d and the position-dependent tensor P pos After processing, a set of two-dimensional tensors are obtained, which are then passed through the fully connected layer, batch normalization, activation function Relu and dropout layer to obtain a two-dimensional vector x;
[0063] Convert the score of each sample in the two-dimensional vector x into a probability distribution:
[0064]
[0065] Among them, x ijis the score of the i-th sample in the j-th category in the two-dimensional vector x, softmax(x ij ) is x ij The probability distribution of K is the total number of categories, k = 1, 2, ..., K;
[0066] For softmax(x ij ) Take the logarithm to obtain the log probability.
[0067] Furthermore, the method for obtaining the tree point cloud sample set P includes:
[0068] The original tree point cloud is constructed using the information of all trees in the target forest area, and the original tree point cloud is subjected to denoising, ground point filtering and individual tree segmentation processing in sequence to obtain a tree point cloud sample set P.
[0069] The tree point cloud classification method based on deep point feature aggregation network described in the present invention has the following beneficial effects:
[0070] 1. In the traditional graph attention mechanism, the standard convolution operation often uses a unified convolution kernel to extract features from all points. This method ignores the differences between points, resulting in limited feature learning effects, such as corners or edges. Unlike the popular attention weighted algorithm, the present invention implements adaptation in the convolution operation, rather than simply assigning different weights to neighborhood points, so that the convolution kernel can distinguish the different contributions of points from different semantic parts of the point cloud, and more effectively enhance the graph feature representation. The present invention replaces the single convolution kernel in the traditional graph attention mechanism by dynamically learning the features of the points and generating an adaptive kernel, effectively capturing the subtle differences between points in different semantic parts of the point cloud. Especially when dealing with areas with significant geometric changes, such as corners or edges, the adaptive graph convolution technology demonstrates its excellent performance, enabling the graph feature representation to better adapt to the complexity and diversity of the tree point cloud. Through the adaptive graph convolution method, the accuracy and flexibility of the point cloud graph feature representation are significantly improved, and the local geometric features of the point cloud can be captured more accurately, which has a wide range of application potential.
[0071] 2. The present invention adopts the space-filling curve guided sampling technology, which not only maintains the local structural information of the point cloud through orderly coding and sorting, but also effectively maps the position information of the original points in one-dimensional space and the similarity of adjacent points in three-dimensional space. Each point is assigned a unique position code to ensure the preservation of geometric order, which is crucial for applications that require fine local structural information. In addition, the present invention realizes the accurate evaluation and integration of local sub-cloud features and structural features in point cloud data by designing information fusion technology combining correlation tensors and 2D convolutional layers. This fusion technology not only maintains the geometric structure and correlation information of the features, but also further improves the effect of feature fusion through tensor optimization, providing strong support for in-depth analysis of point cloud data.
[0072] 3. The present invention introduces a learnable matrix definition and feature weighting method. This key channel attention module enables the learning and weighting process of features to be directly guided by downstream tasks, significantly improving the expressiveness of features and the classification performance of the model. By reducing channel redundancy in the feature embedding space, the present invention improves processing performance and efficiency, especially when processing point cloud data containing noise or redundant information, its advantages are more obvious. This method is suitable for processing high-dimensional data, can reduce computational complexity, and retain key information of the data, providing an efficient and accurate method for the analysis and application of point cloud data. In the tree point cloud classification task, the present invention effectively solves the challenges in the classification of irregular objects by adjusting the configuration of the feature matrix in the channel information and combining the improved graph attention convolutional network and spatial curve sampling feature extraction technology. This comprehensive technical solution not only improves the pertinence of geometric feature extraction and reduces feature redundancy, but also shows higher accuracy and robustness in practical applications, such as the classification of tree point cloud data, providing a new perspective and strong technical support for the field of point cloud data analysis.
[0073] In summary, the present invention integrates the adaptive graph convolution mechanism and the deep point feature aggregation of the space filling curve guided sampling module, which is suitable for tree point cloud classification. BRIEF DESCRIPTION OF THE DRAWINGS
[0074] Figure 1 Program flow chart for the deep point feature aggregation network model;
[0075] Figure 2 This is a schematic diagram of the specific implementation of the adaptive graph attention module;
[0076] Figure 3 Schematic diagram of feature extraction and fusion based on space-filling curve guided sampling;
[0077] Figure 4 Implement a flowchart for the affinity matrix-based channel attention mechanism;
[0078] Figure 5 This is the morphological analysis diagram of the sample tree point cloud;
[0079] Figure 6 A diagram of the confusion matrix showing the detailed classification results of each algorithm on the test set;
[0080] Figure 7 The bar chart shows the accuracy of each category of the eight algorithms calculated based on the confusion matrix;
[0081] Figure 8 Bar chart of recall for each category of the eight algorithms calculated from the confusion matrix. DETAILED DESCRIPTION
[0082] The following will be combined with the accompanying drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work belong to the scope of protection of the present invention. It should be noted that the embodiments of the present invention and the features in the embodiments can be combined with each other without conflict.
[0083] Specific implementation method 1: This implementation method selects the forest area of Bretten, Germany as the target forest area. Figures 1 to 4 Specifically describing this embodiment, the tree point cloud classification method based on the deep point feature aggregation network described in this embodiment includes:
[0084] S1. Preprocess the original tree point cloud, including denoising, ground point filtering and individual tree segmentation, so as to obtain the initial sample set to be tested after processing. The initial sample set contains point cloud information of 1,138 different trees in the forest and 4 different categories. The details are as follows:
[0085] S11. Use the statistical filtering algorithm in CloudCompare software (3D point cloud processing software) to remove the noise of the point cloud data in the original tree point cloud; then, use the "cloth" filter algorithm (CSF) to remove the ground data points to simplify the data. This step uses fewer algorithm parameters and faster separation speed, achieving efficient denoising and ground data point removal for the original tree point cloud.
[0086] S12. Use the top-down individual tree segmentation algorithm to segment the point cloud data processed by S11, separate individual trees from the overall tree point cloud, and finally obtain 1138 trees as research samples.
[0087] S13. Referring to the ModelNet40 format, convert the las file in the point cloud data processed by S12 into txt format; then calculate the normal vector of each point cloud data to enhance the geometric feature representation of the tree point cloud, realize the standardization of the data format, ensure the consistency and accuracy of the data, and facilitate subsequent processing and analysis.
[0088] S14. To meet the input requirements of the deep learning model, upsample or downsample each point cloud data processed by S13 to control the number of points in the single tree point cloud and obtain the initial sample set (TreeNet) Where N is the number of data points in the tree point cloud obtained by sampling the farthest point, and D represents the dimension of the feature channel. In this embodiment, D=6. The first three dimensions of the initial sample set P are Represents the spatial coordinate information of the initial sample set P, and the last three dimensions Represents the normal vector information of the initial sample set P. The point cloud data in the initial sample set P is randomly divided into a training set and a test set in a ratio of 4:1.
[0089] S2. A feature extraction strategy is proposed for the features of the point cloud data in the initial sample set P. The strategy uses a feature extraction and fusion module (i.e., adaptive graph attention module) that integrates adaptive graph attention convolution and space filling curve to select data points in the geometric feature salient area from the initial sample set P to obtain a fused feature set. The details are as follows:
[0090] S21, such as Figure 2 As shown, P xyz As the input point set, it is sent to the adaptive graph attention module, which uses an adaptive convolution kernel algorithm and an optimized graph convolution attention mechanism to extract the input point set P xyz Local geometric features of the feature point set To enhance the ability of feature representation. The adaptive graph attention module enhances the diversity of convolution kernels in the graph convolution process through an adaptive mechanism, which can distinguish points in different semantic parts of the point cloud and accurately reflect the difference in their contribution to local geometric features, thus obtaining a set of global information that integrates local features. The adaptive graph attention module aims to generate a set of new M-dimensional features with the same number of points, which can adaptively reflect local geometric features and surpass traditional graph convolution methods. Specifically:
[0091] S211, input point set P xyz It is expressed as:
[0092] The k-nearest neighbor algorithm is used to construct a directed graph G(V,E) based on P, where V represents the vertex set and E is the point-to-point edge set. Edge feature e ijGenerated by the geometric relationship between point pairs, by connecting the feature points x i and its edge vector x j -x i Formation, that is, e ij =[x i ,x j -x i ].in, is the spatial coordinate of the ith data point, N i [x i ] means finding feature point x through nearest neighbor algorithm i All neighboring points x j , j=1,2,...,N, “[]” represents the connection operation of points and edges.
[0093] S212、Traditional methods usually i A fixed kernel function is applied to all the neighborhood points of to obtain geometric information. i When located in an area with significant geometric shapes, such as a corner or edge, its different neighbor points x j This step uses an adaptive mechanism to capture the unique relationship between point pairs. For each channel in the output feature, according to the point pair feature e ij =[x i ,x j -x i ] function dynamically generates convolution kernels
[0094]
[0095] Where m = 1, 2, ..., M, M is the dimension of the output feature of the adaptive graph attention module, g m (·) is the feature mapping function represented by the multi-layer perceptron.
[0096] S213, by convolving the input channel of the adaptive graph attention module with the corresponding filter weight, obtain the feature h of the mth dimension in the output feature ijm :
[0097]
[0098] Among them, <·,·> represents the inner product of two vectors, and σ represents the activation function.
[0099] S214、M-dimensional h ijm Stacking to form edge features h ij , center point x i The output feature x′ i Defined by applying an aggregation function to all edge features in the feature map:
[0100]
[0101] Then the local feature set P′ output by the adaptive graph convolution module is:
[0102] P′={x′ i |i=1,2,...,N}.
[0103] S22, such as Figure 3 As shown, the point cloud data processing method based on space-filling curve guided sampling can maintain the spatial proximity of point cloud data to achieve meaningful geometric ordering and efficient data representation.
[0104] S221, using the set abstraction layer to process the local feature set P′ and the fused normal vector feature set P output by the adaptive graph convolution module norm , obtain the point cloud position information set containing N′ points in the original spatial position information and embedding feature set X emb :
[0105] X emb =Pooling{Concat[Conv(X r ),X r ]},
[0106] Among them, X r Represents x obtained using ball query i A collection of surrounding points, Pooling{} represents the maximum pooling function, Concat[] represents the fusion function of point features, and Conv() is a 1D convolution function.
[0107] In this step, the neighborhood point set X r The points in are encoded into high-dimensional space through a multi-layer perceptron, and the feature information of the neighborhood points is aggregated to all sampling points through the Pooling{} function to obtain the encoded feature embedding information set X emb .
[0108] S222, using the Z-order curve encoding function to encode the point cloud position information X pos and feature embedding information set X emb Further downsampling is performed to obtain local regions with high-level semantic correlation. pos and X emb Z-order curve encoding and sorting are performed to ensure that the position information of the original points is effectively maintained in one-dimensional space and the similarity of adjacent points in three-dimensional space is reflected, so that each point is assigned a unique position code to ensure that the geometric order of the points is preserved.
[0109] S223, sampling points with equal spacing (three to five points as one interval) in the one-dimensional feature space to reduce the data dimension while maintaining locality, then pos The sampling result is a local subcloud feature. X emb Sampling results are structural features The final sampled point set represents the global structure and local correlation of the original point set.
[0110] S23. Design a unique information fusion mode to promote the feature learning process, so as to extract a set of sampling points containing shape structure and local area related information.
[0111] S231. Design related tensors, and concatenate the corresponding elements of the two feature sets X and Y through the related tensor function Fusion(·,·) to generate a matrix containing all possible pairs of elements. This step is achieved by constructing a two-dimensional matrix, in which each row represents the concatenation of an element in X with all elements in Y, thus providing a rich space for the interaction between features. The expression is:
[0112]
[0113] S232, using the relevant tensor to embed the feature set X emb and local subcloud characteristics X′ Z-encode Fusion is performed to generate the structure-related tensor P str :
[0114] P str =Fusion(X emb ,X′ Z-encode ).
[0115] At the same time, the point cloud position information set X is transformed into pos With structural feature X Z-encode Fusion is performed to generate position-related tensor P pos :
[0116] P pos =Fusion(P pos ,X Z-encode ).
[0117] This fusion process not only enhances the expressiveness of features, but also provides a unified description for the locality and globality of point cloud data.
[0118] S233. Design a 2D convolution layer to fuse the related tensors, process the fused features through a multi-layer perceptron g(·) and Relu activation function, and then perform a pooling operation to obtain a point cloud feature X containing geometric structure and correlation information.Cor&Str :
[0119] X Cor&Str =Pooling{Relu[g(Concat(P str ,P pos ))]}.
[0120] Finally, through the skip connection, X Cor&Str , X emb and X pos Fusion together to obtain the fusion feature set X fus :
[0121] X fus =Concat(X emb +X Cor&Str ,X pos ).
[0122] This fusion feature not only contains the local details of the point cloud, but also incorporates the overall geometric structure information, providing rich feature support for the in-depth analysis and application of the point cloud.
[0123] The above S2 can effectively solve the problem of lack of pertinence in geometric feature extraction when classifying tree point clouds in the prior art. The combination of adaptive graph attention mechanism and serialized point cloud neighborhood mapping not only improves the accuracy of feature extraction, but also enhances the model's adaptability to complex point cloud data.
[0124] S3, such as Figure 4 As shown, the fusion feature set X fus The information is sent to the channel affinity-based attention module, which is used to optimize the feature processing process of point cloud data and improve the performance when processing input data containing noisy or redundant information.
[0125] S31, using the channel affinity-based attention module to fusion feature set X fus The input feature map F of multiple channels is formed N×d =[c1,c2,...,c d ] to obtain a single-channel vector d is the fusion feature set X fus The total number of channels. For a single channel vector c γ Processing is performed to compress the spatial dimension to N′=N / times, times=4, reducing the data dimension while retaining the channel information.
[0126] S32, using two multi-layer perceptrons MLP q (·) and MLP k (·) Generate query matrix Q N′×d and key matrix K N′×d :
[0127]
[0128] Transpose the query matrix With the key matrix K N′×d The product of is defined as the channel similarity matrix SimMat d×d :
[0129]
[0130] S33, along the similarity matrix SimMat d×d The columns of are used to find the maximum similarity and expand it to d dimensions. The affinity matrix AffMat is obtained by subtracting the original similarity matrix from the expanded matrix, converting it into weights using the softmax function, and performing weighted averaging. d×d :
[0131]
[0132] S34, through multi-layer perceptron MLP v (·) Get the value matrix V N′×d :
[0133] V N′×d =[v1,v2,...,v d ],
[0134] The value matrix V N′×d AffMat d×d Multiply them to achieve refined weighted processing. Introduce residual connection, add the weighted features to the original feature map F, and adjust the ratio of the two according to the learnable weight α to obtain the optimized fusion feature set F′ N×d :
[0135] F′ N×d =F+α·V N′×d ·AffMat d×d .
[0136] S4, using a multi-layer set abstraction layer to optimize the fusion feature set F′ output by the channel attention module N×d and the position-dependent tensor P pos After processing, a set of two-dimensional tensors are obtained, which are processed through a series of fully connected layers, batch normalization, Relu activation function and dropout layers to obtain the final two-dimensional vector x, where the first dimension represents the number of samples and the second dimension represents the score of the category.
[0137] The softmax function is used to convert the score of each sample in the two-dimensional vector x into a probability distribution:
[0138]
[0139] Among them, x ij is the score of the i-th sample in the j-th category in the two-dimensional vector x, K is the total number of categories, k=1,2,...,K.
[0140] Use log_softmax function to calculate softmax(x ij ) takes the logarithm, and the output is a two-dimensional tensor containing the logarithmic probability of each sample corresponding to each category:
[0141] log_softmax(x ij )=log[softmax(x ij )].
[0142] Finally, the category of the sample is determined according to the maximum logarithmic probability.
[0143] In the training phase, the performance of different models is compared to select the best classification model for subsequent tree point cloud classification. A variety of evaluation indicators are used to evaluate the performance of the deep point feature aggregation network for tree point cloud classification. The evaluation indicators used include: Overall Accuracy OA, precision, recall, macro-average accuracy mAcc, macro-average precision (mPre) and macro-average F1 score macro-F1. First, the overall accuracy OA summarizes the performance of the model in the entire dataset by calculating the proportion of correctly predicted samples to the total samples. Secondly, precision evaluates the accuracy of the model's positive prediction by measuring the proportion of all predicted positive categories that are actually positive. The recall rate recall measures the model's ability to identify all actual positive categories, emphasizing the model's comprehensiveness and sensitivity to minority categories. For multi-category problems, the macro-average accuracy mPre is used as the average of the accuracy of each category, and the macro-average accuracy mAcc is used as the average of the recall of each category. The macro-average F1 score is the harmonic average of precision and recall, providing a balanced measure of the overall performance of the model across all classes.
[0144] The specific calculation formulas for the above indicators are as follows:
[0145]
[0146] In the above formulas, TP (True Positive) represents the number of samples correctly predicted as positive by the model, TN (True Negative) represents the number of samples correctly predicted as negative, FN (False Negative) or missed detection is the number of samples where the model incorrectly predicts positive as negative, and FP (False Positive) or false alarm is the number of samples where the model incorrectly predicts negative as positive.
[0147] Specific implementation method 2: refer to Figures 5 to 8 The recognition effect of this embodiment is further described with a set of specific experimental examples. The experiments of this embodiment are based on the original large forest location cloud dataset. The sample category distribution and morphological analysis results are shown in Tables 1 and 2, respectively. Figure 5 Displayed in.
[0148] The initial model achieved an average accuracy of 81.32% by directly concatenating features and applying the channel space attention module without integrating adaptive graph features. In order to further explore the impact of network structure on classification performance, this implementation introduced space filling curve sampling and feature extraction fusion modules, which significantly improved the model performance and proved the key role of feature sampling fusion in improving model performance.
[0149] In further experiments, this implementation explored the impact of different numbers of neighboring points in the adaptive graph attention module on performance and found that increasing the number of neighboring points helps extract richer local feature information, thereby improving model performance. In addition, the experiment also compared the performance of the channel space attention module with the channel-based affinity attention module.
[0150] The results show that the affinity attention module shows better performance under different neighboring point configurations, which further confirms the importance of appropriate feature redundancy processing methods for improving model performance. Finally, the experimental results prove the efficiency and superiority of the proposed method in the tree point cloud classification task. This implementation not only demonstrates the superior performance of the deep point feature aggregation network model, but also emphasizes the importance of model structure optimization for improving classification accuracy. The experimental results provide strong data support for the further improvement and application of the model.
[0151] Table 1 Sample category distribution
[0152]
[0153] Table 2 Method validation
[0154]
[0155] Table 3 Performance comparison with similar methods (%)
[0156]
[0157] This implementation aims to verify its superior performance in the irregular tree point cloud classification task. To this end, a comparative experiment was conducted on this implementation, the PointNet series, the Transformer series, and the point cloud classification method based on traditional machines on the constructed test dataset. The classification results are respectively Figure 6 , Figure 7 and Figure 8 , while Table 3 provides detailed data of various classification performance indicators. From the data in Table 3, it can be clearly seen that the present embodiment is superior to other similar methods in terms of overall accuracy, precision, recall rate, F1 score and other relevant evaluation indicators. These results not only prove the efficiency of the present embodiment in the tree point cloud classification task, but also highlight its superior performance in processing tree point cloud data. The reason why the classification performance of the present embodiment can surpass the existing point cloud classification technology is mainly due to its unique deep point feature aggregation network structure, which can effectively capture the local and global features in the point cloud data, and improve the classification accuracy through advanced feature fusion technology. In addition, the present embodiment fully considers the computational efficiency and the feasibility of practical application in its design, so that it has good practicality while maintaining high classification performance.
[0158] Although the present invention is described herein with reference to specific embodiments, it should be understood that these embodiments are merely examples of the principles and applications of the present invention. It should therefore be understood that many modifications may be made to the exemplary embodiments and that other arrangements may be devised without departing from the spirit and scope of the present invention as defined by the appended claims. It should be understood that the various dependent claims and features described herein may be combined in a manner different from that described in the original claims. It should also be understood that the features described in conjunction with a single embodiment may be used in other described embodiments.
Claims
1. A tree point cloud classification method based on a deep point feature aggregation network, characterized in that: include: The adaptive graph attention module and the space filling curve sampling module are used to extract local geometric features from the tree point cloud sample set P to obtain the fused feature set X. fus ; The channel affinity-based attention module is used to calculate the fusion feature set X fus Carry out optimization processing; Calculate the optimized fusion feature set F N ' ×d The logarithmic probability of each sample in the processed two-dimensional tensor belonging to each category, and the category corresponding to the maximum logarithmic probability is the category of the sample.
2. The tree point cloud classification method based on deep point feature aggregation network according to claim 1 is characterized in that: The adaptive graph attention module and the space filling curve sampling module are used to extract local geometric features from the tree point cloud sample set P to obtain the fusion feature set X fus , include: The spatial coordinate information set P is extracted using the adaptive graph attention module xyz The local feature set P′ of the sample in the spatial coordinate information set P xyz is a set consisting of spatial coordinate information of samples in the tree point cloud sample set P; Based on the space filling curve sampling module, the local feature set P′ and the fused normal vector feature set P norm The samples in are sampled to obtain the local sub-cloud features X′ that can represent the global structure and local correlation of the tree point cloud sample set Z-encode and structural feature X Z-encode , the fused normal vector feature set P norm is a set consisting of fused normal vector features of samples in the tree point cloud sample set P; Design relevant tensors to generate the local sub-cloud features X′ Z-encode The structure of the correlation tensor P str and incorporates the structural features X Z-encode The position-dependent tensor P pos , through the 2D convolution layer to the structure related tensor P str and the position-dependent tensor P pos Perform information fusion to obtain the fusion feature set X fus .
3. The tree point cloud classification method based on deep point feature aggregation network according to claim 2 is characterized in that: The adaptive graph attention module is used to extract the spatial coordinate information set P xyz The local feature set P′ of the samples in , includes: The spatial coordinate information set P xyz Represented as P xyz ={x i |i=1,2,...,N}, where N is the number of data points in the tree point cloud, x i is the spatial coordinate point of the i-th data point; Then the edge feature e ij =[x i ,x j -x i ], j = 1, 2, ..., N; According to the edge feature e ij Dynamically generate convolution kernels Among them, g m (·) represents the feature mapping function represented by the multi-layer perceptron, m = 1, 2, ..., M, M is the dimension of the output feature of the adaptive graph attention module; Convolve the input channel of the adaptive graph attention module with the corresponding filter weight to obtain the m-th dimension feature h in the output feature of the adaptive graph attention module ijm : Among them, <·,·> represents the inner product of two vectors, and σ represents the activation function; Stack the features of all dimensions to form edge features h ij , then the aggregation function can be used to obtain x i The output features x i ′: All output features x i ’ constitutes the local feature set P’ output by the adaptive graph convolution module: P′={x i ′|i=1,2,...,N}。 4. The tree point cloud classification method based on deep point feature aggregation network according to claim 2 is characterized in that: The space filling curve sampling module is based on the local feature set P' and the fused normal vector feature set P norm The samples in are sampled to obtain the local sub-cloud features X′ that can represent the global structure and local correlation of the tree point cloud sample set Z-encode and structural feature X Z-encode ,include: The local feature set P′ and the fused normal vector feature set P are processed using the set abstraction layer norm , obtain the point cloud position information set X containing N′ points in the original spatial position information pos ; Use ball query to obtain the spatial coordinate point x of the i-th data point in the tree point cloud sample set P i The set of surrounding points X r , and calculate the embedded feature set X according to the following formula emb : X emb =Pooling{Concat[Conv(X r ),X r ]}, Among them, Pooling{} represents the maximum pooling function, Concat[] represents the fusion function of point features, and Conv() is the 1D convolution function; For the point cloud position information set X pos and embedding feature set X emb Perform Z-order curve encoding and sorting, and perform equal-space sampling in the one-dimensional feature space respectively. The point cloud position information set X pos The sampling result is the local subcloud feature X′ Z-encode , the embedded feature set X emb The sampling result is the structural feature X Z-encode .
5. The tree point cloud classification method based on deep point feature aggregation network according to claim 4 is characterized in that: The design-related tensor generates the local sub-cloud feature X′ Z-encode The structure of the correlation tensor P str and incorporates the structural features X Z-encode The position-dependent tensor P pos , through the 2D convolution layer to the structure related tensor P str and the position-dependent tensor P pos Perform information fusion to obtain the fusion feature set X fus ,include: Design related tensor functions Fusion(·,·), Fusion(·,·) is used to embed the feature set X emb and the local subcloud feature X′ Z-encode Fusion is performed to generate the structure-related tensor P str : P str =Fusion(X emb ,X′ Z-encode ); Fusion (·,·) is used to combine the point cloud position information set Xpos with the structural feature X Z-encode Fusion is performed to generate position-related tensor P pos : P pos =Fusion(P pos ,X Z-encode ); The structure related tensor P is transformed through a 2D convolutional layer str and the position-dependent tensor P pos Perform information fusion to obtain point cloud features X containing geometric structure and correlation information Cor&Str : X Cor&Str =Pooling{Relu[g(Concat(P str ,P pos ))]}, Where g(·) represents a multilayer perceptron, and Relu[] represents an activation function; Through the skip connection, X Cor&Str , X emb and X pos Fuse them together to obtain the fused feature set X fus : X fus =Concat(X emb +X Cor&Str ,X pos )。 6. The tree point cloud classification method based on deep point feature aggregation network according to claim 5 is characterized in that: The related tensor function Fusion(·,·) is expressed as follows: Among them, X and Y are two sets with fusion.
7. The tree point cloud classification method based on deep point feature aggregation network according to claim 1 is characterized in that: The channel affinity-based attention module is used to calculate the fusion feature set X fus Optimization processing, including: The fused feature set X is fused using an attention module based on channel affinity. fus The input feature maps of multiple channels are processed to obtain a single channel vector c γ , and convert the single channel vector c γ The spatial dimension of is compressed from N to N′, where N is the number of data points in the tree point cloud; Multilayer Perceptron MLP using query matrix q (·) and key matrix multilayer perceptron MLP k (·) Generate query matrix Q respectively N′×d and key matrix K N′×d : Q N′×d =[q1,q2,...,q d ],q γ =MLP q (c γ ), K N′×d =[k1,k2,...,k d ],k γ =MLP k (c γ ); Transpose the query matrix With the key matrix K N′×d The product of is used as the channel similarity matrix SimMat d×d ; Along the similarity matrix SimMat d×d Find the maximum similarity in the columns, expand it to d dimensions, and then subtract the similarity matrix SimMat from the expanded matrix d×d , and then use the softmax function to convert it into weights and perform weighted averaging to obtain the affinity matrix AffMat d×d ; Multilayer Perceptron MLP v (·) Get the value matrix V N′×d : V N′×d =[v1,v2,...,v d ],v γ =MLP v (c) γ ); The value matrix V N′×d AffMat d×d Multiply, introduce residual connection, add the weighted features to the original feature map F, and adjust the ratio according to the weight α to obtain the optimized fusion feature set F N ' ×d : F N ′ ×d =F+α·V N′×d ·AffMat d×d 。 8. The tree point cloud classification method based on deep point feature aggregation network according to claim 7 is characterized in that: Get the affinity matrix AffMat d×d The formula is as follows: Among them, softmax{} represents the normalized exponential function, expand 1→d [] indicates expansion to d dimensions, Represents the similarity matrix SimMat along d×d Find the maximum similarity in the columns.
9. The tree point cloud classification method based on deep point feature aggregation network according to claim 2 is characterized in that: The optimized fusion feature set F is optimized by using a multi-layer set abstraction layer. N ' ×d Processing is performed to obtain a two-dimensional tensor, and the logarithmic probability of each sample in the two-dimensional tensor belonging to each category is calculated, including: The optimized fusion feature set F is processed using a multi-layer set abstraction layer. N ' ×d and the position-dependent tensor P pos After processing, a set of two-dimensional tensors are obtained, which are then passed through the fully connected layer, batch normalization, activation function Relu and dropout layer to obtain a two-dimensional vector x; Convert the score of each sample in the two-dimensional vector x into a probability distribution: Among them, x ij is the score of the i-th sample in the j-th category in the two-dimensional vector x, softmax(x ij ) is x ij The probability distribution of K is the total number of categories, k = 1, 2, ..., K; For softmax(x ij ) Take the logarithm to obtain the log probability.
10. The tree point cloud classification method based on deep point feature aggregation network according to any one of claims 1 to 9, characterized in that: The method for obtaining the tree point cloud sample set P includes: The original tree point cloud is constructed using the information of all trees in the target forest area, and the original tree point cloud is subjected to denoising, ground point filtering and individual tree segmentation processing in sequence to obtain a tree point cloud sample set P.
Citation Information
Patent Citations
Target identification method based on adaptive graph convolutional neural network
CN117671666A
Point cloud classification method and system based on multidimensional feature fusion attention pooling network
CN117876741A
Three-dimensional point cloud tree structure segmentation method and system based on deep learning
CN118015277A
Point cloud classification segmentation method based on multi-scale learning type neighbor selection
CN118097152A
Pointeff method for urban object classification with lidar point cloud data
US20240020970A1
Cited By
Point cloud end-to-end compression method based on efficient sampling and optimized entropy model
CN119135925A
An end-to-end compression method for point clouds based on efficient sampling and optimized entropy model
CN119135925B
Laser radar data processing method for complex forest environment
CN119355750A
A LiDAR data processing method for complex forest environments
CN119355750B
