Pseudo super-voxel point cloud preprocessing method for point cloud target detection
Through the pseudo-supervagination point cloud preprocessing method, the superpixel segmentation algorithm and factor extraction aggregation module are used to solve the problem of insufficient noise processing and time-consuming supervagination in point cloud data preprocessing, and the target detection accuracy and calculation are improved Efficiency, suitable for application scenarios such as autonomous driving.
Patent Information
- Application Number
- CN202410947027.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-16
- Publication Date
- 2024-11-15
- Estimated Expiration
- 2044-07-16
AI Technical Summary
The existing point cloud data preprocessing technology cannot effectively remove noise data, and the calculation complexity and time-consuming process is high when directly segmenting voxels, resulting in loss of details and poor processing performance, making it difficult to apply to real-time scenarios.
The pseudo-supervailable point cloud preprocessing method is used to generate the correspondence between the category segmentation mask and the pseudo-image feature map through the superpixel segmentation algorithm, and local mean is generated to generate local mean pseudo-images, and the factor extraction aggregation module is used to adjust the feature weight distribution. , fuses super voxel spatial semantic information to generate a pseudo-image feature map after pseudo-super voxel point cloud preprocessing.
It retains more spatial detail features, improves object detection accuracy, reduces the calculation time of super voxel segmentation, weakens the influence of random noise, is suitable for real-time scenarios, and can be directly applied to feature maps with different resolutions.
Smart Images

