Multi-source remote sensing image fusion classification method based on semi-supervised learning
By combining the feature clustering of hyperspectral and LiDAR data and the learning difficulty dynamic threshold acquisition scheme in remote sensing image classification, the problem of lack of labeled samples and low credibility of pseudo labels is solved, and high-precision multi-source remote sensing image fusion classification is achieved. , improving feature extraction quality and classification accuracy.
Patent Information
- Application Number
- CN202410636446.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-22
- Publication Date
- 2024-09-03
AI Technical Summary
Due to the lack of labeled samples in remote sensing image classification, the existing technology is difficult to effectively improve the balance of pseudo-labeled sample training categories and the credibility of pseudo-labels, especially in the fusion of hyperspectral and LiDAR data, feature extraction quality and category robustness. Insufficient, leading to overfitting and low classification accuracy of the model in small sample cases.
A multi-source remote sensing image fusion classification method based on semi-supervised learning is designed. By establishing a convolutional neural network, combining hyperspectral and LiDAR data, and adopting a feature clustering and learning difficulty dynamic threshold acquisition scheme, high-quality generation of pseudo labels is achieved. and utilization to ensure accuracy improvements in difficult categories.
In the case of scarcity of labeled samples, it improves the quality of feature extraction and the reliability of pseudo-labels, enhances classification accuracy, ensures category balance, achieves high-precision multi-modal information integration, and improves the accuracy of classification results.
Smart Images

