Next Article in Journal
ISAR Imaging of Non-Stationary Moving Target Based on Parameter Estimation and Sparse Decomposition
Next Article in Special Issue
A Feature Embedding Network with Multiscale Attention for Hyperspectral Image Classification
Previous Article in Journal
A Comparison of Seven Medium Resolution Impervious Surface Products on the Qinghai–Tibet Plateau, China from a User’s Perspective
Previous Article in Special Issue
Local and Global Spectral Features for Hyperspectral Image Classification
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Cross-Channel Dense Connection and Multi-Scale Dual Aggregated Attention Network for Hyperspectral Image Classification

1
College of Communication and Electronic Engineering, Qiqihar University, Qiqihar 161000, China
2
College of Information and Communication Engineering, Dalian Nationalities University, Dalian 116000, China
*
Author to whom correspondence should be addressed.
Remote Sens. 2023, 15(9), 2367; https://doi.org/10.3390/rs15092367
Submission received: 12 March 2023 / Revised: 23 April 2023 / Accepted: 28 April 2023 / Published: 29 April 2023
(This article belongs to the Special Issue Deep Learning for Hyperspectral Image Classification)

Abstract

:
Hyperspectral image classification (HSIC) is one of the most important research topics in the field of remote sensing. However, it is difficult to label hyperspectral data, which limits the improvement of classification performance of hyperspectral images in the case of small samples. To alleviate this problem, in this paper, a dual-branch network which combines cross-channel dense connection and multi-scale dual aggregated attention (CDC_MDAA) is proposed. On the spatial branch, a cross-channel dense connections (CDC) module is designed. The CDC can effectively combine cross-channel convolution with dense connections to extract the deep spatial features of HSIs. Then, a spatial multi-scale dual aggregated attention module (SPA_MDAA) is constructed. The SPA_MDAA adopts dual autocorrelation for attention modeling to strengthen the differences between features and enhance the ability to pay attention to important features. On the spectral branch, a spectral multi-scale dual aggregated attention module (SPE_MDAA) is designed to capture important spectral features. Finally, the spatial spectral features are fused, and the classification results are obtained. The experimental results show that the classification performance of the proposed method is superior to some state-of-the-art methods in small samples and has good generalization.

1. Introduction

Hyperspectral images (HSIs) have been used in a variety of fields as remote sensing technology has advanced [1]. Almost all walks of life are involved, from national military security to agricultural crop growth; from the detection of water resources to the monitoring of mountain fire forestry; from atmospheric exploration to geological survey; from the medical industry to mineral resources [2,3,4,5]. These applications, however, are intrinsically closely related to hyperspectral image classification (HSIC) technology [6].
In the early days, the methods used for HSIC were mainly classical machine learning algorithms. For example, a K-nearest neighbor classifier [7] was constructed by Samaniego L. A maximum likelihood classifier [8] was designed by Ediriwickrema J. A method of Rogers regression [9] was proposed by Foody G M. However, the classification performance of these methods is relatively poor when the number of samples is small and the data dimension of HSI is too high. To this end, a principal component analysis (PCA) method [10] was proposed by Prasad S. PCA is used to map high-dimensional data to low-dimensional space, lower the dimension of HSI, and keep the basic feature information of HSI. The information of the spatial dimension was overlooked by the early HSIC, which only took into account the information of the spectral dimension. However, HSI is obtained by simultaneously imaging the target area with multiple continuously subdivided bands. This means that a lot of spectral information and spatial information are contained by HSIs [11]. Therefore, the spectral information and spatial information of HSI need to be extracted simultaneously when the HSI is classified. Thereupon, the HSIC method based on the combination of spatial spectral features was proposed [12,13,14,15,16]. Among them, [12] utilizes a hybrid framework of principal component analysis (PCA), finite element method based on hierarchical learning, and logistic regression (LR) to extract spectral spatial features to achieve high classification accuracy [13]. The sparse multinomial logistic regression (SMLR) classifier is used to learn spectral information, and the spatial features are modeled by spatially adaptive total variation (SpATV) regularization. In [14], a deep learning (DL) framework combining PCA, DL, and LR is proposed, which can fuse spatial and spectral features to significantly improve the classification performance of HSIs. In [15], the author reduces spectral loss through spectral spatial weighted modulation and spectral compensation. The effectiveness of the method was verified through classification results. In [16], a multi-scale low rank decomposition algorithm is used to extract multi-scale spatial features, and a Landmark-neighborhood preserving embedding algorithm is used to fuse spatial and spectral features. In addition, the classification performance of the network largely depends on its feature extraction ability [17,18,19,20,21,22]. However, the feature extraction of the network is seriously disturbed by the complex and diverse distribution of ground objects in HSI. It is difficult to find a specific feature extraction method suitable for all HSIs. The emergence of convolutional neural networks (CNNs) [23,24] brings great convenience to feature extraction.
This has made CNN popular with researchers in the field of HSIC, and some excellent classification methods have also been proposed. For example, a classification method of the three-dimensional convolutional neural network (3D-CNN) was proposed by Chen [25]. 3D-CNN can extract deep spatial and spectral information at the same time and has achieved good classification results. In order to mine deeper features, it is often necessary to extract deeper features by overlapping multi-layer convolutions. However, if the convolution layer of the network is too deep, it will lead to the problem of gradient explosion and gradient disappearance. This will make the network training difficult to converge, over-fit, and may even lead to network collapse. In addition, blind stacking of convolutions will inevitably bring huge parameter quantities. This will cause the network training speed to become extremely slow and also bring a great burden to the computer hardware equipment. The emergence of deep residual networks (resnet) and dense connected networks (DenseNet) has greatly alleviated this problem [26,27,28,29,30,31,32,33]. As such, a multi-scale dense network (MSDN) was proposed [34], which reduced the loss of information in feature engineering and extracted more abundant fine features at low cost. After that, a multi-layer fusion dense network (MFDN) was proposed by Li [35] to extract features in different scenarios through multi-scale dense connections and fuse them. However, the distribution of ground objects in the dataset used for HSIC is chaotic, which brings a great test to the classification network. This also makes feature extraction crucial in classification tasks. When the number of samples is small, if more key features cannot be obtained, it is difficult to accurately predict all categories in classification prediction. Therefore, unified multi-scale learning (UML) was proposed by Wang [36]. UML uses multi-scale channel shuffling to shuffle channel features of different sizes, which can effectively extract more different features. Nevertheless, in the HSI dataset with extremely few sample labels, it is still a difficult point to effectively improve the classification performance of the model.
Recently, in order to alleviate the problem of sample scarcity, an attention mechanism was proposed [37,38,39,40]. An attention mechanism is a mechanism that emphasizes the area of interest and suppresses the irrelevant background area in the way of “dynamic weighting”. An attention-assisted CNN model [41] was proposed by Hang. Hang combines attention with CNN in parallel to extract more discriminative spatial spectral features. However, convolution is not robust to the rotation of spatial position, which will affect the improvement of classification accuracy. Therefore, a rotation-invariant attention network (RIAN) and a cross-attention-spectrum-spatial network (CASSN) have been proposed successively [42,43]. RIAN restrains the interference of position rotation on classification by correcting attention in space, while CASSN uses the interaction of cross- spatial attention to mitigate the impact of position rotation. In addition, Ma et al. designed a double-branch multi-attention network (DBMA) by combining a multi-branch structure with attention [44] and achieved good classification performance. A double-branch dual-attention network (DBDA) [45] was proposed by Li. DBDA captures the spatial information and spectral information of HSI through double branches and classifies them with attention. In the past two years, a transformer model combining self-attention has been proposed. In [46], a hyperspectral image transformer in transformer (HSI-TNT) method was proposed. In this method, two transformer deep networks were used to fuse local and global features, and the effectiveness of the method was finally demonstrated through a large number of experiments.
However, in the case of small samples, improving the feature extraction ability of the network and strengthening the ability to pay attention to spatial spectral information to achieve high-precision classification is still a major difficulty in HSIC. In order to alleviate this problem and further improve the classification performance in the HSIC with extremely scarce sample labels, a HSIC method of cross-channel dense connections and multi-scale dual aggregated attention (CDC_MDAA) with double branches was proposed in this paper. First, on the spatial branch, a cross-channel dense connection (CDC) is proposed. CDC realizes the interactive fusion of channel information and makes use of dense connection to multiplexing spatial features multiple times to extract the depth spatial features of HSIs. Then, in order to capture the key spatial spectral features, a dual aggregated attention (DAA) method is proposed. In particular, the DAA is divided into a spatial dual aggregated attention module (SPA_DAA) and a spectral dual aggregated attention module (SPE_DAA). SPA_ DAA and SPE_ DAA can focus on the extracted spatial features and spectral features, respectively, and enhance the difference of features to capture important features conducive to classification. After a lot of experiments, compared with other mainstream methods, CDC_ MDAA can achieve optimal classification performance on different data sets.
The main contributions of this paper include the following four parts:
(1)
In this article, a cross channel dense connection and multi-scale dual aggregated attention network (CDC_MDAA) is proposed to alleviate the small sample problem, and extensive experiments have shown that the proposed method is superior to some state-of-the-art methods in small samples.
(2)
A CDC module is proposed, which combines cross-channel convolution with dense connection to effectively extract the spatial features of HSIs. The CDC realizes the interactive fusion of channel information and introduces dense connections. The same feature can be multiplexed multiple times, the loss of information in the feature extraction process can be reduced, and too many parameters are avoided.
(3)
A DAA module is constructed. The DAA uses dual autocorrelation for attention modeling, which can strengthen the difference between features to enhance the ability to pay attention to important features. In addition, enhanced normalization is proposed to further highlight important features.
(4)
A multi-scale head strategy is proposed for the DAA mechanism. It can increase the receptive field and obtain the attention value of multiple features to enhance the attention ability.
The rest of this paper is organized as follows. Section 2 is divided into four parts, which, respectively, introduce the overall architecture of CDC_MDAA, CDC, DAA, and multi-scale header strategies. In Section 3, the data sets, experimental parameters, model framework setting, and experimental analysis are discussed. Finally, in Section 4, conclusions are given.

