Hyperspectral image classification method based on cross-layer feature fusion

By adopting a cross-layer feature fusion method in hyperspectral image classification, and utilizing feature semantic enhancement, spatial detail supplementation and cross-layer feature fusion modules, the problem of difficult feature fusion at each level in the existing technology is solved and higher classification accuracy is achieved. and better classification results.

CN118537592APending Publication Date: 2024-08-23HOHAI UNIV
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202310152923.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-02-22
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

Existing hyperspectral image classification algorithms are difficult to effectively fuse features at all levels under small sample conditions, resulting in limited classification accuracy. In particular, the semantic gap between shallow and deep features is difficult to narrow, affecting the classification effect.

Method used

Using a method based on cross-layer feature fusion, the overall network is constructed through the Feature Semantic Enhancement Module (FSEM), the Spatial Details Supplementary Module (SDCM) and the Cross-layer Feature Fusion Module (CFFM) to narrow the semantic gap between shallow and high-level features and extract details. information and redistribute feature information to make the information flow more balanced, and finally send the fused features to the classifier for classification.

Benefits of technology

The classification accuracy of hyperspectral images is improved, and the classification performance is improved by effectively integrating features at all levels. The overall classification accuracy, average classification accuracy and Kappa coefficient on multiple data sets are all higher than traditional methods.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118537592A
    Figure CN118537592A
Patent Text Reader

Abstract

The invention discloses a hyperspectral image classification method based on cross-layer feature fusion, and belongs to the technical field of hyperspectral remote sensing image processing. The method comprises the following steps: constructing a feature extraction backbone network; constructing a feature fusion sub-network, wherein the feature fusion sub-network comprises a feature semantic enhancement module (FSEM), a spatial detail supplement module (SDCM) and a cross-layer feature fusion module (CFFM); the feature semantic enhancement module performs semantic enhancement on shallow-layer features, so that the semantic difference between the shallow-layer features and high-layer features is reduced; a space detail supplementing module extracts detail information from shallow layer features, and makes up for the deficiency of feature space information of the highest layer; the cross-layer feature fusion module further explores similarity and difference between hierarchical features, and redistributes feature information, so that the information flow is more balanced; and features extracted by the three modules are spliced and then sent to a classifier to output a classification result. By adopting the method, the characteristics of each level of the network can be effectively fused, so that the classification precision of the hyperspectral image is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of hyperspectral remote sensing image processing, and in particular to a hyperspectral image classification method based on cross-layer feature fusion. Background Art

[0002] In recent years, hyperspectral images are composed of two-dimensional spatial information and one-dimensional spectral information, and have the characteristics of "image-spectrum integration" and "continuous imaging". They are widely used in agriculture and forestry monitoring, ocean detection, atmospheric monitoring and geological exploration. As the first step in processing remote sensing data, hyperspectral image classification has become one of the hot research topics in the field of remote sensing.

[0003] In the early stage of hyperspectral image classification research, most traditional algorithms based on machine learning were proposed one after another. For example, k-nearest neighbor, logistic regression, maximum likelihood criterion and random forest. However, under small sample conditions, the above methods will cause huges phenomenon. Support vector machine (SVM) algorithm is a classic supervised classification algorithm. It separates sample feature data by learning the optimal classification hyperplane. It achieves good classification accuracy in small sample training scenarios and alleviates the huges phenomenon to a large extent. Before the rise of deep learning, SVM was widely used in the field of hyperspectral classification. In order to better deal with high-dimensional problems, dimensionality reduction methods such as principal component analysis (PCA) and linear discriminant analysis (LDA) have been proposed one after another. They project high-dimensional original hyperspectral data into low-dimensional feature space. In addition, to further improve the classification accuracy, methods such as extreme learning machine (ELM) and relevance vector machine (RVM) have been proposed.