Figure CN118587481A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of remote sensing image processing, and in particular to a multi-source remote sensing image fusion classification method based on semi-supervised learning, which can effectively improve the quality of feature extraction, achieve balance of pseudo-labeled sample training categories, improve the credibility of pseudo-labels, and achieve accuracy improvement with fewer labeled samples. Background Art
[0002] As a non-contact long-distance detection technology, remote sensing image earth observation technology has been widely used in the field of surface cover object classification. Deep neural network (DNN), especially convolutional neural network (CNN), has shown better performance than traditional machine learning methods in the field of hyperspectral image classification due to its powerful feature learning ability and hierarchical representation, and has become one of the popular methods at present. However, due to the influence of atmospheric absorption and scattering on light, hyperspectral data is disturbed by the atmosphere, and hyperspectral images cannot provide three-dimensional structural information of objects, so that complex terrain or uneven coverage areas cannot be effectively distinguished only by hyperspectral. LiDAR data can provide valuable elevation information and LiDAR data is not affected by the atmosphere, which has very good complementarity with hyperspectral images. By fusing hyperspectral images and LiDAR data, their respective limitations can be overcome, so that surface features can be described more comprehensively and accurately, and the accuracy of classification can be improved.
[0003] In 2018, Xu et al. proposed a dual-branch convolutional neural network, which extracts the spectral and spatial features of hyperspectral images and the elevation features of LiDAR for collaborative classification. In 2022, Zhang et al. proposed a multi-scale feature fusion network to integrate richer semantic information to improve classification accuracy. In 2023, Song et al. proposed a feature fusion method based on multi-level attention, designed a two-stream deep network to extract features, and adopted an attention-based feature extraction and fusion module to achieve classification tasks. However, these methods all rely on a large amount of labeled training data. However, in reality, for remote sensing data, due to its complex geographical location, large regional range, and inaccessibility, collecting and labeling samples requires a lot of manpower, material resources, and financial resources, and high-quality labeling requires professional domain knowledge, and professional remote sensing image interpretation talents are scarce, so obtaining a large number of labeled samples is a very difficult task. Therefore, it is valuable and urgent to explore available unlabeled samples to help learn classification models.
[0004] Faced with the challenge of lack of labeled samples, semi-supervised learning methods can effectively solve this problem. In 2013, Lee et al. used a semi-supervised method based on pseudo-labels to select the class with the maximum prediction probability for each unlabeled sample as a pseudo-label for model training. However, since only a small number of labeled samples were used for training at the beginning, the model may not have learned enough feature information, so it is difficult to ensure the accuracy of the generated pseudo-labels. In order to improve the accuracy of pseudo-labels, Seydgar et al. proposed a semi-supervised generation framework based on probabilistic pseudo-labels in 2022. By estimating the similarity between unlabeled samples and central samples, samples with similarity higher than a fixed threshold are marked as pseudo-labels to participate in model training. However, the high and fixed threshold ignores the different learning difficulties of different categories, resulting in the difficulty of learning categories with high learning difficulty being difficult to be selected when selecting pseudo-labeled samples, resulting in low final training accuracy of difficult categories. In 2023, Xi et al. proposed a cross-scale graph prototype network, which effectively alleviated the overfitting problem caused by training small samples in semi-supervised learning. However, the algorithm has high computational complexity and high requirements for computing equipment. Moreover, the above methods only target single-source hyperspectral images and do not take into account the complementary advantages of multimodal data.
[0005] In general, the research on collaborative classification of multi-source remote sensing images based on semi-supervised learning methods is still in its infancy and still has great development potential. Fusion of hyperspectral images with LiDAR data can greatly improve the quality of extracted features, thereby improving the quality of pseudo-labels. However, the current feature extraction methods for the fusion of hyperspectral images and LiDAR data often only use deep neural networks to extract features, failing to consider the discriminability of features, category robustness, and overfitting of networks in small sample conditions. This will lead to unreliable confidence calculated using insufficient features. In addition, the pseudo-labels generated with model training are often accompanied by a large number of incorrect annotations. Therefore, the existing semi-supervised techniques based on pseudo-labels set a high and fixed threshold to select pseudo-labels with high confidence. However, this fixed high threshold has certain problems. For classification tasks, different categories have different learning difficulties. Classes that are learned better or simple classes will naturally have higher confidence and are more likely to be selected by the fixed threshold. And those difficult categories, or classes that are not learned very well at the moment, will not be easily selected because of their low confidence. This will cause the model to be "biased", and ultimately the final accuracy of the difficult categories will not be very high. Summary of the invention
[0006] The present invention aims to solve the above-mentioned technical problems existing in the prior art and to provide a multi-source remote sensing image fusion classification method based on semi-supervised learning, which can effectively improve the quality of feature extraction, achieve balance of pseudo-labeled sample training categories, improve the credibility of pseudo-labels, and achieve accuracy improvement with fewer labeled samples.
[0007] The technical solution of the present invention is: a multi-source remote sensing image fusion classification method based on semi-supervised learning, which is carried out in the following steps:
[0008] Step 1. Establish and initialize the convolutional neural network N for multi-source remote sensing image classification TBF , the N TBF There are two sub-networks N for feature extraction. featurehsi_1 and N featurelidar_1 and 1 subnetwork N for improving feature quality and classification fgm constitute;
[0009] Step 1.1 Create and initialize subnetwork N featurehsi_1 , the sub-network N featurehsi_1 There are 3 groups of convolutional layers and one group of average pooling layers, namely Conv3_1_H0, Conv3_1_H1, Conv3_1_H2 and AvgPool1_1;
[0010] The Conv3_1_H0 includes 1 convolution operation, 1 BatchNorm normalization operation and 1 activation operation, wherein the convolution layer contains 24 convolution kernels of size 1×1×1, each convolution kernel performs convolution operation with a step size of 1×1×2, and uses the nonlinear activation function ReLU as the activation function for operation;
[0011] The Conv3_1_H1 includes 1 convolution operation, 1 BatchNorm normalization operation and 1 activation operation, wherein the convolution layer contains 128 convolution kernels of size 1×1×input dataset band / 2, each convolution kernel performs convolution operation with a step size of 1×1×1, and uses the nonlinear activation function ReLU as the activation function for operation;
[0012] The Conv3_1_H2 includes 1 convolution operation, 1 BatchNorm normalization operation and 1 activation operation, wherein the convolution layer contains 24 convolution kernels of size 3×3×128, each convolution kernel performs convolution operation with a step size of 1×1×1, and uses the nonlinear activation function ReLU as the activation function for operation;
[0013] The result obtained by Conv3_1_H0 is skip-connected with the result obtained by Conv3_1_H2, and nonlinear processing is performed through the ReLU activation function;
[0014] The AvgPool1_1 includes a pooling operation, and the pooling layer performs average pooling operation with a pooling kernel of size 5×5×1;
[0015] Step 1.2 Create and initialize subnetwork N featurelidar_1 , and adopt a dense connection method to connect the features obtained by each convolution layer with the features obtained by all previous convolution layers. There are 5 groups of convolution layers and 1 group of average pooling layers, namely Conv3_1_L0, Conv3_1_L1, Conv3_1_L2, Conv3_1_L3, Conv3_1_L4, AvgPool2_1;
[0016] The Conv3_1_L0 includes 1 convolution operation, 1 BatchNorm normalization operation and 1 activation operation, wherein the convolution layer contains 24 convolution kernels of size 1×1×input dataset band / 2, each convolution kernel performs convolution operation with a step size of 1×1×1, and uses the nonlinear activation function ReLU as the activation function for operation;
[0017] The Conv3_1_L1 includes 1 layer of convolution operation, 1 layer of BatchNorm normalization operation and 1 layer of activation operation, wherein the convolution layer contains 12 convolution kernels of size 3×3×1, each convolution kernel performs convolution operation with a step size of 1×1×1, and selects the nonlinear activation function ReLU as the activation function for operation;
[0018] The Conv3_1_L2 includes 1 convolution operation, 1 BatchNorm normalization operation and 1 activation operation, wherein the convolution layer contains 12 convolution kernels of size 3×3×1, each convolution kernel performs convolution operation with a step size of 1×1×1, and uses the nonlinear activation function ReLU as the activation function for operation;
[0019] The Conv3_1_L3 includes 1 convolution operation, 1 BatchNorm normalization operation and 1 activation operation, wherein the convolution layer contains 12 convolution kernels of size 3×3×1, each convolution kernel performs convolution operation with a step size of 1×1×1, and uses the nonlinear activation function ReLU as the activation function for operation;
[0020] The Conv3_1_L4 includes one convolution operation, wherein the convolution layer contains 24 convolution kernels of size 3×3×1, each convolution kernel performs convolution operation with a step size of 1×1×1, and uses the nonlinear activation function ReLU as the activation function for operation;
[0021] The AvgPool2_1 includes a pooling operation, and the pooling layer performs average pooling operation with a pooling kernel of size 5×5×1;
[0022] Step 1.3 Create and initialize subnetwork N fgm And a set of custom modules Lfgm , the N fgm It contains 4 fully connected layers, namely Center_1_H, Full_connection_1_H, Center_1_L and Full_connection_1_L.
[0023] The Center_1_H includes a layer of linear transformation operations to map the output features into a 2D space;
[0024] The Full_connection_1_H includes a layer of Dropout operation with a probability of 0.5 and a layer of linear transformation operation, the output is mapped to a specific number of categories and generates the final output result Result_1_H, with a total of num classification units, where num represents the total number of ground object categories to be classified;
[0025] The Center_1_L includes a layer of linear transformation operations to map the output features into a 2D space;
[0026] The Full_connection_1_L includes a layer of Dropout operation with a probability of 0.5 and a layer of linear transformation operation, the output is mapped to a specific number of categories and generates the final output result Result_1_L, with a total of num classification units, where num represents the total number of ground object categories to be classified;
[0027] According to formula (1), the sub-network N is obtained fgm The final prediction result Result_1;
[0028] Result_1 = ω h Result_1_H+ω l Result_1_L (1)
[0029] Among them, ω h and ω l is the weight parameter;
[0030] The L fgm The module consists of the following 4 steps:
[0031] (a) The hyperspectral features obtained in Center_1_H are fused with the LiDAR features obtained in Center_1_L using the concat operation to obtain the fused feature F F ;
[0032] (b) Calculate the center loss of the fused features in (a) according to formula (2)
[0033]
[0034] Where m represents the number of samples. Indicates The feature center of each category, Represents the feature vector of the i1th sample;
[0035] (c) Using the results obtained from Full_connection_1_H and Full_connection_1_L, we calculate the cross entropy loss using formula (3)
[0036]
[0037] Among them, A represents the number of samples in each batch, C represents the category, represents the true label of the i1th sample. If the sample belongs to category j1, then y i1j1 is 1, otherwise it is 0. It indicates the probability that the model predicts that the i1th sample belongs to category j1;
[0038] (d) Calculate the joint supervision loss according to formula (4)
[0039]
[0040] Step 2. Establish and initialize the convolutional neural network N for multi-sensor remote sensing image classification TB , the N TB Contains 2 subnetworks N for feature extraction featurehsi_2 and N featurelidar_2 , and another subnetwork N for classification cls ;
[0041] Step 2.1 Create and initialize subnetwork N featurehsi_2 , contains 3 groups of convolutional layers and one group of average pooling layers, namely Conv3_2_H0, Conv3_2_H1, Conv3_2_H2 and AvgPool1_2;
[0042] The Conv3_2_H0 includes 1 convolution operation, 1 BatchNorm normalization operation and 1 activation operation, wherein the convolution layer contains 24 convolution kernels of size 1×1×1, each convolution kernel performs convolution operation with a step size of 1×1×2, and uses the nonlinear activation function ReLU as the activation function for operation;
[0043] The Conv3_2_H1 includes 1 convolution operation, 1 BatchNorm normalization operation and 1 activation operation, wherein the convolution layer contains 128 convolution kernels of size 1×1×input dataset band / 2, each convolution kernel performs convolution operation with a step size of 1×1×1, and uses the nonlinear activation function ReLU as the activation function for operation;
[0044] The Conv3_2_H2 includes 1 convolution operation, 1 BatchNorm normalization operation and 1 activation operation, wherein the convolution layer contains 24 convolution kernels of size 3×3×128, each convolution kernel performs convolution operation with a step size of 1×1×1, and uses the nonlinear activation function ReLU as the activation function for operation;
[0045] The result obtained by Conv3_2_H0 is skipped and connected with the result obtained by Conv3_2_H2, and nonlinear processing is performed through the ReLU activation function;
[0046] The AvgPool1_2 includes a pooling operation, and the pooling layer performs average pooling operation with a pooling kernel of size 5×5×1;
[0047] Step 2.2 Create and initialize subnetwork N featurelidar_2 , and adopt a dense connection method to connect the features obtained by each convolution layer with the features obtained by all previous convolution layers. There are 5 groups of convolution layers and 1 group of average pooling layers, namely Conv3_2_L0, Conv3_2_L1, Conv3_2_L2, Conv3_2_L3, Conv3_2_L4 and AvgPool2_2;
[0048] The Conv3_2_L0 includes 1 convolution operation, 1 BatchNorm normalization operation and 1 activation operation, wherein the convolution layer contains 24 convolution kernels of size 1×1×input dataset band / 2, each convolution kernel performs convolution operation with a step size of 1×1×1, and uses the nonlinear activation function ReLU as the activation function for operation;
[0049] The Conv3_2_L1 includes 1 convolution operation, 1 BatchNorm normalization operation and 1 activation operation, wherein the convolution layer contains 12 convolution kernels of size 3×3×1, each convolution kernel performs convolution operation with a step size of 1×1×1, and uses the nonlinear activation function ReLU as the activation function for operation;
[0050] The Conv3_2_L2 includes 1 convolution operation, 1 BatchNorm normalization operation and 1 activation operation, wherein the convolution layer contains 12 convolution kernels of size 3×3×1, each convolution kernel performs convolution operation with a step size of 1×1×1, and uses the nonlinear activation function ReLU as the activation function for operation;
[0051] The Conv3_2_L3 includes 1 convolution operation, 1 BatchNorm normalization operation and 1 activation operation, wherein the convolution layer contains 12 convolution kernels of size 3×3×1, each convolution kernel performs convolution operation with a step size of 1×1×1, and uses the nonlinear activation function ReLU as the activation function for operation;
[0052] The Conv3_2_L4 includes 1 convolution operation, where the convolution layer contains 24 convolution kernels of size 3×3×1, each convolution kernel performs convolution operation with a step size of 1×1×1, and uses the nonlinear activation function ReLU as the activation function for operation;
[0053] The AvgPool2_2 includes a pooling operation, and the pooling layer performs average pooling operation with a pooling kernel of size 5×5×1;
[0054] Step 2.3 Create and initialize subnetwork N cls , the N cls Contains 2 fully connected layers, Full_connection_2_H and Full_connection_2_L.
[0055] The Full_connection_2_H includes a layer of Dropout operation with a probability of 0.5 and a layer of linear transformation operation, the output is mapped to a specific number of categories and generates the final output result Result_2_H, with a total of num classification units, where num represents the total number of ground object categories to be classified;
[0056] The Full_connection_2_L includes a layer of Dropout operation with a probability of 0.5 and a layer of linear transformation operation, the output is mapped to a specific number of categories and generates the final output result Result_2_L, with a total of num classification units, where num represents the total number of ground object categories to be classified;
[0057] According to formula (5), the sub-network N is obtained cls The final prediction result Result_2;
[0058] Result_2 = ω h Result_2_H+ω lResult_2_L (5)
[0059] Among them, ω h and ω l is the weight parameter, ω h +ω l =1;
[0060] Step 2.4 Calculate the cross entropy loss using formula (3)
[0061] Step 3 Input the training set H of hyperspectral images, the training set L of LiDAR data, the manually annotated pixel point coordinate set and label set, and TBF Conduct training;
[0062] Step 3.1. Based on the manually labeled pixel point coordinate set, extract 10 labeled pixel point sets for each class in the training set H of the hyperspectral image And extract 10 labeled pixel points for each class in the training set L of LiDAR data in, Represents X H The i2th pixel point in Represents X L The i2th pixel point in , M represents the total number of pixel points with labels;
[0063] Step 3.2. According to the definitions of formula (6) and formula (7), H and X L After standardization, we get and in, represents the standardized set of hyperspectral image pixel points with labels. express The i2th pixel point, represents the standardized set of labeled LiDAR pixel points, express The i2th pixel point;
[0064]
[0065]
[0066] Step 3.3. Each pixel point is taken as the center to divide H into a series of 9×9 hyperspectral pixel blocks. And Each pixel point is the center of L, which is divided into a series of 9×9 LiDAR pixel blocks.
[0067] Step 3.4. and As the training set of the fusion classification neural network, the samples in the training set are integrated into triplets The network data is input in the form of represents the pixel pairs composed of hyperspectral images and LiDAR data in the training set, and and The spatial coordinates of i express and Corresponding true category label, set the number of iterations iter←1, and execute steps 3.5 to 3.8;
[0068] Step 3.5 Using subnetwork N featurehsi_1 and N featurelidar_1 Extract features of the training set;
[0069] Step 3.5.1 Using subnetwork N featurehsi_1 Training set for hyperspectral images Perform feature extraction to obtain the feature F of the hyperspectral image H ;
[0070] Step 3.5.2 Using subnetwork N featurelidar_1 Training set for LiDAR data Perform feature extraction to obtain the feature F of LiDAR data L ;
[0071] Step 3.6 Using custom module L fgm Calculate the cross entropy loss and get the fused feature F HL ;
[0072] Step 3.7: Feature F HL Send to the embedded feature space Feature_space;
[0073] Step 3.8 Let iter←iter+1. If the number of iterations iter>Total_iter, the trained convolutional neural network N is obtained. TBF , go to step 3.9, otherwise, use the back error propagation algorithm based on stochastic gradient descent and joint supervision loss Update N TBF Parameters, the Total_iter represents the preset number of iterations;
[0074] Step 3.9 Using subnetwork N fgm Get the prediction p(y|D u );
[0075] Step 3.10 calculates the count σ(C) of unlabeled samples predicted to be of this category and with a probability higher than a fixed threshold according to formula (8);
[0076]
[0077] Among them, C represents category, D u represents unlabeled samples, I represents the total number of unlabeled samples, and τ represents a fixed threshold;
[0078] Step 3.11 Calculate the learning difficulty β(C) of each category according to formula (9);
[0079]
[0080] Among them, n(C) is the total number of samples in this category;
[0081] Step 3.12: According to the learning difficulty β(C) of each category, assign the corresponding dynamic threshold to it, and divide the learning difficulty into four intervals: [0.8, 1), [0.6, 0.8), [0.4, 0.6), and [0, 0.4). The lower the value, the higher the learning difficulty. For the categories in these four learning difficulty intervals, assign thresholds from high to low for the pseudo-label assignment task;
[0082] Step 3.13: Calculate the feature mean vector of the labeled samples embedded in the feature space Feature_space according to formula (10);
[0083]
[0084] Among them, N represents the total number of labeled samples, E′ represents the dimension of sample features, and D′ c represents the set of labeled samples of the encoded features, represents the kth eigenvalue corresponding to the nth coded sample; n=1, ..., N, k=1, ..., E′;
[0085] Step 3.14 quantifies the linear correlation between the nth labeled sample of each category and the feature mean vector of the category through the Pearson correlation coefficient according to formula (11) and formula (12): in YesS c The nth element in ;
[0086]
[0087]
[0088] Where ρ() is the Pearson correlation coefficient that quantifies the similarity score;
[0089] Step 3.15 Estimate the mean of the probability density function according to formula (13) and variance
[0090]
[0091] in, is the probability density function;
[0092] Step 3.16 Calculate the probability distribution of each category according to formula (14);
[0093]
[0094] Among them, y c The probability distribution of each category is obtained, which is expressed as the reference distribution of the category;
[0095] Step 3.17 defines the labeled sample as the central sample, and all unlabeled sample points in the spatial neighborhood with a distance α around the central sample are intended to be assigned labels of this class;
[0096] Step 3.18 Based on the dynamic threshold strategy of step 3.12, define the confidence interval of each category as R c , c=1,…,C;
[0097] Step 3.19 Calculate the features of each unlabeled sample according to formulas (12) and (15) The reference distribution y of the central sample c The matching “similarity” score;
[0098]
[0099] Step 3.20: According to formula (16), filter out the unlabeled samples whose “similarity” scores are within the confidence level range. And assign it a pseudo label consistent with the center sample category, where R c for;
[0100]
[0101] in, Represented as a set of pseudo-labeled samples, R c are the confidence intervals for each category;
[0102] Step 3.21: merge the selected qualified pseudo-labeled samples with the initial labeled samples to form an expanded training data set;
[0103] Step 3.22 Input the expanded hyperspectral image training set H_add, LiDAR data training set L_add, manually annotated pixel point coordinate set and label set, andTB Conduct training;
[0104] Step 3.23 Extract all pixel points with labels from the training set H_add of the hyperspectral image And extract all the pixel points with labels in the training set L_add of LiDAR data in, Represents X H_add The i5th pixel point in Represents X L_add The i5th pixel point in , S represents the total number of pixel points with labels;
[0105] Step 3.24 According to the definitions of formula (17) and formula (18), H_add and X L_add After standardization, we get and in, represents the standardized set of hyperspectral image pixel points with labels. express The i5th pixel point, represents the standardized set of labeled LiDAR pixel points, express The i5th pixel point;
[0106]
[0107]
[0108] Step 3.25 Each pixel point is taken as the center to divide H_add into a series of 9×9 hyperspectral pixel blocks. And Each pixel point is the center and L_add is divided into a series of 9×9 LiDAR pixel blocks.
[0109] Step 3.26 and As the training set of the fusion classification neural network, the samples in the training set are integrated into triplets The network data is input in the form of represents the pixel pairs composed of hyperspectral images and LiDAR data in the training set, and and The spatial coordinates of express and Corresponding true category label, set the number of iterations iter←1, and execute steps 3.27 to 3.31;
[0110] Step 3.27 Using subnetwork N featurehsi_2 and N featurelidar_2 Extract features of the training set;
[0111] Step 3.28 Using subnetwork N featurehsi_2 Training set for hyperspectral images Perform feature extraction to obtain the feature F of the hyperspectral image H ′;
[0112] Step 3.29 Using subnetwork N featurelidar_2 Training set for LiDAR data Perform feature extraction to obtain the feature F of LiDAR data L ′;
[0113] Step 3.30 Using subnetwork N cls Calculating cross entropy loss
[0114] Step 3.31 Let iter←iter+1. If the number of iterations iter>Total_iter, the trained convolutional neural network N is obtained. TB Otherwise, the back error propagation algorithm based on stochastic gradient descent and cross entropy loss is used Update N TB Parameters, the Total_iter represents the preset number of iterations;
[0115] Step 4 Input the hyperspectral image H′ and LiDAR data L′ to be tested, perform data preprocessing on all pixels of H′ and L′, and use the trained network N TB Complete pixel classification;
[0116] Step 4.1 Extract all pixel points in H′ to form a set Extract all pixel points in L′ to form a set Among them, t H,i Indicates T H The i6th pixel of Indicates T L The i6th pixel of , U represents the total number of all pixels;
[0117] Step 4.2 According to the definitions of formula (19) and formula (20), T H and T L After standardization, we get and in, represents the standardized set of pixels of the hyperspectral image to be tested, express The i6th pixel point, Represents the set of LiDAR pixel points to be measured after standardization. express The i6th pixel point;
[0118]
[0119]
[0120] Step 4.3 Each pixel point of H′ is taken as the center to divide H′ into a series of 9×9 hyperspectral pixel blocks to form the hyperspectral image set to be tested. And then Each pixel point of is taken as the center to divide L′ into a series of 9×9 LiDAR pixel blocks to form the LiDAR data set to be tested.
[0121] Step 4.4: Use the fully trained subnetwork N featurehsi_2 and N featurelidar_2 Extracting features of the image set to be tested;
[0122] Step 4.5: Use the fully trained subnetwork N TB The hyperspectral image collection to be tested Perform feature extraction to obtain the feature F of the hyperspectral image TH ;
[0123] Step 4.6 uses the fully trained sub-network N TB For the LiDAR data set to be tested Perform feature extraction to obtain the feature F of LiDAR data TL ;
[0124] Step 4.7 Use subnetwork N cls Classify the features to calculate the classification prediction result TE pred .
[0125] Compared with the prior art, the present invention has three advantages: First, a semi-supervised dynamic learning framework based on feature clustering and learning difficulty is designed for the task of hyperspectral and LiDAR fusion classification. The framework makes full use of hyperspectral and LiDAR features to achieve accurate classification in small sample conditions. Second, a clustering scheme for similar information features is proposed, which makes full use of the spatial complementarity of hyperspectral and LiDAR, and further reduces the differences between samples in the same category by learning the center of the deep features of the category, making its features more compact and discriminability enhanced, avoiding the overfitting problem of the network in small sample conditions, and improving the quality of feature extraction. Third, a dynamic threshold acquisition scheme based on learning difficulty is proposed to more effectively retain pseudo-labels of various categories, ensure that pseudo-labels of difficult categories can also be fully utilized, ensure the balance of learning between categories, and improve the utilization rate of pseudo-labels; in addition, the generated pseudo-labels have a sufficiently high confidence level and can be used directly in training without any fine-tuning. Therefore, the present invention provides a method that can effectively integrate multimodal information, enhance feature discriminability, improve feature quality, thereby improving pseudo-label reliability, and ensure the balance of training samples when labeled samples are scarce. It has the characteristics of high-quality pseudo-label generation, balanced categories, and high classification accuracy. Experimental results show that the overall accuracy of the present invention on the Houston2013 and Augsburg datasets reached 92.48% and 90.22% respectively, effectively improving the classification accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0126] Figure 1 A structural diagram of an embodiment of the present invention.
[0127] Figure 2 This is a comparison chart of the classification results of the Houston 2013 data set between the method of the present invention and the Res-CP method, DCFSL method, S3Net method, TBCNN method, SepDGConv method and MFT method.
[0128] Figure 3 This is a comparison chart of the classification results of the Augsburg data set between the method of the present invention and the Res-CP method, DCFSL method, S3Net method, TBCNN method, SepDGConv method and MFT method. DETAILED DESCRIPTION
[0129] The present invention provides a multi-source remote sensing image fusion classification method based on semi-supervised learning, which is as follows Figure 1 As shown, proceed as follows:
[0130] Step 1. Establish and initialize the convolutional neural network N for multi-source remote sensing image classification TBF , the N TBFContains 2 subnetworks N for feature extraction featurehsi_1 and N featurelidar_1 , recorded as a dual-branch CNN model, which also includes a subnetwork N for improving feature quality and classification fgm constitute;
[0131] Step 1.1 Create and initialize subnetwork N featurehsi_1 , the sub-network N featurehsi_1 There are 3 groups of convolutional layers and one group of average pooling layers, namely Conv3_1_H0, Conv3_1_H1, Conv3_1_H2 and AvgPool1_1;
[0132] The Conv3_1_H0 includes 1 convolution operation, 1 BatchNorm normalization operation and 1 activation operation, wherein the convolution layer contains 24 convolution kernels of size 1×1×1, each convolution kernel performs convolution operation with a step size of 1×1×2, and uses the nonlinear activation function ReLU as the activation function for operation;
[0133] The Conv3_1_H1 includes 1 convolution operation, 1 BatchNorm normalization operation and 1 activation operation, wherein the convolution layer contains 128 convolution kernels of size 1×1×(input dataset band / 2), each convolution kernel performs convolution operation with a step size of 1×1×1, and uses the nonlinear activation function ReLU as the activation function for operation;
[0134] The Conv3_1_H2 includes 1 convolution operation, 1 BatchNorm normalization operation and 1 activation operation, wherein the convolution layer contains 24 convolution kernels of size 3×3×128, each convolution kernel performs convolution operation with a step size of 1×1×1, and uses the nonlinear activation function ReLU as the activation function for operation;
[0135] The result obtained by Conv3_1_H0 is skip-connected with the result obtained by Conv3_1_H2, and nonlinear processing is performed through the ReLU activation function;
[0136] The AvgPool1_1 includes a pooling operation, and the pooling layer performs average pooling operation with a pooling kernel of size 5×5×1;
[0137] Step 1.2 Create and initialize subnetwork N featurelidar_1, and adopt a dense connection method to connect the features obtained by each convolution layer with the features obtained by all previous convolution layers. There are 5 groups of convolution layers and 1 group of average pooling layers, namely Conv3_1_L0, Conv3_1_L1, Conv3_1_L2, Conv3_1_L3, Conv3_1_L4, AvgPool2_1;
[0138] The Conv3_1_L0 includes 1 convolution operation, 1 BatchNorm normalization operation and 1 activation operation, wherein the convolution layer contains 24 convolution kernels of size 1×1×(input dataset band / 2), each convolution kernel performs convolution operation with a step size of 1×1×1, and uses the nonlinear activation function ReLU as the activation function for operation;
[0139] The Conv3_1_L1 includes 1 layer of convolution operation, 1 layer of BatchNorm normalization operation and 1 layer of activation operation, wherein the convolution layer contains 12 convolution kernels of size 3×3×1, each convolution kernel performs convolution operation with a step size of 1×1×1, and selects the nonlinear activation function ReLU as the activation function for operation;
[0140] The Conv3_1_L2 includes 1 convolution operation, 1 BatchNorm normalization operation and 1 activation operation, wherein the convolution layer contains 12 convolution kernels of size 3×3×1, each convolution kernel performs convolution operation with a step size of 1×1×1, and uses the nonlinear activation function ReLU as the activation function for operation;
[0141] The Conv3_1_L3 includes 1 convolution operation, 1 BatchNorm normalization operation and 1 activation operation, wherein the convolution layer contains 12 convolution kernels of size 3×3×1, each convolution kernel performs convolution operation with a step size of 1×1×1, and uses the nonlinear activation function ReLU as the activation function for operation;
[0142] The Conv3_1_L4 includes one convolution operation, wherein the convolution layer contains 24 convolution kernels of size 3×3×1, each convolution kernel performs convolution operation with a step size of 1×1×1, and uses the nonlinear activation function ReLU as the activation function for operation;
[0143] The AvgPool2_1 includes a pooling operation, and the pooling layer performs average pooling operation with a pooling kernel of size 5×5×1;
[0144] Step 1.3 Create and initialize subnetwork N fgm , and a set of custom modules L fgm , denoted as feature aggregation module; the Nfgm It contains 4 fully connected layers, namely Center_1_H, Full_connection_1_H, Center_1_L and Full_connection_1_L.
[0145] The Center_1_H includes a layer of linear transformation operations to map the output features into a 2D space;
[0146] The Full_connection_1_H includes a layer of Dropout operation with a probability of 0.5 and a layer of linear transformation operation, the output is mapped to a specific number of categories and generates the final output result Result_1_H, with a total of num classification units, where num represents the total number of ground object categories to be classified;
[0147] The Center_1_L includes a layer of linear transformation operations to map the output features into a 2D space;
[0148] The Full_connection_1_L includes a layer of Dropout operation with a probability of 0.5 and a layer of linear transformation operation, the output is mapped to a specific number of categories and generates the final output result Result_1_L, with a total of num classification units, where num represents the total number of ground object categories to be classified;
[0149] According to formula (1), the sub-network N is obtained fgm The final prediction result Result_1;
[0150] Result_1 = ω h Result_1_H+ω l Result_1_L (1)
[0151] Among them, ω h and ω l is the weight parameter, for the Houston dataset ω h and ω l are 0.7 and 0.3 respectively. For the Augsburg dataset ω h and ω l 0.5 and 0.5 respectively;
[0152] The L fgm The module consists of the following 4 steps:
[0153] (a) The hyperspectral features obtained in Center_1_H are fused with the LiDAR features obtained in Center_1_L using the concat operation to obtain the fused feature F F ;
[0154] (b) Calculate the center loss of the fused features in (a) according to formula (2)
[0155]
[0156] Where m represents the number of samples. Indicates the yth i1 The feature center of each category, Represents the feature vector of the i1th sample;
[0157] (c) Using the results obtained from Full_connection_1_H and Full_connection_1_L, we calculate the cross entropy loss using formula (3)
[0158]
[0159] Among them, A represents the number of samples in each batch, C represents the category, Represents the true label of the sample i1th. If the sample belongs to category j1, then is 1, otherwise it is 0. It indicates the probability that the model predicts that the i1th sample belongs to category j1;
[0160] (d) Calculate the joint supervision loss according to formula (4)
[0161]
[0162] Step 2. Establish and initialize the convolutional neural network N for multi-sensor remote sensing image classification TB , the N TB Contains 2 subnetworks N for feature extraction featurehsi_2 and N featurelidar_2 , recorded as a dual-branch CNN model; it also contains a subnetwork N for classification cls ;
[0163] Step 2.1 Create and initialize subnetwork N featurehsi_2 , contains 3 groups of convolutional layers and one group of average pooling layers, namely Conv3_2_H0, Conv3_2_H1, Conv3_2_H2 and AvgPool1_2;
[0164] The Conv3_2_H0 includes 1 convolution operation, 1 BatchNorm normalization operation and 1 activation operation, wherein the convolution layer contains 24 convolution kernels of size 1×1×1, each convolution kernel performs convolution operation with a step size of 1×1×2, and uses the nonlinear activation function ReLU as the activation function for operation;
[0165] The Conv3_2_H1 includes 1 convolution operation, 1 BatchNorm normalization operation and 1 activation operation, wherein the convolution layer contains 128 convolution kernels of size 1×1×(input dataset band / 2), each convolution kernel performs convolution operation with a step size of 1×1×1, and uses the nonlinear activation function ReLU as the activation function for operation;
[0166] The Conv3_2_H2 includes 1 convolution operation, 1 BatchNorm normalization operation and 1 activation operation, wherein the convolution layer contains 24 convolution kernels of size 3×3×128, each convolution kernel performs convolution operation with a step size of 1×1×1, and uses the nonlinear activation function ReLU as the activation function for operation;
[0167] The result obtained by Conv3_2_H0 is skipped and connected with the result obtained by Conv3_2_H2, and nonlinear processing is performed through the ReLU activation function;
[0168] The AvgPool1_2 includes a pooling operation, and the pooling layer performs average pooling operation with a pooling kernel of size 5×5×1;
[0169] Step 2.2 Create and initialize subnetwork N featurelidar_2 , and adopt a dense connection method to connect the features obtained by each convolution layer with the features obtained by all previous convolution layers. There are 5 groups of convolution layers and 1 group of average pooling layers, namely Conv3_2_L0, Conv3_2_L1, Conv3_2_L2, Conv3_2_L3, Conv3_2_L4 and AvgPool2_2;
[0170] The Conv3_2_L0 includes 1 convolution operation, 1 BatchNorm normalization operation and 1 activation operation, wherein the convolution layer contains 24 convolution kernels of size 1×1×(input dataset band / 2), each convolution kernel performs convolution operation with a step size of 1×1×1, and uses the nonlinear activation function ReLU as the activation function for operation;
[0171] The Conv3_2_L1 includes 1 convolution operation, 1 BatchNorm normalization operation and 1 activation operation, wherein the convolution layer contains 12 convolution kernels of size 3×3×1, each convolution kernel performs convolution operation with a step size of 1×1×1, and uses the nonlinear activation function ReLU as the activation function for operation;
[0172] The Conv3_2_L2 includes 1 convolution operation, 1 BatchNorm normalization operation and 1 activation operation, wherein the convolution layer contains 12 convolution kernels of size 3×3×1, each convolution kernel performs convolution operation with a step size of 1×1×1, and uses the nonlinear activation function ReLU as the activation function for operation;
[0173] The Conv3_2_L3 includes 1 convolution operation, 1 BatchNorm normalization operation and 1 activation operation, wherein the convolution layer contains 12 convolution kernels of size 3×3×1, each convolution kernel performs convolution operation with a step size of 1×1×1, and uses the nonlinear activation function ReLU as the activation function for operation;
[0174] The Conv3_2_L4 includes 1 convolution operation, where the convolution layer contains 24 convolution kernels of size 3×3×1, each convolution kernel performs convolution operation with a step size of 1×1×1, and uses the nonlinear activation function ReLU as the activation function for operation;
[0175] The AvgPool2_2 includes a pooling operation, and the pooling layer performs average pooling operation with a pooling kernel of size 5×5×1;
[0176] Step 2.3 Create and initialize subnetwork N cls , the N cls Contains 2 fully connected layers, Full_connection_2_H and Full_connection_2_L.
[0177] The Full_connection_2_H includes a layer of Dropout operation with a probability of 0.5 and a layer of linear transformation operation, the output is mapped to a specific number of categories and generates the final output result Result_2_H, with a total of num classification units, where num represents the total number of ground object categories to be classified;
[0178] The Full_connection_2_L includes a layer of Dropout operation with a probability of 0.5 and a layer of linear transformation operation, the output is mapped to a specific number of categories and generates the final output result Result_2_L, with a total of num classification units, where num represents the total number of ground object categories to be classified;
[0179] According to formula (5), the sub-network N is obtained cls The final prediction result Result_2;
[0180] Result_2 = ω h Result_2_H+ω lResult_2_L (5)
[0181] Among them, ω h and ω l is the weight parameter, ω h +ω l =1, for the Houston dataset ω h and ω l are 0.7 and 0.3 respectively. For the Augsburg dataset ω h and ω l 0.5 and 0.5 respectively;
[0182] Step 2.4 Use formula (3) to calculate the cross entropy loss L S ;
[0183] Step 3 Input the training set H of hyperspectral images, the training set L of LiDAR data, the manually annotated pixel point coordinate set and label set, and TBF Conduct training;
[0184] Step 3.1. Based on the manually labeled pixel point coordinate set, extract 10 labeled pixel point sets for each class in the training set H of the hyperspectral image And extract 10 labeled pixel points for each class in the training set L of LiDAR data in, Represents X H The i2th pixel point in Represents X L The i2th pixel point in , M represents the total number of pixel points with labels;
[0185] Step 3.2. According to the definitions of formula (6) and formula (7), H and X L After standardization, we get and in, represents the standardized set of hyperspectral image pixel points with labels. express The i2th pixel point, represents the standardized set of labeled LiDAR pixel points, express The i2th pixel point;
[0186]
[0187]
[0188] Step 3.3. Each pixel point is taken as the center to divide H into a series of 9×9 hyperspectral pixel blocks. And Each pixel point is the center of L, which is divided into a series of 9×9 LiDAR pixel blocks.
[0189] Step 3.4. and As the training set of the fusion classification neural network, the samples in the training set are integrated into triplets The network data is input in the form of represents the pixel pairs composed of hyperspectral images and LiDAR data in the training set, and and The spatial coordinates of i express and Corresponding true category label, set the number of iterations iter←1, and execute steps 3.5 to 3.8;
[0190] Step 3.5 Using subnetwork N featurehsi_1 and N featurelidar_1 Extract features of the training set;
[0191] Step 3.5.1 Using subnetwork N featurehsi_1 Training set for hyperspectral images Perform feature extraction to obtain the feature F of the hyperspectral image H ;
[0192] Step 3.5.2 Using subnetwork N featurelidar_1 Training set for LiDAR data Perform feature extraction to obtain the feature F of LiDAR data L ;
[0193] Step 3.6 Using custom module L fgm Calculate the cross entropy loss and get the fused feature F HL ;
[0194] Step 3.7: Feature F HL Send to the embedded feature space Feature_space;
[0195] Step 3.8 Let iter←iter+1. If the number of iterations iter>Total_iter, the trained convolutional neural network N is obtained. TBF , go to step 3.9, otherwise, use the back error propagation algorithm based on stochastic gradient descent and joint supervision loss Update N TBFParameters, the Total_iter represents the preset number of iterations;
[0196] Step 3.9 Using subnetwork N fgm Get the prediction p(y|D u );
[0197] Step 3.10 calculates the count σ(C) of unlabeled samples predicted to be of this category and with a probability higher than a fixed threshold according to formula (8);
[0198]
[0199] Among them, C represents category, D u represents unlabeled samples, I represents the total number of unlabeled samples, and τ represents a fixed threshold;
[0200] Step 3.11 Calculate the learning difficulty β(C) of each category according to formula (9);
[0201]
[0202] Among them, n(C) is the total number of samples in this category;
[0203] Step 3.12: According to the learning difficulty β(C) of each category, assign the corresponding dynamic threshold to it, and divide the learning difficulty into four intervals: [0.8, 1), [0.6, 0.8), [0.4, 0.6), and [0, 0.4). The lower the value, the higher the learning difficulty. For the categories in these four learning difficulty intervals, assign thresholds from high to low for the pseudo-label assignment task;
[0204] Step 3.13: Calculate the feature mean vector of the labeled samples embedded in the feature space Feature_space according to formula (10);
[0205]
[0206] Among them, N represents the total number of labeled samples, E′ represents the dimension of sample features, and D′ c represents the set of labeled samples of the encoded features, represents the kth eigenvalue corresponding to the nth coded sample; n=1, ..., N, k=1, ..., E′;
[0207] Step 3.14 quantifies the linear correlation between the nth labeled sample of each category and the feature mean vector of the category through the Pearson correlation coefficient according to formula (11) and formula (12): in YesS c The nth element in ;
[0208]
[0209]
[0210] Where ρ() is the Pearson correlation coefficient that quantifies the similarity score;
[0211] Step 3.15 Estimate the mean of the probability density function according to formula (13) and variance
[0212]
[0213] in, is the probability density function;
[0214] Step 3.16 Calculate the probability distribution of each category according to formula (14);
[0215]
[0216] Among them, y c The probability distribution of each category is obtained, which is expressed as the reference distribution of the category;
[0217] Step 3.17 defines the labeled sample as the central sample, and all unlabeled sample points in the spatial neighborhood with a distance α around the central sample are intended to be assigned labels of this class;
[0218] Step 3.18 Based on the dynamic threshold strategy of step 3.12, define the confidence interval of each category as R c , c=1,…,C;
[0219] Step 3.19 Calculate the features of each unlabeled sample according to formulas (12) and (15) The reference distribution y of the central sample c The matching “similarity” score;
[0220]
[0221] Step 3.20: According to formula (16), filter out the unlabeled samples whose “similarity” scores are within the confidence level range. And assign it a pseudo label consistent with the center sample category, where R c for;
[0222]
[0223] in, Represented as a set of pseudo-labeled samples, R c are the confidence intervals for each category;
[0224] Step 3.21 combines the screened qualified pseudo-labeled samples with the initial labeled samples to form an expanded training data set. Steps 3.9 to 3.21 are the pseudo-label acquisition module designed by the present invention;
[0225] Step 3.22 Input the expanded hyperspectral image training set H_add, LiDAR data training set L_add, manually annotated pixel point coordinate set and label set, and TB Conduct training;
[0226] Step 3.23 Extract all pixel points with labels from the training set H_add of the hyperspectral image And extract all the pixel points with labels in the training set L_add of LiDAR data in, Represents X H_add The i5th pixel point in Represents X L_add The i5th pixel point in , S represents the total number of pixel points with labels;
[0227] Step 3.24 According to the definitions of formula (17) and formula (18), H_add and X L_add After standardization, we get and in, represents the standardized set of hyperspectral image pixel points with labels. express The i5th pixel point, represents the standardized set of labeled LiDAR pixel points, express The i5th pixel point;
[0228]
[0229]
[0230] Step 3.25 Each pixel point is taken as the center to divide H_add into a series of 9×9 hyperspectral pixel blocks. And Each pixel point is the center and L_add is divided into a series of 9×9 LiDAR pixel blocks.
[0231] Step 3.26 and As the training set of the fusion classification neural network, the samples in the training set are integrated into triplets The network data is input in the form of represents the pixel pairs composed of hyperspectral images and LiDAR data in the training set, and and The spatial coordinates of express and Corresponding true category label, set the number of iterations iter←1, and execute steps 3.27 to 3.31;
[0232] Step 3.27 Using subnetwork N featurehsi_2 and N featurelidar_2 Extract features of the training set;
[0233] Step 3.28 Using subnetwork N featurehsi_2 Training set for hyperspectral images Perform feature extraction to obtain the feature F of the hyperspectral image H ′;
[0234] Step 3.29 Using subnetwork N featurelidar_2 Training set for LiDAR data Perform feature extraction to obtain the feature F of LiDAR data L ′;
[0235] Step 3.30 Using subnetwork N cls Calculating cross entropy loss
[0236] Step 3.31 Let iter←iter+1. If the number of iterations iter>Total_iter, the trained convolutional neural network N is obtained. TB Otherwise, the back error propagation algorithm based on stochastic gradient descent and cross entropy loss is used Update N TB Parameters, the Total_iter represents the preset number of iterations;
[0237] Step 4 Input the hyperspectral image H′ and LiDAR data L′ to be tested, perform data preprocessing on all pixels of H′ and L′, and use the trained network N TB Complete pixel classification;
[0238] Step 4.1 Extract all pixel points in H′ to form a set Extract all pixel points in L′ to form a set Among them, t H,i Indicates T H The i6th pixel of Indicates T L The i6th pixel of , U represents the total number of all pixels;
[0239] Step 4.2 According to the definitions of formula (19) and formula (20), T H and T L After standardization, we get and in, represents the standardized set of pixels of the hyperspectral image to be tested, express The i6th pixel point, Represents the set of LiDAR pixel points to be measured after standardization. express The i6th pixel point;
[0240]
[0241]
[0242] Step 4.3 Each pixel point of H′ is taken as the center to divide H′ into a series of 9×9 hyperspectral pixel blocks to form the hyperspectral image set to be tested. And then Each pixel point of is taken as the center to divide L′ into a series of 9×9 LiDAR pixel blocks to form the LiDAR data set to be tested.
[0243] Step 4.4: Use the fully trained subnetwork N featurehsi_2 and N featurelidar_2 Extracting features of the image set to be tested;
[0244] Step 4.5: Use the fully trained subnetwork N TB The hyperspectral image collection to be tested Perform feature extraction to obtain the feature F of the hyperspectral image TH ;
[0245] Step 4.6 uses the fully trained sub-network N TB For the LiDAR data set to be tested Perform feature extraction to obtain the feature F of LiDAR data TL ;
[0246] Step 4.7 Use subnetwork N cls Classify the features to calculate the classification prediction result TE pred .
[0247] In order to verify the effectiveness of the present invention, experiments were conducted using the publicly available Houston2013 dataset and Augsburg dataset as examples. Overall Accuracy (OA), Average Accuracy (AA) and Kappa Coefficient (KC) were used as objective indicators to evaluate the classification results. The evaluation results of the present invention were compared with those of the Res-CP method, DCFSL method, S3Net method, TBCNN method, SepDGConv method and MFT method. The comparison results are shown in Table 1, Table 2, Figure 1 , Figure 2 .
[0248] As can be seen from Table 1 and Table 2, since the Res-CP method, DCFSL method, and S3Net method do not utilize the complementarity between the features of LiDAR and hyperspectral, their classification accuracy is not accurate enough. Although the TBCNN method, SepDGConv method, and MFT method introduce active remote sensing LiDAR to make up for the lack of elevation features and the influence of the atmosphere in hyperspectral, their classification accuracy is not accurate enough when there are very few labeled samples. The present invention is highly competitive in various classification tasks. Thanks to the pseudo-label acquisition module, the present invention has achieved a significant improvement in average accuracy. When there are very few labeled samples, the AA value of the present invention is as high as 93.71% on the Houston2013 dataset and as high as 78.11% on the Augsburg dataset. The present invention also achieves very good results in distinguishing categories with similar spectra but significantly different heights, such as residential areas and railways in the Houston2013 dataset, with accuracies of 95.07% and 97.14% respectively, and forests and dwarf plants in the Augsburg dataset, with accuracies of 98.69% and 97.37% respectively, achieving significant improvements.
[0249] The change detection results of the proposed method on the Houston2013 dataset are compared with those of the Res-CP method, DCFSL method, S3Net method, TBCNN method, SepDGConv method and MFT method. Figure 2As shown. Among them, (a) is the pseudo color image of the Houston2013 dataset hyperspectral image; (b) is the digital representation model of the Houston2013 dataset LiDAR image; (c) is the real object distribution label of the Houston2013 dataset; (d) is the visualization result display of the Res-CP method on the Houston2013 dataset; (e) is the visualization result display of the DCFSL method on the Houston2013 dataset; (f) is the visualization result display of the S3Net method on the Houston2013 dataset; (g) is the visualization result display of the TBCNN method on the Houston2013 dataset; (h) is the visualization result display of the SepDGConv method on the Houston2013 dataset; (i) is the visualization result display of the MFT method on the Houston2013 dataset; (j) is the visualization result display of the method of the present invention on the Houston2013 dataset.
[0250] The change detection results of the proposed method on the Augsburg dataset are compared with those of the Res-CP method, DCFSL method, S3Net method, TBCNN method, SepDGConv method and MFT method. Figure 3 As shown. Among them, (a) is the pseudo-color image of the hyperspectral image of the Augsburg dataset; (b) is the digital representation model of the LiDAR image of the Augsburg dataset; (c) is the real object distribution label of the Augsburg dataset; (d) is the visualization result display of the Res-CP method on the Augsburg dataset; (e) is the visualization result display of the DCFSL method on the Houston2013 dataset; (f) is the visualization result display of the S3Net method on the Augsburg dataset; (g) is the visualization result display of the TBCNN method on the Augsburg dataset; (h) is the visualization result display of the SepDGConv method on the Augsburg dataset; (i) is the visualization result display of the MFT method on the Augsburg dataset; (j) is the visualization result display of the method of the present invention on the Augsburg dataset.
[0251] from Figure 2 , Figure 3 It can be seen that the present invention can generate the best texture, edge details and spatial distribution information of surface objects, so as to make the representation of the objects more refined and smooth, and improve the accuracy of the classification results. Taking the Houston2013 dataset as an example, by comparing Figure 2It can be easily seen that the boundary area in the image and the building area with complex terrain distribution have the clearest boundary and the best visual effect compared with other methods, and the result is closer to the structure of the ground truth map. In addition, there is a highway and several commercial areas near the highway in the area, which are not captured by the TBCNN method, the SepDGConv method and the MFT method, and our invention presents it more accurately.
[0252] Comprehensive Table 1, Table 2, Figure 2 , Figure 3 The comparison results show that the present invention can effectively integrate multimodal information, enhance feature discrimination, increase inter-class distance, reduce intra-class distance, reduce the risk of overfitting, improve feature quality, thereby improving pseudo-label reliability, and achieve a balance between label quantity and quality. The measurement accuracy can be improved with a smaller training set.
[0253] Table 1 Objective evaluation indicators of Houston2013 dataset under different algorithms
[0254]
[0255] Table 2 Objective evaluation indicators of the Augsburg dataset under different algorithms
[0256]
[0257]
Claims
1. A multi-source remote sensing image fusion classification method based on semi-supervised learning, characterized in that Proceed as follows: Step 1. Establish and initialize the convolutional neural network N for multi-source remote sensing image classification TBF , the N TBF There are two sub-networks N for feature extraction. featurehsi_1 and N featurelidar_1 and 1 subnetwork N for improving feature quality and classification fgm constitute; Step 1.1 Create and initialize subnetwork N featurehsi_1 , the sub-network N featurehsi_1 There are 3 groups of convolutional layers and one group of average pooling layers, namely Conv3_1_H0, Conv3_1_H1, Conv3_1_H2 and AvgPool1_1; The Conv3_1_H0 includes 1 convolution operation, 1 BatchNorm normalization operation and 1 activation operation, wherein the convolution layer contains 24 convolution kernels of size 1×1×1, each convolution kernel performs convolution operation with a step size of 1×1×2, and uses the nonlinear activation function ReLU as the activation function for operation; The Conv3_1_H1 includes 1 convolution operation, 1 BatchNorm normalization operation and 1 activation operation, wherein the convolution layer contains 128 convolution kernels of size 1×1×input dataset band / 2, each convolution kernel performs convolution operation with a step size of 1×1×1, and uses the nonlinear activation function ReLU as the activation function for operation; The Conv3_1_H2 includes 1 convolution operation, 1 BatchNorm normalization operation and 1 activation operation, wherein the convolution layer contains 24 convolution kernels of size 3×3×128, each convolution kernel performs convolution operation with a step size of 1×1×1, and uses the nonlinear activation function ReLU as the activation function for operation; The result obtained by Conv3_1_H0 is skip-connected with the result obtained by Conv3_1_H2, and nonlinear processing is performed through the ReLU activation function; The AvgPool1_1 includes a pooling operation, and the pooling layer performs average pooling operation with a pooling kernel of size 5×5×1; Step 1.2 Create and initialize subnetwork N featurelidar_1 , and adopt a dense connection method to connect the features obtained by each convolution layer with the features obtained by all previous convolution layers. There are 5 groups of convolution layers and 1 group of average pooling layers, namely Conv3_1_L0, Conv3_1_L1, Conv3_1_L2, Conv3_1_L3, Conv3_1_L4, AvgPool2_1; The Conv3_1_L0 includes 1 convolution operation, 1 BatchNorm normalization operation and 1 activation operation, wherein the convolution layer contains 24 convolution kernels of size 1×1×input dataset band / 2, each convolution kernel performs convolution operation with a step size of 1×1×1, and uses the nonlinear activation function ReLU as the activation function for operation; The Conv3_1_L1 includes 1 layer of convolution operation, 1 layer of BatchNorm normalization operation and 1 layer of activation operation, wherein the convolution layer contains 12 convolution kernels of size 3×3×1, each convolution kernel performs convolution operation with a step size of 1×1×1, and selects the nonlinear activation function ReLU as the activation function for operation; The Conv3_1_L2 includes 1 convolution operation, 1 BatchNorm normalization operation and 1 activation operation, wherein the convolution layer contains 12 convolution kernels of size 3×3×1, each convolution kernel performs convolution operation with a step size of 1×1×1, and uses the nonlinear activation function ReLU as the activation function for operation; The Conv3_1_L3 includes 1 convolution operation, 1 BatchNorm normalization operation and 1 activation operation, wherein the convolution layer contains 12 convolution kernels of size 3×3×1, each convolution kernel performs convolution operation with a step size of 1×1×1, and uses the nonlinear activation function ReLU as the activation function for operation; The Conv3_1_L4 includes one convolution operation, wherein the convolution layer contains 24 convolution kernels of size 3×3×1, each convolution kernel performs convolution operation with a step size of 1×1×1, and uses the nonlinear activation function ReLU as the activation function for operation; The AvgPool2_1 includes a pooling operation, and the pooling layer performs average pooling operation with a pooling kernel of size 5×5×1; Step 1.3 Create and initialize subnetwork N fgm And a set of custom modules L fgm , the N fgm It contains 4 fully connected layers, namely Center_1_H, Full_connection_1_H, Center_1_L and Full_connection_1_L. The Center_1_H includes a layer of linear transformation operations to map the output features into a 2D space; The Full_connection_1_H includes a layer of Dropout operation with a probability of 0.5 and a layer of linear transformation operation, the output is mapped to a specific number of categories and generates the final output result Result_1_H, with a total of num classification units, where num represents the total number of ground object categories to be classified; The Center_1_L includes a layer of linear transformation operations to map the output features into a 2D space; The Full_connection_1_L includes a layer of Dropout operation with a probability of 0.5 and a layer of linear transformation operation, the output is mapped to a specific number of categories and generates the final output result Result_1_L, with a total of num classification units, where num represents the total number of ground object categories to be classified; According to formula (1), the sub-network N is obtained fgm The final prediction result Result_1; Result_1=ω h Result_1_H+ω l Result_1_L (1) Among them, ω h and ω l is the weight parameter; The L fgm The module consists of the following 4 steps: (a) The hyperspectral features obtained in Center_1_H are fused with the LiDAR features obtained in Center_1_L using the concat operation to obtain the fused feature F F ; (b) Calculate the center loss of the fused features in (a) according to formula (2) Where m represents the number of samples. Indicates The feature center of each category, Represents the feature vector of the i1th sample; (c) Using the results obtained from Full_connection_1_H and Full_connection_1_L, we calculate the cross entropy loss using formula (3) Among them, A represents the number of samples in each batch, C represents the category, Represents the true label of the sample i1th. If the sample belongs to category j1, then is 1, otherwise it is 0. It indicates the probability that the model predicts that the i1th sample belongs to category j1; (d) Calculate the joint supervision loss according to formula (4) Step 2. Establish and initialize the convolutional neural network N for multi-sensor remote sensing image classification TB , the N TB Contains 2 subnetworks N for feature extraction featurehsi_2 and N featurelidar_2 , and another subnetwork N for classification cls ; Step 2.1 Create and initialize subnetwork N featurehsi_2 , contains 3 groups of convolutional layers and one group of average pooling layers, namely Conv3_2_H0, Conv3_2_H1, Conv3_2_H2 and AvgPool1_2; The Conv3_2_H0 includes 1 convolution operation, 1 BatchNorm normalization operation and 1 activation operation, wherein the convolution layer contains 24 convolution kernels of size 1×1×1, each convolution kernel performs convolution operation with a step size of 1×1×2, and uses the nonlinear activation function ReLU as the activation function for operation; The Conv3_2_H1 includes 1 convolution operation, 1 BatchNorm normalization operation and 1 activation operation, wherein the convolution layer contains 128 convolution kernels of size 1×1×input dataset band / 2, each convolution kernel performs convolution operation with a step size of 1×1×1, and uses the nonlinear activation function ReLU as the activation function for operation; The Conv3_2_H2 includes 1 convolution operation, 1 BatchNorm normalization operation and 1 activation operation, wherein the convolution layer contains 24 convolution kernels of size 3×3×128, each convolution kernel performs convolution operation with a step size of 1×1×1, and uses the nonlinear activation function ReLU as the activation function for operation; The result obtained by Conv3_2_H0 is skipped and connected with the result obtained by Conv3_2_H2, and nonlinear processing is performed through the ReLU activation function; The AvgPool1_2 includes a pooling operation, and the pooling layer performs average pooling operation with a pooling kernel of size 5×5×1; Step 2.2 Create and initialize subnetwork N featurelidar_2 , and adopt a dense connection method to connect the features obtained by each convolution layer with the features obtained by all previous convolution layers. There are 5 groups of convolution layers and 1 group of average pooling layers, namely Conv3_2_L0, Conv3_2_L1, Conv3_2_L2, Conv3_2_L3, Conv3_2_L4 and AvgPool2_2; The Conv3_2_L0 includes 1 convolution operation, 1 BatchNorm normalization operation and 1 activation operation, wherein the convolution layer contains 24 convolution kernels of size 1×1×input dataset band / 2, each convolution kernel performs convolution operation with a step size of 1×1×1, and uses the nonlinear activation function ReLU as the activation function for operation; The Conv3_2_L1 includes 1 convolution operation, 1 BatchNorm normalization operation and 1 activation operation, wherein the convolution layer contains 12 convolution kernels of size 3×3×1, each convolution kernel performs convolution operation with a step size of 1×1×1, and uses the nonlinear activation function ReLU as the activation function for operation; The Conv3_2_L2 includes 1 convolution operation, 1 BatchNorm normalization operation and 1 activation operation, wherein the convolution layer contains 12 convolution kernels of size 3×3×1, each convolution kernel performs convolution operation with a step size of 1×1×1, and uses the nonlinear activation function ReLU as the activation function for operation; The Conv3_2_L3 includes 1 convolution operation, 1 BatchNorm normalization operation and 1 activation operation, wherein the convolution layer contains 12 convolution kernels of size 3×3×1, each convolution kernel performs convolution operation with a step size of 1×1×1, and uses the nonlinear activation function ReLU as the activation function for operation; The Conv3_2_L4 includes 1 convolution operation, where the convolution layer contains 24 convolution kernels of size 3×3×1, each convolution kernel performs convolution operation with a step size of 1×1×1, and uses the nonlinear activation function ReLU as the activation function for operation; The AvgPool2_2 includes a pooling operation, and the pooling layer performs average pooling operation with a pooling kernel of size 5×5×1; Step 2.3 Create and initialize subnetwork N cls , the N cls Contains 2 fully connected layers, Full_connection_2_H and Full_connection_2_L. The Full_connection_2_H includes a layer of Dropout operation with a probability of 0.5 and a layer of linear transformation operation, the output is mapped to a specific number of categories and generates the final output result Result_2_H, with a total of num classification units, where num represents the total number of ground object categories to be classified; The Full_connection_2_L includes a layer of Dropout operation with a probability of 0.5 and a layer of linear transformation operation, the output is mapped to a specific number of categories and generates the final output result Result_2_L, with a total of num classification units, where num represents the total number of ground object categories to be classified; According to formula (5), the sub-network N is obtained cls The final prediction result Result_2; Result_2=ω h Result_2_H+ω l Result_2_L (5) Among them, ω h and ω l is the weight parameter, ω h +ω l =1; Step 2.4 Calculate the cross entropy loss using formula (3) Step 3 Input the training set H of hyperspectral images, the training set L of LiDAR data, the manually annotated pixel point coordinate set and label set, and TBF Conduct training; Step 3.
1. Based on the manually labeled pixel point coordinate set, extract 10 labeled pixel point sets for each class in the training set H of the hyperspectral image And extract 10 labeled pixel points for each class in the training set L of LiDAR data in, Represents X H The i2th pixel point in Represents X L The i2th pixel point in , M represents the total number of pixel points with labels; Step 3.
2. According to the definitions of formula (6) and formula (7), H and X L After standardization, we get and in, represents the standardized set of hyperspectral image pixel points with labels. express The i2th pixel point, represents the standardized set of labeled LiDAR pixel points, express The i2th pixel point; Step 3.
3. Each pixel point is taken as the center to divide H into a series of 9×9 hyperspectral pixel blocks. And Each pixel point is the center of L, which is divided into a series of 9×9 LiDAR pixel blocks. Step 3.
4. and As the training set of the fusion classification neural network, the samples in the training set are integrated into triplets The network data is input in the form of represents the pixel pairs composed of hyperspectral images and LiDAR data in the training set, and and The spatial coordinates of i express and Corresponding true category label, set the number of iterations iter←1, and execute steps 3.5 to 3.8; Step 3.5 Using subnetwork N featurehsi_1 and N featurelidar_1 Extract features of the training set; Step 3.5.1 Using subnetwork N featurehsi_1 Training set for hyperspectral images Perform feature extraction to obtain the feature F of the hyperspectral image H ; Step 3.5.2 Using subnetwork N featurelidar_1 Training set for LiDAR data Perform feature extraction to obtain the feature F of LiDAR data L ; Step 3.6 Using custom module L fgm Calculate the cross entropy loss and get the fused feature F HL ; Step 3.7: Feature F HL Send to the embedded feature space Feature_space; Step 3.8 Let iter←iter+1. If the number of iterations iter>Total_iter, the trained convolutional neural network N is obtained. TBF , go to step 3.9, otherwise, use the back error propagation algorithm based on stochastic gradient descent and joint supervision loss Update N TBF Parameters, the Total_iter represents the preset number of iterations; Step 3.9 Using subnetwork N fgm Get the prediction p(y|D u ); Step 3.10 calculates the count σ(C) of unlabeled samples predicted to be of this category and with a probability higher than a fixed threshold according to formula (8); Among them, C represents category, D u represents unlabeled samples, I represents the total number of unlabeled samples, and τ represents a fixed threshold; Step 3.11 Calculate the learning difficulty β(C) of each category according to formula (9); Where n(C) is the total number of samples in this category; Step 3.12: According to the learning difficulty β(C) of each category, assign the corresponding dynamic threshold to it, and divide the learning difficulty into four intervals: [0.8, 1), [0.6, 0.8), [0.4, 0.6), and [0, 0.4). The lower the value, the higher the learning difficulty. For the categories in these four learning difficulty intervals, assign thresholds from high to low for the pseudo-label assignment task; Step 3.13: Calculate the feature mean vector of the labeled samples embedded in the feature space Feature_space according to formula (10); Among them, N represents the total number of labeled samples, E′ represents the dimension of sample features, and D′ c represents the set of labeled samples of the encoded features, represents the kth eigenvalue corresponding to the nth coded sample; n=1, ..., N, k=1, ..., E′; Step 3.14 quantifies the linear correlation between the nth labeled sample of each category and the feature mean vector of the category through the Pearson correlation coefficient according to formula (11) and formula (12): in YesS c The nth element in; Where ρ() is the Pearson correlation coefficient that quantifies the similarity score; Step 3.15 Estimate the mean of the probability density function according to formula (13) and variance in, is the probability density function; Step 3.16 Calculate the probability distribution of each category according to formula (14); Among them, y c The probability distribution of each category is obtained, which is expressed as the reference distribution of the category; Step 3.17 defines the labeled sample as the central sample, and all unlabeled sample points in the spatial neighborhood with a distance α around the central sample are intended to be assigned labels of this class; Step 3.18 Based on the dynamic threshold strategy of step 3.12, define the confidence interval of each category as R c , c=1,…,C; Step 3.19 Calculate the features of each unlabeled sample according to formulas (12) and (15) The reference distribution y of the central sample c The matching "similarity" score; Step 3.20: According to formula (16), filter out the unlabeled samples whose "similarity" scores are within the confidence level range. And assign it a pseudo label consistent with the center sample category, where R c for; in, Represented as a set of pseudo-labeled samples, R c are the confidence intervals for each category; Step 3.21: merge the selected qualified pseudo-labeled samples with the initial labeled samples to form an expanded training data set; Step 3.22 Input the expanded hyperspectral image training set H_add, LiDAR data training set L_add, manually annotated pixel point coordinate set and label set, and TB Conduct training; Step 3.23 Extract all pixel points with labels from the training set H_add of the hyperspectral image And extract all the pixel points with labels in the training set L_add of LiDAR data in, Represents X H_add The i5th pixel point in Represents X L_add The i5th pixel point in , S represents the total number of pixel points with labels; Step 3.24 According to the definitions of formula (17) and formula (18), H_add and X L_add After standardization, we get and in, represents the standardized set of hyperspectral image pixel points with labels. express The i5th pixel point, represents the standardized set of labeled LiDAR pixel points, express The i5th pixel point; Step 3.25 Each pixel point is taken as the center to divide H_add into a series of 9×9 hyperspectral pixel blocks. And Each pixel point is the center and L_add is divided into a series of 9×9 LiDAR pixel blocks. Step 3.26 and As the training set of the fusion classification neural network, the samples in the training set are integrated into triplets The network data is input in the form of represents the pixel pairs composed of hyperspectral images and LiDAR data in the training set, and and The spatial coordinates of express and Corresponding true category label, set the number of iterations iter←1, and execute steps 3.27 to 3.31; Step 3.27 Using subnetwork N featurehsi_2 and N featurelidar_2 Extract features of the training set; Step 3.28 Using subnetwork N featurehsi_2 Training set for hyperspectral images Perform feature extraction to obtain the feature F of the hyperspectral image H ′; Step 3.29 Using subnetwork N featurelidar_2 Training set for LiDAR data Perform feature extraction to obtain the feature F of LiDAR data L ′; Step 3.30 Using subnetwork N cls Calculating cross entropy loss Step 3.31 Let iter←iter+1. If the number of iterations iter>Total_iter, the trained convolutional neural network N is obtained. TB Otherwise, the back error propagation algorithm based on stochastic gradient descent and cross entropy loss is used Update N TB Parameters, the Total_iter represents the preset number of iterations; Step 4 Input the hyperspectral image H′ and LiDAR data L′ to be tested, perform data preprocessing on all pixels of H′ and L′, and use the trained network N TB Complete pixel classification; Step 4.1 Extract all pixel points in H′ to form a set Extract all pixel points in L′ to form a set Among them, t H,i Indicates T H The i6th pixel of Indicates T L The i6th pixel of , U represents the total number of all pixels; Step 4.2 According to the definitions of formula (19) and formula (20), T H and T L After standardization, we get and in, represents the standardized set of pixels of the hyperspectral image to be tested, express The i6th pixel point, Represents the set of LiDAR pixel points to be measured after standardization. express The i6th pixel point; Step 4.3 Each pixel point of H′ is taken as the center to divide H′ into a series of 9×9 hyperspectral pixel blocks to form the hyperspectral image set to be tested. And then Each pixel point of is taken as the center to divide L′ into a series of 9×9 LiDAR pixel blocks to form the LiDAR data set to be tested. Step 4.4: Use the fully trained subnetwork N featurehsi_2 and N featurelidar_2 Extracting features of the image set to be tested; Step 4.5: Use the fully trained subnetwork N TB The hyperspectral image collection to be tested Perform feature extraction to obtain the feature F of the hyperspectral image TH ; Step 4.6 uses the fully trained sub-network N TB For the LiDAR data set to be tested Perform feature extraction to obtain the feature F of LiDAR data TL ; Step 4.7 Use subnetwork N cls Classify the features to calculate the classification prediction result TE pred .
Citation Information
Cited By
Semi-supervised remote sensing image change detection method and system
CN119380002A
Semi-supervised hyperspectral image intelligent classification method
CN119810539A
A semi-supervised hyperspectral image intelligent classification method
CN119810539B
Contrast learning classification method and system for hyperspectral remote sensing images
CN120747633A
