A 3D scene point cloud classification method based on multi-scale deep feature aggregation
By using graph convolutional neural networks and attention mechanisms in 3D point cloud classification, a multi-scale deep feature aggregation method is constructed, which solves the problem of ignoring local and global information in the existing technology and achieves more efficient 3D point cloud feature extraction. and classification effects.
Patent Information
- Application Number
- CN202410572257.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-10
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2044-05-10
AI Technical Summary
Existing 3D point cloud classification methods based on deep learning ignore the deep semantic information between neighborhood points when extracting local features, and ignore useful information in other neighborhood features when aggregating local neighborhood features, making it difficult to capture point clouds. Local structural information and spatial context information in the data.
It adopts encoding-decoding deep neural network, combines graph convolutional neural network and attention mechanism, builds graph structure through farthest point sampling and multi-scale KNN neighborhood, extracts local features and performs maximum pooling, calculates attention score and generates features Representative center point features are used, and cross-entropy loss and inter-class contrast loss are used for model optimization to achieve aggregation of multi-scale depth features.
Effectively mine and fuse multi-scale local visual features and high-level semantic global context information to generate more discriminative and descriptive point cloud geometric visual features, improving the accuracy and automation level of 3D point cloud classification.
Smart Images

Figure CN118154996B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of three-dimensional computer vision technology, and in particular to a three-dimensional scene point cloud classification method with multi-scale depth feature aggregation. Background Art
[0002] Laser radar (LiDAR) and photogrammetry technology are the main means of obtaining three-dimensional spatial information. Both can obtain massive (tens of millions) discrete point cloud data, which can realize the true expression of three-dimensional scenes. They are widely used in many military and civilian fields such as robot navigation, intelligent transportation, and intelligent monitoring. However, three-dimensional point cloud data is discrete and unstructured, and it is difficult to solve the "last mile" problem of practical application. Therefore, efficiently and automatically obtaining three-dimensional scene semantic information from massive discrete point cloud data is a key core technology to meet the needs of practical applications, and it is also a hot spot and academic frontier in the field of surveying and mapping geographic information at home and abroad.
[0003] Looking at the research status in recent years, 3D point cloud classification methods are mainly divided into: traditional machine learning methods and deep learning-based methods. Most traditional machine learning classification methods require manual definition and construction of point cloud features for specific research objectives and research data, and design different semantic recognition and object element segmentation schemes to directly extract and classify typical physical elements of indoor and outdoor spaces from 3D point cloud data. Traditional point cloud segmentation and classification methods mostly rely on prior knowledge to design low-level visual features, with low intelligence level and difficulty in adapting to complex scenes such as uneven density and occlusion. Compared with traditional point cloud segmentation and classification methods, deep learning-based segmentation and classification methods can achieve higher accuracy and better generalization. Due to the disorder and unstructured characteristics of discrete 3D point cloud data, it is difficult to use traditional convolutional neural networks to process it. Initially, discrete 3D point cloud data was discretized into regular data formats, such as voxels, multiple views, etc. Although the voxelization-based method solves the problems of point cloud disorder and unstructuredness, it will cause information loss in the voxelization expression process, and the voxel format will occupy a large amount of memory; the multi-view-based method will also cause serious information loss such as geometric structure in the projection conversion process, making it difficult to obtain satisfactory semantic labeling results.
[0004] In recent years, researchers have focused on end-to-end learning methods that use raw point clouds as input. PointNet is a pioneering achievement of this method, but it does not consider local neighborhood information in the feature extraction process. Therefore, many scholars have introduced spatial context information into the expression and learning tasks of visual features of point cloud data by establishing models such as graph convolutional neural networks, attention mechanisms, and recurrent neural networks, improving the feature calculation capabilities of three-dimensional point cloud data, capturing and aggregating significant visual features in point cloud data, and realizing semantic segmentation of point clouds.
[0005] Existing technical defects: Existing deep learning-based 3D point cloud classification methods have the problem of ignoring the deep semantic information between neighboring points when extracting local features, and ignoring the useful information in other neighboring features when aggregating local neighborhood features. Therefore, for the problem of 3D scene point cloud classification, it is very necessary to mine the semantic dependency between neighboring points during the point cloud feature extraction process and efficiently aggregate multi-scale local visual features with high-level semantic global contextual spatial features. Summary of the invention
[0006] In view of the above-mentioned deficiencies in the prior art, the present invention designs a three-dimensional scene point cloud classification method with multi-scale deep feature aggregation, and utilizes the attention mechanism and the visual feature aggregation and fusion capabilities of the graph convolutional neural network to solve the problems of difficulty in capturing the local structural information between points and the spatial context information between regions in point cloud semantic recognition and object segmentation tasks; the present invention uses an encoding-decoding deep neural network as the basic network. As the network level deepens, through the aggregation and transmission of features between neighborhoods, richer semantic feature information is mined and fused, so as to fuse global and local multi-granularity spatial features of different scale ranges, and finally obtain point visual features with the same spatial resolution as the original point cloud, so as to realize fine-grained semantic classification of indoor and outdoor three-dimensional scene point cloud data.
[0007] To achieve the above object, the present invention provides the following solutions:
[0008] A three-dimensional scene point cloud classification method based on multi-scale deep feature aggregation, comprising:
[0009] Obtain point cloud data to be classified;
[0010] The point cloud data to be classified is input into a three-dimensional scene point cloud classification model to obtain point visual features with the same spatial resolution as the original point cloud, wherein the three-dimensional scene point cloud classification model aggregates and fuses local visual features of the point cloud data to be classified, extracts local features of the point cloud, and extracts global context information from the local features of the point cloud; the three-dimensional scene point cloud classification model is obtained by training based on a training set, and the training set includes three-dimensional point cloud data and corresponding classification annotations.
[0011] Optionally, local visual features of the classified point cloud data are aggregated and fused to extract local features of the point cloud, including:
[0012] The farthest point sampling is performed on the point cloud data to be classified to generate a subset of sampling points, each sampling point is used as a node, a topological relationship is established, the current point and the neighboring points within a preset range of the current point are obtained, the current point and the neighboring points are used as point pairs to construct edges, and a graph structure is generated, that is, a multi-scale KNN neighborhood is constructed for each sampling point;
[0013] Obtain the difference between the neighborhood points and the sampling points in each neighborhood, generate geometric features, perform convolution operations on the geometric features, obtain a neighborhood feature set containing local information, perform maximum pooling operations on the neighborhood feature set, aggregate local information to the sampling points, and obtain aggregated local features of the sampling points at each scale;
[0014] According to the aggregated local features, an attention score of each scale is obtained, and the attention score is multiplied by an element of the corresponding center point edge attribute feature to generate a center point feature with local representativeness.
[0015] Optionally, the method for obtaining the attention score of each scale is:
[0016]
[0017] in, Score for attention, is the softmax activation function with normalized attention score weights and a single-layer MLP, is the weight shared by a group of weights, To aggregate local features.
[0018] Optionally, a method for generating a locally representative center point feature is:
[0019]
[0020] in, is the central point feature with local representativeness, is the neighborhood size of the current point, To aggregate local features, Score for attention.
[0021] Optionally, the method for extracting global context information from the local features of the point cloud is:
[0022]
[0023] in, is a linear transformation of the input data, for The vector dimension of is the attention mechanism, is the normalized exponential function, is the transpose operation.
[0024] Optionally, supervised learning using a loss function during training of the training set includes:
[0025] The loss function includes a cross entropy loss function, and the model parameter optimization of the three-dimensional scene point cloud classification model is supervised based on the cross entropy loss function. After the cross entropy loss function gradually tends to converge, the inter-class contrast loss function is added to the model parameter optimization of the three-dimensional scene point cloud classification model.
[0026] Optionally, a method for supervising model parameter optimization of the three-dimensional scene point cloud classification model based on the cross entropy loss function is:
[0027]
[0028] in, is the cross entropy loss, is the number of categories, is the model prediction value, is the true value of the current point.
[0029] Optionally, the method for obtaining the inter-class contrast loss function is:
[0030]
[0031] in, is the inter-class contrast loss, is the number of categories, is the function representative, For continuous updates The average feature vector over the categories, It is the semantic information feature extracted by the last layer of the network.
[0032] The beneficial effects of the present invention are:
[0033] The present invention aggregates multi-scale local visual features, deeply mines the visual information in multi-scale neighborhoods, and uses the self-attention mechanism to integrate high-level semantic global long-distance spatial context useful information, efficiently generates more discriminative and descriptive point cloud geometric visual features, realizes adaptive screening of significant features, and strengthens the role of important semantic information in three-dimensional point cloud classification tasks.
[0034] The present invention will improve the automation, real-time and intelligent level of the semantic annotation process of three-dimensional point cloud data, greatly save manpower and time costs, and thus strongly support the construction of real-life three-dimensional China and digital China and the empowerment of their applications. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0036] Figure 1 A schematic diagram of a three-dimensional scene point cloud classification method with multi-scale deep feature aggregation according to an embodiment of the present invention;
[0037] Figure 2 This is the classification result of scenario 1 of the embodiment of the present invention;
[0038] Figure 3 This is the classification result of scenario 2 of the embodiment of the present invention. DETAILED DESCRIPTION
[0039] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0040] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0041] like Figure 1 As shown, the present invention discloses a three-dimensional scene point cloud classification method with multi-scale deep feature aggregation, including: obtaining point cloud data to be classified; inputting the point cloud data to be classified into a three-dimensional scene point cloud classification model to obtain point visual features with the same spatial resolution as the original point cloud, wherein the three-dimensional scene point cloud classification model aggregates and fuses the local visual features of the point cloud data to be classified, extracts local features of the point cloud, and extracts global context information from the local features of the point cloud; the three-dimensional scene point cloud classification model is obtained by training based on a training set, and the training set includes three-dimensional point cloud data and corresponding classification annotations.
[0042] The three-dimensional scene point cloud classification method of the present invention includes three modules: a point cloud local multi-scale visual feature aggregation and fusion module based on a graph convolutional neural network, a point cloud global visual feature enhancement module based on an attention mechanism, and a deep learning network parameter learning and optimization module that collaborates with cross entropy loss and inter-class comparison.
[0043] The local visual features of the classified point cloud data are converged and fused to extract the local features of the point cloud, including: sampling the farthest point of the classified point cloud data to generate a subset of sampling points, taking each sampling point as a node, establishing a topological relationship, obtaining vertices and neighborhood points, and using vertices and neighborhood points as point pairs to build edges and generate a graph structure, that is, building a multi-scale KNN neighborhood for each sampling point; obtaining the difference between the neighborhood points and the sampling points in each neighborhood, generating geometric features, performing convolution operations on the geometric features, obtaining a neighborhood feature set containing local information, performing a maximum pooling operation on the neighborhood feature set, aggregating local information to the sampling points, and obtaining aggregated local features of the sampling points at each scale; obtaining the attention score of each scale based on the aggregated local features, multiplying the attention score with the element of the corresponding center point edge attribute feature, and generating a center point feature with local representativeness, specifically:
[0044] The farthest point sampling is performed on the classified point cloud data to generate a subset of sampling points. Each sampling point is used as a node to establish a topological relationship, obtain vertices and neighboring points, and use the vertices and neighboring points as point pairs to build edges to generate a graph structure, that is, a multi-scale KNN neighborhood is constructed for each sampling point (the multi-scale in this embodiment is set to );
[0045] For each neighborhood scale, obtain the difference between the neighborhood point and the sampling point in each neighborhood to get the current point Local geometric feature encoding:
[0046]
[0047] in, Represents each center point, Indicates the corresponding Neighborhood points, represents the Euclidean distance between the center point and its neighboring points, represents the difference between the coordinates of the center point and the neighboring points, Represents a cascade operation, which cascades the above four parts in the feature dimension. Perform a convolution operation on the local geometric feature encoding to obtain a neighborhood feature set containing local information, perform a maximum pooling operation on the neighborhood feature set, aggregate the local information to the sampling point, and thus obtain the aggregated local geometric visual features of each sampling point at each scale; based on the aggregated local visual features, the intra-layer extraction and transmission of neighborhood information is achieved through edge convolution and attention pooling, and the aggregated local geometric visual features are used to fully explore the semantic correlation between adjacent points and continuously enrich the semantic feature information. The specific process is as follows:
[0048] Based on the nearest neighbor of each point K The index of each point is used to create directed edges between the center point and the neighboring points, and the edge vector is created:
[0049]
[0050] in, Indicates i The point corresponds to the neighborhood of j The local geometric visual feature information of each point, It means the i The point and the corresponding neighborhood j There is directed edge information between the points.
[0051] The edge vector is operated through a multi-layer perceptron to extract edge attribute features, which can be specifically expressed as:
[0052]
[0053] in, Represents a learnable three-layer stacked multilayer perceptron.
[0054] In order to aggregate edge attribute features to the corresponding center point while avoiding the loss of important edge information, the present invention uses the attention mechanism to adaptively learn the significant visual feature information in the neighborhood, and to characterize the neighborhood information it contains to the greatest extent. The final result can be expressed as:
[0055]
[0056] in, Represents the attribute characteristics of a given neighborhood edge, Indicates the edge feature after aggregation The feature vector of each point is rich in semantic information. Represents a learnable multi-layer perceptron. Finally, aggregated local visual features of different scales are generated at three neighborhood scales.
[0057] For local visual features obtained by multi-scale aggregation ( represents the dimension of the feature vector), obtains the attention score at each scale, and the learned attention score can be regarded as a mask that automatically selects important latent features.
[0058] The graph convolutional neural network uses the information diffusion mechanism to take each point in the point cloud data as an update target, and uses the connection edges containing the dependency relationship between adjacent points to perform information interaction and update according to certain rules. In addition to its own information, each point also contains the information of its neighboring points. Therefore, the correlation between the points can be well established, which is used to mine the semantic correlation between adjacent points in the tasks of point cloud semantic recognition and object segmentation. The present invention designs a local multi-scale visual feature convergence and fusion module based on the graph convolutional neural network. First, the input point cloud is downsampled to N / 4 points by the farthest point sampling method to generate a sampling point subset S, where N is the number of input points.
[0059] For point clouds, the purpose of constructing a graph structure is to solve the problem that it is impossible to use a fixed-size convolution kernel for feature extraction, so as to find an abstract feature method suitable for the local range of point clouds. Due to the unstructured characteristics of point cloud data, each point is regarded as a node, and the KNN (K-Nearest Neighbor) algorithm is used to establish a topological relationship for the point cloud data to characterize the semantic association between points. The combination of vertices and neighborhood points constitutes a point pair, and the point pairs generate edges to generate a graph structure. Therefore, a multi-scale KNN neighborhood is constructed for each sampling point (three scales are set in the present invention). , , ,and , corresponding to three neighborhoods , ), to ensure the diversity of the receptive fields of the sampling points.
[0060] Then, at the sampling point Each neighborhood of In, by calculating Middle Neighborhood points and The difference between :
[0061] (1)
[0062] in, and Respectively represent and The geometric characteristics of Represents a concatenation operation.
[0063] Next, given the fused neighborhood geometric features, the neighborhood The graph convolution in can be expressed as:
[0064] (2)
[0065] in, yes and the aggregated local features of the information in its neighborhood, is a convolution operation with a 1×1 kernel, establishing the sampling points With neighboring points The semantic relationship between them is used to generate a neighborhood feature set containing local information, and the maximum pooling operation is used To aggregate local information to .
[0066] Finally, given each scale Aggregate local features , use attention pooling (such as formula (3)) to calculate the attention score of each scale:
[0067] (3)
[0068] in, represents the weight shared by a set of weights, represents the softmax activation function and a single-layer MLP used to normalize the attention score weights.
[0069] The learned attention score can be regarded as a mask that automatically selects important latent features. The attention score is multiplied element by element with the corresponding center point edge attribute feature to generate a locally representative center point feature. , as shown in formula (4).
[0070] (4)
[0071] In fact, the physical elements of different categories in indoor and outdoor scenes have strong correlation in spatial distribution. In order to solve the problem that the spatial context information between long-distance regions cannot be captured in feature extraction, the attention mechanism is good at mining feature correlation and enhancing the performance of the network model in aggregating global context information. The self-attention mechanism consists of a multi-head attention mechanism and a scaled dot product attention unit. During the calculation process, the connection between any two input data can be associated through the same calculation steps, shortening the distance between long-distance dependent features. Therefore, it can effectively characterize the global dependency between input and output data and adjust the local features of the point cloud. The local features of the point cloud extracted by the graph convolution module are used as input, and the attention scores are calculated between the input data elements to extract the global context information of the three-dimensional point cloud data (as shown in Equation 5), thereby obtaining the enhanced point cloud features.
[0072] (5)
[0073] in, They are obtained by linear transformation of the input data. express The vector dimension of .
[0074] Finally, if Figure 2-3 As shown in the figure, the U-Net network structure is referenced, the nearest neighbor interpolation method is used to upsample the point cloud, and the skip structure is used to fuse the spatial information implied in the low-level and the semantic information implied in the high-level, and finally the point visual features with the same spatial resolution as the original point cloud are obtained. After that, the multi-layer perceptron (MLP) is used to obtain the score of each point in each category, thereby realizing the semantic labeling task of the point cloud.
[0075] According to the training set, supervised learning using loss functions during training includes: the loss function includes a cross entropy loss function, and the model parameter optimization of the three-dimensional scene point cloud classification model is supervised based on the cross entropy loss function. After the cross entropy loss function gradually converges, the inter-class contrast loss is added to the model parameter optimization of the three-dimensional scene point cloud classification model, specifically:
[0076] The entire network structure is implemented using the pytorch deep learning framework and can be trained on a single RTX 3080 GPU. At the beginning of training, only the cross entropy loss function is used to supervise the learning of network parameters, as shown in formula (6). The cross entropy loss can only narrow the gap between the model prediction results and the true category, and cannot effectively utilize the semantic feature connection between point categories. Therefore, after the cross entropy loss function gradually converges, the inter-class contrast loss is added to the optimization of supervised network parameters, where the two loss terms are weighted summed, as shown in formula (7).
[0077] (6)
[0078] in, represents the predicted value of the network model, represents the true value of the corresponding point, Represents the number of categories. The cross entropy function describes the difference between the predicted probability distribution and the true probability distribution. Finally, the cross entropy loss is continuously reduced through gradient back propagation, so that the predicted probability distribution is constantly close to the true probability distribution.
[0079] The final loss function can be expressed as:
[0080] (7)
[0081] in, represents the inter-class contrast loss, represents the cross entropy loss, Represents weight.
[0082] The construction process of the inter-class contrast loss function is as follows: The inter-class contrast loss function is that the feature vector with significant distinguishing ability should be the same category of points in the high-dimensional feature space. The distance between points of different categories is farther away. Based on the semantic information feature vector of the last layer of the network, the distance between feature vectors of each category is measured. By making the feature distance of points of the same category in the high-dimensional semantic feature space of the point cloud closer, the feature distance of points of different categories (there is a category for each point in the training data, which can be used to determine whether the feature vector is of the same category) is farther away, as shown in formula (8).
[0083] (8)
[0084] in, Represents the semantic information features extracted by the last layer of the network, It means that the The average feature vector over the categories, The function represents:
[0085] (9)
[0086] in, Here, Euclidean distance is used as the standard for distance measurement. Indicates the similarity between feature vectors.
[0087] The above embodiments are only descriptions of the preferred embodiments of the present invention, and are not intended to limit the scope of the present invention. Without departing from the design spirit of the present invention, various modifications and improvements made to the technical solutions of the present invention by ordinary technicians in this field should fall within the protection scope determined by the claims of the present invention.
Claims
1. A three-dimensional scene point cloud classification method based on multi-scale deep feature aggregation, characterized in that: include: Obtain point cloud data to be classified; Input the point cloud data to be classified into a three-dimensional scene point cloud classification model to obtain point visual features with the same spatial resolution as the original point cloud, wherein the three-dimensional scene point cloud classification model converges and fuses the local visual features of the point cloud data to be classified, extracts local features of the point cloud, and extracts global context information from the local features of the point cloud; the three-dimensional scene point cloud classification model is obtained by training according to a training set, and the training set includes three-dimensional point cloud data and corresponding classification annotations; The local visual features of the classified point cloud data are aggregated and fused, and the local features of the point cloud are extracted, including: The farthest point sampling is performed on the point cloud data to be classified to generate a subset of sampling points, each sampling point is used as a node, a topological relationship is established, the current point and the neighboring points within a preset range of the current point are obtained, the current point and the neighboring points are used as point pairs to construct edges, and a graph structure is generated, that is, a multi-scale KNN neighborhood is constructed for each sampling point; Get the difference between the neighborhood points and the sampling points in each neighborhood to generate geometric features: in, Represents each center point, Indicates the corresponding Neighborhood points, represents the Euclidean distance between the center point and its neighboring points, represents the difference between the coordinates of the center point and the neighboring points, Indicates a cascade operation; Performing a convolution operation on the geometric features to obtain a neighborhood feature set containing local information, performing a maximum pooling operation on the neighborhood feature set to aggregate the local information to the sampling points, and obtaining aggregated local features of the sampling points at each scale; Obtaining the aggregated local features of the sampling points at each scale includes: Based on the indexes of the K points closest to each point, a directed edge is established between the center point and the neighborhood point, and an edge vector is established: in, Represents the local geometric visual feature information of the jth point in the neighborhood corresponding to the i-th point, It indicates the directed edge information between the i-th point and the j-th point in the corresponding neighborhood; The edge vector is operated through a multi-layer perceptron to extract edge attribute features: in, Represents a learnable three-layer stacked multilayer perceptron; Based on the attention mechanism, the significant visual feature information in the neighborhood is adaptively learned, and the edge attribute features are aggregated to the corresponding center point to represent the neighborhood information contained therein: in, Represents the attribute characteristics of a given neighborhood edge, Represents the feature vector with semantic information of the point after edge feature aggregation, represents a learnable multilayer perceptron; Finally, at the three neighborhood scales, aggregated local features of the sampling points at each scale are generated; According to the aggregated local features, an attention score of each scale is obtained, and the attention score is multiplied by an element of the corresponding center point edge attribute feature to generate a center point feature with local representativeness.
2. The three-dimensional scene point cloud classification method based on multi-scale deep feature aggregation according to claim 1 is characterized in that: The method for obtaining the attention score of each scale is: in, Score for attention, is the softmax activation function with normalized attention score weights and a single-layer MLP, is the weight shared by a group of weights, To aggregate local features.
3. The three-dimensional scene point cloud classification method based on multi-scale deep feature aggregation according to claim 1 is characterized in that: The method to generate locally representative center point features is: in, is the central point feature with local representativeness, is the neighborhood size of the current point, To aggregate local features, Score for attention.
4. The three-dimensional scene point cloud classification method based on multi-scale deep feature aggregation according to claim 1 is characterized in that: The method for extracting global context information from the local features of the point cloud is: in, is a linear transformation of the input data, for The vector dimension of is the attention mechanism, is the normalized exponential function, is the transpose operation.
5. The three-dimensional scene point cloud classification method based on multi-scale deep feature aggregation according to claim 1, characterized in that: According to the training set, supervised learning using loss functions during training includes: The loss function includes a cross entropy loss function, and the model parameter optimization of the three-dimensional scene point cloud classification model is supervised based on the cross entropy loss function. After the cross entropy loss function gradually tends to converge, the inter-class contrast loss function is added to the model parameter optimization of the three-dimensional scene point cloud classification model.
6. The three-dimensional scene point cloud classification method based on multi-scale deep feature aggregation according to claim 5, characterized in that: The method for optimizing the model parameters of the three-dimensional scene point cloud classification model based on the cross entropy loss function supervision is: in, is the cross entropy loss, is the number of categories, is the model prediction value, is the true value of the current point.
7. The three-dimensional scene point cloud classification method based on multi-scale deep feature aggregation according to claim 5, characterized in that: The method for obtaining the inter-class contrast loss function is: in, is the inter-class contrast loss, is the number of categories, is the function representative, For continuous updates The average feature vector over the categories, It is the semantic information feature extracted by the last layer of the network.