2. Methods

In this paper, a CDC_MDAA is proposed for HSI classification. The CDC_MDAA is mainly composed of three parts. The first part is the CDC module and residual connection module for feature extraction. The second part is the DAA mechanism, which enhances important features by dynamic weighting. In the third part, a multi-scale head strategy is designed based on DAA to expand the receptive field and enhance the ability of attention to features.

2.1. The Overall Framework of CDC_MDAA

The CDC_MDAA proposed in this paper is composed of a CDC module, a residual connection, DAA, global average pooling (GAP), and a full connection (FC) layer, as shown in Figure 1. The CDC_ MDAA is a spatial-spectral association dual-branch network composed of a spatial branch and a spectral branch. On the spatial branch, the spatial features of HSI are extracted by the CDC module. After obtaining the spatial feature maps, they are processed by a nonlinear deformation module to reduce the dimension and then input into the spatial aggregated attention mechanism. The spatial aggregated attention mechanism connects two SPA_MDAA (composed of the multi-scale header strategy and SPA_DAA) modules by skipping connection to strengthen the attention ability. Similarly, in the spectral branch, the spectral features are extracted by the residual connection module and then the extracted features are introduced into the proposed spectral aggregated attention mechanism. The spectral aggregated attention mechanism is composed of two SPE_MDAA (composed of the multi-scale header strategy and SPE_DAA) modules, which also adopt skipping connection. Then, spectral branch and spatial branch are fused, and then processed through a convolution layer and GAP. Finally, it is passed into the FC and the classification results are obtained.

2.2. The CDC Module

In this paper, the CDC module is proposed by combining cross-channel convolution and dense connection. As shown in Figure 2, the convolution kernel of size 1 × 1 × 1 is adopted at the beginning, which greatly reduces the number of parameters of the model and limits the number of channels, which facilitates the subsequent feature extraction. Then convolution kernel of size 3 × 3 × 1 is used for the interactive fusion of channel information. This process can be described as
x 1 = Re l u ( B N ( F 1 ( x ; w F 1 ) ) )    x h × w × b , c , x 1 h × w × b , c 1
x 2 = Re l u ( B N ( F 2 ( x ; w F 2 ) ) )    x h × w × b , c , x 2 h × w × b , c 2
x 3 = Re l u ( B N ( F 3 ( x ; w F 3 ) ) )    x h × w × b , c , x 3 h × w × b , c 3
x = C a t c ( f 1 ( x 1 ; w f 1 ) ; f 2 ( x 2 ; w f 2 ) ; f 3 ( x 3 ; w f 3 ) )    x h × w × b , c
Among them, F 1 ( · ) , F 2 ( · ) , and F 3 ( · ) , in turn, represent the pointwise convolutionwith the number of output channels being 12, 24, and 36. B N ( · ) is batch normalization and Re l u ( · ) is activation function. f 1 ( · ) , f 2 ( · ) , and f 3 ( · ) represent three composite functions that integrate convolution, batch normalization, and activation functions. The difference is that the input channel sizes of their convolution kernel are 12, 24, and 36, in order. C a t c ( · ) refers to the operation of connecting according to the channel dimension. In addition, c is the number of channels of x . b , h , and w , in turn, representing the band, length, and width of x . c 1 , c 2 , and c 3 are the number of channels with sizes of 12, 24, and 36, respectively. c is the number of channels with size 64.
Then, the dense connection is integrated into the CDC module. During back propagation, each layer will receive gradient signals of all layers following it. Therefore, as the network depth increases, the gradient near the input layer will become smaller and smaller. This will cause the gradient of the network to disappear. During back propagation, gradient signals of all layers can be used repeatedly by dense connection, which to some extent alleviates the problem of gradient dissipation during training. In addition, a large number of features are reused during forward propagation, so that a large number of features can be generated even with a small number of convolution cores. To some extent, it can also be said that dense connection plays a role in reducing parameters. This process can be expressed as
x l = H ( [ x 0 , x 1 , x 2 , x l 1 ] )
where the subscript of x 0 represents the current number of layers. Since the output of cross-channel convolution is the input of densely connected blocks, the output of features extracted by cross-channel convolution is defined as x 0 . Among them, H ( ) is defined as the composite function of 3D convolution, batch normalization, and Relu.
In general, CDC first performs feature extraction on the input feature maps by three 3D convolutions with size 1 × 1 × 1 . Then, the three 3D convolutions with size 3 × 3 × 1 are connected to further extract spatial features. After the feature connection is obtained, it is input into the subsequent dense connection to extract deeper spatial features. The CDC can effectively extract deep spatial features, realize the interactive fusion of channel information, and enhance the nonlinear expression ability of features. The CDC implementation process is shown in Algorithm 1.
Algorithm 1. The implementation process of the CDC module
  • Input: select sample patches x h × w × b , c randomly from HSI.
  • The three pointwise convolutions with output channels 12, 24, and 36 are used to process x . Then, batch normalization is added to prevent the network from over-fitting and Re lu is used to increase the nonlinear expression ability of features. Finally, the features x 1 h × w × b , c 1 , x 2 h × w × b , c 2 , x 3 h × w × b , c 3 are obtained.
  • Then, three 3D convolutions of size 3 × 3 × 1 are used to process x 1 , x 2 , and x 3 , respectively. After convolution, batch normalization and activation function are used to process the obtained features. Finally, the obtained features are connected according to the channel dimension to obtain feature x h × w × b , c .
  • Next, input x into a concatenated structure composed of three convolution blocks. x will be input to each convolution node, and the result of each convolution block will be input to each node after it, forming a dense connection.
  • Output: the final output is X h × w × b , c .

2.3. The DAA Module

