A self-supervised learning method for remote sensing images based on graph mask autoencoder
Through the self-supervised learning method of graph mask autoencoder, the problems of computational complexity and insufficient samples in hyperspectral remote sensing image classification are solved, the classification accuracy is improved, and efficient feature extraction and classification of hyperspectral image data are achieved.
Patent Information
- Application Number
- CN202410924484.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-11
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-07-11
AI Technical Summary
Hyperspectral remote sensing image classification suffers from the problems of high computational complexity, complex data distribution, and insufficient samples. Traditional methods are difficult to achieve accurate classification, and the training process relies on a large amount of labeled data.
A self-supervised learning method based on graph mask autoencoder is used to convert remote sensing image data into graph data. Hidden vector representation is generated through graph convolution encoder and cross-correlation decoder, self-supervised training is performed to extract features, and commonly used input Classifier performs classification.
The classification accuracy of the deep learning classifier is improved, efficient feature extraction and classification of hyperspectral image data is achieved, and the dependence on labeled data is reduced.
Smart Images

Figure CN118470545B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of computer vision and involves technologies such as hyperspectral image processing and self-supervised learning, and in particular, to a remote sensing image self-supervised learning method based on a graph mask autoencoder. Background Art
[0002] Hyperspectral remote sensing is one of the commonly used remote sensing technologies. It uses the spectral curve characteristic information unique to various objects to identify many similar object categories that cannot be identified by spectral images. It plays a vital role in military exploration, surface landform monitoring, disaster prevention and other fields. Hyperspectral image classification has the following difficulties: 1. Hyperspectral images have high spectral dimensions and serious data redundancy, which increases the computational complexity of the classification task; 2. The data distribution is complex. There is a nonlinear relationship and complex pattern between the spectral information of each pixel in the hyperspectral image and the corresponding object, making it impossible for traditional methods to accurately classify; 3. There are insufficient samples. Experts need to conduct field surveys and sample labeling consumes manpower and material resources.
[0003] In recent years, with the development of deep learning, deep learning models have been gradually applied to remote sensing image classification and have shown good classification results. Although some scholars have applied convolutional neural networks and adversarial generative networks to remote sensing image classification, the training process of these models often relies on a large amount of labeled data, which makes image classification complicated. Summary of the invention
[0004] The purpose of the present invention is to overcome the shortcomings in the prior art and provide a remote sensing image self-supervised learning method based on a graph mask autoencoder, which converts traditional remote sensing image data into graph data and converts the graph mask into a perturbation graph to input a graph convolutional encoder and obtain a multi-layer hidden vector representation of the sample, generates a vector representation of the edge to be predicted through a cross-correlation decoder to predict the mask edge, compares the predicted value with the positive and negative samples to calculate the loss to train the encoder-decoder, and finally uses the trained graph convolutional encoder to extract the features of the hyperspectral image data and inputs it into a common classifier to obtain the classification result.
[0005] In order to solve the above technical problems, the present invention is implemented by adopting the following technical solutions:
[0006] In a first aspect, the present invention provides a remote sensing image self-supervised learning method based on a graph mask autoencoder, comprising:
[0007] Use principal component analysis to reduce the dimension of remote sensing image data to obtain reduced-dimensional remote sensing image data;
[0008] The reduced-dimensional remote sensing image data is input into the pre-trained graph convolution encoder to extract the features of the remote sensing image node samples and obtain the remote sensing image feature matrix.
[0009] The remote sensing image feature matrix is input into the supervised learning classifier to obtain the classification result of the remote sensing image data.
[0010] Furthermore, the training method of the graph convolutional encoder includes:
[0011] Use principal component analysis to reduce the dimension of remote sensing image data, and construct a full set of graph data with nodes and edges based on the reduced dimension remote sensing image data, and set the self-supervised learning training iteration rounds;
[0012] Based on the constructed full set of graph data, a masked edge set and a remaining edge set are created using graph random masking, and perturbed graph data is constructed based on the full set of nodes and the remaining edge set data;
[0013] The masked edge set is used as the positive sample label edge set, and the negative sample label edge set is obtained by negative sampling on the full set of graph data, thereby obtaining the positive and negative sample label edge sets;
[0014] Input the perturbation graph data into the graph convolution encoder to obtain the hidden vector representation of each layer node;
[0015] Based on the hidden vector representation of the start and end nodes of each layer, the hidden vectors of the start and end nodes of each layer of the edge to be predicted are obtained;
[0016] Input the hidden vectors of the start and end nodes of each layer of the edge to be predicted into the cross-correlation decoder to obtain the vector representation of the edge to be predicted;
[0017] The vector representation of the edge to be predicted is input into the multi-layer perceptron to obtain the prediction result of the edge, and the prediction result of the edge is compared with the positive and negative sample label edge set to calculate the sum of the positive and negative sample losses;
[0018] The graph convolution encoder and cross-correlation decoder are trained according to the set self-supervised learning training iteration rounds. Based on the sum of the positive and negative sample losses, the network parameters of the graph convolution encoder and cross-correlation decoder are trained and updated through back propagation and gradient descent algorithms.
[0019] Furthermore, the method of constructing a complete set of graph data with nodes and edges includes:
[0020] Using principal component analysis, the width is W , Gao Wei H , the number of channels is C Remote sensing images Number of channels C The dimension is reduced to P. The remote sensing image data after dimension reduction is ;
[0021] Take each pixel as a node of the graph, and all pixels constitute the complete set of nodes V; Connect nodes whose Euclidean distance is not greater than the set Euclidean distance node by node to form a complete set of adjacent associated edges ; Construct the full set of graph data with nodes and edges as .
[0022] Further, the method for obtaining the disturbance map data includes:
[0023] Perform random masking on the entire set of edges to obtain the masked edge set ;in, is the random mask operation of the graph, is the masking rate; the remaining edge set that is not masked can be obtained , the remaining edge set and the full set of nodes form a perturbation graph ,in, is the remaining edge set, is the complete set of nodes, is the complete set of adjacent associated edges.
[0024] Furthermore, the method for constructing the positive and negative sample label edge sets includes:
[0025] The masked edge set is used as the positive sample label edge set , ,in is the masked edge set;
[0026] Negative sampling is performed on the entire graph data to construct random edges and create a negative sample label set , ,in is the full set of graph data, is a negative sampling operation; As the positive sample label edge set for self-supervised training, is the negative sample label edge set.
[0027] Furthermore, the method for obtaining the hidden vector representation of the start and end nodes of each layer includes:
[0028] Input the perturbation graph data into the graph convolution encoder to obtain the hidden vector representation of each layer node:
[0029]
[0030] In the formula, For passing The first layer of the graph convolutional neural network after encoding Layer node hidden vector, where ; For the The graph convolutional neural network layer of layers, where ; is the number of graph convolution layers set; , is the number of nodes, is the hidden vector dimension.
[0031] Furthermore, the method for obtaining the vector representation of the edge to be predicted includes:
[0032] Edge to be predicted The hidden vectors of the start and end nodes are ,in, , and are the start and end nodes of the edge to be predicted respectively;
[0033] Input the hidden vectors of the start and end nodes of each layer of the edge to be predicted into the cross-correlation decoder to obtain the vector representation of the edge to be predicted:
[0034]
[0035] In the formula, The edge to be predicted The vector representation of ; is the element-wise product, For vector concatenation, is the hidden vector of the starting node of each layer of the edge to be predicted, is the hidden vector of the end node of each layer of the edge to be predicted, .
[0036] Furthermore, the method of obtaining the prediction result of the edge and calculating the sum of the positive and negative sample losses includes:
[0037] Input the vector representation of the edge to be predicted into the multilayer perceptron to obtain the prediction result of the edge of the existence of the edge to be predicted:
[0038]
[0039] In the formula, represents the prediction result of the edge, represents a multi-layer perceptron, is the vector representation of the edge to be predicted;
[0040] Compare the edge prediction results with the labeled positive and negative samples to calculate the sum of the positive and negative sample losses:
[0041]
[0042] In the formula, is the loss function, are network parameters, is the similarity function, where is a positive loss, Negative loss, total loss is the sum of the positive and negative sample losses; is the positive sample label edge set for self-supervised training, is the negative sample label edge set.
[0043] Furthermore, based on the obtained sum of the positive and negative sample losses, the method for training and updating the network parameters of the graph convolution encoder and the cross-correlation decoder includes:
[0044] Use the loss function to train and update the network parameters of the graph convolution encoder and cross-correlation decoder through back propagation and gradient descent algorithm:
[0045]
[0046] In the formula, are the updated network parameters, are the network parameters before updating, is the learning rate, is the gradient of the loss function.
[0047] In a second aspect, the present invention provides a computer storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the remote sensing image self-supervised learning method based on the graph mask autoencoder as described above is implemented.
[0048] Compared with the prior art, the present invention has the following beneficial effects:
[0049] The present invention converts traditional remote sensing image data into graph data, and performs graph masking on it to become a perturbation graph to realize input of a graph convolutional encoder, and obtains a multi-layer hidden vector representation of the sample, generates a vector representation of the edge to be predicted through a cross-correlation decoder to realize the prediction of the masked edge, compares the predicted value with the positive and negative samples to calculate the loss to realize the training of the encoder and decoder, and finally uses the trained graph convolutional encoder to realize feature extraction of hyperspectral image data and inputs it into a common classifier to obtain the classification result.
[0050] The present invention realizes feature extraction of remote sensing image data by designing a self-supervised graph mask autoencoder network, so as to achieve efficient representation of pixel sample feature vectors and improve the classification accuracy of commonly used deep learning classifiers. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] Figure 1 A flowchart of a remote sensing image self-supervised learning method based on a graph mask autoencoder provided in an embodiment of the present invention;
[0052] Figure 2 A pseudo-color image of the Indian Pines hyperspectral image provided by an embodiment of the present invention;
[0053] Figure 3A map of real landform types of Indian Pines hyperspectral images provided in an embodiment of the present invention;
[0054] Figure 4 The hyperspectral image classification result of the common SVM provided by the present invention;
[0055] Figure 5 The hyperspectral image classification result of 4-adjacent S2GAE+SVM provided by the present invention;
[0056] Figure 6 The hyperspectral image classification result of the common CNN provided by the present invention;
[0057] Figure 7 The hyperspectral image classification result of 4-adjacent S2GAE+CNN provided by the present invention;
[0058] Figure 8 The hyperspectral image classification result of 8-adjacent S2GAE+CNN provided by the present invention;
[0059] Fig. 9 This is the hyperspectral image classification result of 24-adjacent S2GAE+CNN provided by the present invention. DETAILED DESCRIPTION
[0060] The technical concept of the present invention is: converting traditional remote sensing image data into graph data, and performing graph masking on it to become a perturbation graph to realize the input graph convolution encoder, and obtaining the multi-layer hidden vector representation of the sample, generating the vector representation of the edge to be predicted through the cross-correlation decoder to realize the prediction of the mask edge, comparing the predicted value with the positive and negative samples to calculate the loss to realize the training of the encoder and decoder, and finally using the trained graph convolution encoder to realize the feature extraction of hyperspectral image data and input it into a common classifier to obtain the classification result.
[0061] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. The following description of at least one exemplary embodiment is actually only illustrative and is by no means intended to limit the present application and its application or use.
[0062] Embodiment 1:
[0063] This embodiment discloses a remote sensing image self-supervised learning method based on a graph mask autoencoder. The method process is as follows: Figure 1 As shown, including:
[0064] S1. Use principal component analysis to reduce the dimension of the original remote sensing image data. Dimensionality reduction to , use the reduced-dimensional data to construct a full-set graph with nodes and edges , and set the self-supervised learning training iteration rounds ; Specifically include:
[0065] S11, use principal component analysis to compare the width , Gao Wei , the number of channels is Remote sensing images Number of channels Dimensionality reduction to , such as the formula:
[0066]
[0067] In the formula, is the image data after dimensionality reduction, The principal component analysis is used for dimensionality reduction. is the original remote sensing spectral image, is the number of channels of the image data after dimensionality reduction, and the image data after dimensionality reduction is .
[0068] S12, each pixel is used as a node of the graph , the complete set of nodes composed of all pixels , such as the formula:
[0069]
[0070] The Euclidean distance between nodes is no greater than The nodes constitute the adjacent associated edge set , the constructed edge set is as follows:
[0071]
[0072] In the formula, is the set Euclidean distance range, generally 1, and The starting nodes The horizontal and vertical coordinates of and The end nodes The node feature matrix composed of the feature vectors of all nodes is ,in , is the number of nodes. The final set of graph data created is .
[0073] S13. Set the number of iterations for self-supervised learning training .
[0074] S2. Create masked edge sets using graph random masking and the remaining edge set ; Specifically include:
[0075] S21. Set a certain mask rate , and perform random masking on the entire set of edges, as shown in the formula:
[0076]
[0077] In the formula, is the set of masked edges, Random mask operation for graph.
[0078] S22, because ,again , get the remaining unmasked edges , the remaining edges With the full set of nodes Together they form the perturbation graph , which is the masked image. As the training edge data for self-supervised learning, Partially labeled edge data for self-supervised learning.
[0079] S3. Create positive sample label edge set and negative sample label edge set Used for self-supervised training; specifically includes:
[0080] S31. Recorded as positive sample label ;
[0081] S32. For the complete set of graph data Perform negative sampling to construct random edges and create negative sample labels , such as the formula:
[0082]
[0083] In the formula, is a negative sampling operation; As positive sample labels for self-supervised training, is the negative sample label.
[0084] S4. Perturbation map data Input multi-layer graph convolutional encoder , get the hidden vector representation of each layer node ; Specifically include:
[0085] Use the graph node spectral feature vector and the masked edge set to input the graph convolution encoder, as shown in the formula:
[0086]
[0087] In the formula, For the The graph convolutional neural network layer of layer, For passing The first layer of the graph convolutional neural network after encoding layer node hidden vector, is the number of graph convolution layers set. , is the number of nodes, is the hidden vector dimension.
[0088] S5. Hidden vectors of multiple nodes at both ends Input the cross-correlation decoder to obtain the vector representation of the edge to be predicted ; Specifically include:
[0089] S51, the edge to be predicted The start and end nodes are denoted as and , the node hidden vectors of their various layers are .
[0090] S52, the hidden vectors of the start and end nodes of the edge to be predicted Input the cross-correlation decoder to obtain the edge to be predicted between the source and end nodes Vector representation of , such as the formula:
[0091]
[0092] In the formula, is the element-wise product, is vector concatenation; the calculation process of the cross-correlation operation is to convert the starting node Each layer node hidden vector With the end node Each layer node hidden vector Calculate the element product separately, and then use the obtained vectors are concatenated to obtain the edge to be predicted Vector representation of .
[0093] S6. Represent the vector of the edge to be predicted Input Multilayer Perceptron To express the existence of the predicted edge , and input with positive and negative sample labels and The loss function calculates the sum of positive and negative losses ; Specifically include:
[0094] S61, the vector representation of the edge to be predicted Input the multi-layer perceptron to obtain the edge to be predicted Existence Estimates , such as the formula:
[0095]
[0096] In the formula, Represents a multi-layer perceptron.
[0097] S62. Compare the edge prediction results with the positive and negative samples of the label to calculate the loss, as shown in the formula:
[0098]
[0099] In the formula, is the loss function, are network parameters, is the similarity function, where is a positive loss, Negative loss, total loss is the sum of the positive and negative sample losses.
[0100] S7, repeating steps S4-S6, training the graph convolution encoder and the cross-correlation decoder, and adjusting network parameters; specifically including:
[0101] According to the loss function, the training and update of the network parameters of the graph convolution encoder and the cross-correlation decoder are realized through back propagation and gradient descent algorithm, as shown in the formula:
[0102]
[0103] In the formula, are the updated network parameters, are the network parameters before updating, is the learning rate, is the gradient of the loss function.
[0104] S8, training rounds reached When using the trained graph convolutional encoder Remote sensing images Perform feature extraction coding; specifically including:
[0105] When the iteration round When the maximum value is reached, the trained graph convolution encoder is selected Extract the features of the image pixel samples to obtain the feature vector of the samples , forming the image feature matrix , general order = Or use the concatenation of all layer feature vectors.
[0106] S9, hide the encoded pixel samples in the vector matrix Directly input the commonly used supervised learning encoder to improve classification performance and obtain classification results; specifically including:
[0107] The pixel sample feature vector after feature extraction Enter the supervised learning classifier and import the labeled data , to improve the classification performance of commonly used supervised learning classifiers and finally obtain image classification results.
[0108] Specific application examples of this embodiment:
[0109] The hyperspectral remote sensing image dataset used in this embodiment is the Indian Pines hyperspectral dataset, which was captured by an airborne visible / infrared imaging spectrometer sensor in northwestern Indiana in 1992. The dataset contains 200 effective spectral bands. Figure 2 Displays pseudo-color images of the Indian Pines dataset, with a spatial size of 145 145 pixels, ground sampling distance is 20 meters. Figure 3 Displays real ground object types, including 16 ground object categories, of which 10,249 pixel samples can be used for experiments.
[0110] The self-supervised learning comparative experiment respectively adopts an ordinary support vector machine classifier (SVM) without self-supervised graph mask autoencoder feature extraction, an ordinary convolutional neural network classifier (CNN) without self-supervised graph mask autoencoder feature extraction, a support vector machine classifier (S2GAE+SVM) including self-supervised graph mask autoencoder feature extraction of the present invention, a convolutional neural network classifier (S2GAE+CNN) including self-supervised graph mask autoencoder feature extraction, and their self-supervised training on the image data of the Indian Pines data set of the embodiment and image classification of the labeled sample data under various configuration modes (4 adjacent edges, 8 adjacent edges, 24 adjacent edges).
[0111] The self-supervised learning settings are as follows: The composition method is 8-adjacent composition centered on each pixel (that is, connecting the central pixel with the pixels in the 3*3 range around it). Mask rate Set to 0.6, the number of graph convolution encoder layers is set to 5, the number of multilayer perceptron layers in the decoder is set to 5, the learning rate is set to 0.0001, the batch size is set to 1024, and the number of self-supervised training iterations is set to Set to 400. Under this condition, 10 repeated experiments were conducted on the commonly used supervised learning classifiers, and their classification accuracy is shown in Table 1. ± indicates the fluctuation range of the experimental results.
[0112] Table 1: Comparison of image classification accuracy in the Indian Pines dataset
[0113]
[0114] As can be seen from Table 1, when using SVM as a supervised learning classifier, the SVM classifier using the self-supervised graph mask autoencoder for feature extraction has a significant improvement in each category classification accuracy, overall classification accuracy, average classification accuracy and Kappa coefficient compared with the ordinary SVM classifier; when using CNN as a supervised learning classifier, the CNN classifier using the self-supervised graph mask autoencoder for feature extraction has a stable improvement in each category classification accuracy, overall classification accuracy, average classification accuracy and Kappa coefficient compared with the ordinary CNN classifier. The self-supervised learning method for remote sensing images based on the graph mask autoencoder provided by the present invention has achieved the best classification results. The present invention realizes self-supervised learning of remote sensing image data under unlabeled conditions, and realizes self-supervised training of the graph convolution feature extraction encoder by converting the remote sensing image into graph data and predicting the mask edge to extract efficient representation of remote sensing image sample features, thereby improving the classification performance of commonly used supervised learning classifiers under small sample conditions.
[0115] To visualize the classification results, Figure 4 , Figure 6 The classification results of the commonly used SVM classifier and CNN classifier are shown respectively. Figure 5 , Figure 7-9 The classification result diagram of the present invention is shown. It can be seen intuitively that with the help of the feature extraction of the present invention, the classification model can accurately identify the type of ground object to which the sample belongs, and the classification performance of the commonly used supervised learning classifier is greatly and stably improved.
[0116] Embodiment 2:
[0117] Based on Example 1, this embodiment provides a storage medium on which a computer program is stored. When the computer program is executed by a processor, the remote sensing image self-supervised learning method based on the graph mask autoencoder described in Example 1 is implemented.
[0118] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0119] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0120] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0121] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0122] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the technical principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A self-supervised learning method for remote sensing images based on graph mask autoencoders, It is characterized in that include: Use principal component analysis to reduce the dimension of remote sensing image data to obtain reduced-dimensional remote sensing image data; The reduced-dimensional remote sensing image data is input into the pre-trained graph convolution encoder to extract the features of the remote sensing image node samples and obtain the remote sensing image feature matrix; Input the remote sensing image feature matrix into the supervised learning classifier to obtain the classification result of the remote sensing image data; The training method of the graph convolution encoder includes: Use principal component analysis to reduce the dimension of remote sensing image data, and construct a full set of graph data with nodes and edges based on the reduced dimension remote sensing image data, and set the self-supervised learning training iteration rounds; Based on the constructed full set of graph data, a masked edge set and a remaining edge set are created using graph random masking, and perturbed graph data is constructed based on the full set of nodes and the remaining edge set data; The masked edge set is used as the positive sample label edge set, and the negative sample label edge set is obtained by negative sampling on the full set of graph data, thereby obtaining the positive and negative sample label edge sets; Input the perturbation graph data into the graph convolution encoder to obtain the hidden vector representation of the start and end nodes of each layer; Based on the hidden vector representation of the start and end nodes of each layer, the hidden vectors of the start and end nodes of each layer of the edge to be predicted are obtained; Input the hidden vectors of the start and end nodes of each layer of the edge to be predicted into the cross-correlation decoder to obtain the vector representation of the edge to be predicted; The vector representation of the edge to be predicted is input into the multi-layer perceptron to obtain the prediction result of the edge, and the prediction result of the edge is compared with the positive and negative sample label edge set to calculate the sum of the positive and negative sample losses; The graph convolution encoder and the cross-correlation decoder are trained according to the set self-supervised learning training iteration rounds. Based on the sum of the positive and negative sample losses, the network parameters of the graph convolution encoder and the cross-correlation decoder are trained and updated through the back propagation and gradient descent algorithms. The method of obtaining the hidden vector representation of the start and end nodes of each layer includes: Input the perturbation graph data into the graph convolution encoder to obtain the hidden vector representation of each layer node: ; In the formula, For passing The first layer of the graph convolutional neural network after encoding Layer node hidden vector, where ; For the The graph convolutional neural network layer of layers, where ; is the number of graph convolution layers set; , is the number of nodes, is the hidden vector dimension; is the remaining edge set; The node feature matrix composed of the feature vectors of all nodes; The methods for obtaining the prediction results of the edge and calculating the sum of the positive and negative sample losses include: Input the vector representation of the edge to be predicted into the multilayer perceptron to obtain the prediction result of the edge of the existence of the edge to be predicted: ; In the formula, represents the prediction result of the edge, and are the start and end nodes of the edge to be predicted respectively; represents a multi-layer perceptron, is the vector representation of the edge to be predicted; Compare the edge prediction results with the labeled positive and negative samples to calculate the sum of the positive and negative sample losses: ; In the formula, is the loss function, are network parameters, is the similarity function, where is a positive loss, Negative loss, total loss is the sum of the positive and negative sample losses; is the positive sample label edge set for self-supervised training, is the negative sample label edge set.
2. The method according to claim 1, It is characterized in that Methods for constructing a complete set of graph data with nodes and edges include: Using principal component analysis, the width is , Gao Wei , the number of channels is Remote sensing images The number of channels C is reduced to P, and the remote sensing image data after dimension reduction is ; Take each pixel as a node of the graph, and all pixels constitute the complete set of nodes ; Connect nodes whose Euclidean distance is not greater than the set Euclidean distance one by one to form a complete set of adjacent associated edges ; Construct a full set of graph data with nodes and edges as .
3. The method according to claim 1, It is characterized in that Methods for obtaining perturbation map data include: Perform random masking on the entire set of edges to obtain the masked edge set ;in, is the random mask operation of the graph, is the masking rate; the remaining edge set that is not masked can be obtained , the remaining edge set and the full set of nodes form a perturbation graph ,in, is the remaining edge set, is the complete set of nodes, is the complete set of adjacent associated edges.
4. The method according to claim 1, It is characterized in that The method for constructing the positive and negative sample label edge sets includes: The masked edge set is used as the positive sample label edge set , ,in is the masked edge set; Negative sampling is performed on the entire graph data to construct random edges and create a negative sample label set , ,in is the full set of graph data, It is a negative sampling operation; Will As the positive sample label edge set for self-supervised training, is the negative sample label edge set.
5. The method according to claim 1, It is characterized in that Methods for obtaining the vector representation of the edge to be predicted include: Edge to be predicted The hidden vectors of the start and end nodes are ,in, , and are the start and end nodes of the edge to be predicted respectively; Input the hidden vectors of the start and end nodes of each layer of the edge to be predicted into the cross-correlation decoder to obtain the vector representation of the edge to be predicted: ; In the formula, The edge to be predicted The vector representation of ; is the element-wise product, For vector concatenation, is the hidden vector of the starting node of each layer of the edge to be predicted, is the hidden vector of the end node of each layer of the edge to be predicted, , is the number of graph convolutional layers set.
6. The method according to claim 1, It is characterized in that Based on the obtained sum of positive and negative sample losses, the method for training and updating the network parameters of the graph convolution encoder and the cross-correlation decoder includes: Use the loss function to train and update the network parameters of the graph convolution encoder and cross-correlation decoder through back propagation and gradient descent algorithm: ; In the formula, are the updated network parameters, are the network parameters before updating, is the learning rate, is the gradient of the loss function.
7. A computer storage medium, It is characterized in that A computer program is stored thereon, and when the computer program is executed by a processor, the remote sensing image self-supervised learning method based on a graph mask autoencoder according to any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Hyperspectral image classification method based on dual graph convolutional neural network
CN116994093A