[0004] In recent years, image classification based on deep learning has gradually become mainstream, and a large number of hyperspectral image classification methods based on deep learning have also been proposed. Chen et al. used stacked autoencoders (SAEs) to extract fine and abstract features of hyperspectral images layer by layer from shallow to deep. Li et al. applied deep belief networks (DBN) to hyperspectral image classification. The above two methods belong to fully connected networks, which have more training parameters and longer training time. Convolutional neural networks (CNNs) have been favored by researchers due to their excellent hierarchical feature extraction capabilities. Hu et al. first used 1D-CNN to extract spectral information from hyperspectral images for classification, and their classification performance was better than traditional classification methods such as SVM. However, 1D-CNN ignores the role of spatial information in classification. 2D-CNN shines in the field of hyperspectral image classification with its excellent ability to extract spatial-spectral information. Lee et al. designed a deeper and wider 2D-CNN classification network, which confirmed that appropriately deepening and widening the network is beneficial to improving classification accuracy. In order to meet the inherent characteristics of hyperspectral images, Li et al. applied 3D-CNN to extract spatial-spectral features, extracting rich spatial and spectral information, thereby improving the classification effect of hyperspectral images.

[0005] As the network continues to deepen, the fine spatial features extracted from the shallow layer will gradually disappear, which will have a negative impact on the classification effect. Most models directly fuse shallow and deep features by adding or concatenating through residual connections or dense connections. However, due to the large semantic gap between shallow and deep features, it is difficult to effectively fuse features at all levels in the above method. How to narrow the semantic gap between features at all levels and effectively fuse them has become the key to improving the accuracy of hyperspectral image classification. Summary of the invention

[0006] Purpose of the invention: In order to overcome the shortcomings of existing hyperspectral image classification algorithms, a hyperspectral image classification method based on cross-layer feature fusion is provided, which can effectively fuse features at all levels, thereby improving the classification performance.

[0007] Technical solution: To achieve the above purpose, the present invention provides a hyperspectral image classification method based on cross-layer feature fusion, comprising the following steps:

[0008] S1: constructing an overall network, including a feature extraction backbone network and a feature fusion sub-network, wherein the feature fusion sub-network includes a feature semantic enhancement module (FSEM), a spatial detail supplementation module (SDCM) and a cross-layer feature fusion module (CFFM);

[0009] S2: FSEM is constructed to semantically enhance shallow features, narrowing the semantic gap between shallow features and high-level features, and SDCM is constructed to extract detail information from shallow features, making up for the lack of spatial information in the highest-level features;

[0010] S3: Construct CFFM to further explore the similarities and differences between hierarchical features and redistribute feature information to make the information flow more balanced;

[0011] S4: The features fused by CFFM are concatenated with the features processed by SDCM, and then sent to the classifier after global pooling to output the classification results.

[0012] Furthermore, in step S2, FSEM is used to semantically enhance the shallow features so as to narrow the semantic gap between the shallow features and the high-level features. The specific implementation method is as follows:

[0013] A1: Divide the shallow features into four parts with equal number of channels;

[0014] A2: Use multi-scale dilated convolution to iteratively dilate and concatenate the above four features;

[0015] A3: Connect the input shallow features with the output of the last layer of dilated convolution through dot multiplication to obtain the semantically enhanced shallow features.

[0016] Furthermore, in step S2, the shallow feature semantics is enhanced by multi-scale dilated convolution, which is described by the formula:

[0017] W d1 =L s1 *F d (F c (F d (F c (F d (F c (F d (f l1 , 1), f l2 ), 2), f l3 ), 3), f l4 ), 4)

[0018] Among them, F d (...) represents the dilated convolution function. The first parameter represents the input feature, and the second parameter represents the dilation rate. c (...) indicates the concatenation operation, L s1 represents the features extracted by the first layer of the network, f l1 、f l2 、f l3 and f l4 Indicates the segmentation L s1The four features obtained; similarly, applying the same operation to the features extracted from the second layer can obtain the enhanced feature W d2 .

[0019] Furthermore, in step S2, SDCM is used to extract detail information from shallow features, which can be described by the formula:

[0020] C 1 =(1-F sigmoid (f h ))*F conv (f 1 +f 2 )*f h

[0021] Among them, F sigmoid (...) represents the Sigmoid activation function, F conv (...) represents the convolution function, f h represents the deepest feature, f 1 、f 2 Represents the shallow features extracted from the first and second layers.