The attention mechanism enhances the prediction ability of the network by highlighting the important features in the image and weakening the irrelevant features. Therefore, the performance of the attention mechanism depends on its own differentiated treatment of features, that is, different attention to features. In order to strengthen the attention ability of the network and improve the classification performance of the network. A new attention mechanism, DAA, was proposed in CDC_MDAA. The DAA is divided into SPA_DAA and SPE_DAA.
As shown in Figure 3, on the spatial branch, the SPA_DAA module is proposed. Specifically, the SPA_DAA uses the two-dimensional convolutions of size 1 × 1 to construct the query, value, and key. In the SPA_DAA, two groups of query and key are designed to carry out dot multiplication, respectively, in order to strengthen the attention to features. The calculation of query, key, and value can be represented as
q 1 = F ( X ; ω q 1 )    X c × h × w ,   q 1 h w × c
q 2 = F ( X ; ω q 2 )    X c × h × w ,   q 2 h w × c
k 1 = F ( X ; ω k 1 )    X c × h × w ,   k 1 c × h w
k 2 = F ( X ; ω k 2 )    X c × h × w ,   k 2 c × h w
v = F ( X ; ω v )    X c × h × w ,   v c × h w
Here, X is the input. ω q 1 , ω q 2 , ω k 1 , ω k 2 , and ω v are the weight parameters of query q 1 , q 2 ; key, k 1 , k 2 ; and value, v , and these parameters are parameters that can be used for training. In addition, F ( ) in the formula is the 2D convolution kernel with size 1 × 1 .
After the query and the key point multiplication in the training process, some particularly large singular feature values will be obtained. This will cause the phenomenon of gradient explosion, resulting in poor training performance. However, the purpose of attention is only to make the value of the corresponding part of the features with high correlation larger, and the value of the corresponding part of the features with low correlation smaller. That is known as the importance difference of the obtained features. In traditional attention, softmax is usually used to normalize the attention maps, but this will make the gradient of some inputs become 0. This means that for the activation of this region, the weight will not be updated during the back propagation. Therefore, it will produce dead neurons that cannot be activated and ultimately affect the effect of classification. For this reason, the enhanced normalization strategy is proposed in the SPA_DAA. First, a global mean normalization is performed for all values, and then batch normalization is performed. Enhanced normalization not only solves the impact of singular feature values on network training, but also further enhances the ability of SPA_DAA to pay attention to spatial features. This is because the dot product of two groups of attention is used at the beginning, which is equivalent to the square of the feature values of a single attention. This makes the distance between the feature values and the non-interested feature values become larger. At this time, the mean normalization is equivalent to enhancing the features of interest and suppressing the features of non-interest. In this way, the SPA_DAA has further improved its attention ability through enhanced normalization support. The production process of attention maps can be represented as
a t t n 1 = ( q 1 · k 1 )    q 1 h w × c ,   k 1 c × h w ,   a t t n 1 h w × h w
a t t n 2 = ( q 2 · k 2 )    q 2 h w × c ,   k 2 c × h w ,   a t t n 2 h w × h w
a t t n = Q I R ( a t t n 1 · a t t n 2 ; N )    a t t n h w × h w
A t t n = B N ( a t t n ) R h w × h w      a t t n h w × h w ,   A t t n h w × h w
where a t t n 1 and a t t n 2 are obtained by the point multiplication of query tensor q 1 and value tensor k 1 and the point multiplication of query tensor q 2 and value tensor k 2 , in turn. In Equation (13), after multiplying a t t n 1 and a t t n 2 , divide all the resulting values by the mean N , and then round up to get a t t n , where Q I R ( ) is a compound operation of division and rounding. In this way, the values can be uniformly weakened to prevent the generation of too-large singular values. h w × h w is the size of a t t n 1 and a t t n 2 . In Equation (14), A t t n is the attention graph obtained, where Equations (13) and (14) can be simplified as
A t t n = E B ( a t t n 1 · a t t n 2 )
E B ( ) is a composite function of two operations of Q I R ( ) and B N ( ) . Because it is two consecutive normalization processes, it is called enhanced normalization. Finally, the output of the SPA_DAA module can be expressed as
O u t _ F = v · A t t n = v · E B ( a t t n 1 · a t t n 2 )    O u t _ F c × h w
The value of each position of O u t _ F is reconstructed by multiplying the weighted value, v , with A t t n . The detailed implementation process of SPA_DAA module is shown in Algorithm 2.
Algorithm 2. The detailed implementation process of SPA_DAA module
  • Input: the feature map X c × h × w , where X is the result of the nonlinear dimensionality reduction of feature X obtained by the CDC module.
  • Input X into three 2D convolutions to obtain q 1 h w × c , q 2 h w × c , and v c × h w , respectively. Then transpose q 1 and q 2 to obtain k 1 c × h w and k 2 c × h w .
  • Divide q 1 and k 1 into one group and q 2 and k 2 into another group. Multiply the two groups of query tensors and key tensors, respectively, to obtain a t t n 1 h w × h w and a t t n 2 h w × h w .
  • Then, multiply a t t n 1 and a t t n 2 to obtain the attention mask, A t t n , through enhanced normalization processing.
  • Output: finally, multiply the obtained attention mask with v c × h w to obtain attention, O u t _ F c × h w .
Similarly, a SPE_DAA is proposed on the spectral branch. As shown in Figure 4, unlike SPA_DAA, SPE_DAA uses 3D convolution kernels to build query, key, and value. While focusing on spectral characteristics, spatial locations are linked to establish correlations between spectral and spatial locations. Therefore, the SPE_DAA can not only focus on the feature differences of the constructed spectral information, but also associate the spatial spectral information. The calculation of query tensor, key tensor, and value tensor in the SPE_DAA can be expressed as
Q 1 = G ( X ; ψ Q 1 )    X h × w × b , c ,   Q 1 h w × c
Q 2 = G ( X ; ψ Q 2 )    X h × w × b , c ,   Q 2 h w × c
K 1 = G ( X ; ψ K 1 )    X h × w × b , c ,   K 1 c × h w
K 2 = G ( X ; ψ K 2 )    X h × w × b , c ,   K 2 c × h w
V = G ( X ; ψ V )    X h × w × b , c ,   V c × h w
where, Q 1 and Q 2 are the queries of spectral branch. K 1 and K 2 are keys and V is value. G ( ) is a 3D convolution operation. In fact, Q 1 , Q 2 , and V in the SPE_DAA adopt the same settings, so the parameters are shared with each other. The calculation of the spectral attention map follows the idea of SPA_DAA and adopts the enhanced normalization strategy. The calculation process can be expressed as
a t t n _ a s s o 1 = ( Q 1 · K 1 )     a t t n _ a s s o 1 h w × h w
a t t n _ a s s o 2 = ( Q 2 · K 2 )     a t t n _ a s s o 2 h w × h w
A t t n _ a s s o = E B ( a t t n _ a s s o 1 · a t t n _ a s s o 2 )     A t t n _ a s s o h w × h w
Among them, a t t n _ a s s o 1 and a t t n _ a s s o 2 are the spatial spectral-associated attention features obtained by the multiplication of query tensor and key tensor. In Equation (24), A t t n _ a s s o is the spectral attention map obtained by the enhanced normalization of two separate spatial spectral association attentions. Then, multiply A t t n _ a s s o with the value in Equation (21) to reconstruct the spatial spectral association information. This process can be expressed as
O u t = V · A t t n _ a s s o O u t c × h w
It is worth noting that SPE_DAA does not only focus on the information of spectral dimension, but also closely associates the spectral with the spatial position, which makes the subsequent fusion of spatial and spectral branches more appropriate. The implementation process of SPE_DAA is shown in Algorithm 3.
Algorithm 3. The implementation process of the SPE_DAA module
  • Input: feature map X h × w × b , c . X is the feature obtained by the residual module.
  • Reduce the spectral dimension of X through the 3D convolution of size 1 × 1 × b and associate the spectral information with the spatial information. Then, it is processed by 3D convolutions and Q 1 h w × c , Q 2 h w × c , V c × h w , K 1 c × h w , and K 2 c × h w are obtained, respectively.
  • The Q 1 and the K 1 are divided into a group and the Q 2 and the K 2 are divided into a group. Multiply the two groups of query tensors and key tensors, respectively, to obtain a t t n _ a s s o 1 h w × h w and a t t n _ a s s o 2 h w × h w .
  • Then, multiply a t t n _ a s s o 1 and a t t n _ a s s o 2 , and obtain the attention mask, A t t n _ a s s o , through enhanced normalization processing.
  • Output: multiply the obtained attention mask with V c × h w to obtain attention, O u t c × h w .

2.4. The Multi-Scale Head Strategy

Based on the DAA module, a multi-scale head mechanism is proposed. The multi-scale dual aggregated attention mechanism (MDAA) is composed of multi-scale head and the DAA, as shown in Figure 5. The upper part is composed of a multi-scale head mechanism and a SPA_DAA composition, namely, a spatial multi-scale dual aggregated attention (SPA_MDAA) module. The SPA_ MDAA uses two 2D convolutions of size 1 × 1 and 3 × 3 as its head. Different from the traditional multi-head mechanism of attention, multi-scale heads do not simply connect the attention of different heads but multiply the two to provide attention with greater attention ability. This way of processing restricts the number of channels to a certain extent. It also reduces the number of parameters and makes the calculation relatively simple. With the introduction of multi-scale convolution, the receptive field of attention has been well expanded.
The multi-scale head mechanism is also designed on the SPE_DAA, as shown in the lower part of Figure 5. A spectral multi-scale dual aggregated attention (SPE_MDAA) module is composed of a multi-scale head mechanism and a SPE_DAA module. Three heads of different sizes are used in the SPE_MDAA. The three heads are three 3D convolutions with the sizes of 1 × 1 × 1 , 1 × 1 × 3 , and 1 × 1 × 5 . The SPA_ MDAA and the SPA_ MDAA are similar, and they are also the multiplication of a single attention.

3. Experimental Results and Analysis

First, four HSI data sets are introduced in detail. Then, the hyper-parameter setting of the experiment is described. In order to make a fair comparison, all experiments were conducted in the same environment. Specifically, the elected CPU is AMD Ryzen 75800H. The selected GPU is NVIDIA RTX 3070. The software environment for the experiment is CUDA11.2, Python 3.7.12, and torch 1.10.0.4 of Windows 10. Pycharm is used to compile software. In order to verify the effectiveness of the proposed module in the network, a large number of ablation experiments have been carried out in this paper. In addition, in order to obtain the best network performance, some comparative experiments were carried out and the best network structure was determined. Finally, in order to evaluate the performance of the method proposed in this paper, the network is quantitatively evaluated on four data sets using three important evaluation indicators: overall accuracy (OA), average accuracy (AA), and kappa coefficient. Their calculation process can be expressed as
O A = i = 1 n s i , i S
A A = 1 n i = 1 n s i , i j = 1 n s i , j
K a p p a = i = 1 n s i , j i = 1 n ( s i ,   s , i ) / S S i = 1 n ( s i ,   s , i ) / S
where S is the total number of samples and s i , j is the number of samples classified by category i as category j ; n is the number of categories. In order to avoid the randomness of the experimental results, each group of experiments was repeated 10 times and then the averages of the 10 experimental results were taken as the final experimental results. In this paper, the best experimental results in the table are displayed in bold.