Figure CN118967495A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of data processing technology, and mainly relates to point cloud data processing. Specifically, the present invention provides a pseudo supervoxel point cloud preprocessing method for point cloud target detection, which can be used to enhance the accuracy of point cloud target detection and can be used in application scenarios such as autonomous driving and robot navigation. Background Art
[0002] Point cloud data, as an important data form for 3D reconstruction and environmental perception, is widely used in fields such as autonomous driving, drone mapping, and virtual reality. However, point cloud data often has the characteristics of large data volume, high noise, and uneven density, which brings challenges to the subsequent processing and analysis of point cloud target detection tasks. Voxelization is a commonly used point cloud data preprocessing method: by dividing the point cloud into voxels of equal volume for subsequent processing, the amount of data can be reduced and the subsequent processing process can be accelerated. However, voxelization is simple and crude and cannot effectively remove noise data. In areas with rich details, voxelization may cause details to be blurred or lost, which in turn affects subsequent analysis and decision-making. When using the point cloud downsampling method for point cloud data preprocessing, the amount of data and computational complexity are usually reduced by reducing the number of points in the point cloud, but the reduction in the number of points may also lead to the loss of detail information, affecting the accuracy of subsequent processing. Outlier filtering is also a commonly used point cloud data preprocessing method: outliers in point cloud data are removed using statistical methods or neighborhood-based feature analysis. Although this point cloud preprocessing method can effectively remove noise, it has high computational complexity, may cause data loss, and has poor performance when processing large-scale point cloud data.
[0003] Superpixel is a form of image segmentation, which divides image pixels into several irregular regions with certain semantic information. The pixels inside these regions are relatively consistent in color, texture, brightness and other features. We believe that those pixels that are located near each other and have certain common characteristics have certain similarities. According to these similar characteristics, the pixels are combined to form superpixels; while there are significant differences between regions. In image processing tasks, this superpixel method "aggregates" independent and scattered small pixels into larger basic units to obtain more representative image information, which can not only simplify subsequent image processing tasks, but also retain the edges and other important features of the image. It greatly reduces the workload and difficulty of subsequent image processing tasks. It is often used in tasks such as image simplification, image compression, image segmentation, and feature extraction.
[0004] Supervoxel is similar to superpixel, a concept used in 3D point cloud data. It is an extension of the voxel concept and is used to achieve finer-grained segmentation in 3D space. Voxel is the smallest unit in 3D space, similar to pixel in 2D image. Supervoxel is essentially a voxel clustering process, which clusters voxels with similar characteristic attributes such as color, texture, shape, normal direction, etc. into a unit of a larger area, namely supervoxel. The execution of supervoxel helps to reduce the computational complexity of subsequent operations and can be used as a preprocessing stage task for many subsequent tasks in 3D voxel space. The concept of supervoxel is mainly used for point cloud data, especially in the fields of 3D reconstruction, medical image processing and robotic vision.
[0005] The patent document with application number CN2024102888711 discloses "a point cloud segmentation method, device and equipment based on voxel and point set fusion", which pre-processes the original point cloud data to obtain supervoxel data; clusters and segments the supervoxel data to obtain clustered supervoxel data, and further obtains supervoxel features; fuses the supervoxel features with the point cloud features to obtain fusion features, and semantically classifies and segments each point cloud in the original point cloud data according to the fusion features to obtain point cloud segmentation results. The disadvantage of this method is that since point cloud data usually contains a large number of points, directly performing supervoxel processing on the point cloud data during the preprocessing process has high computational complexity and is very time-consuming; and the distribution of point cloud data may be uneven, and direct supervoxel processing may cause the supervoxels in some areas to be too large and lack sufficient details, affecting the accuracy of the processing results.
[0006] In summary, the existing point cloud data preprocessing technology and supervoxel segmentation technology have the following main shortcomings: most point cloud data preprocessing methods do not perform noise processing on large-scale point cloud data, and because point clouds are usually sparse, simplifying or compressing point cloud data usually takes the method of reducing the number of points, which may cause the loss of key points, which may easily cause the loss of local details and features, affecting subsequent processing and analysis; supervoxel segmentation algorithms involve complex mathematical calculations and geometric operations, such as distance measurement, feature extraction, and clustering. These calculations become more complex and time-consuming in high-dimensional space. Therefore, it is very time-consuming to directly perform supervoxel segmentation on voxels, and it cannot be applied to real-time scenarios with extremely high real-time requirements. Summary of the invention
[0007] The purpose of the present invention is to address the deficiencies of the above-mentioned prior art and to propose a pseudo supervoxel point cloud preprocessing method for point cloud target detection, which retains more spatial detail features and alleviates the time consumption of supervoxels.
[0008] The present invention is a pseudo supervoxel point cloud preprocessing method for point cloud target detection, which is characterized in that the corresponding relationship between the category segmentation mask generated by the superpixel segmentation algorithm and the pseudo image feature map is used to perform local averaging to generate a local mean pseudo image, and the pseudo image and the local mean pseudo image are learned and fused, and the weight distribution of the features in the pseudo image feature map is adjusted, including the following steps:
[0009] (1) Obtaining the pseudo image feature map: Obtain the original point cloud to be preprocessed, perform voxelization, divide the point cloud space into regular columnar voxels in the xy direction, use the simplified PointNet network and maximum pooling to encode each columnar voxel to obtain the voxel feature, arrange the voxel features according to their positions in the three-dimensional space, and obtain the pseudo image feature map F. pi ;
[0010] (2) Obtaining the category segmentation mask: For the pseudo image feature map F pi The pseudo supervoxel segmentation module is used to perform pseudo supervoxel segmentation using the simple linear iterative clustering (SLIC) algorithm, and only the pseudo image feature map F pi The first three channels perform pseudo supervoxel segmentation and specify the number of superpixel labels according to the number of superpixel regions desired to generate the category segmentation mask T mask , category segmentation mask T mask The value of each element in represents the superpixel label to which the corresponding pixel belongs;
[0011] (3) Construct a local mean pseudo image that retains spatial detail features: For the pseudo image feature map F pi and the category segmentation mask T mask , using the local averaging module, for the pseudo image feature map F pi , calculate the average of the feature values of pixels belonging to the same category and use it as the local mean pseudo image F lm The feature value of the pixel at the corresponding position, that is, using the category segmentation mask T mask and the pseudo image feature map F pi The corresponding relationship between the local mean pseudo image F and the spatial detail feature is constructed. lm ;
[0012] (4) Generate pseudo image feature map after pseudo supervoxel point cloud preprocessing: Use factor extraction aggregation module to perform pseudo image feature map F pi and the local mean pseudo image F lm Learn and fuse, adjust the pseudo image feature map F pi The weight distribution of the features in the image is integrated with the supervoxel spatial semantic information to generate the pseudo image feature map F' after pseudo supervoxel point cloud preprocessing. pi, completing the pseudo super voxel point cloud preprocessing task for point cloud target detection of the original point cloud to be preprocessed.
[0013] The present invention solves the technical problems that, during the process of point cloud data preprocessing, most point cloud data preprocessing methods do not perform noise processing on point cloud data, and that local details and features are easily lost when simplifying or compressing point cloud data, and that directly performing super-voxel segmentation on voxels is very time-consuming.
[0014] Compared with the prior art, the present invention has the following advantages:
[0015] Retain more spatial detail features of the original point cloud and improve target detection accuracy: The present invention designs a pseudo supervoxel segmentation module, uses a simple linear iterative clustering (SLIC) algorithm to aggregate regions with similar features, and retains the main structure and edge information of the original point cloud; designs a factor extraction aggregation module, aggregates two pseudo image feature maps, and generates a supervoxel factor matrix. The supervoxel factor matrix represents the weight distribution of each voxel in the input pseudo image after pseudo supervoxel segmentation. The input pseudo image is multiplied by the supervoxel factor matrix to generate a pseudo image feature map after pseudo supervoxel point cloud preprocessing. The pseudo image feature map after pseudo supervoxel point cloud preprocessing integrates supervoxel semantic space information, retains the spatial detail features of the original point cloud, and helps the target detection model to more accurately and effectively identify the target, thereby improving the target detection accuracy.
[0016] Less time-consuming than supervoxel segmentation: The present invention designs a pseudo supervoxel segmentation module, and uses a simple linear iterative clustering (SLIC) algorithm to perform pseudo supervoxel segmentation on the pseudo image feature map generated by the original point cloud voxels, thereby achieving a super-voxel processing effect on the voxels and alleviating the very time-consuming situation when directly performing super-voxel processing on the voxels.
[0017] Weakening random noise and reducing the impact of noise: The present invention designs a pseudo-supervoxel segmentation module and uses a simple linear iterative clustering (SLIC) algorithm to cluster regions with similar features together, so that the random changes caused by noise become smooth and the impact of noise is effectively reduced; a local averaging module is designed to average the feature values of regions with similar features, further smooth the feature map, and weaken random noise.
[0018] Expanded application scope: The present invention is directly applied to feature maps of different resolutions in any point cloud target detection method without fundamentally modifying the algorithm architecture. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 It is a schematic diagram of the process of the present invention;
[0020] Figure 2It is a schematic diagram of the effect of using a pseudo superpixel segmentation module for a single-channel pseudo image feature map in the present invention;
[0021] Figure 3 It is a flowchart of the local averaging module of the present invention;
[0022] Figure 4 It is a schematic diagram of the local structure of the simulation experiment of the present invention;
[0023] Figure 5 It is the change in average detection accuracy after inserting the present invention into feature maps of different resolutions.
[0024] The technical solutions and effects of the present invention are described in detail below with reference to the accompanying drawings. DETAILED DESCRIPTION
[0025] Embodiment 1:
[0026] Among the common point cloud data preprocessing methods, voxelization is a commonly used point cloud data preprocessing method, which divides the point cloud into voxels of equal volume for subsequent processing. However, voxelization cannot effectively remove noise data. In areas with rich details, voxelization may cause details to be blurred or lost, thereby affecting the accuracy of subsequent processing. Outlier filtering is also a commonly used point cloud data preprocessing method: outliers in point cloud data are removed using statistical methods or neighborhood-based feature analysis. Although this point cloud preprocessing method can effectively remove noise, it has high computational complexity, may cause data loss, and has poor performance when processing large-scale point cloud data. When preprocessing point cloud data, the original point cloud voxels are subjected to supervoxel segmentation, but the supervoxel segmentation algorithm involves complex mathematical calculations and geometric operations, and the calculation is very time-consuming and complex. In view of the above problems, the present invention starts from the correlation between the two-dimensional pseudo image feature map and the voxel, and proposes a pseudo supervoxel point cloud preprocessing method for point cloud target detection after exploratory experiments and research.
[0027] The present invention is a pseudo supervoxel point cloud preprocessing method for point cloud target detection. The present invention utilizes the correspondence between the category segmentation mask generated by the superpixel segmentation algorithm and the pseudo image feature map to perform local averaging to generate a local mean pseudo image, and learns and fuses the pseudo image and the local mean pseudo image to adjust the weight distribution of the features in the pseudo image feature map. Figure 1 , Figure 1 It is a schematic flow chart of the present invention, comprising the following steps:
[0028] (1) Obtaining a pseudo image feature map: Obtain the original point cloud to be preprocessed, perform voxelization, encoding, and feature extraction to obtain a pseudo image feature map. Specifically, obtain the original point cloud data to be preprocessed, filter the point cloud data according to the preset three-dimensional boundary, divide the point cloud space into uniform regular columnar voxels in the xy direction according to the preset voxel grid size, and assign each point to the corresponding columnar voxel according to the x and y coordinates of the point. Set a sampling threshold D, randomly sample the points in the columnar voxels whose number of points is greater than the threshold, and zero-fill the points in the columnar voxels whose number of points is less than the threshold; in each columnar voxel, calculate the coordinates of the center point and the relative coordinates of each point relative to the center point, generate a feature vector of the point based on the spatial coordinates, reflection intensity, relative coordinates and other data of the point, use a simplified PointNet network and maximum pooling to encode each columnar voxel to obtain the voxel feature, and arrange the features of each columnar voxel according to its position in the three-dimensional space to obtain a pseudo image feature map F. pi .
[0029] (2) Obtaining the category segmentation mask: Use the pseudo supervoxel segmentation module to perform pseudo supervoxel segmentation on the pseudo image feature map. The pseudo supervoxel segmentation module uses the simple linear iterative clustering (SLIC) algorithm to process the first three channels of the pseudo image feature map to obtain the category segmentation mask. Specifically, for the pseudo image feature map F pi The pseudo supervoxel segmentation module is used to perform pseudo supervoxel segmentation using the simple linear iterative clustering (SLIC) algorithm. The simple linear iterative clustering (SLIC) algorithm mainly includes six steps: setting seed points, reselecting seed points, label assignment, distance measurement, iterative optimization, and enhancing connectivity. First, according to the number of pixels N of the input image and the pre-set number of superpixels K, the input image is evenly divided into K equal-sized regions. The center of each region is used as the seed point, that is, the superpixel center. The number of pixels divided by the number of superpixels is the superpixel size, that is, N / K, and the distance between adjacent seed points is approximately To avoid the seed point falling on a position with a large gradient and affecting the subsequent clustering effect, the gradient values of all pixels in a certain neighborhood of the seed point are calculated. In this neighborhood, the pixel position with the smallest gradient is reselected as the seed point. To accelerate the convergence of the algorithm, within the 2S*2S neighborhood, each seed point assigns a category label to each pixel in the neighborhood, that is, a certain pixel belongs to a certain cluster center. The distance between the searched pixel and the seed point is calculated according to the formula, including the color distance d c and spatial distance d s , the distance calculation method is as follows:
[0030]
[0031] Among them, d c Represents the color distance, ds Represents the spatial distance, N s is the maximum spatial distance within a class, defined as Applicable to each cluster. The maximum color distance N c It varies with different images and different clusters, so a fixed constant m is used instead. The value range of m is 1-40, and it is generally 10. The final distance metric D' is as follows:
[0032]
[0033] Since each pixel point will be searched by multiple seed points, there will be a minimum value between the distance of each pixel point and the surrounding seed points, and the seed point corresponding to the minimum value is used as the cluster center of the pixel point; by repeating the four steps of setting seed points, reselecting seed points, assigning labels, and measuring distances, the error will tend to balance, and this balance means that the cluster center of each pixel point will no longer change; some new problems may arise in the previous step, such as: the actual superpixel size is significantly different from the expected superpixel size, there is multi-connectivity between pixels that does not meet the requirements, or the pixels that should have been classified as a superpixel are split into multiple discontinuous small superpixels. In order to avoid these problems, the solution provided by the present invention is: create a new label table in which all elements are -1, and classify the superpixels with problems into adjacent superpixels in a "Z"-shaped order, and then assign new labels to the superpixels until all pixels are covered. See. Figure 2 , Figure 2 Schematic diagram of the effect of using a pseudo superpixel segmentation module for a single-channel pseudo image feature map in the present invention. pi The first three channels are used as input images and input into the Simple Linear Iterative Clustering (SLIC) algorithm. The number of superpixel labels is specified according to the number of superpixel regions desired to generate a class segmentation mask T. mask , complete pseudo supervoxel segmentation. Class segmentation mask T mask The value of each element in represents the superpixel label to which the corresponding pixel belongs. Pseudo image feature map F pi The spatial relationship between each pixel in the image is constructed.
[0034] (3) Constructing a local averaging module to obtain a local mean pseudo image that retains spatial detail features: Constructing a local averaging module to extract and use the correspondence between the category segmentation mask and the pseudo image feature map, averaging the feature values of pixels belonging to the same category, and obtaining a local mean pseudo image that retains spatial detail features. piThe spatial relationship between the pixels in the image, the local averaging module constructed by the present invention is sequentially connected with a receiving part, a local mean calculation and application part, and an output generation part. Receiving part: the input is a pseudo image feature map and a category segmentation mask, generates a zero tensor seg_img of the same shape as the pseudo image feature map, that is, all values in the tensor are 0, outputs the pseudo image feature map and the category segmentation mask, and a zero tensor seg_img for storing the result; local mean calculation and application part: the input is a pseudo image feature map, a category segmentation mask and a zero tensor, traverses each segmentation category, calculates the local mean of the corresponding area of the pseudo image feature map, and applies these means to the corresponding position of the zero tensor seg_img, traverses all categories and outputs the updated tensor seg_img; output generation part: the input is the tensor seg_img, integrates the data, constructs and outputs a local mean pseudo image. The local averaging module first performs a local aggregation operation on the original pseudo image and the category segmentation mask, specifically on the pseudo image feature map F pi and the category segmentation mask T mask , using the local averaging module, starting from the category label 1, for the category segmentation mask T mask Scan line by line and record the category segmentation mask T mask The position of the pixel whose category label is 1 in the , until the category segmentation mask T is traversed mask Then, for the pseudo image feature map F pi , calculate the average of the feature values of pixels belonging to the same category and use it as the local mean pseudo image F lm The feature value of the pixel at the corresponding position, that is, the local homogenization module uses the category segmentation mask T mask and the pseudo image feature map F pi The correspondence between the local mean pseudo image F and the spatial detail feature is obtained. lm .
[0035] (4) Design a factor extraction and aggregation module to generate a pseudo image feature map after pseudo supervoxel point cloud preprocessing: In order not to lose the edge information of the point cloud, it is necessary to further explore the relationship between the mean and the original value, that is, to explore the pseudo image feature map F pi and the local mean pseudo image F lm The present invention designs a factor extraction and aggregation module, which is sequentially connected with an attention mechanism part, a learning weight part, and an adjustment weight part: the attention mechanism part: the input is a pseudo image feature map and a local mean pseudo image, the two input images are connected and a global average pooling operation is performed, and the output is a cross-feature expression attention vector I; the learning weight part: the input is a cross-feature expression attention vector I, the learning vector I, and the output is a supervoxel factor matrix W, which is used to represent the weight distribution of each voxel in the pseudo image feature map; the adjustment weight part: the input is a pseudo image feature map Fpi The output is the pseudo image feature map after pseudo supervoxel point cloud preprocessing. pi and the local mean pseudo image F lm Learn and fuse, collect the expressive statistics of the two inputs, and use them to adjust the pseudo image feature map F pi The weight distribution of the features in the image is integrated with the supervoxel spatial semantic information to generate the pseudo image feature map F' after pseudo supervoxel point cloud preprocessing. pi , completing the pseudo super voxel point cloud preprocessing task for point cloud target detection of the original point cloud to be preprocessed.
[0036] The present invention is an overall technical solution. It aims at the technical problems that it takes a long time and has high computational complexity when directly performing supervoxel segmentation on point cloud voxels, most point cloud data preprocessing methods do not process noise data, and local details and features are easily lost when preprocessing point cloud data. The technical idea of the present invention is: by using a pseudo supervoxel segmentation module to process the pseudo image feature map obtained from the voxels, that is, using the superpixel segmentation algorithm of the two-dimensional image to replace the supervoxel segmentation algorithm of the three-dimensional space, so as to alleviate the situation that it is very time-consuming to directly perform supervoxel processing on the voxels; then, the category segmentation mask obtained after the processing is constructed and processed by a local averaging module to smooth the feature map to solve the problem of no noise processing; finally, a factor extraction aggregation module is designed to fuse the local mean pseudo image obtained after the processing and the pseudo image feature map obtained from the voxels, so as to enhance the spatial information expression ability of the pseudo image feature map, and at the same time smooth the random noise in the pseudo image feature map, so as to solve the problem of easy loss of detail features and inability to effectively process noise in point cloud data processing. Initially, the present invention aims to establish the relationship between voxels after dividing the point cloud data to be preprocessed into voxels, integrate the semantic information of supervoxels into the original pseudo image, and thus enhance the semantic expression ability of the original pseudo image. Since the original pseudo image is a two-dimensional image, it is obtained by extracting features from the point cloud voxels. Using the superpixel algorithm on the feature map of the original pseudo image can achieve a clustering effect similar to that of using the supervoxel algorithm on voxels, extracting the semantic information of supervoxels, and enhancing the spatial information semantic expression ability of the original pseudo image, and the speed and computational complexity are better than the supervoxel algorithm. On this basis, in order to realize the noise processing of the point cloud data to be preprocessed, the mean calculation strategy is used to smooth the random noise and reduce the random changes caused by the noise. Finally, according to the design adjustment and experimental analysis, the design of the technical solution of the present invention is completed.
[0037] The present invention achieves a supervoxel segmentation effect equivalent to that at the voxel feature level by using a superpixel segmentation algorithm, suppresses noise signals while retaining the original spatial information, and improves the time-consuming phenomenon of the supervoxel method, ultimately enhancing the ability to express semantic information of target features, obtaining more representative target features, and achieving more accurate target detection effects.
[0038] Embodiment 2:
[0039] A pseudo supervoxel point cloud preprocessing method for point cloud target detection is the same as in Example 1. The local averaging module described in step (3) of the present invention is constructed to obtain a local mean pseudo image that retains spatial detail features. Figure 3 , Figure 3 It is a flowchart of the local averaging module of the present invention, including:
[0040] 3.1) Scanning category segmentation mask: For the category segmentation mask T mask , starting from category 1, segment the category mask T mask The elements in are scanned row by row.
[0041] 3.2) Calculate the mean for the area with category 1: Scan the category segmentation mask T mask During the process, the position of the pixel point with category 1 is recorded and the pseudo image feature map F is extracted. pi The eigenvalues at the corresponding positions in , and the mean of the extracted eigenvalues is calculated.
[0042] 3.3) For the local mean pseudo image F lm Assign values to pixels of category 1 in the image: Construct a local mean pseudo image F based on the position of pixels of category 1 and the calculated mean. lm , that is, the obtained mean is used as the local mean pseudo image F lm The eigenvalues at the corresponding positions in .
[0043] 3.4) Construct a local mean pseudo image F that retains spatial detail features lm :Compare the currently scanned category with the set category maximum value to determine whether to traverse the category segmentation mask T mask If the current category value is less than the set category maximum value, then not all categories have been traversed, then the category value is increased by one, and steps (3.1)-(3.3) are repeated according to the new category value; until the category segmentation mask T is traversed mask All categories in , that is, the current category value is equal to the set category maximum value; by statistical category segmentation mask T maskWhich positions are marked for each category in the pseudo supervoxel segmentation? The number and position of voxels covered by each supervoxel are clarified. The mean features corresponding to all categories are obtained by calculation, that is, local mean calculation is performed. The local mean operation achieves a certain degree of noise reduction in the local area and effectively represents the spatial meaning of the supervoxel. The mean features are added to the pseudo image feature map F according to each category. pi The arrangement of the positions on the image finally constructs a local mean pseudo image F that retains the spatial detail features. lm .
[0044] The present invention constructs a local averaging module to segment the category mask T mask Scan and count the category segmentation mask T mask The position of each category mark in the pseudo supervoxel segmentation is obtained, and the position of each category area and the position of the pixel points contained in each category area are obtained, that is, the pseudo image feature map F pi The size of each supervoxel and the position of the pixel points contained in each supervoxel are calculated; the noise of the same category area is smoothed by calculating the feature mean of the same category area to reduce the random influence of the noise point; the feature mean of each category is pressed on the pseudo image feature map F pi Arrange the corresponding positions on the image to construct the local mean pseudo image F lm , to further extract the pseudo image feature map F pi The spatial information contained in the point cloud effectively represents the spatial meaning of the supervoxel and enhances the ability to express spatial detail features. This solves the technical problems of detail loss and insufficient noise processing in most point cloud preprocessing processes.
[0045] Embodiment 3:
[0046] A pseudo supervoxel point cloud preprocessing method for point cloud target detection is the same as in Embodiment 1-2, except that the record category segmentation mask T in step 3.2) of the present invention mask The position of category 1 in the image is recorded, and the pseudo image feature map F corresponding to category 1 is extracted according to the recorded position. pi The values of the pixels in the graph are summed and the mean is calculated, including:
[0047] 3.2.1) Generate a Boolean tensor mask, indicating whether the corresponding element belongs to the specified category 1: For the category segmentation mask T mask For each element in , if the value of the element is equal to 1, the result is True, otherwise it is False, for the category segmentation mask T mask The elements in are scanned row by row to ensure that the scanning category segmentation mask T mask Each position is visited no more than once, and each time a position is passed, the category value of this position is set to 0. After the scan is completed, a segmentation mask T corresponding to the category is generated. maskA Boolean tensor mask of the same shape, where True means the pixel at that position belongs to category 1, and False means it does not.
[0048] 3.2.2) Extract pseudo image F from root Boolean tensor mask pi All pixels of category 1 in the pseudo image F: According to the Boolean tensor mask, if the pixel value at a certain position in the Boolean tensor mask is 1, then pi Extract the feature value of the pixel point corresponding to the position; if the pixel value at a certain position in the Boolean tensor mask is 0, then the pseudo image feature map F is not pi The feature value of the pixel corresponding to this position is operated.
[0049] 3.2.3) Calculate the average value of the feature values extracted on the pixel points.
[0050] The present invention uses only True and False to indicate whether each pixel belongs to category 1 and generates a corresponding Boolean tensor mask. The Boolean tensor mask is simple and easy to understand, has a fast calculation speed, and can accurately and quickly locate the pseudo image feature map F. pi The pixel points of category 1 in the pseudo image are calculated by pi The mean of the feature values of the pixels with category 1 in the image is used to refine the category segmentation results and enhance the pseudo image feature map F. pi The consistency of the supervoxel semantic spatial features of the area with category 1 in the point cloud further improves the stability and accuracy of the expression of supervoxel semantic spatial detail features. This solves the technical problem of spatial detail loss in most point cloud preprocessing processes.
[0051] Embodiment 4:
[0052] A pseudo supervoxel point cloud preprocessing method for point cloud target detection is the same as that of Embodiment 1-3: the design factor extraction and aggregation module described in step (4) of the present invention generates a pseudo image feature map after the pseudo supervoxel point cloud preprocessing, comprising:
[0053] 4.1) Obtain the pseudo image F pi and the local mean pseudo image F lmCross-channel expression attention vector I of expressive statistical information: In order to avoid misleading information propagation in the subsequent process of re-pseudo-image feature expression and super-voxel semantic space expression, that is, to prevent the noise signal from being confused with the effective signal and resulting in reduced detection accuracy, it is necessary to filter the noise signal in the local spatial area. The present invention designs a factor extraction aggregation module, which first uses the high-confidence activation technology in the point cloud stream to complete this task. The "high-confidence activation technology in the point cloud stream" mainly involves identifying and activating high-confidence points or regions in the point cloud data stream to ensure that the extracted information has high accuracy and reliability. To achieve this goal, the global spatial information of the two feature expressions is first embedded and compressed to obtain an attention vector for cross-feature expression. According to the pseudo-image feature map F pi and the local mean pseudo image F lm , generate a cross-channel expression attention vector I:
[0054] I=F gp (F pi ||F lm )
[0055] Among them, || means connecting the two pseudo images in the channel dimension, F gp Represents a global average pooling operation.
[0056] 4.2) Generate a feature map F that can represent the pseudo image pi The supervoxel factor matrix W of the weight distribution of each voxel after pseudo supervoxel segmentation is: The supervoxel factor matrix W is obtained by learning the cross-channel expression attention vector I:
[0057] W=σ(F mlp (I))
[0058] Among them, F mlp represents the MLP network, and σ represents the relu activation function.
[0059] 4.3) Adjust the pseudo image feature map F according to the supervoxel factor matrix W pi The weight distribution of each feature in generates the pseudo image feature map F' after pseudo super voxel point cloud preprocessing pi :The pseudo image feature map F pi Multiply it with the supervoxel factor matrix W to fuse the supervoxel spatial semantic information and effectively suppress the noise signal in the point cloud stream to generate the pseudo image feature map F' after the pseudo supervoxel point cloud preprocessing pi :
[0060] F' pi =W*F pi
[0061] Among them, the pseudo image feature map F' after the pseudo super voxel point cloud preprocessing piWith the pseudo image feature map F pi Same shape.
[0062] The present invention designs a factor extraction aggregation module, firstly transforms the pseudo image feature map F' pi and the local mean pseudo image F lm Connect in the channel dimension and perform global average pooling to generate the channel expression attention vector I, which realizes the pseudo image feature map F pi and the local mean pseudo image F lm The cross-modal global description of these two different feature expressions collects the expressive statistical information of the two feature maps; the channel expression attention vector I is learned through the MLP network to further obtain the pseudo image feature map F pi and the local mean pseudo image F lm The rich spatial and semantic information in the image is obtained; and the relu activation function is used to convert the learned information into feature weight distribution to generate the supervoxel factor matrix W; finally, the pseudo image feature map F pi Multiplying the supervoxel factor matrix W realizes the pseudo image feature map F pi The feature weight distribution is adjusted to make the pseudo image feature map F' generated after preprocessing the pseudo supervoxel point cloud pi It not only integrates the supervoxel semantic spatial information without losing edge information, but also smoothes random noise and reduces noise interference. It solves the technical problems of long time and high computational complexity when directly using the supervoxel segmentation algorithm to obtain supervoxel semantic information in the point cloud preprocessing process, as well as the technical problems of easy loss of spatial detail features and insufficient noise processing in most point cloud preprocessing processes.
[0063] Embodiment 5:
[0064] A pseudo supervoxel point cloud preprocessing method for point cloud target detection is the same as in Embodiments 1-4: a plug-and-play pseudo supervoxel point cloud preprocessing method, directly applied to feature maps of different resolutions in any point cloud target detection method, and does not require fundamental modification of the algorithm architecture, including:
[0065] a) In the PointPillars backbone network, the pseudo supervoxel point cloud preprocessing method is used to process feature maps of different resolutions, and then the original upsampling operation in the PointPillars backbone network is continued.
[0066] b) In the feature learning network of VoxelNet and SECOND algorithms, the pseudo supervoxel point cloud preprocessing method is used for the 4D tensor obtained by the feature learning network, and then the established operations of VoxelNet and SECOND algorithms are continued.
[0067] The present invention adopts modular design, and the modules can be adjusted and optimized as needed, so that feature maps of different resolutions can be effectively processed, feature expression capabilities can be enhanced, key features can be better retained and extracted, and the accuracy and reliability of target detection can be improved; and it can be directly and conveniently integrated and applied to various existing systems, reducing the complexity and cost of implementation; at the same time, it is applicable to a variety of mainstream point cloud target detection algorithms, including PointPillars, VoxelNet and SECOND. Regardless of the algorithm used, the performance can be improved by using the present invention in the feature learning network or the backbone network.
[0068] A more detailed example is given below to further illustrate the present invention:
[0069] Embodiment 6:
[0070] A pseudo supervoxel point cloud preprocessing method for point cloud target detection is the same as in Example 1-5:
[0071] Step 1: Get the pseudo image feature map obtained after voxelization of the original point cloud:
[0072] In the point cloud target detection method PointPillars, the point cloud is passed through the column feature network to generate a pseudo image feature map. The KITTI dataset is one of the most authoritative computer vision evaluation datasets in the world. It contains real images and point cloud data collected from scenes such as urban areas, rural areas, and highways. In this embodiment, the internationally published KITTI dataset is used as input, and its point cloud is represented as R1 (x, y, z, r). The PointPillars algorithm is used as the basic framework to perform voxel preprocessing on the point cloud data to generate a pseudo image feature map F pi The specific implementation is as follows:
[0073] 1a) Define the range of point cloud data: In this embodiment, the range of point cloud data on the x-axis is 0 to 69.12, the range on the y-axis is -39.68 to 39.68, and the range on the z-axis is -3 to 1. Points outside this range will be ignored.
[0074] 1b) In the xy direction, the point cloud is divided into regular cylindrical sub-point clouds with a bottom surface size of 0.16m×0.16m. In this embodiment, the point cloud space is divided into 496×432 regular cylindrical sub-point clouds.
[0075] 1c) Set the sampling threshold D, randomly sample the columnar sub-point clouds whose number of points is greater than the threshold, and fill the columnar sub-point clouds whose number of points is less than the threshold with zeros. In this embodiment, D=32. If the number of points in the columnar sub-point cloud is greater than 32, 32 points are randomly sampled; if it is less than 32, the missing points are filled with 0.
[0076] 1d) Calculate the arithmetic mean of all points in each columnar sub-point cloud (x c ,y c ,z c ) and offset (x p ,y p ), and get the enhanced point cloud (x, y, z, r, x c ,y c ,z c ,x p ,y p ).
[0077] 1e) Use the maximum pooling and simplified PointNet network to enhance the point cloud (x, y, z, r, x c ,y c ,z c ,x p ,y p ) is encoded to generate a pseudo image feature map F pi .
[0078] In this embodiment, the pseudo image F pi The size is 496×432 and the number of channels is 64.
[0079] Step 2: Use the pseudo supervoxel segmentation module to perform pseudo supervoxel segmentation on the pseudo image to obtain a category segmentation mask.
[0080] Since the direct supervoxel processing of voxels is computationally complex and very time-consuming, this step is to obtain the pseudo image F pi Perform pseudo supervoxel segmentation to achieve an effect similar to supervoxel segmentation and reduce computational complexity; and obtain the category segmentation mask T mask , construct the spatial relationship between pseudo image pixels.
[0081] In this embodiment, the pseudo image F pi Use simple linear iterative clustering SLIC to segment it into 20 superpixel regions and obtain the category segmentation mask T mask . Class segmentation mask T mask The size is [496,432].
[0082] Step 3: Use the local averaging module to construct a local mean pseudo image.
[0083] In the process of voxelization, the point cloud loses some spatial information, which will reduce the accuracy of target detection; and since the point cloud contains a lot of noise data, if it is not effectively processed, the accuracy of target detection will also be reduced. piThis step smoothes the feature map by local mean operation to achieve a certain degree of noise reduction, and uses the spatial relationship between pseudo image pixels to enhance the spatial information expression of the point cloud, and finally generates a local mean pseudo image F lm .
[0084] The specific implementation of the steps is as follows:
[0085] 3a) Starting from category 1, segment the category mask T mask to scan.
[0086] 3b) For the class segmentation mask T mask For each element in , if the value of the element is equal to 1, the result is True, otherwise it is False. After the scan, a mask T corresponding to the category segmentation is generated. mask A boolean tensor mask of the same shape, where True means the pixel at that position belongs to class 1 and False means it does not.
[0087] 3c) According to the Boolean tensor mask, from the pseudo image F pi Extract all pixels belonging to category 1, calculate the average of the eigenvalues on these pixels, and set this average as the new eigenvalue on these pixels.
[0088] 3d) Repeat steps 3a-3c until the class segmentation mask T is traversed mask All categories in and calculate the corresponding average features to construct the local mean pseudo image F lm . Local mean pseudo image F lm With the pseudo image F pi The same shape.
[0089] In this embodiment, the category value is 1-20, and the local mean pseudo image F lm The shape is (496,432,64).
[0090] Step 4: Use the factor extraction aggregation module to generate a pseudo image feature map after the pseudo supervoxel point cloud is preprocessed.
[0091] This step is done by fusing the local mean pseudo image F lm With the pseudo image F pi , smooth random noise; further obtain the weight distribution of each voxel after supervoxel segmentation to adjust the pseudo image F pi , while retaining the original spatial information, it fuses the supervoxel semantic information without losing edge information, generating a new pseudo image F' pi , the specific implementation is as follows:
[0092] 4a) According to the pseudo image F piand the local mean pseudo image F lm , generate a cross-channel expression attention vector I:
[0093] I=F gp (F pi ||F lm )
[0094] Among them, || means connecting the two pseudo images in the channel dimension, F gp Represents a global average pooling operation.
[0095] 4b) The supervoxel factor matrix W is learned based on the cross-channel expression attention vector I:
[0096] W=σ(F mlp (I))
[0097] Among them, F mlp represents the MLP network, and σ represents the relu activation function.
[0098] 4c) The pseudo image F pi Multiply it with the supervoxel factor matrix W to get the pseudo image F' after pseudo supervoxel point cloud preprocessing pi .
[0099] F' pi =W*F pi
[0100] The supervoxel factor matrix W represents the pseudo image feature map F pi The weight distribution of each voxel after pseudo supervoxel segmentation is converted into pseudo image feature map F pi Multiply it with the supervoxel factor matrix W to adjust the pseudo image feature map F pi The weight distribution of each feature in generates the pseudo image feature map F' after pseudo super voxel point cloud preprocessing pi , completing the pseudo supervoxel point cloud preprocessing task.
[0101] The following is a verification explanation of the technical effect of the present invention in combination with simulation experiments and experimental data:
[0102] Embodiment 7:
[0103] A pseudo supervoxel point cloud preprocessing method for point cloud target detection is the same as in Example 1-6:
[0104] 1. Simulation experiment conditions:
[0105] Dataset: The KITTI dataset, one of the most authoritative computer vision evaluation datasets in the world, contains real images and point cloud data collected from scenes such as urban areas, rural areas, and highways.
[0106] 2. Simulation content
[0107] On the basis of the PointPillars algorithm framework, the present invention is directly placed after Pillar Feature Net, which is a pseudo image generation network. The pseudo image feature map generated by Pillar Feature Net is subjected to pseudo super voxel preprocessing, and then input into the backbone part to complete subsequent operations. The experimental results are used to perform target detection on the KITTI dataset with PointPillars, and their respective detection accuracies are compared. The results are shown in Table 1. Table 1 is the comparison results of the pseudo super voxel preprocessing performed after the PointPillars pseudo image generation network is inserted into the present invention.
[0108] Table 1 Comparison results after the present invention inserts the PointPillars pseudo image generation network
[0109]
[0110] As can be seen from Table 1, after the pseudo image is input into the present invention, the detection accuracy of the network for the three types of targets has been improved to varying degrees, and the improvement for small targets is more obvious. Compared with the classic target detection algorithm PointPillars, the detection accuracy of the car class is improved by an average of 1.81%, among which the improvement for cars under (bev, simple) and (3d, simple) is the most obvious, which is 2.71% and 2.67% respectively. The detection accuracy of pedestrians is improved by an average of 2.06%, and the maximum improvement reaches 3.72%. The detection accuracy of cyclists is improved by an average of 2.99%, the detection accuracy of cyclists under simple difficulty is improved by an average of 4.62%, the detection accuracy of cyclists under medium difficulty is improved by an average of 2.44%, and the detection accuracy of cyclists under difficult difficulty is improved by an average of 1.92%. In each indicator, the detection accuracy of the present invention for various types of targets is improved by at least 0.98%, and the highest is improved by 4.85%. This embodiment proves from the experimental data that after the pseudo supervoxel preprocessing of the present invention is performed, the detection accuracy of various types of targets is improved to varying degrees.
[0111] Embodiment 8:
[0112] A pseudo supervoxel point cloud preprocessing method for point cloud target detection is the same as in Example 1-6:
[0113] 1. Simulation Experiment Conditions
[0114] Dataset: As in Example 7, the KITT dataset is used for simulation experiments.
[0115] 2. Simulation content:
[0116] The pseudo image generated by the pillar feature network in PointPillars is essentially a feature map. In the point cloud target detection algorithm, feature maps of different resolutions are generated at each stage, and these feature maps can characterize the spatial relationship of point clouds within a certain spatial range. Therefore, the present invention is used for plug-and-play pseudo supervoxel point cloud preprocessing, which can be used not only for pseudo images, but also for any feature map generated in the middle link of the algorithm network.
[0117] The present invention is inserted into the main part of PointPillars, that is, the feature maps of different resolutions obtained by the main network are input into the present invention, and then the original upsampling deconvolution operation of the main part is continued. Figure 4 , Figure 4 The figure is a schematic diagram of the local structure of the simulation experiment of the present invention, in which the convolution operation is used to reduce the resolution of the feature map and increase the dimension of the feature. Then, the pseudo-supervoxel processing is performed on the pseudo-image feature map obtained by convolution by the present invention, and then the deconvolution operation is used to upsample the three feature maps to the same size. The experimental results are shown in FIG. Figure 5 As shown, Figure 5 The average detection accuracy changes after the present invention is inserted into feature maps with different resolutions.
[0118] Figure 5 The figure shows the improvement of average detection accuracy of three types of targets after preprocessing feature maps of different resolutions using the present invention from small to large. Figure 4 Feature maps of different resolutions: (4C, H / 8, W / 8) represents the feature map after the third convolution; (2C, H / 4, W / 4) represents the feature map after the second convolution; (C, H / 2, W / 2) represents the feature map after the first convolution; (C, H / 2, W / 2) represents the unconvolved feature map, corresponding to the simulation experiment of Example 7. The ordinate represents the improved detection accuracy, in %. It can be seen from the experimental results and data trends that the higher the feature map, that is, the larger the resolution of the feature map, the more obvious the improvement in average detection accuracy after preprocessing using the present invention. This is obviously because the larger the resolution of the feature map, the more information about the target it contains. The average detection accuracy for cyclists is improved the most, from 2.52% to 3.33%. This embodiment proves from the experimental data that after using the present invention to perform pseudo-supervoxel preprocessing on feature maps of different resolutions, the detection accuracy of various types of targets is improved to varying degrees.
[0119] Embodiment 9:
[0120] A pseudo supervoxel point cloud preprocessing method for point cloud target detection is the same as in Example 1-6:
[0121] 1. Simulation Experiment Conditions
[0122] Similar to Example 7, the simulation experiment was performed using the KITT dataset.
[0123] 2. Simulation Content
[0124] Based on the voxelization method, experiments were conducted on VoxelNet, SECOND, and PointPillars. The present invention was used after the feature learning network of VoxelNet and SECOND, so that the sparse 4D tensor obtained by the feature learning network can utilize the semantic information of the point cloud space. The results are shown in Tables 2 and 3, which are the experimental results on the BEV benchmark and the 3D benchmark, respectively.
[0125] Tables 2 and 3 show the experimental results on the BEV benchmark and the 3D benchmark, respectively. According to the experimental results in the two tables, the present invention has a positive impact on the voxelization method. Under the BEV benchmark, the average improvement over the original network is more than 2%. Among them, the highest improvement is PointPillars for simple cyclist detection, which is improved from 82.36% to 86.87%. Under the 3D benchmark, the average improvement over the original network is also more than 2%. The highest improvement is SECOND for simple pedestrian detection, which is improved from 55.10% to 59.49%. This embodiment proves from the experimental data that after adding the present invention to the feature learning network of the classical voxelization method and performing pseudo-supervoxel preprocessing, the detection accuracy of various methods for various targets is improved to varying degrees.
[0126] Table 2 Experimental results on the BEV detection benchmark
[0127]
[0128] Table 3 Experimental results on 3D detection benchmarks
[0129]
[0130] In summary, the present invention is a pseudo supervoxel point cloud preprocessing method for point cloud target detection, which solves the technical problems that most point cloud data preprocessing methods do not perform noise processing on point cloud data during point cloud data preprocessing, causing noise data to interfere with target detection effects; local details and features are easily lost when simplifying or compressing point cloud data; and direct supervoxel segmentation of point cloud voxels is very time-consuming. The implementation includes obtaining a pseudo image feature map, obtaining a category segmentation mask, constructing a local mean pseudo image that retains spatial detail features, and generating a pseudo image feature map after pseudo supervoxel point cloud preprocessing. The innovation of the present invention is that the superpixel algorithm is used on the pseudo image feature map to achieve a clustering effect similar to that of the supervoxel algorithm used on the voxel, and the semantic information of the supervoxel is extracted. The speed and computational complexity are better than the supervoxel algorithm. The correspondence between the category segmentation mask generated by the superpixel segmentation algorithm and the pseudo image feature map is used to perform local averaging to generate a local mean pseudo image, and a cross-channel expression attention vector and a supervoxel factor matrix are constructed to adjust the feature weight distribution, thereby enhancing the spatial information semantic expression capability of the pseudo image feature map. The advantages are that more spatial detail features of the original point cloud are retained, the target detection accuracy is improved, the time taken to obtain supervoxel semantic information is less than that of supervoxel segmentation, random noise is weakened, the influence of noise is reduced, and the feature map can be directly applied to feature maps of different resolutions in any method of point cloud target detection without fundamentally modifying the algorithm architecture, and it can be used in application scenarios such as autonomous driving and robot navigation.
Claims
1. A pseudo supervoxel point cloud preprocessing method for point cloud target detection, characterized in that: Using the correspondence between the category segmentation mask generated by the superpixel segmentation algorithm and the pseudo image feature map, local averaging is performed to generate a local mean pseudo image, and the pseudo image and the local mean pseudo image are learned and fused, and the weight distribution of the features in the pseudo image feature map is adjusted, including the following steps: (1) Obtaining the pseudo image feature map: Obtain the original point cloud to be preprocessed, perform voxelization, divide the point cloud space into regular columnar voxels in the xy direction, use maximum pooling and a simplified PointNet network to encode each columnar voxel to obtain voxel features, and arrange the voxel features according to their positions in three-dimensional space to obtain the pseudo image feature map F. pi ; (2) Obtaining the category segmentation mask: For the pseudo image feature map F pi The pseudo supervoxel segmentation module is used to perform pseudo supervoxel segmentation using the simple linear iterative clustering (SLIC) algorithm, and only the pseudo image feature map F pi The first three channels perform pseudo supervoxel segmentation and specify the number of superpixel labels according to the number of superpixel regions desired to generate the category segmentation mask T mask , category segmentation mask T mask The value of each element in represents the superpixel label to which the corresponding pixel belongs; (3) Construct a local averaging module to obtain a local mean pseudo image that retains spatial detail features: pi and the category segmentation mask T mask , construct a local averaging module; for the pseudo image feature map F pi , calculate the average of the feature values of pixels belonging to the same category and use it as the local mean pseudo image F lm The feature value of the pixel at the corresponding position is used to construct the local averaging module using the category segmentation mask T mask and the pseudo image feature map F pi The correspondence between the local mean pseudo image F and the spatial detail feature is obtained. lm ; (4) Designing a factor extraction and aggregation module to generate a pseudo image feature map after pseudo super voxel point cloud preprocessing: By designing a factor extraction and aggregation module, the pseudo image feature map F pi and the local mean pseudo image F lm Learn and fuse, adjust the pseudo image feature map F pi The weight distribution of the features in the fusion supervoxel space semantic information is used to generate the pseudo image feature map F' after the pseudo supervoxel point cloud is preprocessed pi , completing the pseudo super voxel point cloud preprocessing task for point cloud target detection of the original point cloud to be preprocessed.
2. The pseudo supervoxel point cloud preprocessing method for point cloud target detection according to claim 1, characterized in that: The local averaging module described in step (3) is constructed to obtain a local mean pseudo image that retains spatial detail features, including: 3.1) Scanning category segmentation mask: For the category segmentation mask T mask , starting from category 1, segment the category mask T mask The elements in are scanned line by line; 3.2) Calculate the mean of regions of the same category: Scan the category segmentation mask T mask During the process, the position of the pixel point with category 1 is recorded and the pseudo image feature map F is extracted. pi The eigenvalues at the corresponding positions in , and the mean of the extracted eigenvalues are calculated; 3.3) For the local mean pseudo image F lm Assign values to pixels of category 1 in the image: Construct a local mean pseudo image F based on the position of pixels of category 1 and the calculated mean. lm , that is, the obtained mean is used as the local mean pseudo image F lm The eigenvalues at the corresponding positions in ; 3.4) Construct a local mean pseudo image F that retains spatial detail features lm : Repeat steps (3.1)-(3.3) until the category segmentation mask T is traversed mask All categories in , calculate the mean features corresponding to all categories, and store the mean features in the pseudo image feature map F according to each category. pi The arrangement of the positions on the image finally generates a local mean pseudo image F that retains the spatial detail features. lm .
3. The pseudo supervoxel point cloud preprocessing method for point cloud target detection according to claim 2, characterized in that: The record category segmentation mask T described in step (3.2) mask The position of category 1 in the image is recorded, and the pseudo image F corresponding to category 1 is extracted according to the recorded position. pi The values of the pixels in the graph are summed and the mean is calculated, including: 3.2.1) Generate a Boolean tensor mask, indicating whether the corresponding element belongs to the specified category 1: For the category segmentation mask T mask For each element in , if the value of the element is equal to 1, the result is True, otherwise it is False, for the category segmentation mask T mask The elements in are scanned row by row, and after the scanning, a segmentation mask T corresponding to the category is generated. mask A Boolean tensor mask of the same shape, where True means the pixel at that position belongs to class 1, and False means it does not; 3.2.3) Extract pseudo image F from root Boolean tensor mask pi All pixels of category 1 in the pseudo image F: According to the Boolean tensor mask, if the pixel value at a certain position in the Boolean tensor mask is 1, then pi The feature value of the pixel corresponding to the position is extracted; if the pixel value at a certain position in the Boolean tensor mask is 0, the pseudo image F is not pi The characteristic value of the pixel corresponding to the position is operated; 3.2.3) Calculate the average value of the feature values extracted on the pixel points.
4. A pseudo supervoxel point cloud preprocessing method for point cloud target detection according to claim 1, 2 or 3, characterized in that: The design factor extraction aggregation module described in step (4) generates a pseudo image feature map after pseudo supervoxel point cloud preprocessing, including: 4.1) Generate the pseudo image F pi and the local mean pseudo image F lm The cross-channel expression attention vector I of the expressive statistics information: pi and the local mean pseudo image F lm , generate a cross-channel expression attention vector I: I=F gp (F pi ||F lm ) Among them, || means connecting the two pseudo images in the channel dimension, F gp represents the global average pooling operation; 4.2) Generate a pseudo image F that can represent the pi The supervoxel factor matrix W of the weight distribution of each voxel after supervoxel segmentation is: The supervoxel factor matrix W is obtained by learning the cross-channel expression attention vector I: W=σ(F mlp (I)) Among them, F mlp represents the MLP network, σ represents the relu activation function; 4.3) Adjust the pseudo image feature map F according to the supervoxel factor matrix W pi The weight distribution of each feature in generates the pseudo image feature map F' after pseudo super voxel point cloud preprocessing pi :The pseudo image feature map F pi Multiply it with the supervoxel factor matrix W, fuse the supervoxel spatial semantic information, and generate the pseudo image feature map F' after the pseudo supervoxel point cloud preprocessing pi : F' pi =W*F pi Among them, the pseudo image feature map F' after the pseudo super voxel point cloud preprocessing pi With the pseudo image feature map F pi Same shape.
5. A pseudo supervoxel point cloud preprocessing method for point cloud target detection according to claim 1, 2, 3 or 4, characterized in that: Plug-and-play pseudo-supervoxel point cloud preprocessing, directly applied to feature maps of different resolutions in any point cloud object detection method, without fundamentally modifying the algorithm architecture, including: a) In the PointPillars backbone network, the pseudo supervoxel point cloud preprocessing method is used to process feature maps of different resolutions, and then the original upsampling operation in the PointPillars backbone network is continued; b) In the feature learning network of VoxelNet and SECOND algorithms, the pseudo supervoxel point cloud preprocessing method is used for the 4D tensor obtained by the feature learning network, and then the established operations of VoxelNet and SECOND algorithms are continued.
Citation Information
Patent Citations
Multi-class target detection method based on camera and laser radar
CN116071603A
Plant semantic instance joint segmentation system and method based on three-dimensional point cloud
CN116883662A
Multi-task perception three-dimensional scene graph element segmentation and relation reasoning method
CN117409209A
Point cloud instance segmentation method based on super voxel proximity clustering
CN117593204A
Multiple Hypotheses Segmentation-Guided 3D Object Detection and Pose Estimation
US20180144458A1
Cited By
Method and device for generating video from text and storage medium
CN119697456A
Concavity-based grouping for unorganized 3D point cloud segmentation and abstraction
US12688585B2
Concavity-based grouping for unorganized 3D point cloud segmentation and abstraction
US20250005764A1