[0022] Furthermore, in step S3, CFFM is constructed to further explore the similarities and differences between hierarchical features and redistribute feature information to make the information flow more balanced, which can be described by the formula:

[0023] p,q=F split (F sigmoid (F c ((W d1 *f h1 )+(W d1 -f h1 ))), 2)

[0024] Z 1 =F c ((W d1 *p), (f h1 *q)

[0025] Among them, F split represents the channel dimension splitting operation, f h1 Represents the output characteristics of a certain high level; similarly, Z can be calculated by this formula 2 .

[0026] Furthermore, in step S4, the features fused by the cross-layer feature fusion module and the features processed by the spatial detail supplementation module are concatenated and sent to the classifier through global pooling to output the classification result, which is described by the formula:

[0027] K=F softmax (F gl (Fc (C 1 , Z 1 , Z 2 )))

[0028] Among them, F softmax (...) represents the Softmax activation function, F gl (...) denotes a global average pooling operation. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] Figure 1 A structural diagram of a model implemented in the present invention;

[0030] Figure 2 This is the model diagram of Feature Semantic Enhancement Module (FSEM);

[0031] Figure 3 This is the model diagram of the Space Detail Supplementary Module (SDCM);

[0032] Figure 4 This is the model diagram of the cross-layer feature fusion module (CFFM);

[0033] Figure 5 Grayscale images of the three datasets: Indian Pine (IP), University of Pavia (UP), and Salina (SA);

[0034] Figure 6 The classification results of the Indian Pine algorithm are shown in Figure 1, where (a) is the ground truth map, (b) is the classification result map of the HybridSN model, (c) is the classification result map of the SSRN model, (d) is the classification result map of the MSDN model, (e) is the classification result map of the RSSAN model, and (f) is the classification result map of the DSSNet model; (g) is the classification result map of the MDR-CNN model of the present invention; (h) is the classification result map of the CFFN model of the present invention;

[0035] Figure 7 : The classification result diagram of the University of Pavia algorithm, where (a) is the ground object truth map, (b) is the classification result diagram of the HybridSN model, (c) is the classification result diagram of the SSRN model, (d) is the classification result diagram of the MSDN model, (e) is the classification result diagram of the RSSAN model, (f) is the classification result diagram of the DSSNet model, (g) is the classification result diagram of the MDR-CNN model of the present invention, and (h) is the classification result diagram of the CFFN model of the present invention;

[0036] Figure 8These are the classification result diagrams of the Salinas algorithm, where (a) is the ground object truth map, (b) is the classification result diagram of the HybridSN model, (c) is the classification result diagram of the SSRN model, (d) is the classification result diagram of the MSDN model, (e) is the classification result diagram of the RSSAN model, (f) is the classification result diagram of the DSSNet model, (g) is the classification result diagram of the MDR-CNN model of the present invention, and (h) is the classification result diagram of the CFFN model of the present invention. DETAILED DESCRIPTION

[0037] The present invention is further explained below in conjunction with the accompanying drawings and specific embodiments. It should be understood that these embodiments are only used to illustrate the present invention and are not used to limit the scope of the present invention. After reading the present invention, various equivalent forms of modifications to the present invention by those skilled in the art all fall within the scope defined by the claims attached to this application.

[0038] like Figure 1 As shown, the present invention provides a hyperspectral image classification method based on cross-layer feature fusion, comprising the following steps:

[0039] S1: constructing an overall network, including a feature extraction backbone network and a feature fusion sub-network, wherein the feature fusion sub-network includes a feature semantic enhancement module (FSEM), a spatial detail supplementation module (SDCM) and a cross-layer feature fusion module (CFFM);

[0040] S2: FSEM is constructed to semantically enhance shallow features, narrowing the semantic gap between shallow features and high-level features, and SDCM is constructed to extract detail information from shallow features, making up for the lack of spatial information in the highest-level features;

[0041] S3: Construct CFFM to further explore the similarities and differences between hierarchical features and redistribute feature information to make the information flow more balanced;