3.1. HSI Datasets

In order to verify the effectiveness of CDC_MDAA, the experiment described in this paper was conducted on four more challenging data sets, including Indian Pines (IN), Salinas Valley (SV), Kennedy Space Center (KSC), and Pavia University (UP), as shown in Figure 6. Figure 6a is a pseudo-color map of IN data set. The IN dataset uses the airborne visible infrared imaging spectrometer (AVIRIS) to continuously image ground objects in 220 continuous bands, and only 200 bands are reserved as the research object. There are 21,025 pixels in total, but only 1024 of them are ground object pixels, including 16 classes. The UP dataset is continuously imaged on 115 bands. In reality, only 103 spectral bands that are not polluted by noise are used for experiments. There are only 42,776 pixels of marked ground objects in the UP, a total of 9 types of ground objects. The pseudo-color map of UP is shown in Figure 6b. The pseudo-color map of the SV dataset is shown in Figure 6c. The SV contains 204 bands and 111,104 pixels. However, only 54,129 pixels can be used for classification, including 16 classes. The KSC contains 176 bands and 314,368 pixels. The marked ground objects have only 5211 pixels, including 13 classes. The pseudo-color map of KSC is shown in Figure 6d.
In this paper, the ground object classes and sample numbers of the four data sets are given, as shown in Table 1, Table 2, Table 3 and Table 4. In this paper, different sample proportions are used as training sets for different data sets. Among them, IN uses 3% of the samples as the training set, KSC uses 5% of the samples as the training set, and SV and UP use 0.5% of the samples as the training set.

3.2. Experimental Parameters and Model Setting

In this part, the experimental parameters are set, and the best model is determined.

3.2.1. Experimental Parameter Setting

The epoch of the network is set to 400 and the batch size is set to 64. Because the learning rate strategy of cosine annealing is adopted, a small learning rate can avoid the problem of local optimal solution. But a too-small learning rate will make the model difficult to converge. In addition, the input size of the patch will also affect the performance of the network. In order to find the best hyper-parameter for the network, this paper explores the influence of input patch size on the accuracy under different learning rates. As shown in Figure 7, the experimental results are drawn into surface maps. On the four data sets, the surface maps show a convex shape, and the convex part is concentrated around a 9 × 9 patch and 0.001 learning rate. This shows that when the patch size is 9 × 9 and the learning rate is 0.001, the classification performance of the network is the best. Therefore, the patch size is set to 9 × 9 and the learning rate is set to 0.001 in CDC_MDAA.

3.2.2. Model Setting

In the overall framework of the model, two SPA_MDAA modules are selected as spatial attention modules and two SPE_MDAA modules are selected as spectral attention modules. In order to verify the advantages of this structure in CDC_MDAA, several groups of experiments were carried out on the more challenging IN. The experimental results are shown in Figure 8, where 1 S P E _ M D A A + 1 S P A _ M D A A represents the combination of one SPE_MDAA module and one SPA_MDAA module. By analogy, the experiment was set to 9 groups. By comparing the experimental results obtained under the combination of 2 S P E _ M D A A + 2 S P A _ M D A A , the network obtained the maximum OA value of 96.94%, the maximum KAPPA value of 96.51%, and the larger AA value of 94.31%. The results show that when two SPE_MDAA modules are selected as spectral attention modules and two SPA_MDAA modules are selected as spatial attention modules, the network can show the best classification performance.
In this part, the number of multi-scale heads is also compared. The experimental results are shown in Figure 9.
In Figure 9, spc_h represents the spectral attention head, and spa_h represents the spatial attention head. It can be seen from the experimental results that OA and KAPPA can obtain the best performance when 3 s p a _ h + 2 s p e _ h is selected. Therefore, the 3 s p a _ h + 2 s p e _ h structure is selected in the CDC_MDAA network.

3.3. Experimental Analysis

3.3.1. Effectiveness Analysis of the Proposed Module

In this part, a large number of ablation experiments have been performed to verify the effectiveness of the proposed CDC, SPA_MDAA and SPE_MDAA. The experimental results are shown in Table 5, Table 6 and Table 7. The effectiveness of CDC is analyzed in Table 5. It can be seen from Table 5 that, compared with the strategy without CDC, OA, AA, KAPPA of the strategy with CDC has increased by 4.23%, 0.29%, and 4.77%, respectively. Obviously, CDC can greatly improve the classification performance of the network. This is because CDC can realize cross-channel information interaction, and repeatedly use feature information through dense connection, which more effectively extract spatial features. The classification results of the ablation experiment on SPA_MDAA are shown in Table 6. It can be seen that, the classification performance of the network has been significantly improved after integrating SPA_MDAA into CDC_MDAA. Compared with the CDC_MDAA without SPA_MDAA, OA increases by 8.18%, AA increases by 9.07%, and KAPPA increases by 10.68%, which is fully prove the effectiveness of the proposed SPA_MDAA. Finally, the effectiveness of SPE_MDAA is analyzed in this paper, as shown in Table 7. Compared with CDC_MDAA without SPE_MDAA, the OA, AA, and KAPPA of CDC_MDAA with SPE_MDAA has increased by 5.49%, 2% and 3.96%, respectively. Therefore, SPE_MDAA has also greatly improved the classification performance of CDC_MDAA.

3.3.2. Convergence of Network

In order to verify the convergence of CDC_MDAA, the variation in the loss value during the process of training with the number of iterations and the variation in the accuracy with the number of iterations are provided, which are shown in Figure 10. On four different data sets, the training accuracy and verification accuracy of CDC_MDAA show an upward trend with the increase in the number of training iterations. The corresponding training loss and verification loss showed a downward trend. In addition, the training accuracy is very close to the verification accuracy, which has good fitting. It is worth noting that while the training loss value and the verification loss value continue to decline with the training, there is no significant fluctuation. The overall downward trend is smooth, which also shows that the network has good stability in convergence.

3.3.3. Comparison of Different Methods

To further verify the effectiveness and generalization of the proposed CDC_MDAA, this paper compares CDC_MDAA with some mainstream classification methods, including SVM [47], CDCNN [48], FDSSC [49], SSRN [50], DBMA, DBDA, DTAN [51], and FECNet [52]. The classification results of all methods on different data sets are shown in Table 8, Table 9, Table 10 and Table 11. First, from the perspective of evaluation indicators (OA, AA, KAPPA), compared with other methods, the classification accuracy of CDC_MDAA is always obviously higher than that of other methods. This demonstrates that CDC_MDAA can provide superior classification performance. In addition, from the perspective of network generalization, the proposed method can show stable classification performance on all four data sets. However, the classification performance of other networks on different data sets is uneven. For example, the classification performance of the DTAN network is good on the SV data set in Table 10 but its classification performance on the other three data sets is somewhat unsatisfactory. The proposed CDC_MDAA can always achieve the highest OA, AA, and KAPPA on four different data sets. This proves that CDC_MDAA has excellent generalization ability and can adapt to datasets in different scenarios. Finally, the training and testing times for different methods are also presented in Table 8, Table 9, Table 10 and Table 11. It can be seen that CDCNN has the shortest training and testing time on different datasets. This is because the structure of CDCNN is very simple and the network layer is shallow, which makes the classification accuracy of CDCNN very poor. However, the proposed method needs less runtime compared to the vast majority of methods while ensuring classification performance. This demonstrates the advantages of the proposed method in terms of network complexity.
The classification maps obtained by all networks are shown in Figure 11, Figure 12, Figure 13 and Figure 14. It can be seen that all methods can effectively classify hyperspectral images. However, compared with CDC_MDAA, the classification maps of other methods have more noise and more false classification. This is due to the relatively weak feature extraction ability of other methods and the inability to highlight important features. It is worth noting that CDC_MDAA can provide clearer boundaries than other networks on the four data sets and can distinguish different types of ground objects more clearly, which is closer to the ground truth. It benefits from the excellent feature extraction ability of the CDC module. Moreover, the difference processing of features by dual aggregated attention can highlight important features and enhance the discriminating ability of the network. Therefore, it has better classification performance of hyperspectral images.
The classification results of all methods with different training sample numbers on four data sets are shown in Figure 15. It can be seen from Figure 15a that no matter how many training samples are used in the IN, the CDC_MDAA network is superior to other networks. The advantages of CDC_MDAA are more prominent in the case of smaller training samples. For example, when the training sample is only 1% of the total sample, CDC_ MDAA can show far higher classification accuracy than other methods. For SV and UP with a large number of samples, CDC_ MDAA can also maintain its advantages. It is worth noting that on the KSC with a total sample size of only 5211, CDC_ MDAA can still achieve the best classification results. It is proved that the proposed method is more conducive to the classification of hyperspectral images with small samples. In addition, it can be seen from Figure 15 that the classification performance of other networks fluctuates greatly under different training sample numbers. However, the CDC_MDAA can show stable classification performance in all cases. This further proves the powerful generalization of CDC_ MDAA. For the classification of hyperspectral images, the CDC_ MDAA can provide superior classification performance, surpassing other current mainstream methods when the number of training samples is small.
In order to verify the feature extraction performance of the proposed method, this paper uses t-distributed stochastic neighbor embedding (T-SNE) [53] to visually analyze the feature maps extracted by different methods. As shown in Figure 16 and Figure 17, four more competitive methods (including DBDA, FECNet, FDSSC, and DTAN) are chosen to compare with CDC_MDAA on SV and UP. In general, for SV and UP, all methods can realize feature clustering. However, HSIC is a multi-classification problem, and simple clustering is unable to meet the requirements of high-performance classification. It can be seen from Figure 16 that the other four methods cannot clearly divide the adjacent classes on SV, shown by “Grapes-u” and “VIN-yard-v-t”. Compared with the other four methods, the method proposed in this paper can better distinguish the two classes. It proves CDC_ MDAA has excellent feature extraction capability. In addition, CDC_ MDAA enhances the separability of features by DAA, making it easier for the network to extract important features more conducive to classification and avoiding the interference of adjacent classes. The same conclusion can be reached on the UP dataset.

