Massive point cloud active processing method, device, equipment and readable storage medium
Through clustering and feature analysis of massive point cloud data, high-value data are screened out for training scene recognition models, which solves the problem of heavy workload for point cloud data annotation and improves model training efficiency.
Patent Information
- Application Number
- CN202411029751.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-30
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2044-07-30
AI Technical Summary
In scene recognition processing based on point cloud data, the annotation workload of massive point cloud data is heavy, resulting in low training efficiency of scene recognition models.
Supervoxels are obtained through clustering, the scene recognition model to be trained is used to obtain scene recognition results and depth features of point cloud data, uncertainty and feature diversity parameters are calculated, and high-value point cloud data are screened out for use in the model by fusion parameters. training to reduce the amount of data that needs to be labeled.
It reduces the annotation workload of point cloud data, improves the training efficiency of scene recognition models, and actively filters out high-value point cloud data for training.
Smart Images

Figure CN118552812B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a method, apparatus, computer device, computer-readable storage medium and computer program product for actively processing massive point clouds. Background Art
[0002] With the development of computer technology, point cloud, as an important form of expression of three-dimensional data in the scene, the acquisition and processing technology of point cloud data has become more mature and efficient, and has been widely used in smart cities, smart manufacturing, smart agriculture and other fields, bringing more convenience and innovation to people's lives. For example, scene recognition technology based on point cloud data can identify different categories of objects in the scene, which is of great significance in smart city fields such as autonomous driving, virtual tourism, automatic modeling and urban planning.
[0003] In scene recognition processing based on point cloud data, it is often necessary to annotate massive amounts of point cloud data and use them as samples for model training in order to obtain a model for scene recognition. However, the amount of point cloud data is huge, and the workload of annotating point cloud data is large, resulting in low training efficiency of the scene recognition model. Summary of the invention
[0004] Based on this, it is necessary to provide a method, device, computer equipment, computer-readable storage medium and computer program product for actively processing massive point clouds, which can reduce the workload of point cloud data annotation and improve the efficiency of scene recognition model training, in order to address the above-mentioned technical problems.
[0005] In a first aspect, the present application provides a method for actively processing massive point clouds, comprising:
[0006] Obtain each point cloud data of the target scene, and obtain multiple supervoxels based on clustering of each point cloud data;
[0007] Obtain the scene recognition results and point cloud depth features of each point cloud data through the scene recognition model to be trained;
[0008] Determine the uncertainty parameters of each point cloud data according to the scene recognition results of each point cloud data;
[0009] For each supervoxel in the plurality of supervoxels, based on the uncertainty parameters of the point cloud data included in the supervoxel, an uncertainty parameter of the supervoxel is obtained;
[0010] Determine a feature diversity parameter of the supervoxel based on the point cloud depth features of each of the point cloud data included in the supervoxel;
[0011] The uncertainty parameter and the feature diversity parameter of the supervoxel are integrated to obtain the metric parameter of the supervoxel;
[0012] A target supervoxel is determined from the multiple supervoxels according to respective metric parameters of the multiple supervoxels, and point cloud data included in the target supervoxel is used to train a scene recognition model to be trained.
[0013] In a second aspect, the present application also provides a massive point cloud active processing device, comprising:
[0014] A point cloud acquisition module is used to acquire point cloud data of the target scene and obtain multiple supervoxels based on clustering of the point cloud data;
[0015] The point cloud recognition module is used to obtain the scene recognition results and point cloud depth features of each point cloud data through the scene recognition model to be trained;
[0016] A scene recognition result processing module is used to determine the uncertainty parameter of each point cloud data according to the scene recognition result of each point cloud data;
[0017] An uncertainty parameter determination module is used to obtain, for each supervoxel in the plurality of supervoxels, an uncertainty parameter of the supervoxel based on the uncertainty parameters of the point cloud data included in the supervoxel;
[0018] A feature diversity parameter determination module, used to determine a feature diversity parameter for a supervoxel based on point cloud depth features of each point cloud data included in the supervoxel;
[0019] A metric parameter determination module, used for fusing the uncertainty parameter and feature diversity parameter of the supervoxel to obtain the metric parameter of the supervoxel;
[0020] The point cloud screening module is used to determine a target supervoxel from a plurality of supervoxels according to respective metric parameters of the plurality of supervoxels, and the point cloud data included in the target supervoxel is used to train a scene recognition model to be trained.
[0021] In a third aspect, the present application further provides a computer device, wherein the computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of the above-mentioned method for actively processing massive point clouds are implemented.
[0022] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, which implements the steps of the above-mentioned method for actively processing massive point clouds when executed by a processor.
[0023] In a fifth aspect, the present application further provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the above-mentioned method for actively processing massive point clouds are implemented.
[0024] The above-mentioned method, apparatus, computer device, computer-readable storage medium and computer program product for actively processing massive point clouds, for each point cloud data of the target scene, obtains the scene recognition result and point cloud depth feature of each point cloud data through the scene recognition model to be trained, determines the uncertainty parameter of each point cloud data according to the scene recognition result of each point cloud data, for each supervoxel among the multiple supervoxels obtained based on clustering of the point cloud data, obtains the uncertainty parameter of the supervoxel based on the uncertainty parameter of the point cloud data included in the supervoxel, determines the feature diversity parameter of the supervoxel based on the point cloud depth feature of the point cloud data included in the supervoxel, fuses the uncertainty parameter and feature diversity parameter of the supervoxel to obtain the metric parameter of the supervoxel, determines the target supervoxel from the multiple supervoxels according to the metric parameter of each supervoxel, and the point cloud data included in the target supervoxel is used to train the scene recognition model to be trained. For each point cloud data of the target scene, after clustering to obtain multiple supervoxels, the uncertainty parameters of the corresponding supervoxels are obtained according to the uncertainty parameters of the point cloud data included in each supervoxel, the feature diversity parameters of the corresponding supervoxels are obtained according to the point cloud depth features of the point cloud data included in each supervoxel, and the measurement parameters are obtained based on the uncertainty parameters and feature diversity parameters of each supervoxel. The target supervoxel is determined from each supervoxel through the measurement parameters, so as to train the scene recognition model through the point cloud data included in the target supervoxel. Therefore, based on the uncertainty parameters and feature diversity parameters, high-value point cloud data for training the scene recognition model can be actively screened out from the massive point cloud data based on the uncertainty parameters and feature diversity parameters, which can reduce the point cloud data that needs to be labeled and reduce the workload of point cloud data labeling, thereby helping to improve the training efficiency of the scene recognition model. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0026] Figure 1 A diagram of an application environment of a method for actively processing massive point clouds in one embodiment;
[0027] Figure 2Schematic diagram of a process of actively processing a massive point cloud in one embodiment;
[0028] Figure 3 A schematic diagram of a process of a method for actively processing massive point clouds in another embodiment;
[0029] Figure 4 A schematic diagram of a process of initializing a configuration model in an embodiment;
[0030] Figure 5 A schematic diagram of a process of a method for actively processing massive point clouds in another embodiment;
[0031] Figure 6 A schematic diagram of selecting a target block for marking in one embodiment;
[0032] Figure 7 is a structural block diagram of a massive point cloud active processing device in one embodiment;
[0033] Figure 8 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0034] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0035] The method for actively processing massive point clouds provided in the embodiments of the present application can be applied to Figure 1In the application environment shown. The acquisition device 102 communicates with the server 104 through the network. The data storage system can store the data that the server 104 needs to process. The data storage system can be integrated on the server 104, or placed on the cloud or other network servers. The acquisition device 102 can collect point cloud data for the target scene and send the collected point cloud data to the server 104 through the network. For each point cloud data obtained, the server 104 obtains the scene recognition results and point cloud depth features of each point cloud data through the scene recognition model to be trained. The server 104 determines the uncertainty parameters of each point cloud data according to the scene recognition results of each point cloud data. For each super voxel in the multiple super voxels obtained based on clustering of the point cloud data, the server 104 obtains the uncertainty parameter of the super voxel based on the uncertainty parameters of the point cloud data included in the super voxel. The server 104 determines the feature diversity parameter of the super voxel based on the point cloud depth features of the point cloud data included in the super voxel, and fuses the uncertainty parameter and feature diversity parameter of the super voxel to obtain the metric parameter of the super voxel. According to the metric parameters of each super voxel, the target super voxel is determined from the multiple super voxels, and the point cloud data included in the target super voxel is used to train the scene recognition model to be trained. Furthermore, the server 104 can use the point cloud data included in the target supervoxel to train a scene recognition model to obtain a trained scene recognition model, and the trained scene recognition model can perform scene recognition on the input point cloud data, such as identifying the scene category to which the input point cloud data belongs. Among them, the acquisition device 102 can be, but is not limited to, various devices such as a laser scanner, a structured light scanner, a binocular camera, a depth camera, and a drone. The server 104 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides cloud computing services.
[0036] In an exemplary embodiment, Figure 2 As shown in FIG, a method for actively processing massive point clouds is provided, and the method is applied to Figure 1 The point cloud data processing in is taken as an example to illustrate, including the following steps 202 to 214. Among them:
[0037] Step 202 : acquiring point cloud data of the target scene, and obtaining a plurality of supervoxels based on clustering of the point cloud data.
[0038] Point cloud data, referred to as point cloud, refers to a set of vectors in a three-dimensional coordinate system. These vectors are usually recorded in the form of points. Each point contains three-dimensional coordinates and may contain color information or reflection intensity information (Intensity). Point cloud data is widely used in three-dimensional modeling, scene reconstruction, robot navigation, virtual reality and augmented reality. Active processing refers to the active screening of massive point cloud data. The target scene is the scene for collecting each point cloud data, such as an urban scene. Supervoxel is a method for segmenting point cloud data in three-dimensional space. Supervoxel can be obtained by clustering point cloud data with similar feature attributes. For example, supervoxel can be obtained by clustering point cloud data with similar geometric features or / and color features. Supervoxel can be used for subsequent semantic segmentation, object recognition and other tasks.
[0039] Optionally, the server may obtain each point cloud data collected for the target scene, such as the server may obtain each point cloud data of a certain city scene. The server may cluster each point cloud data obtained, and specifically may perform clustering processing on each point cloud data according to a clustering algorithm such as a graph theory method and a gradient ascent algorithm to obtain a plurality of supervoxels. A supervoxel may include at least two, so that each point cloud data may be processed based on the supervoxel as a unit.
[0040] Step 204 , obtaining the scene recognition results and point cloud depth features of each point cloud data through the scene recognition model to be trained.
[0041] Among them, the scene recognition model is used to perform scene recognition on the input point cloud data to identify the scene category to which the input point cloud data belongs. The scene category can be pre-configured according to the actual application scenario. For example, when the scene recognition model is applied to urban scene recognition, the scene category can include objects of different categories in the urban scene, such as buildings, numbers, roads and other objects. The scene recognition model can perform scene recognition on the input point cloud data to determine what kind of object in the urban scene the input point cloud data belongs to. The scene recognition model may include a network model trained based on an artificial neural network algorithm or a deep learning algorithm. The scene recognition model can be specifically trained based on at least one of a fully connected (FC) network, a convolutional neural network (CNN), a recurrent neural network (RNN), a deep residual network (ResNet) or an attention mechanism (Attention Mechanism), and a Unet (U-shaped network).
[0042] The scene recognition result is the recognition result obtained by performing scene recognition processing on each point cloud data by the scene recognition model to be trained. The point cloud depth feature is the depth feature extracted by the scene recognition model to be trained on the point cloud data during the process of performing scene recognition processing on each point cloud data by the scene recognition model to be trained. The point cloud depth feature provides rich information about the semantic category and distribution of the point cloud data. Point cloud data with the same label and distribution usually have similar depth features, that is, the point cloud depth feature reflects the depth information corresponding to the point cloud data. The depth information can be used in the scene recognition processing of the point cloud data.
[0043] Exemplarily, the server can obtain a scene recognition model to be trained, and perform scene recognition processing on each point cloud data through the scene recognition model to be trained, so as to obtain the scene recognition results and point cloud depth features of each point cloud data. In a specific application, the server can input each point cloud data into the scene recognition model to be trained in turn, and the scene recognition model to be trained performs scene recognition processing on the input point cloud data. The specific scene recognition model to be trained can extract point cloud depth features from the input point cloud data, and perform scene recognition based on the extracted point cloud depth features, so as to obtain the scene recognition results corresponding to the point cloud data. The scene recognition result can be directly output by the scene recognition model to be trained, and the point cloud depth features can be extracted from the scene recognition model to be trained. After traversing each point cloud data, the server can obtain the scene recognition results and point cloud depth features of each point cloud data.
[0044] Step 206 , determining the uncertainty parameters of each point cloud data according to the scene recognition results of each point cloud data.
[0045] Among them, the uncertainty parameter is used to characterize the degree of uncertainty of point cloud data. The higher the uncertainty of point cloud data, that is, the more difficult it is to identify the point cloud data into a certain scene category, which means that the scene recognition difficulty for the point cloud data is higher, the training value of the point cloud data is higher, and it is more worth using in model training.
[0046] Optionally, for each point cloud data, the server can determine the uncertainty parameter corresponding to the point cloud data. The uncertainty parameter can be specifically realized by information entropy, that is, the information entropy can be calculated according to the scene recognition result corresponding to the point cloud data, so as to obtain the uncertainty parameter of the point cloud data. The server can traverse each point cloud data and calculate the respective uncertainty parameters according to the scene recognition results of each point cloud data.
[0047] Step 208 : for each supervoxel in the plurality of supervoxels, based on the uncertainty parameters of the point cloud data included in the supervoxel, obtain the uncertainty parameter of the supervoxel.
[0048] The supervoxel is obtained by clustering point cloud data, and the supervoxel includes at least one point cloud data. The uncertainty parameter of the supervoxel can be calculated according to the uncertainty parameters of each point cloud data included in the supervoxel. The uncertainty parameter of the supervoxel is used to characterize the overall uncertainty degree of the supervoxel.
[0049] Exemplarily, for each supervoxel, the server may determine the corresponding uncertainty parameter, and specifically, may calculate the uncertainty parameter of the supervoxel according to the uncertainty parameters of the point cloud data included in the supervoxel. For example, for supervoxel A, the server may determine the point cloud data included in supervoxel A, such as n point cloud data, and the server may average the uncertainty parameters of the n point cloud data to obtain an average parameter. The server may use the calculated average parameter as the uncertainty parameter of supervoxel A. After the server traverses each supervoxel, it may obtain the uncertainty parameters of each supervoxel.
[0050] Step 210 : determining a feature diversity parameter of the supervoxel based on the point cloud depth features of each of the point cloud data included in the supervoxel.
[0051] Among them, the feature diversity parameter is used to characterize the feature diversity degree of the point cloud data included in the supervoxel. The higher the value of the feature diversity parameter, the higher the feature diversity of the point cloud data included in the supervoxel, and the higher the value of the point cloud data included in the supervoxel for scene recognition, and the more conducive to model training.
[0052] Optionally, for each supervoxel, the server may determine the corresponding feature diversity parameter, and specifically, the feature diversity parameter of the supervoxel may be calculated based on the point cloud depth features of each of the point cloud data included in the supervoxel. In a specific application, the server may average the point cloud depth features of each of the point cloud data included in the supervoxel, and thereby obtain the depth feature of the supervoxel based on the average value. The server may calculate the feature distance between the depth feature of the supervoxel and the depth feature of the labeled supervoxel, and obtain the feature diversity parameter of the supervoxel based on the feature distance. Among them, the labeled supervoxel is a supervoxel whose included point cloud data has been labeled. For example, for supervoxel A, the server may determine the point cloud data included in supervoxel A, such as including n point cloud data, and the server may average the point cloud depth features of each of the n point cloud data to obtain the depth feature of supervoxel A. The server may determine the labeled supervoxels, such as supervoxel B, supervoxel C, and supervoxel D. The server may calculate the feature distances between the depth features of supervoxel B, supervoxel C, and supervoxel D based on the depth feature of supervoxel A, and obtain the feature diversity parameter of supervoxel A by fusing the calculated feature distances. After traversing each supervoxel, the server may obtain the feature diversity parameter of each supervoxel.
[0053] Step 212: The uncertainty parameter and the feature diversity parameter of the supervoxel are integrated to obtain the metric parameter of the supervoxel.
[0054] Among them, the metric parameter is used to measure the training value of the point cloud data included in the supervoxel. The higher the value of the metric parameter, the higher the training value of the point cloud data included in the corresponding supervoxel. Therefore, point cloud data can be screened in units of supervoxels for use in model training.
[0055] Exemplarily, for each supervoxel, the server may fuse the uncertainty parameter and the feature diversity parameter of the supervoxel, such as weighted fusion of the uncertainty parameter and the feature diversity parameter, to obtain the metric parameter of the supervoxel. After traversing each supervoxel, the server may obtain the metric parameter of each supervoxel, so that each supervoxel may be compared based on the metric parameter to filter the point cloud data according to the supervoxel.
[0056] Step 214 , determining a target supervoxel from the multiple supervoxels according to the respective metric parameters of the multiple supervoxels, and the point cloud data included in the target supervoxel is used to train the scene recognition model to be trained.
[0057] Among them, the target supervoxel is a supervoxel selected from various supervoxels for model training. Specifically, the point cloud data included in the target supervoxel can be used in the training of the scene recognition model to be trained. Exemplarily, the server can compare multiple supervoxels based on the metric parameters of each supervoxel, such as comparing each supervoxel according to the numerical value of the metric parameter, and determine the target supervoxel from multiple supervoxels according to the comparison results, such as K supervoxels with the largest metric parameter values can be used as the target supervoxel. Among them, K can be flexibly configured according to actual needs. The point cloud data included in the target supervoxel is the sample data for scene model training selected from various point cloud data. In specific applications, the server can annotate the point cloud data included in the target supervoxel respectively, and use the annotated point cloud data as training sample data to train the scene recognition model to be trained.
[0058] In a specific application, such as Figure 3 As shown, the server can cluster each point cloud data of the target scene to obtain multiple supervoxels. For each point cloud data, the server can sequentially input it into the scene recognition model to be trained for scene recognition, and the scene recognition model to be trained outputs the scene recognition results of each point cloud data. In addition, the point cloud depth features of each point cloud data can be determined from the scene recognition model to be trained. The server can determine the feature diversity parameters and uncertainty parameters of each supervoxel based on the subordinate relationship between each point cloud data and each supervoxel, combined with the scene recognition results and point cloud depth features of each point cloud data. The server can fuse the feature diversity parameters and uncertainty parameters of each supervoxel to obtain the metric parameters of each supervoxel. The server can screen the target supervoxel from multiple supervoxels based on the metric parameters of each supervoxel, so as to train the scene recognition model to be trained through the point cloud data included in the target supervoxel.
[0059] In the above-mentioned method for actively processing massive point clouds, for each point cloud data of the target scene, the scene recognition results and point cloud depth features of each point cloud data are obtained through the scene recognition model to be trained, and the uncertainty parameters of each point cloud data are determined according to the scene recognition results of each point cloud data. For each supervoxel in the multiple supervoxels obtained based on clustering of the point cloud data, the uncertainty parameters of the supervoxel are obtained based on the uncertainty parameters of the point cloud data included in the supervoxel, and the feature diversity parameters of the supervoxel are determined based on the point cloud depth features of the point cloud data included in the supervoxel. The uncertainty parameters and feature diversity parameters of the supervoxel are fused to obtain the metric parameters of the supervoxel. According to the metric parameters of each supervoxel, the target supervoxel is determined from the multiple supervoxels, and the point cloud data included in the target supervoxel is used to train the scene recognition model to be trained. For each point cloud data of the target scene, after clustering to obtain multiple supervoxels, the uncertainty parameters of the corresponding supervoxels are obtained according to the uncertainty parameters of the point cloud data included in each supervoxel, the feature diversity parameters of the corresponding supervoxels are obtained according to the point cloud depth features of the point cloud data included in each supervoxel, and the measurement parameters are obtained based on the uncertainty parameters and feature diversity parameters of each supervoxel. The target supervoxel is determined from each supervoxel through the measurement parameters, so as to train the scene recognition model through the point cloud data included in the target supervoxel. Therefore, based on the uncertainty parameters and feature diversity parameters, high-value point cloud data for training the scene recognition model can be actively screened out from the massive point cloud data based on the uncertainty parameters and feature diversity parameters, which can reduce the point cloud data that needs to be labeled and reduce the workload of point cloud data labeling, thereby helping to improve the training efficiency of the scene recognition model.
[0060] In an exemplary embodiment, the scene recognition result includes a scene category probability distribution; based on the scene recognition result of each point cloud data, the uncertainty parameter of each point cloud data is determined, including: determining the information entropy based on the scene category probability distribution of each point cloud data; and obtaining the uncertainty parameter of each point cloud data based on the information entropy of each point cloud data.
[0061] Among them, the scene category probability distribution includes the probability that the point cloud data belongs to different scene categories. For different point cloud data, different scene category probability distributions can be obtained after scene recognition processing by the scene recognition model to be trained, which represents the scene recognition results of the scene recognition model to be trained for the corresponding point cloud data. Information entropy is used to quantify the prediction information density. The higher the information entropy value, the less credible the corresponding point cloud data is in each scene category. The stronger the uncertainty of the point cloud data, the more worthy it is to be used as sample data for model training.
[0062] Optionally, after the scene recognition model to be trained performs scene recognition on the input point cloud data, the output scene recognition result may include a scene category probability distribution, that is, the probability that the corresponding point cloud data predicted by the model belongs to various scene categories. The server can determine the corresponding information entropy based on the scene category probability distribution of each point cloud data. Specifically, for each point cloud data, the server can calculate the corresponding information entropy based on the scene category probability distribution of the point cloud data. The server can determine the corresponding uncertainty parameter based on the information entropy of the point cloud data. In specific applications, the server can directly use the information entropy of the point cloud data as the uncertainty parameter of the point cloud data; in addition, the server can also further map the information entropy of the point cloud data to obtain the uncertainty parameter of the point cloud data, such as the server can normalize the information entropy of the point cloud data and map it to obtain the uncertainty parameter of the point cloud data.
[0063] In this embodiment, the server determines the information entropy of the point cloud data based on the probability distribution of scene categories in the scene recognition results, and obtains the corresponding uncertainty parameters based on the information entropy of each point cloud data. The information entropy can be used to accurately determine the uncertainty parameters of the point cloud data, which is conducive to screening out high-value point cloud data from each point cloud data for model training.
[0064] In an exemplary embodiment, a feature diversity parameter of the targeted supervoxel is determined based on the point cloud depth features of each point cloud data included in the targeted supervoxel, including: obtaining a supervoxel depth feature of the targeted supervoxel based on the point cloud depth features of each point cloud data included in the targeted supervoxel; determining a supervoxel depth feature of a reference supervoxel, the reference supervoxel being a supervoxel of which point cloud data included in multiple supervoxels have been labeled; and obtaining a feature diversity parameter of the targeted supervoxel based on a feature distance between the supervoxel depth feature of the targeted supervoxel and the supervoxel depth feature of the reference supervoxel.
[0065] Among them, the supervoxel depth feature is the depth feature of the supervoxel as a whole, and the supervoxel depth feature is obtained specifically according to the point cloud depth features of each point cloud data included in the supervoxel, such as being obtained by taking the average value of the point cloud depth features of each point cloud data included in the supervoxel. The reference supervoxel is a supervoxel that has been labeled, that is, the point cloud data included in the reference supervoxel has been labeled, and specifically has been labeled with the scene category to which it actually belongs. The point cloud data included in the reference supervoxel has been labeled, that is, it has carried the corresponding scene category label, and supervised model training processing can be performed based on the scene category label. The feature distance is used to measure the similarity or difference between the supervoxel depth features of different supervoxels, and specifically may include but is not limited to at least one of Euclidean distance, Manhattan distance, Chebyshev distance, cosine similarity, Minkowski distance or Hamming distance.
[0066] Exemplarily, for each supervoxel, the server can obtain the supervoxel depth feature of the supervoxel according to the point cloud depth features of each point cloud data included in the supervoxel, such as the arithmetic mean or weighted mean of the point cloud depth features of each point cloud data included in the supervoxel, so as to obtain the supervoxel depth feature of the supervoxel. The server can determine the reference supervoxel that has been labeled from each supervoxel, and determine the supervoxel depth feature of the reference supervoxel. The server can calculate the characteristic distance between the supervoxel and each reference supervoxel respectively, and specifically can calculate the characteristic distance between the supervoxel and each reference supervoxel based on the supervoxel depth feature. The server can obtain the characteristic diversity parameter of the supervoxel based on the characteristic distance, and specifically can fuse each characteristic distance to obtain the characteristic diversity parameter of the supervoxel. In a specific application, when the reference supervoxel includes multiple, the supervoxel and each reference supervoxel can respectively calculate the corresponding characteristic distance, that is, the number of characteristic distances is also multiple, and the server can average the multiple characteristic distances to obtain the average characteristic distance. The server can obtain the characteristic diversity parameter of the supervoxel based on the average characteristic distance. In some embodiments, when there is no reference supervoxel that has been labeled, the server may directly obtain a feature diversity parameter based on the supervoxel depth feature of the supervoxel. For example, the server may directly use the supervoxel depth feature of the supervoxel as the feature diversity parameter.
[0067] In this embodiment, the server obtains the feature diversity parameter of the supervoxel based on the feature distance between the supervoxel and the labeled reference supervoxel, and thus uses the feature distance to accurately determine the feature diversity parameter of the supervoxel, which is conducive to screening out high-value point cloud data from various point cloud data for model training.
[0068] In an exemplary embodiment, the uncertainty parameter and the feature diversity parameter of the supervoxel are fused to obtain the metric parameter of the supervoxel, including: weightedly fusing the uncertainty parameter and the feature diversity parameter of the supervoxel according to the fusion weight to obtain the metric parameter of the supervoxel.
[0069] Among them, the fusion weight is used to characterize the importance of each uncertainty parameter and feature diversity parameter. The larger the value of the fusion weight, the more important the corresponding parameter is in screening point cloud data. Exemplarily, the server can perform weighted fusion of the uncertainty parameter and feature diversity parameter of the supervoxel. The specific server can obtain the pre-configured fusion weight, and the fusion weight is pre-set according to actual needs to adjust the importance of the uncertainty parameter and feature diversity parameter. The server can perform weighted fusion of the uncertainty parameter and the feature diversity parameter according to the fusion weight to obtain the measurement parameters of the supervoxel. In specific applications, the server can traverse each supervoxel for weighted fusion to obtain the measurement parameters of each supervoxel.
[0070] Further, determining a target supervoxel from the multiple supervoxels according to the respective metric parameters of the multiple supervoxels includes: determining the target supervoxel from the multiple supervoxels according to the numerical values of the respective metric parameters of the multiple supervoxels.
[0071] Optionally, the server may screen each supervoxel according to the numerical value of the metric parameter to determine the target supervoxel for model training processing. In a specific implementation, the server may sort the metric parameters of each of the multiple supervoxels according to the numerical value, such as sorting them in descending order of numerical value, and the server may determine the supervoxels corresponding to the first K metric parameters from the sorting result as the target supervoxel. In some embodiments, the server may also determine the supervoxel whose numerical value of the metric parameter exceeds the metric parameter threshold as the target supervoxel.
[0072] In this embodiment, the server performs weighted fusion on the uncertainty parameters and feature diversity parameters of the supervoxels according to the fusion weights, and selects the target supervoxel from each supervoxel based on the numerical values of the metric parameters of the fused supervoxels. Thus, the uncertainty parameters and feature diversity parameters can be comprehensively considered to screen out high-value point cloud data for training the scene recognition model from each point cloud data, which can reduce the point cloud data that needs to be labeled and reduce the workload of point cloud data labeling, thereby helping to improve the training efficiency of the scene recognition model.
[0073] In an exemplary embodiment, Figure 4 As shown, the method for actively processing massive point clouds also includes processing of initializing the configuration model, specifically including steps 402 to 410. Among them:
[0074] Step 402 , dividing each point cloud data into blocks to obtain a plurality of blocks.
[0075] Among them, the blocks are obtained by dividing the blocks according to the distribution position of the point cloud data, and specifically, the blocks can be divided according to the distribution position of each point cloud data in the target scene, so as to obtain multiple blocks. Optionally, the server can divide each point cloud data into blocks, and specifically, the point cloud data can be divided into blocks according to a preset block size to obtain multiple blocks of the same size. In specific applications, the block size can be flexibly configured according to actual needs. The larger the block size, the larger the amount of point cloud data covered in each block.
[0076] Step 404 , for each of the multiple blocks, obtain a curvature parameter of the block according to the curvature parameter of the point cloud data included in the block.
[0077] Among them, the curvature parameter is used to characterize the geometric parameters of the point cloud data, which can be calculated based on the curvature of the point cloud data. The curvature of the point cloud data is a measure of the change in curvature of the point cloud surface in three-dimensional space. It describes the change in curvature of the point cloud surface at each point, and can characterize the degree of curvature or curvature change of the point in the point cloud.
[0078] Optionally, for each block obtained by division, the server can determine the curvature parameters of each block, which can be calculated based on the curvature parameters of the point cloud data included in the block, such as averaging the curvature parameters of the point cloud data included in a block to obtain the curvature parameters of the block. In specific applications, the server can calculate the curvature parameters of each point cloud data separately, such as calculating the curvature of the point cloud data through various methods such as grid processing methods, least squares fitting, and statistical methods, and obtain the curvature parameters based on the curvature, such as directly using the curvature of the point cloud data as the curvature parameters of the point cloud data.
[0079] Step 406, obtaining geometric metric parameters of the targeted block according to the curvature parameters of the targeted block and the curvature parameters of the associated blocks, wherein the associated blocks are blocks in the plurality of blocks that are associated with the distribution position of the targeted block.
[0080] Among them, the associated block is a block associated with the distribution position of the targeted block among multiple blocks, and specifically can be a block whose distribution position is adjacent to the targeted block. The selection of the associated block can be determined according to actual needs. Exemplarily, for a certain block, the server can determine the associated block associated with the distribution position of the block, and specifically can determine the block adjacent to the block as the associated block of the block. The server can obtain the geometric metric parameters of the block based on the block and the blocks between the associations, and specifically can obtain the geometric metric parameters of the block based on the average difference between the curvature parameters. In a specific application, for a certain block, the server can calculate the curvature parameter difference between the block and the associated block, and calculate the average value based on each curvature parameter difference, so as to obtain the geometric metric parameters of the block based on the average curvature parameter difference. The server can traverse each block to obtain the respective geometric metric parameters of each block.
[0081] Step 408, determining a target block from the multiple blocks based on the respective geometric metric parameters of the multiple blocks.
[0082] Optionally, the server may screen multiple blocks based on the geometric metric parameter to determine the target block for initializing the model. In a specific implementation, the server may determine the M blocks with the largest geometric metric parameter values as the target blocks, where M may be an integer greater than or equal to 1. In some embodiments, the server may also determine the blocks whose geometric metric parameters exceed the geometric metric parameter threshold as the target blocks.
[0083] Step 410 , initializing and configuring the model parameters of the scene recognition model to be trained using the point cloud data included in the target block.
[0084] Exemplarily, the server can use the point cloud data included in the target block to initialize the configuration of the scene recognition model. Specifically, the model parameters in the scene recognition model can be initialized by the point cloud data included in the target block. In a specific application, for the constructed scene recognition model to be trained, the target block can be screened out for initialization configuration before training. In some embodiments, the server can annotate the point cloud data included in the target block, and input the annotated point cloud data into the scene recognition model to be trained for scene recognition, and update the model parameters of the scene recognition model to be trained based on the scene recognition results output by the scene recognition model to be trained and the annotated scene category labels, thereby completing the initialization configuration of the scene recognition model to be trained. For the scene recognition model to be trained that has completed the initialization configuration, the server can train it based on the point cloud data included in the screened target supervoxel.
[0085] In this embodiment, after the server divides each point cloud data into blocks, it determines the geometric measurement parameters based on the curvature parameters of each block, and screens out the target block from each block based on the geometric measurement parameters, so as to use the point cloud data included in the target block to initialize the scene recognition model to be trained, which is conducive to accelerating the convergence speed of the scene recognition model training, thereby improving the training efficiency of the scene recognition model.
[0086] In an exemplary embodiment, the scene recognition results and point cloud depth features of each point cloud data are obtained through the scene recognition model to be trained, including: determining the scene recognition model to be trained for this training; inputting each point cloud data into the scene recognition model to be trained respectively, so that the feature extraction network in the scene recognition model to be trained extracts the point cloud depth features of the input point cloud data, and the semantic segmentation network in the scene recognition model to be trained obtains the scene recognition result of the input point cloud data based on the point cloud depth features of the input point cloud data.
[0087] The scene recognition model may include a feature extraction network and a semantic segmentation network. The feature extraction network is used to extract deep features from the input point cloud data, and the semantic segmentation network is used to perform scene recognition processing on the deep features extracted by the feature extraction network to obtain the scene recognition result of the input point cloud data. In specific applications, the feature extraction network and the semantic segmentation network can be constructed together with at least one of the fully connected networks, convolutional neural networks, recurrent neural networks, deep residual networks or attention mechanisms, and Unet.
[0088] Optionally, when multiple training processes are performed on the scene recognition model to be trained, the server can determine the scene recognition model to be trained for this training. In a specific application, if this training is the first training, the scene recognition model to be trained for this training can be a scene recognition model after the initialization configuration is completed; when this training is the nth (n≥2)th training, the scene recognition model to be trained for this training can be the scene recognition model obtained after the previous training, that is, the scene recognition model obtained after the n-1th training. The server can input each point cloud data into the scene recognition model to be trained for this training, so that the scene recognition model to be trained for this training can perform scene recognition processing. Specifically, the scene recognition model can perform feature extraction on the input point cloud data through a feature extraction network to obtain the point cloud depth features of the input point cloud data; further, the scene recognition model can perform semantic segmentation recognition based on the point cloud depth features of the input point cloud data through a semantic segmentation network, thereby obtaining the scene recognition result of the input point cloud data.
[0089] Furthermore, the method for actively processing massive point clouds also includes: obtaining point cloud samples for this training based on the point cloud data included in the target supervoxel; training the scene recognition model to be trained through the point cloud samples for this training to obtain the scene recognition model after this training; when the training end condition is not met, performing the next training process based on the scene recognition model after this training until the training is completed, thereby obtaining a trained scene recognition model.
[0090] The point cloud samples are sample data selected for this training, specifically obtained based on the point cloud data included in the target supervoxel, such as the point cloud data included in the target supervoxel and the scene category labels annotated therewith. The training end conditions can be configured according to actual needs, such as meeting the scene recognition accuracy, reaching the preset number of training times, meeting the model convergence conditions, etc.
[0091] Optionally, for the selected target supervoxel, the server can obtain the point cloud sample of this training according to the point cloud data included in the target supervoxel. In specific implementation, the server can mark the point cloud data included in the target supervoxel respectively to obtain the scene category label of each point cloud data, and the server can use the point cloud data included in the target supervoxel and the scene category label carried by each as the point cloud sample of this training. The server trains the scene recognition model based on the point cloud sample of this training, and obtains the scene recognition model after this training. In specific applications, the server can input the point cloud sample into the scene recognition model to be trained for scene recognition, and the scene recognition model to be trained outputs the scene recognition result of the point cloud sample. The server can update the model parameters of the scene recognition model to be trained based on the scene recognition result of the point cloud sample and the difference between the scene category label carried by the point cloud sample, so as to obtain the scene recognition model after this training. When it is determined that the training end condition is not met, such as when the number of training times does not reach the preset number of training times, the server can perform the next training process based on the scene recognition model after this training until the training ends, and obtain the trained scene recognition model. In some embodiments, the server may return to the step of determining the scene recognition model to be trained for this training, thereby triggering the next model training process.
[0092] In this embodiment, the server constructs the point cloud samples for this training based on the point cloud data included in the screened target supervoxels, and trains the scene recognition model through the point cloud samples for this training, and triggers the next model training process when the training end condition is not met. Therefore, in each training process, high-value point cloud data for training the scene recognition model can be screened out from each point cloud data based on uncertainty parameters and feature diversity parameters, which can reduce the point cloud data that needs to be labeled and reduce the workload of point cloud data labeling, which is beneficial to improving the training efficiency of the scene recognition model in each training.
[0093] The present application also provides an application scenario, which applies the above-mentioned method for actively processing massive point clouds. Specifically, the application of the method for actively processing massive point clouds in the application scenario is as follows:
[0094] Point cloud (i.e. point cloud data) is one of the important forms of expression of urban three-dimensional data and an important data foundation for building smart cities. Semantic understanding and analysis of urban scene point clouds is a necessary technology for building urban digital twins. In particular, instantiated segmentation of urban scene data is one of the most critical basic issues. Considering the current reality of the difficulty in annotating real urban scene three-dimensional data, it is difficult for traditional supervised learning methods to obtain very effective structures. How to select high-quality point cloud samples from urban scene point clouds for limited annotation so that the model can achieve the best performance effect at a limited annotation cost is the main problem solved by this embodiment.
[0095] Point clouds are one of the key representations of three-dimensional scenes, providing rich geometric details about the objects in the scene. Semantic segmentation in urban scenes is a practical research area in point cloud analysis, which aims to assign semantic types to each point. Semantic segmentation is of great significance in many fields, including autonomous driving, virtual tourism, automatic modeling, and urban planning, but previous attempts using traditional algorithms mainly for objects or indoor scenes have been proven to be insufficient to capture valuable features of large-scale urban environments. The emergence of deep learning-based methods, starting with the introduction of PointNet, has provided new ideas for this field. A large number of related works can handle irregular point clouds, enabling effective capture of semantic information. Although deep learning schemes have made considerable progress in recent years, such methods mainly focus on fully supervised learning and rely heavily on labeled data. At the same time, large-scale point cloud data is difficult to annotate. For example, it takes 22.3 minutes to label a single scene in the ScanNet indoor dataset. Considering that the dataset contains 1513 scenes, the cumulative workload becomes immeasurable. The difficulty of accurately labeling datasets and the greater complexity of urban environments, in turn, bring challenges to point cloud segmentation. In this context, a series of weakly supervised and semi-supervised learning schemes have been proposed, among which the most critical technical path is active learning. This method screens high-value samples from all point cloud data for annotation, thereby obtaining the best training results with limited annotation costs.
[0096] Specifically, early active learning work mainly focused on the field of 2D (2 Dimensions) images, focusing on high uncertainty samples and samples that can provide rich training features, both of which are key factors limiting the performance of active learning. Therefore, the focus of related work is on how to calculate uncertainty and feature richness or how to combine these two factors. In the field of point clouds, this research paradigm has been continued, and early work also focused on transferring some computational methods from images to point clouds. For example, the most informative and representative indoor scene samples can be selected. This method still uses uncertainty as the selection criterion, mainly based on suboptimal and optimal prediction results for calculation, and uses FPS (Frames Per Second) on the spatial distance map to select diverse samples. However, there is currently a lack of active learning work for dense urban scene point clouds, and existing methods are based on improvements in uncertainty or feature diversity.
[0097] Based on this, in the active processing method for massive point clouds provided by this embodiment, entropy is used to evaluate uncertainty. In terms of diversity selection, it involves a method that combines deep features with semantic boundaries, and uses fluctuations between supervoxels to make judgments. In addition, considering the lack of urban scene training data, in order to ensure effective model initialization, this embodiment does not adopt a pre-training method combined with random initialization, but instead uses geometric context feature extraction in continuous blocks to further ensure efficient training. The active processing method for massive point clouds provided by this embodiment involves a new data set consisting of large-scale real urban scene instance segmentation data containing building monomer annotations. The key idea of this embodiment is to adopt a more detailed annotation strategy and classification standard, which can not only effectively distinguish urban scenes, but also select corresponding data to train and evaluate the model according to specific task requirements, and can be effectively applied to large-scale real urban scenes containing building instances.
[0098] Specifically, Figure 5As shown, in the active processing method for massive point clouds provided by this embodiment, each point cloud (Input Point Cloud) of the target scene is input, and supervoxel clustering (Supervoxel Cluster) is performed on each point cloud to obtain multiple supervoxels (Supervoxels). On the other hand, the server can divide the point cloud into multiple blocks (Block). For each point cloud, the corresponding deep features can be extracted by the feature extraction network in the scene recognition model. The feature extraction network can be specifically a three-dimensional U-shaped network (3D Unet), and the semantic segmentation network in the scene recognition model performs scene recognition based on the deep features to obtain the scene recognition result of the point cloud. The semantic segmentation network can specifically include a semantic segmentation head (Semantic Head) network. The scene recognition result of the point cloud can specifically include a prediction result (Prediction) for the input point cloud belonging to various scene categories. The server can obtain the uncertainty parameter (Uncertainty) of the point cloud based on the scene recognition result of the point cloud. The server can screen out the target supervoxel from each supervoxel by combining the uncertainty parameter of the point cloud and the deep feature (Deep Feature Diversity), so as to train the scene recognition model through the point cloud included in the target supervoxel.
[0099] Furthermore, firstly, a point cloud of a scene is input, and then the point cloud is clustered into supervoxels to reduce the pressure of annotation. Subsequently, the scene point cloud is divided into smaller blocks of the same specifications, and each block is evaluated using the method of geometric measurement, and the block with the largest amount of information is selected for annotation. Then the original point cloud is input into the backbone network to extract the deep features of each point. The backbone network can be specifically 3D Unet. The segmentation head is used to convert the deep features into probability values for each category. The uncertainty of each point can be calculated using the probability value, and then a predetermined number of points are annotated in order from high to low according to the uncertainty for subsequent training of the model. At the same time, points with richer deep features should also be selected for annotation to ensure that points of different categories are taken into account, thereby increasing the diversity of point selection.
[0100] Specifically, traditional active learning schemes usually only consider the spatial position and depth features of a single point, and lose information from the local neighborhood. However, the geometric features of a point contain the semantic information of the point and its surrounding neighboring points. In order to effectively utilize the contextual information in the scene, this embodiment involves a basic geometric measurement method based on curvature to select the target block for annotation and then initialize the model parameters. The specific calculation formula is as follows:
[0101]
[0102] in, It means the The curvature of the point cloud, , , Respectively The corresponding eigenvalue when computing the curvature of the point cloud, and ≧ ≧ ≧0, that is is the largest eigenvalue, representing the The surface to which the point cloud belongs is The curvature in the most curved direction at each point cloud; is the second largest eigenvalue, representing the The surface to which the point cloud belongs is The curvature in the direction of the secondary curvature at each point cloud; is the smallest eigenvalue, usually close to zero, representing the The surface to which the point cloud belongs is The direction in which the point cloud is almost not bent is the normal direction.
[0103] As many semantic categories as possible are merged in each block so that the model can capture sufficient geometric relationships between semantic categories. The sharp change in curvature reflects the location where the semantic category changes. Therefore, the curvature change of continuous blocks is selected as the evaluation indicator. First, the input area is evenly divided into blocks of equal size, and the average curvature within the block is expressed as the variable Then, k adjacent blocks are selected to calculate the geometric score. The specific measurement method is shown in the following formula:
[0104]
[0105] in, It represents the geometric metric score (i.e., geometric metric parameter) of the block, k is the number of selected adjacent blocks, is the average curvature of the block, which is obtained by averaging the curvatures of the point clouds included in the block. For the The average curvature of adjacent blocks, Characterize the distance operation.
[0106] By selecting the blocks with the highest scores for annotation, the scene recognition model is initialized. Figure 6 As shown in FIG. 1 , a block with a maximum geometric score can be selected as a target block, and the scene recognition model can be initialized after annotating the point cloud in the target block.
[0107] Furthermore, in each training process for the scene recognition model, point clouds with higher annotation uncertainty need to be selected as sample data for training. Among them, point clouds with higher annotation uncertainty are selected for annotation because the importance of point clouds in the scene to the learning process varies. Some point clouds have a more profound impact on the model than other point clouds and need to be distinguished. The point clouds with the highest uncertainty in the prediction results are used as indicators of the model's adaptability to these samples, and their accurate annotation will bring more substantial gradients. The output of the scene recognition model represents the probability that each point cloud belongs to a different category. The degree of uncertainty associated with each point cloud can be mathematically described by information entropy, which is an indicator of quantitative prediction information density. The higher the information entropy value, the less credible the point cloud is in each category. The uncertainty of each point cloud It can be calculated by the following formula:
[0108]
[0109] in, is the number of scene categories, that is, the total number of scene categories, For the point cloud, predicted by the scene recognition model to belong to The predicted probability of each scene category.
[0110] Furthermore, deep features provide rich information about the semantic categories and distribution of point clouds, and point clouds with the same labels and distribution usually have similar deep features. The diversity of these training features can be used as a measure of the quality of training data and is crucial to the performance of learning-based methods. The diverse distribution of data is a key feature of high-quality training data. Therefore, based on the deep features of the labeled data, the unlabeled features with the farthest distance are further filtered out as an additional metric. Therefore, in order to achieve better performance under a limited annotation budget, the model is trained by selecting point clouds that maximize the diversity of training data. The specific feature distance calculation formula is as follows:
[0111]
[0112] in, For the The feature diversity parameter of the supervoxel, is the number of supervoxels that have been labeled, For the The supervoxel depth feature corresponding to the supervoxel is obtained based on the average value of the depth features of the included point clouds. For the The supervoxel depth features corresponding to the annotated supervoxels, Characterize feature distance operations.
[0113] After obtaining the above geometric metrics, weights are assigned to the uncertainty integral (i.e., uncertainty parameter) and the feature diversity integral (i.e., feature diversity parameter) respectively: and , thus calculating the final integral (i.e., measurement parameter). The specific calculation formula is as follows:
[0114]
[0115] in, and are the weights of uncertainty integral and feature diversity integral, respectively. For the The uncertainty integral of the supervoxels, For the The feature diversity integral of the supervoxel. Finally, by selecting the integral The top k supervoxels are used as target supervoxels, so that the scene recognition model is trained by the point cloud included in the target supervoxels.
[0116] The method for actively processing massive point clouds provided in this embodiment adopts a selection method that takes into account the contextual information of urban scenes. By introducing geometric indicators, continuous blocks with richer geometric properties are selected and used as initial annotation data. At the same time, the design of point selection indicators is realized by combining the diversity of randomness and deep features through parameters. The method for actively processing massive point clouds provided in this embodiment can be applied to the active selection of dense point clouds in large-scale real urban scenes, which can reduce the cost of point cloud representation and improve the model training effect.
[0117] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0118] Based on the same inventive concept, the embodiment of the present application also provides a massive point cloud active processing device for implementing the massive point cloud active processing method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more massive point cloud active processing device embodiments provided below can refer to the limitations of the massive point cloud active processing method above, and will not be repeated here.
[0119] In an exemplary embodiment, Figure 7 As shown, a massive point cloud active processing device 700 is provided, comprising: a point cloud acquisition module 702, a point cloud recognition module 704, a scene recognition result processing module 706, an uncertainty parameter determination module 708, a feature diversity parameter determination module 710, a metric parameter determination module 712 and a point cloud screening module 714, wherein:
[0120] The point cloud acquisition module 702 is used to acquire each point cloud data of the target scene, and obtain a plurality of supervoxels based on clustering of each point cloud data;
[0121] The point cloud recognition module 704 is used to obtain the scene recognition results and point cloud depth features of each point cloud data through the scene recognition model to be trained;
[0122] The scene recognition result processing module 706 is used to determine the uncertainty parameter of each point cloud data according to the scene recognition result of each point cloud data;
[0123] The uncertainty parameter determination module 708 is used to obtain the uncertainty parameter of each supervoxel in the plurality of supervoxels based on the uncertainty parameters of the point cloud data included in the supervoxel;
[0124] A feature diversity parameter determination module 710 is used to determine a feature diversity parameter for a supervoxel based on point cloud depth features of each point cloud data included in the supervoxel;
[0125] A metric parameter determination module 712, used for fusing the uncertainty parameter and feature diversity parameter of the supervoxel to obtain the metric parameter of the supervoxel;
[0126] The point cloud screening module 714 is used to determine a target supervoxel from the multiple supervoxels according to the respective metric parameters of the multiple supervoxels, and the point cloud data included in the target supervoxel is used to train the scene recognition model to be trained.
[0127] In one embodiment, the scene recognition result includes a scene category probability distribution; the scene recognition result processing module 706 is also used to determine the information entropy based on the scene category probability distribution of each point cloud data; and obtain the uncertainty parameter of each point cloud data based on the information entropy of each point cloud data.
[0128] In one embodiment, the feature diversity parameter determination module 710 is also used to obtain the supervoxel depth feature of the targeted supervoxel based on the point cloud depth features of each point cloud data included in the targeted supervoxel; determine the supervoxel depth feature of the reference supervoxel, which is a supervoxel whose point cloud data included in multiple supervoxels has been labeled; and obtain the feature diversity parameter of the targeted supervoxel based on the feature distance between the supervoxel depth feature of the targeted supervoxel and the supervoxel depth feature of the reference supervoxel.
[0129] In one embodiment, the metric parameter determination module 712 is further used to perform weighted fusion on the uncertainty parameter and feature diversity parameter of the supervoxel according to the fusion weight to obtain the metric parameter of the supervoxel; the point cloud screening module 714 is further used to select the target supervoxel from the multiple supervoxels according to the numerical values of the metric parameters of each of the multiple supervoxels.
[0130] In one embodiment, an initialization module is also included, which is used to divide each point cloud data into blocks to obtain multiple blocks; for each block of the multiple blocks, according to the curvature parameters of the point cloud data included in the targeted block, the curvature parameters of the targeted block are obtained; according to the curvature parameters of the targeted block and the curvature parameters of the associated blocks, the geometric measurement parameters of the targeted block are obtained, and the associated blocks are blocks in the multiple blocks that are associated with the distribution position of the targeted block; based on the respective geometric measurement parameters of the multiple blocks, a target block is determined from the multiple blocks; and the model parameters of the scene recognition model to be trained are initialized and configured through the point cloud data included in the target block.
[0131] In one embodiment, the point cloud recognition module 704 is also used to determine the scene recognition model to be trained for this training; each point cloud data is input into the scene recognition model to be trained respectively, so that the feature extraction network in the scene recognition model to be trained extracts the point cloud depth features of the input point cloud data, and the semantic segmentation network in the scene recognition model to be trained obtains the scene recognition result of the input point cloud data based on the point cloud depth features of the input point cloud data; it also includes a model training module, which is used to obtain the point cloud samples of this training based on the point cloud data included in the target supervoxel; the scene recognition model to be trained is trained by the point cloud samples of this training to obtain the scene recognition model after this training; when the training end condition is not met, the next training process is performed based on the scene recognition model after this training until the training is completed to obtain a trained scene recognition model.
[0132] Each module in the above-mentioned massive point cloud active processing device can be implemented in whole or in part by software, hardware, or a combination thereof. Each of the above-mentioned modules can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.
[0133] In an exemplary embodiment, a computer device is provided. The computer device may be a server or a terminal. The internal structure diagram thereof may be as follows: Figure 8 As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data involved in the active processing method of massive point clouds. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a method for active processing of massive point clouds is implemented.
[0134] Those skilled in the art will understand that Figure 8The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0135] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.
[0136] In one embodiment, a computer-readable storage medium is provided, storing a computer program, which implements the steps in the above method embodiments when executed by a processor.
[0137] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.
[0138] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.
[0139] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0140] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0141] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A method for actively processing massive point clouds, characterized in that: The method comprises: Acquire point cloud data of the target scene, and obtain a plurality of supervoxels based on clustering of the point cloud data; Obtaining the scene recognition results and point cloud depth features of each of the point cloud data through the scene recognition model to be trained; Determining the uncertainty parameters of each of the point cloud data according to the scene recognition results of each of the point cloud data; For each supervoxel of the plurality of supervoxels, based on the uncertainty parameters of the point cloud data included in the supervoxel, an uncertainty parameter of the supervoxel is obtained; Determining a feature diversity parameter of the supervoxel based on the point cloud depth features of each of the point cloud data included in the supervoxel; fusing the uncertainty parameter of the supervoxel and the feature diversity parameter to obtain a metric parameter of the supervoxel; A target supervoxel is determined from the multiple supervoxels according to the respective metric parameters of the multiple supervoxels, and the point cloud data included in the target supervoxel is used to train the scene recognition model to be trained.
2. The method according to claim 1, characterized in that The scene recognition result includes a scene category probability distribution; and determining the uncertainty parameter of each point cloud data according to the scene recognition result of each point cloud data includes: Determine information entropy according to the scene category probability distribution of each point cloud data; According to the information entropy of each point cloud data, an uncertainty parameter of each point cloud data is obtained.
3. The method according to claim 1, characterized in that The determining the feature diversity parameter of the supervoxel based on the point cloud depth features of each of the point cloud data included in the supervoxel comprises: Based on the point cloud depth features of each of the point cloud data included in the targeted supervoxel, a supervoxel depth feature of the targeted supervoxel is obtained; Determine a supervoxel depth feature of a reference supervoxel, wherein the reference supervoxel is a supervoxel of which point cloud data included in the plurality of supervoxels has been labeled; A feature diversity parameter of the targeted supervoxel is obtained according to a feature distance between the supervoxel depth feature of the targeted supervoxel and the supervoxel depth feature of the reference supervoxel.
4. The method according to claim 1, characterized in that: The step of fusing the uncertainty parameter of the supervoxel and the feature diversity parameter to obtain the metric parameter of the supervoxel includes: According to the fusion weight, the uncertainty parameter of the supervoxel and the feature diversity parameter are weightedly fused to obtain the metric parameter of the supervoxel; The step of determining a target supervoxel from the plurality of supervoxels according to respective metric parameters of the plurality of supervoxels comprises: A target supervoxel is selected from the plurality of supervoxels according to the numerical values of the metric parameters of each of the plurality of supervoxels.
5. The method according to any one of claims 1 to 4, characterized in that: The method further comprises: Dividing each point cloud data into blocks to obtain a plurality of blocks; For each of the plurality of blocks, obtaining a curvature parameter of the targeted block according to a curvature parameter of the point cloud data included in the targeted block; Obtaining a geometric metric parameter of the targeted block according to a curvature parameter of the targeted block and a curvature parameter of an associated block, wherein the associated block is a block in the plurality of blocks that is associated with a distribution position of the targeted block; Determine a target block from the plurality of blocks based on respective geometric metric parameters of the plurality of blocks; The model parameters of the scene recognition model to be trained are initialized and configured using the point cloud data included in the target block.
6. The method according to any one of claims 1 to 4, characterized in that: The scene recognition model to be trained is used to obtain the scene recognition results and point cloud depth features of each point cloud data, including: Determine the scene recognition model to be trained for this training; Input each of the point cloud data into the scene recognition model to be trained respectively, so that the feature extraction network in the scene recognition model to be trained extracts the point cloud depth features of the input point cloud data, and the semantic segmentation network in the scene recognition model to be trained obtains the scene recognition result of the input point cloud data based on the point cloud depth features of the input point cloud data; The method further comprises: Obtaining the point cloud samples for this training based on the point cloud data included in the target supervoxel; Training the scene recognition model to be trained by using the point cloud samples of the current training to obtain the scene recognition model after the current training; When the training end condition is not met, the next training process is performed based on the scene recognition model after the current training until the training is completed to obtain a trained scene recognition model.
7. A massive point cloud active processing device, characterized in that: The device comprises: A point cloud acquisition module, used to acquire point cloud data of a target scene, and obtain a plurality of supervoxels based on clustering of the point cloud data; A point cloud recognition module, used to obtain the scene recognition results and point cloud depth features of each point cloud data through the scene recognition model to be trained; A scene recognition result processing module, used to determine the uncertainty parameter of each point cloud data according to the scene recognition result of each point cloud data; An uncertainty parameter determination module, configured to obtain, for each supervoxel of the plurality of supervoxels, an uncertainty parameter of the supervoxel based on respective uncertainty parameters of the point cloud data included in the supervoxel; A feature diversity parameter determination module, configured to determine the feature diversity parameter of the supervoxel based on the point cloud depth features of each of the point cloud data included in the supervoxel; A metric parameter determination module, used for fusing the uncertainty parameter of the supervoxel and the feature diversity parameter to obtain the metric parameter of the supervoxel; The point cloud screening module is used to determine a target supervoxel from the multiple supervoxels according to the respective metric parameters of the multiple supervoxels, and the point cloud data included in the target supervoxel is used to train the scene recognition model to be trained.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