[0042] S4: The features fused by CFFM are concatenated with the features processed by SDCM, and then sent to the classifier after global pooling to output the classification results.

[0043] In step S2 of this embodiment, the input is divided into four parts through the channel division operation, and then the dilated convolution operations with different dilation rates are performed on them respectively to expand the receptive field, thereby obtaining global semantic information and enhancing the semantic features of shallow features, which can be described by the formula:

[0044] W d1 =L s1 *F d (F c (F d (F c (F d (F c (Fd (f l1 , 1), f l2 ), 2), f l3 ), 3), f l4 ), 4)

[0045] Among them, F d (...) represents the dilated convolution function. The first parameter represents the input feature, and the second parameter represents the dilation rate. c (...) indicates the concatenation operation, L s1 represents the features extracted by the first layer of the network, f l1 、f l2 、f l3 and f l4 Indicates the segmentation L s1 The four features obtained; similarly, applying the same operation to the features extracted from the second layer can obtain the enhanced feature W d2 .

[0046] In this embodiment, the SDCM constructed in step S2 extracts detail information from shallow features, making up for the lack of spatial information of the highest-level features. The specific implementation method is as follows:

[0047] The Sigmoid activation function is used to compress all elements of the deepest feature tensor into an attention weight matrix, in which the values ​​of all elements are in the range of 0 to 1. Then, the significant global features of the deepest features are erased, that is, the detail attention feature weights are obtained by subtraction; through the addition operation, the information flow between the first and second layer features can be interacted, and this step obtains the fusion feature; then, a layer of 3*3 size convolution is used to enhance the fusion feature; then, the detail attention weight is multiplied by the processed shallow feature to obtain the supplementary detail feature; finally, the deep feature of the original input is connected with the extracted detail feature to obtain the final output. The specific calculation formula is as follows:

[0048] C 1 =(1-F sigmoid (f h ))*F conv (f 1 +f 2 )*f h

[0049] Among them, F sigmoid (...) represents the Sigmoid activation function, F conv (...) represents the convolution function, f h represents the deepest feature, f 1 、f 2 Represents the shallow features extracted from the first and second layers.

[0050] In step S3 of this embodiment, CFFM is used to further explore the similarities and differences between hierarchical features, and the feature information is redistributed and fused;

[0051] p,q=F split (F sigmoid (F c ((W d1 *f h1 )+(W d1 -f h1 ))), 2)