4. Conclusions

In this paper, a novel CDC_MDAA network is proposed, which can effectively classify hyperspectral images. The CDC_ MDAA first extracts spectral and spatial features through double branches, then spectral attention and spatial attention mechanisms are utilized to focus on the extracted spatial and spectral features, respectively. Then, a spatial spectral attention fusion method is followed. Specifically, on the spatial branch, a CDC method is proposed to extract spatial features, and a SPA_MDAA module is designed to focus on spatial features. On the spectral branch, after feature extraction, a SPE_MDAA module is constructed to focus on spectral features. Finally, the double branches are fused and classified. CDC_ MDAA can achieve high classification accuracy in the case of small samples. This provides a new idea to solve the small sample problem of hyperspectral image classification. A large number of experimental results show that CDC_ MDAA can provide classification performance that is superior to some state-of-the-art methods, and it has good generalization.

Author Contributions

Conceptualization, C.S.; Data curation, C.S. and H.W.; Formal analysis, L.W. and Z.J.; Methodology, C.S.; Software, H.W.; Validation, C.S. and H.W.; Writing—original draft, H.W.; Writing—review & editing, C.S. and L.W. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded in part by the National Natural Science Foundation of China (42271409, 62071084), in part by the Heilongjiang Science Foundation Project of China under Grant LH2021D022, and in part by the Fundamental Research Funds in Heilongjiang Provincial Universities of China under Grant 145209149.

Data Availability Statement

Data associated with this research are available online at http://www.ehu.eus/ccwintco/index.php/Hyperspectral_Remote_Sensing_Scenes (accessed on 11 March 2023).

Acknowledgments