[0052] Z 1 =F c ((W d1 *p), (f h1 *q)

[0053] Among them, F split represents the channel dimension splitting operation, f h1 Represents the output characteristics of a certain high level. Similarly, Z can be calculated by this formula 2 .

[0054] In step S4 of this embodiment, the features fused by CFFM and the features processed by SDCM are concatenated and sent to the classifier through global pooling to output the classification result, which is described by the formula:

[0055] K=F softmax (F gl (F c (C 1 , Z 1 , Z 2 )))

[0056] Among them, F softmax (...) represents the Softmax activation function, F gl (...) denotes a global average pooling operation.

[0057] Based on the above scheme, comparative experiments are conducted to verify the beneficial effects of the method of the present invention. HyBridSN, SSRN, MSDN, RSSAN, DSSNet and MDR-CNN are used to verify the method of the present invention using three benchmark datasets: Indian Pine (IP), University of Pavia (UP) and Salina (SA). Their ground truth grayscale images are shown in Figure 2. Figure 5 The specific types of ground feature information are shown in Table 1-3.

[0058] Table 1 Object categories in the IP dataset

[0059]

[0060]

[0061] Table 2 Object categories in the UP dataset

[0062]

[0063] Table 3 Object categories in the SV dataset

[0064]

[0065]

[0066] Implementation Results

[0067] In the method of the present invention, the classification result graph, overall classification accuracy (OA), average classification accuracy (AA) and Kappa coefficient are used to evaluate the performance of each method. Tables 4-6 show the classification results of the method of the present invention and other methods. Figure 6-8 The diagram shows the classification results of the method of the present invention and other methods on the IP, UP and SV datasets.

[0068] Table 4 Test results on IP dataset

[0069]

[0070] Table 5 PU dataset test results

[0071]

[0072]

[0073] Table 6 SA dataset test results

[0074]

[0075] According to the data in Tables 4-6, the OA, AA and Kappa coefficients of the method of the present invention on the three data sets are higher than those of other methods, indicating that the classification effect of the method of the present invention is better. Figure 6-8 From the classification result diagram, we can see that compared with other methods, this method has fewer misclassification phenomena on the IP, UP and SV datasets and has higher classification accuracy.

Claims

1. A hyperspectral image classification method based on cross-layer feature fusion, characterized in that: The steps include: S1: Constructing the overall network, including the feature extraction backbone network and the feature fusion sub-network. The feature extraction backbone network includes five layers of convolution, and the feature fusion sub-network includes the feature semantic enhancement module (FSEM), the spatial detail supplementation module (SDCM) and the cross-layer feature fusion module (CFFM); S2: The feature semantic enhancement module is used to semantically enhance shallow features, narrowing the semantic gap between shallow features and high-level features. The spatial detail supplement module is used to extract detail information from shallow features, making up for the lack of spatial information in the highest-level features. S3: The cross-layer feature fusion module further explores the similarities and differences between hierarchical features and redistributes feature information to make the information flow more balanced; S4: The features fused by the cross-layer feature fusion module are concatenated with the features processed by the spatial detail supplement module, and then sent to the classifier through global pooling to output the classification results.

2. The hyperspectral image classification method based on cross-layer feature fusion according to claim 1 is characterized in that: In step S2, FSEM enhances shallow feature semantics through multi-scale dilated convolution. The specific process is as follows: A1: Divide the shallow features into four parts with equal number of channels; A2: Use multi-scale dilated convolution to iteratively dilate and concatenate the above four features; A3: Connect the input shallow features with the output of the last layer of dilated convolution through dot multiplication to obtain the semantically enhanced shallow features.

3. The hyperspectral image classification method based on cross-layer feature fusion according to claim 2 is characterized in that: The feature semantic enhancement module in step S2 is described as follows: W d1 =L s1 *F d (F c (F d F c (F d (F c (F d (f l1 ,1),f l2 ),2),f l3 ),3),f l4 ),4) Among them, F d (...) represents the dilated convolution function, the first parameter represents the input feature, the second parameter represents the dilation rate, F c (...) represents the concatenation operation, L s1 represents the features extracted by the first layer of the network, f l1 、f l2 、f l3 and f l4 Indicates split L s1 The four features obtained are similarly applied to the features extracted from the second layer to obtain W d2 .

4. The hyperspectral image classification method based on cross-layer feature fusion according to claim 1 is characterized in that: In step S2, SDCM extracts spatial detail information as a supplement to the deepest features, which can be described by the formula: C1=(1-F sigmoid (f h ))*F conv (f1+f2)*f h Among them, F sigmoid (...) represents the Sigmoid activation function, F conv (...) represents the convolution function, f h represents the deepest features, and f1 and f2 represent the shallow features extracted from the first and second layers.

5. The hyperspectral image classification method based on cross-layer feature fusion according to claim 1 is characterized in that: In step S3, CFFM explores the similarities and differences between features, redistributes and fuses feature information, and is described by the formula: p,q=F split (F sigmoid (F c ((W d1 *f h1 )+(W d1 -f h1 ))),2) Z1=F c ((W d1 *p),(f h1 *q)) Among them, F split represents the channel dimension splitting operation, f h1 Represents the output characteristics of a certain high-level layer; similarly, Z2 can be calculated using this formula.

6. The hyperspectral image classification method based on cross-layer feature fusion according to claim 1 is characterized in that: In step S4, the features fused by CFFM and the features processed by the spatial detail supplementation module are spliced ​​as the final fused features, and then sent to the classifier through global pooling to output the classification results, which can be expressed as follows: K=F softmax (F gl (F c (C1,Z1,Z2))) Among them, F softmax (...) represents the Softmax activation function, F gl (...) denotes a global average pooling operation.

Citation Information

Cited By

  • Method for dynamically adjusting reserved space of solid state disk

    CN120353403A