We would like to thank the handling editor and the anonymous reviewers for their careful reading and helpful remarks.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Bioucas-Dias, J.M.; Plaza, A.; Camps-Valls, G.; Scheunders, P.; Nasrabadi, N.; Chanussot, J. Hyperspectral remote sensing data analysis and future challenges. IEEE Geosci. Remote Sens. Mag. 2013, 1, 6–36. [Google Scholar] [CrossRef]
  2. Landgrebe, D. Hyperspectral image data analysis. IEEE Signal Process. Mag. 2002, 19, 17–28. [Google Scholar] [CrossRef]
  3. Lacar, F.M.; Lewis, M.M.; Grierson, I.T. “Use of hyperspectral imagery for mapping grape varieties in the Barossa Valley, South Australia”, IGARSS 2001. Scanning the Present and Resolving the Future. In Proceedings of the IEEE 2001 International Geoscience and Remote Sensing Symposium (Cat. No.01CH37217), Sydney, NSW, Australia, 9–13 July 2001; Volume 6, pp. 2875–2877. [Google Scholar]
  4. Stuffler, T.; Förster, K.; Hofer, S.; Leipold, M.; Sang, B.; Kaufmann, H.; Penné, B.; Mueller, A.; Chlebek, C. Hyperspectral imaging an advanced instrument concept for the Enmap mission (environmental mapping and analysis programme). Acta Astronaut. 2009, 65, 1107–1112. [Google Scholar] [CrossRef]
  5. Malthus, T.J.; Mumby, P.J. Remote sensing of the coastal zone: An overview and priorities for future research. Int. J. Remote Sens. 2003, 24, 2805–2815. [Google Scholar] [CrossRef]
  6. Fauvel, M.; Tarabalka, Y.; Benediktsson, J.A.; Chanussot, J.; Tilton, J.C. Advances in spectral-spatial classification of hyperspectral images. Proc. IEEE 2013, 101, 652–675. [Google Scholar] [CrossRef]
  7. Samaniego, L.; Bardossy, A.; Schulz, K. Supervised classification of remotely sensed imagery using a modified k-NN technique. IEEE Trans. Geosci. Remote Sens. 2008, 46, 2112–2125. [Google Scholar] [CrossRef]
  8. Ediriwickrema, J.; Khorram, S. Hierarchical maximum-likelihood classification for improved accuracies. IEEE Trans. Geosci. Remote Sens. 1997, 35, 810–816. [Google Scholar] [CrossRef]
  9. Foody, G.M.; Mathur, A. A relative evaluation of multi-class image classification by support vector machines. IEEE Trans. Geosci. Remote Sens. 2004, 42, 1335–1343. [Google Scholar] [CrossRef]
  10. Prasad, S.; Bruce, L.M. Limitations of princinal components analysis for hyperspectral target recognition. IEEE Geosci. Remote Sens. Lett. 2008, 5, 625–629. [Google Scholar] [CrossRef]
  11. Benediktsson, J.A.; Chanussot, J.; Moon, W.M. Very high-resolution remote sensing: Challenges and opportunities [point of view]. Proc. IEEE 2012, 100, 1907–1910. [Google Scholar] [CrossRef]
  12. Chen, Y.S.; Zhao, X.; Jia, X.P. Spectral-spatial classification of hyperspectral data based on deep belief network. IEEE J. Sel. Top. Appl. Earth Obs. Remote Sens. 2015, 8, 2381–2392. [Google Scholar] [CrossRef]
  13. Sun, L.; Wu, Z.B.; Liu, J.J.; Xiao, L.; Wei, Z.H. Supervised spectral-spatial hyperspectral image classification with weighted Markov random fields. IEEE Trans. Geosci. Remote Sens. 2015, 53, 1490–1503. [Google Scholar] [CrossRef]
  14. Chen, Y.S.; Lin, Z.H.; Zhao, X.; Wang, G.; Gu, Y.F. Deep learning based classification of hyperspectral data. IEEE J. Sel. Top. IN Appl. Earth Obs. Remote Sens. 2014, 7, 2094–2107. [Google Scholar] [CrossRef]
  15. Yuan, Y.; Meng, X.; Sun, W.; Yang, G.; Wang, L.; Peng, J.; Wang, Y. Multi-Resolution Collaborative Fusion of SAR, Multispectral and Hyperspectral Images for Coastal Wetlands Mapping. Remote Sens. 2022, 14, 3492. [Google Scholar] [CrossRef]
  16. Sun, W.; Kai Liu Ren, G.; Liu, W.; Yang, G.; Meng, X.; Peng, J. A simple and effective spectral-spatial method for mapping large-scale coastal wetlands using China ZY1-02D satellite hyperspectral images. Int. J. Appl. Earth Obs. Geoinf. 2021, 104, 102572. [Google Scholar] [CrossRef]
  17. Yang, J.; Zhang, D.; Frangi, A.F.; Yang, J.Y. Two-dimensional PCA: A new approach to appearance-based face representation and recognition. IEEE Trans. Pattern Anal. Mach. Intell. 2004, 26, 131–137. [Google Scholar] [CrossRef]
  18. Li, W.; Wu, G.; Zhang, F.; Du, Q. Hyperspectral image classification using deep pixel-pair features. IEEE Trans. Geosci. Remote Sens. 2017, 55, 844–853. [Google Scholar] [CrossRef]
  19. Makantasis, K.; Karantzalos, K.; Doulamis, A.; Doulamis, N. Deep supervised learning for hyperspectral data classification through convolutional neural networks. In Proceedings of the 2015 IEEE International Geoscience and Remote Sensing Symposium (IGARSS), Milan, Italy, 26–31 July 2015; pp. 4959–4962. [Google Scholar]
  20. Shao, W.; Du, S. Spectral-spatial feature extraction for hyperspectral image classification: A dimension reduction and deep learning approach. IEEE Trans. Geosci. Remote Sens. 2016, 54, 4544–4554. [Google Scholar]
  21. Mei, S.; Ji, J.; Hou, J.; Li, X.; Du, Q. Learning sensor-specific spatial-spectral features of hyperspectral images via convolutional neural networks. IEEE Trans. Geosci. Remote Sens. 2017, 55, 4520–4533. [Google Scholar] [CrossRef]
  22. Yue, J.; Zhao, W.; Mao, S.; Liu, H. Spectral-spatial classification of hyperspectral images using deep convolutional neural networks. Remote Sens. Lett. 2015, 6, 468–477. [Google Scholar] [CrossRef]
  23. Lecun, Y.; Bengio, Y.; Hinton, G. Deep learning. Nature 2015, 521, 436. [Google Scholar] [CrossRef]
  24. Ghamisi, P.; Maggiori, E.; Li, S.; Souza, R.; Tarablaka, Y.; Moser, G.; De Giorgi, A.; Fang, L.; Chen, Y.; Chi, M.; et al. New frontiers IN spectral-spatial hyperspectral image classification: The latest advances based on mathematical morphology, Markov random fields, segmentation, sparse representation, and deep learning. IEEE Geosci. Remote Sens. Mag. 2018, 6, 10–43. [Google Scholar] [CrossRef]
  25. Chen, Y.; Jiang, H.; Li, C.; Jia, X.; Ghamisi, P. Deep feature extraction and classification of hyperspectral images based on convolutional neural networks. IEEE Trans. Geosci. Remote Sens. 2016, 54, 6232–6251. [Google Scholar] [CrossRef]
  26. He, K.; Zhang, X.; Ren, S.; Sun, J. Deep residual learning for image recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Las Vegas, NV, USA, 27–30 June 2016; pp. 770–778. [Google Scholar]
  27. Paoletti, M.E.; Haut, J.M.; Plaza, J.; Plaza, A. Deep&dense convolutional neural network for hyperspectral image classification. Remote Sens. 2018, 10, 1454. [Google Scholar]
  28. Yu, C.; Han, R.; Song, M.; Liu, C.; Chang, C.-I. Feedback Attention-Based Dense CNN for Hyperspectral Image Classification. IEEE Trans. Geosci. Remote Sens. 2022, 60, 5501916. [Google Scholar] [CrossRef]
  29. Zhao, C.; Qin, B.; Li, T.; Feng, S.; Yan, Y. Hyperspectral Image Classification Based on Dense Convolution and Conditional Random Field. In Proceedings of the 2021 IEEE International Geoscience and Remote Sensing Symposium IGARSS, Brussels, Belgium, 11–16 July 2021; pp. 3653–3656. [Google Scholar]
  30. Zhang, H.; Yu, H.; Xu, Z.; Zheng, K.; Gao, L. A Novel Classification Framework for Hyperspectral Image Classification Based on Multi-Scale Dense Network. In Proceedings of the 2021 IEEE International Geoscience and Remote Sensing Symposium IGARSS, Brussels, Belgium, 11–16 July 2021; pp. 2238–2241. [Google Scholar]
  31. Yang, G.; Gewali, U.B.; Ientilucci, E.; Gartley, M.; Monteiro, S.T. Dual-Channel Densenet for Hyperspectral Image Classification. In Proceedings of the IGARSS 2018—2018 IEEE International Geoscience and Remote Sensing Symposium, Valencia, Spain, 22–27 July 2018; pp. 2595–2598. [Google Scholar]
  32. Paoletti, M.E.; Haut, J.M.; Fernandez-Beltran, R.; Plaza, J.; Plaza, A.J.; Pla, F. Deep Pyramidal Residual Networks for Spectral–Spatial Hyperspectral Image Classification. IEEE Trans. Geosci. Remote Sens. 2019, 57, 740–754. [Google Scholar] [CrossRef]
  33. Pande, S.; Banerjee, B. Dimensionality Reduction Using 3D Residual Autoencoder for Hyperspectral Image Classification. In Proceedings of the IGARSS 2020—2020 IEEE International Geoscience and Remote Sensing Symposium, Waikoloa, HI, USA, 19–24 July 2020; pp. 2029–2032. [Google Scholar]
  34. Zhang, C.; Li, G.; Du, S. Multi-Scale Dense Networks for Hyperspectral Remote Sensing Image Classification. IEEE Trans. Geosci. Remote Sens. 2019, 57, 9201–9222. [Google Scholar] [CrossRef]
  35. Li, Z.; Wang, T.; Li, W.; Du, Q.; Wang, C.; Liu, C.; Shi, X. Deep Multilayer Fusion Dense Network for Hyperspectral Image Classification. IEEE J. Sel. Top. Appl. Earth Obs. Remote Sens. 2020, 13, 1258–1270. [Google Scholar] [CrossRef]
  36. Wang, X.; Tan, K.; Du, P.; Pan, C.; Ding, J. A Unified Multiscale Learning Framework for Hyperspectral Image Classification. IEEE Trans. Geosci. Remote Sens. 2022, 60, 4508319. [Google Scholar] [CrossRef]
  37. Haut, Z.M.; Paoletti, M.E.; Plaza, J.; Plaza, A.; Li, J. Visual attention-driven hyperspectral image classification. IEEE Trans. Geosci. Remote Sens. 2019, 57, 8065–8080. [Google Scholar] [CrossRef]
  38. Woo, S.; Park, J.; Lee, J.; Kweon, I. Cbam: Convolutional block attention module. In Proceedings of the European Conference on Computer Vision (ECCV), Amsterdam, The Netherlands, 8–16 October 2018; pp. 3–19. [Google Scholar]
  39. Sun, H.; Zheng, X.; Lu, X.; Wu, S. Spectral–spatial attention network for hyperspectral image classification. IEEE Trans. Geosci. Remote Sens. 2020, 58, 3232–3245. [Google Scholar] [CrossRef]
  40. Mei, X.; Pan, E.; Ma, Y.; Dai, X.; Huang, J.; Fan, F.; Du, Q.; Zheng, H.; Ma, J. Spectral–spatial attention networks for hyperspectral image classification. Remote Sens. 2019, 11, 963. [Google Scholar] [CrossRef]
  41. Hang, R.; Li, Z.; Liu, Q.; Ghamisi, P.; Bhattacharyya, S.S. Hyperspectral Image Classification with Attention-Aided CNNs. IEEE Trans. Geosci. Remote Sens. 2021, 59, 2281–2293. [Google Scholar] [CrossRef]
  42. Zheng, X.; Sun, H.; Lu, X.; Xie, W. Rotation-Invariant Attention Network for Hyperspectral Image Classification. IEEE Trans. Image Process. 2022, 31, 4251–4265. [Google Scholar] [CrossRef] [PubMed]
  43. Yang, K.; Sun, H.; Zou, C.; Lu, X. Cross-Attention Spectral–Spatial Network for Hyperspectral Image Classification. IEEE Trans. Geosci. Remote Sens. 2022, 60, 5518714. [Google Scholar] [CrossRef]
  44. Ma, W.; Yang, Q.; Wu, Y.; Zhao, W.; Zhang, X. Double-Branch Multi-Attention Mechanism Network for Hyperspectral Image Classification. Remote Sens. 2019, 11, 1307. [Google Scholar] [CrossRef]
  45. Fu, J.; Liu, J.; Tian, H.; Li, Y.; Bao, Y.; Fang, Z.; Lu, H. Dual attention network for scene segmentation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Long Beach, CA, USA, 15–20 June 2019; pp. 3146–3154. [Google Scholar]
  46. Liu, K.; Sun, W.; Shao, Y.; Liu, W.; Yang, G.; Meng, X.; Peng, J.; Mao, D.; Ren, K. Mapping Coastal Wetlands Using Transformer in Transformer Deep Network on China ZY1-02D Hyperspectral Satellite Images. IEEE J. Sel. Top. Appl. Earth Obs. Remote Sens. 2022, 15, 3891–3903. [Google Scholar] [CrossRef]
  47. Melgani, F.; Bruzzone, L. Classification of hyperspectral remote sensing images with support vector machines. IEEE Trans. Geosci. Remote Sens. 2004, 42, 1778–1790. [Google Scholar] [CrossRef]
  48. Lee, H.; Kwon, H. Going Deeper with Contextual CNN for Hyperspectral Image Classification. IEEE Trans. Image Process. 2017, 26, 4843–4855. [Google Scholar] [CrossRef]
  49. Wang, W.; Dou, S.; Jiang, Z.; Sun, L. A Fast Dense Spectral–Spatial Convolution Network Framework for Hyperspectral Images Classification. Remote Sens. 2018, 10, 1068. [Google Scholar] [CrossRef]
  50. Zhong, Z.; Li, J.; Luo, Z.; Chapman, M. Spectral–Spatial Residual Network for Hyperspectral Image Classification: A 3-D DeepLearning Framework. IEEE Trans. Geosci. Remote Sens. 2017, 56, 847–858. [Google Scholar] [CrossRef]
  51. Cui, Y.; Yu, Z.; Han, J.; Gao, S.; Wang, L. Dual-Trinle Attention Network for Hyperspectral Image Classification Using Limited Training Samples. IEEE Geosci. Remote Sens. Lett. 2022, 19, 5504705. [Google Scholar] [CrossRef]
  52. Shi, C.; Liao, D.; Zhang, T.; Wang, L. Hyperspectral Image Classification Based on Expansion Convolution Network. IEEE Trans. Geosci. Remote Sens. 2022, 60, 5528316. [Google Scholar] [CrossRef]
  53. Van der Maaten, L.; Hinton, G. Visualizing data using t-SNE. J. Mach. Learn. Res. 2008, 9, 2579–2605. [Google Scholar]
Figure 1. The overall structure of CDC_MDAA.
Figure 1. The overall structure of CDC_MDAA.
Remotesensing 15 02367 g001
Figure 2. The CDC module.
Figure 2. The CDC module.
Remotesensing 15 02367 g002
Figure 3. The SPA_ DAA module.
Figure 3. The SPA_ DAA module.
Remotesensing 15 02367 g003
Figure 4. The SPE_ DAA module.
Figure 4. The SPE_ DAA module.
Remotesensing 15 02367 g004
Figure 5. Multi-scale dual aggregated attention mechanism.
Figure 5. Multi-scale dual aggregated attention mechanism.
Remotesensing 15 02367 g005
Figure 6. Pseudo-color maps of different data sets. (a) Pseudo-color map of IN; (b) pseudo-color map of SV; (c) pseudo-color map of UP; (d) pseudo-color map of KSC.
Figure 6. Pseudo-color maps of different data sets. (a) Pseudo-color map of IN; (b) pseudo-color map of SV; (c) pseudo-color map of UP; (d) pseudo-color map of KSC.
Remotesensing 15 02367 g006
Figure 7. Effect of input patch size on accuracy at different learning rate. (a) IN, (b) SV, (c) UP, (d) KSC.
Figure 7. Effect of input patch size on accuracy at different learning rate. (a) IN, (b) SV, (c) UP, (d) KSC.
Remotesensing 15 02367 g007
Figure 8. Classification accuracy of different combinations of the SPA_MDAA and the SPE_MDAA in IN.
Figure 8. Classification accuracy of different combinations of the SPA_MDAA and the SPE_MDAA in IN.
Remotesensing 15 02367 g008
Figure 9. Classification accuracy of CDC_MDAA with different number of headers on IN dataset.
Figure 9. Classification accuracy of CDC_MDAA with different number of headers on IN dataset.
Remotesensing 15 02367 g009
Figure 10. (a) training loss, training accuracy, verification loss, and verification accuracy on IN dataset, (b) training loss, training accuracy, verification loss, and verification accuracy on UP dataset, (c) training loss, training accuracy, verification loss, and verification accuracy on SV dataset, (d) training loss, training accuracy, verification loss, and verification accuracy on KSC dataset.
Figure 10. (a) training loss, training accuracy, verification loss, and verification accuracy on IN dataset, (b) training loss, training accuracy, verification loss, and verification accuracy on UP dataset, (c) training loss, training accuracy, verification loss, and verification accuracy on SV dataset, (d) training loss, training accuracy, verification loss, and verification accuracy on KSC dataset.
Remotesensing 15 02367 g010
Figure 11. Classification maps on IN dataset, (a) ground truth, (b) SVM, (c) SSRN, (d) FDSSC, (e) CDCNN, (f) DBMA, (g) DBDA, (h) DTAN, (i) FECNet, (j) proposed.
Figure 11. Classification maps on IN dataset, (a) ground truth, (b) SVM, (c) SSRN, (d) FDSSC, (e) CDCNN, (f) DBMA, (g) DBDA, (h) DTAN, (i) FECNet, (j) proposed.
Remotesensing 15 02367 g011
Figure 12. Classification maps on UP dataset, (a) ground truth, (b) SVM, (c) SSRN, (d) FDSSC, (e) CDCNN, (f) DBMA, (g) DBDA, (h) DTAN, (i) FECNet, (j) proposed.
Figure 12. Classification maps on UP dataset, (a) ground truth, (b) SVM, (c) SSRN, (d) FDSSC, (e) CDCNN, (f) DBMA, (g) DBDA, (h) DTAN, (i) FECNet, (j) proposed.
Remotesensing 15 02367 g012
Figure 13. Classification maps on SV dataset, (a) ground truth, (b) SVM, (c) SSRN, (d) FDSSC, (e) CDCNN, (f) DBMA, (g) DBDA, (h) DTAN, (i) FECNet, (j) proposed.
Figure 13. Classification maps on SV dataset, (a) ground truth, (b) SVM, (c) SSRN, (d) FDSSC, (e) CDCNN, (f) DBMA, (g) DBDA, (h) DTAN, (i) FECNet, (j) proposed.
Remotesensing 15 02367 g013
Figure 14. Classification maps on KSC dataset, (a) ground truth, (b) SVM, (c) SSRN, (d) FDSSC, (e) CDCNN, (f) DBMA, (g) DBDA, (h) DTAN, (i) FECNet, (j) proposed.
Figure 14. Classification maps on KSC dataset, (a) ground truth, (b) SVM, (c) SSRN, (d) FDSSC, (e) CDCNN, (f) DBMA, (g) DBDA, (h) DTAN, (i) FECNet, (j) proposed.
Remotesensing 15 02367 g014
Figure 15. Classification results of all methods with different number of training samples on four data sets. (a) IN, (b) KSC dataset, (c) SV, (d) UP.
Figure 15. Classification results of all methods with different number of training samples on four data sets. (a) IN, (b) KSC dataset, (c) SV, (d) UP.
Remotesensing 15 02367 g015
Figure 16. Visualization of feature separability for different methods on SV. (a) DBDA, (b) FECNet, (c) FDSSC, (d) DTAN, (e) Proposed.
Figure 16. Visualization of feature separability for different methods on SV. (a) DBDA, (b) FECNet, (c) FDSSC, (d) DTAN, (e) Proposed.
Remotesensing 15 02367 g016
Figure 17. Visualization of feature separability for different methods on UP. (a) DBDA, (b) FECNet, (c) FDSSC, (d) DTAN, (e) Proposed.
Figure 17. Visualization of feature separability for different methods on UP. (a) DBDA, (b) FECNet, (c) FDSSC, (d) DTAN, (e) Proposed.
Remotesensing 15 02367 g017
Table 1. Ground object classes and sample numbers of IN.
Table 1. Ground object classes and sample numbers of IN.
Remotesensing 15 02367 i001
Ground truth
NO.LengendNameSample
1Remotesensing 15 02367 i002Alfafa46
2Remotesensing 15 02367 i003Corn–n1428
3Remotesensing 15 02367 i004Corn–m830
4Remotesensing 15 02367 i005Corn237
5Remotesensing 15 02367 i006Grass–p483
6Remotesensing 15 02367 i007Grass–t730
7Remotesensing 15 02367 i008Grass–p–m28
8Remotesensing 15 02367 i009Hay-w478
9Remotesensing 15 02367 i010Oats20
10Remotesensing 15 02367 i011Soybean-n972
11Remotesensing 15 02367 i012Soybean-m2455
12Remotesensing 15 02367 i013Soybean-c593
13Remotesensing 15 02367 i014Wheat205
14Remotesensing 15 02367 i015Woods1265
15Remotesensing 15 02367 i016Buildings-G-T386
16Remotesensing 15 02367 i017Stone-S-T93
Table 2. Ground object classes and sample numbers of UP.
Table 2. Ground object classes and sample numbers of UP.
Remotesensing 15 02367 i018
Ground truth
NO.LengendNameSample
1Remotesensing 15 02367 i019Asphalt6631
2Remotesensing 15 02367 i020Meadows18,649
3Remotesensing 15 02367 i021Gravel2099
4Remotesensing 15 02367 i022Trees3064
5Remotesensing 15 02367 i023Painted m s1345
6Remotesensing 15 02367 i024B Soil5029
7Remotesensing 15 02367 i025Bitumen1330
8Remotesensing 15 02367 i026S-B Bricks3682
9Remotesensing 15 02367 i027Shadows947
Table 3. Ground object classes and sample numbers of SV.
Table 3. Ground object classes and sample numbers of SV.
Remotesensing 15 02367 i028
Ground truth
NO.LengendNameSample
1Remotesensing 15 02367 i029weeds_12009
2Remotesensing 15 02367 i030weeds_23726
3Remotesensing 15 02367 i031Fallow1976
4Remotesensing 15 02367 i032Fallow-r-p1394
5Remotesensing 15 02367 i033Fallow-s2678
6Remotesensing 15 02367 i034Stubble3959
7Remotesensing 15 02367 i035Celery3579
8Remotesensing 15 02367 i036Grapes-u11,271
9Remotesensing 15 02367 i037Soil-v-y-d6203
10Remotesensing 15 02367 i038C-s-g-weeds3278
11Remotesensing 15 02367 i039L-r-4wk1068
12Remotesensing 15 02367 i040L-r-5wk1927
13Remotesensing 15 02367 i041L-r-6wk916
14Remotesensing 15 02367 i042L-r-7wk1070
15Remotesensing 15 02367 i043VIN-yard-u7268
16Remotesensing 15 02367 i044VIN-yard-v-t1807
Table 4. Ground object classes and sample numbers of KSC.
Table 4. Ground object classes and sample numbers of KSC.
Remotesensing 15 02367 i045
Ground truth
NO.LengendNameSample
1Remotesensing 15 02367 i046Scrub761
2Remotesensing 15 02367 i047W swamp243
3Remotesensing 15 02367 i048CP hammock256
4Remotesensing 15 02367 i049Slash pine252
5Remotesensing 15 02367 i050Oak/Broadleaf161
6Remotesensing 15 02367 i051Hardwood229
7Remotesensing 15 02367 i052Grass-p-m105
8Remotesensing 15 02367 i053G marsh431
9Remotesensing 15 02367 i054Sp marsh520
10Remotesensing 15 02367 i055C marsh404
11Remotesensing 15 02367 i056Sa marsh419
12Remotesensing 15 02367 i057Mud flats503
13Remotesensing 15 02367 i058Water927
Table 5. Effectiveness analysis of CDC.
Table 5. Effectiveness analysis of CDC.
STRATEGYOAAAKAPPA
Without CDC92.71%94.02%91.74%
With CDC96.94%94.31%96.51%
Table 6. Effectiveness analysis of SPA_MDAA.
Table 6. Effectiveness analysis of SPA_MDAA.
STRATEGYOAAAKAPPA
Without SPA_MDAA88.76%85.24%85.83%
With SPA_MDAA96.94%94.31%96.51%
Table 7. Effectiveness analysis of SPE_MDAA.
Table 7. Effectiveness analysis of SPE_MDAA.
STRATEGYOAAAKAPPA
Without SPE_MDAA91.45%92.31%92.55%
With SPE_MDAA96.94%94.31%96.51%
Table 8. Classification results of different methods on IN dataset.
Table 8. Classification results of different methods on IN dataset.
ClassSVMSSRNFDSSCCDCNNDBMADBDADTANFECNetProposed
136.6281.0385.7224.6777.3399.0630.0099.06100.0
255.4887.4893.3549.9378.6892.7493.8796.6398.84
362.3376.3589.5131.9376.1292.2895.1293.2598.69
442.5373.8893.6833.5275.1194.4694.5595.6195.41
585.0584.2892.6171.4794.9199.1094.6398.55100.0
683.3192.6898.3173.4293.9998.2899.2197.5196.89
759.8679.0682.4636.2944.3366.5750.0073.1462.50
889.6796.8597.5478.0897.4999.2492.7399.84100.0
939.2773.5771.0742.1445.6693.6420.0079.7184.21
1062.3184.4589.3041.7177.2793.7792.5090.0989.49
1164.7286.9593.9755.6783.8993.8393.5596.1198.97
1250.5483.3188.2527.6877.6590.6589.1293.2095.85
1386.7398.8399.5367.8896.7497.4899.8998.34100.0
1488.6795.1395.8276.3993.4197.6995.3197.2895.87
1561.8188.5892.4847.3076.8393.7993.5495.1196.75
1698.6696.5298.2265.6792.3393.6793.2197.2695.45
OA(%)68.7686.6892.3759.1982.3892.2693.4795.4796.94
AA(%)66.7286.1891.3651.4880.1192.9081.6693.7994.31
K A P P A × 100 63.9884.7691.300.78179.8691.2492.4894.8396.51
Trian time——619.8 s1414.0 s35.6 s279.5 s280.1 s112.5 s340.2 s143.3 s
Test time——4.68 s9.88 s1.8 s16.3 s16.4 s10.2 s15.9 s9.3 s
Table 9. Classification results of different methods on UP dataset.
Table 9. Classification results of different methods on UP dataset.
ClassSVMSSRNFDSSCCDCNNDBMADBDADTANFECNetProposed
181.2693.2284.3079.8889.4190.7763.8796.7797.91
284.5293.7595.4786.6694.3498.0795.5999.2099.40
356.5664.9780.5832.7484.9990.0483.6896.5698.77
494.3494.6998.1384.8896.5897.9697.0397.8798.17
595.3897.6999.2194.7798.0698.6796.4397.3899.92
680.6693.1492.3671.5494.6098.8598.1097.7298.30
749.1373.0669.3531.7793.1896.9519.1896.50100.0
873.1579.9873.3665.5476.6187.6581.8287.3495.29
997.9398.7197.3973.4091.4597.8150.0098.9899.46
OA82.0689.1290.7180.6990.9895.3286.3696.9698.59
AA79.2187.6987.9169.0291.0295.2076.1996.4898.58
K A P P A × 100 75.4385.4487.3873.4587.8793.7781.5295.9798.13
Trian time——401.5 s933.8 s26.0 s82.4 s83.0 s54.9 s140.8 s76.9 s
Test time——12.3 s25.2 s7.4 s39.4 s39.8 s45.6 s41.1 s6.9 s
Table 10. Classification results of different methods on SV dataset.
Table 10. Classification results of different methods on SV dataset.
ClassSVMSSRNFDSSCCDCNNDBMADBDADTANFECNetProposed
199.4299.5399.9668.1599.9899.6899.45100.0100.0
298.7999.5398.9073.6399.2098.8899.6199.9599.57
387.9894.2296.9175.5697.6597.9499.3998.4195.18
497.5496.9894.5492.7992.6494.8992.6595.8595.17
595.0998.8499.1692.9098.7998.4099.8199.6499.77
699.8999.8799.8296.2598.4999.9299.5399.89100.0
795.5998.2198.1693.7698.4198.4693.1099.40100.0
871.6686.2091.7274.0390.7290.8789.9894.7995.75
998.0899.1499.5394.7299.6199.2499.6299.6799.48
1085.3997.9997.6176.6592.2397.6299.2998.0197.45
1186.9794.4895.7069.3293.1094.9294.9097.1895.15
1294.2098.5398.1680.4399.2499.5499.5999.55100.0
1393.4398.2898.3569.5598.5699.7699.5299.94100.0
1492.0396.0596.2187.2296.5696.6688.1696.5197.15
1571.0281.0489.0763.7188.2790.4892.2593.6896.13
1697.8199.4899.7798.3899.6899.8399.98100.0100.0
OA(%)86.9792.5195.9180.6794.7795.7496.2597.4997.88
AA(%)91.5596.3297.4981.6996.4597.4197.3698.0198.17
K A P P A × 100 85.4591.6795.4578.3594.1895.2695.8697.2197.63
Trian time——531.9 s1212.3 s59.7 s246.1 s247.2 s130.7 s310.5 s182.0 s
Test time——27.4 s56.1 s9.5 s91.792.1 s58.6 s96.9 s9.6 s
Table 11. Classification results of different methods on KSC dataset.
Table 11. Classification results of different methods on KSC dataset.
ClassSVMSSRNFDSSCCDCNNDBMADBDADTANFECNetProposed
192.4298.6799.5694.5399.9699.9150.7099.97100.0
287.1493.4994.6972.9192.0696.9743.0798.2899.09
372.4691.1085.9953.6487.0193.4014.4694.06100.0
454.4581.7382.9242.4076.5683.9769.2588.9590.65
564.1077.4574.3225.0070.6079.760.00094.2697.77
665.2395.8596.6764.4593.2297.6513.2597.94100.0
775.4991.9696.4849.7782.7392.7320.0097.9493.62
887.3398.2499.3971.6395.3199.5773.3399.999.74
987.9498.1199.9180.6896.7699.9155.2998.11100.0
1097.0199.81100.081.9298.4099.8987.17100.0100.0
1196.0299.0699.0798.4999.0199.46100.098.93100.0
1293.7699.7699.7392.5699.0199.4189.8099.6299.34
1399.72100.0100.099.10100.0100.099.07100.0100.0
OA(%)87.9596.3596.4281.2495.0797.5570.3298.1499.19
AA(%)82.5494.2694.5271.3192.6895.5955.0397.5398.48
K A P P A × 100 86.5995.9396.0179.0894.5197.2766.2497.9399.10
Trian time——504.7 s1159.6 s30.49 s196.5 s198.5 s86.4 s259.7 s166.9 s
Test time——2.05 s4.34 s0.88 s7.2 s7.2 s5.0 s7.3 s3.6 s
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Wu, H.; Shi, C.; Wang, L.; Jin, Z. A Cross-Channel Dense Connection and Multi-Scale Dual Aggregated Attention Network for Hyperspectral Image Classification. Remote Sens. 2023, 15, 2367. https://doi.org/10.3390/rs15092367

AMA Style

Wu H, Shi C, Wang L, Jin Z. A Cross-Channel Dense Connection and Multi-Scale Dual Aggregated Attention Network for Hyperspectral Image Classification. Remote Sensing. 2023; 15(9):2367. https://doi.org/10.3390/rs15092367

Chicago/Turabian Style

Wu, Haiyang, Cuiping Shi, Liguo Wang, and Zhan Jin. 2023. "A Cross-Channel Dense Connection and Multi-Scale Dual Aggregated Attention Network for Hyperspectral Image Classification" Remote Sensing 15, no. 9: 2367. https://doi.org/10.3390/rs15092367

APA Style

Wu, H., Shi, C., Wang, L., & Jin, Z. (2023). A Cross-Channel Dense Connection and Multi-Scale Dual Aggregated Attention Network for Hyperspectral Image Classification. Remote Sensing, 15(9), 2367. https://doi.org/10.3390/rs15092367

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop