Cascaded Recurrent Neural Networks for Hyperspectral Image Classification
Renlong Hang, Qingshan Liu, Danfeng Hong, and Pedram Ghamisi

TL;DR
This paper introduces a cascaded RNN model with GRUs for hyperspectral image classification, effectively capturing spectral redundancy and complementarity, and extends it with convolutional layers to incorporate spatial information, achieving superior results.
Contribution
The paper proposes a novel cascaded RNN architecture with strategies to enhance spectral feature learning and extends it with convolutional layers for spectral-spatial analysis, improving classification performance.
Findings
The cascaded RNN model outperforms existing methods on hyperspectral datasets.
Incorporating convolutional layers enhances spectral-spatial classification accuracy.
The proposed strategies effectively reduce spectral redundancy and exploit complementary information.
Abstract
By considering the spectral signature as a sequence, recurrent neural networks (RNNs) have been successfully used to learn discriminative features from hyperspectral images (HSIs) recently. However, most of these models only input the whole spectral bands into RNNs directly, which may not fully explore the specific properties of HSIs. In this paper, we propose a cascaded RNN model using gated recurrent units (GRUs) to explore the redundant and complementary information of HSIs. It mainly consists of two RNN layers. The first RNN layer is used to eliminate redundant information between adjacent spectral bands, while the second RNN layer aims to learn the complementary information from non-adjacent spectral bands. To improve the discriminative ability of the learned features, we design two strategies for the proposed model. Besides, considering the rich spatial information contained in…
| Class No. | Class Name | Training | Test |
|---|---|---|---|
| 1 | Corn-notill | 50 | 1384 |
| 2 | Corn-mintill | 50 | 784 |
| 3 | Corn | 50 | 184 |
| 4 | Grass-pasture | 50 | 447 |
| 5 | Grass-trees | 50 | 697 |
| 6 | Hay-windrowed | 50 | 439 |
| 7 | Soybean-notill | 50 | 918 |
| 8 | Soybean-mintill | 50 | 2418 |
| 9 | Soybean-clean | 50 | 564 |
| 10 | Wheat | 50 | 162 |
| 11 | Woods | 50 | 1244 |
| 12 | Building-grass-trees | 50 | 330 |
| 13 | Stone-steel-towers | 50 | 45 |
| 14 | Alfalfa | 15 | 39 |
| 15 | Grass-pasture-mowed | 15 | 11 |
| 16 | Oats | 15 | 5 |
| - | Total | 695 | 9671 |
| Class No. | Class Name | Training | Test |
|---|---|---|---|
| 1 | Asphalt | 548 | 6631 |
| 2 | Meadows | 540 | 18649 |
| 3 | Gravel | 392 | 2099 |
| 4 | Trees | 524 | 3064 |
| 5 | Metal sheets | 265 | 1345 |
| 6 | Bare Soil | 532 | 5029 |
| 7 | Bitumen | 375 | 1330 |
| 8 | Bricks | 514 | 3682 |
| 9 | Shadows | 231 | 947 |
| - | Total | 3921 | 42776 |
| Class No. | SVM | 1D-CNN | RNN | CasRNN | CasRNN-F | CasRNN-O | 2D-CNN | SSCasRNN |
|---|---|---|---|---|---|---|---|---|
| 1 | 64.31 | 61.34 | 64.74 | 68.35 | 68.93 | 68.21 | 82.51 | 86.99 |
| 2 | 70.92 | 60.33 | 61.35 | 64.8 | 67.6 | 67.35 | 88.14 | 98.72 |
| 3 | 84.78 | 80.43 | 74.46 | 77.17 | 83.7 | 85.87 | 100 | 100 |
| 4 | 91.05 | 89.04 | 83.45 | 91.50 | 90.60 | 89.93 | 94.85 | 94.41 |
| 5 | 85.94 | 90.53 | 77.04 | 79.34 | 80.49 | 80.92 | 85.80 | 97.42 |
| 6 | 93.62 | 96.13 | 87.70 | 92.03 | 92.94 | 92.94 | 99.77 | 100 |
| 7 | 69.17 | 72.11 | 76.03 | 74.84 | 78.54 | 79.30 | 82.35 | 87.15 |
| 8 | 52.90 | 54.47 | 60.79 | 67.41 | 67.49 | 66.91 | 73.86 | 85.98 |
| 9 | 76.60 | 75.71 | 61.17 | 65.60 | 67.02 | 65.43 | 86.00 | 87.23 |
| 10 | 97.53 | 99.83 | 93.21 | 95.06 | 96.91 | 98.15 | 100 | 100 |
| 11 | 77.49 | 80.87 | 81.67 | 83.28 | 90.03 | 86.09 | 94.53 | 97.51 |
| 12 | 73.33 | 78.48 | 55.45 | 54.85 | 67.88 | 54.55 | 97.27 | 99.70 |
| 13 | 100 | 91.11 | 86.67 | 93.33 | 95.56 | 93.33 | 100 | 100 |
| 14 | 87.18 | 94.87 | 69.23 | 76.92 | 84.61 | 76.92 | 97.44 | 100 |
| 15 | 90.91 | 90.91 | 90.91 | 90.91 | 90.91 | 90.91 | 100 | 100 |
| 16 | 100 | 100 | 80.00 | 100 | 100 | 80 | 100 | 100 |
| OA | 70.55 | 70.79 | 69.82 | 73.49 | 75.85 | 74.60 | 85.43 | 91.79 |
| AA | 82.23 | 82.23 | 75.24 | 79.71 | 82.70 | 79.80 | 92.66 | 95.94 |
| Kappa | 66.90 | 67.07 | 65.87 | 69.91 | 72.57 | 71.19 | 83.49 | 90.62 |
| Class No. | SVM | 1D-CNN | RNN | CasRNN | CasRNN-F | CasRNN-O | 2D-CNN | SSCasRNN |
|---|---|---|---|---|---|---|---|---|
| 1 | 84.74 | 80.94 | 81.51 | 82.34 | 83.56 | 83.52 | 77.39 | 89.82 |
| 2 | 64.50 | 70.37 | 62.58 | 67.13 | 70.65 | 71.37 | 98.89 | 96.06 |
| 3 | 72.56 | 77.32 | 64.65 | 60.51 | 68.75 | 64.51 | 56.74 | 78.89 |
| 4 | 97.13 | 85.93 | 98.89 | 98.63 | 98.11 | 98.43 | 92.75 | 95.89 |
| 5 | 99.55 | 99.70 | 99.26 | 99.41 | 99.55 | 99.33 | 99.78 | 100 |
| 6 | 93.30 | 93.26 | 88.90 | 84.97 | 88.29 | 89.08 | 47.27 | 57.67 |
| 7 | 91.28 | 95.41 | 92.63 | 90.60 | 76.54 | 91.13 | 80.08 | 80.53 |
| 8 | 91.99 | 84.47 | 91.04 | 92.23 | 86.04 | 93.54 | 96.69 | 96.80 |
| 9 | 95.56 | 92.08 | 95.35 | 94.40 | 95.35 | 94.72 | 96.30 | 95.99 |
| OA | 78.75 | 79.55 | 76.58 | 78.03 | 79.56 | 80.86 | 86.18 | 90.30 |
| AA | 87.85 | 86.61 | 86.09 | 85.58 | 85.21 | 87.29 | 82.88 | 87.97 |
| Kappa | 73.62 | 74.28 | 71.02 | 72.55 | 74.31 | 75.93 | 81.22 | 86.26 |
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Cascaded Recurrent Neural Networks for Hyperspectral Image Classification
Renlong Hang, , Qingshan Liu, ,
Danfeng Hong, and Pedram Ghamisi This work was supported in part by the Natural Science Foundation of China under Grants 61532009 and 61825601, in part by the Natural Science Foundation of Jiangsu Province, China, under Grant BK20180786. (Corresponding author: Qingshan Liu.) R. Hang and Q. Liu are with the Jiangsu Key Laboratory of Big Data Analysis Technology, the School of Automation, Nanjing University of Information Science and Technology, Nanjing 210044, China (renlong_hang163.com, qsliunuist.edu.cn). D. Hong is with the Remote Sensing Technology Institute (IMF), German Aerospace Center (DLR), 82234 Wessling, Germany, and Signal Processing in Earth Observation (SiPEO), Technical University of Munich (TUM), 80333 Munich, Germany(e-mail: [email protected]). P. Ghamisi is with the Helmholtz-Zentrum Dresden-Rossendorf (HZDR), Helmholtz Institute Freiberg for Resource Technology (HIF), Exploration, D-09599 Freiberg, Germany (e-mail: [email protected]).
Abstract
This paper has been accepted by IEEE Transactions on Geoscience and Remote Sensing. By considering the spectral signature as a sequence, recurrent neural networks (RNNs) have been successfully used to learn discriminative features from hyperspectral images (HSIs) recently. However, most of these models only input the whole spectral bands into RNNs directly, which may not fully explore the specific properties of HSIs. In this paper, we propose a cascaded RNN model using gated recurrent units (GRUs) to explore the redundant and complementary information of HSIs. It mainly consists of two RNN layers. The first RNN layer is used to eliminate redundant information between adjacent spectral bands, while the second RNN layer aims to learn the complementary information from non-adjacent spectral bands. To improve the discriminative ability of the learned features, we design two strategies for the proposed model. Besides, considering the rich spatial information contained in HSIs, we further extend the proposed model to its spectral-spatial counterpart by incorporating some convolutional layers. To test the effectiveness of our proposed models, we conduct experiments on two widely used HSIs. The experimental results show that our proposed models can achieve better results than the compared models.
Index Terms:
Recurrent neural network (RNN), gated recurrent unit (GRU), spectral feature, spectral-spatial feature, hyperspectral image (HSI) classification.
I Introduction
With the development of imaging technology, current hyperspectral sensors can fully portray the surface of the Earth using hundreds of continuous and narrow spectral bands, ranging from the visible spectrum to the short-wave infrared spectrum. The generated hyperspectral image (HSI) is often considered as a three-dimensional cube. The first two are spatial dimensions, which record the locations of each object. The third one is spectral dimension, which captures the spectral signature (reflective or emissive properties) of each material in different bands along the electromagnetic spectrum [1]. Using such rich information, HSIs have been widely applied to various applications, such as land cover/land use classification, precision agriculture, and change detection. For these applications, one basic but important procedure is HSI classification, whose goal is to assign candidate class labels to each pixel.
In order to acquire accurate classification results, numerous methods have been proposed. For example, one can directly consider the rich spectral signature as features and feed them into advanced classifiers, such as support vector machine (SVM) [2], random forest [3] and extreme learning machine [4]. However, due to the dense spectral sampling of HSIs, there may exist some redundant information among adjacent spectral bands. This easily leads to the so-called curse of dimensionality (the Hughes effect) which causes a sudden drop in classification accuracy when there is no balance between the high number of spectral channels and a limited number of training samples. Therefore, a large number of works were proposed to mine discriminative features from the high-dimensional spectral signature [5]. Popular models include principle component analysis (PCA), linear discriminant analysis (LDA) [6, 7, 8], and graph embedding [9, 10, 11]. Besides, representation-based models have also been employed to HSI classification in recent years. In [12] and [13], sparse representation was proposed to learn discriminative features from HSIs. Similarly, collaborative representation was also widely explored [14],[15]. In these models, an input spectral signature is usually represented by a linear combination of atoms from a dictionary, and the classification result can be derived from the reconstructed residual without needing to train extra classifiers, which often costs much time.
Although the aforementioned models have demonstrated their effectiveness in the field of HSI classification, there still exist some drawbacks to address. For the traditional feature extraction models, we need to pre-define a mining criterion (e.g., maximizing the between-class scatter matrix in LDA), which heavily depends on the domain knowledge and experience of experts. For the representation-based models, their goal is to reconstruct the input signal, leading to sub-optimal representation for classification. Additionally, all of them can be considered as shallow-layer models, which limit their potentials to learn high-level semantic features. Recently, deep learning [16],[17], a very hot research topic in machine learning, has shown its huge superiority in most fields of computer vision [18, 19, 20, 21] and natural language processing [22],[23]. The goal of deep learning is to learn nonlinear, high-level semantic features from data in a hierarchical manner.
Due to the effects of multi-path scattering and the heterogeneity of sub-pixel constituents, HSI often lies in a nonlinear and complex feature space. Deep learning can be naturally adopted to deal with this issue [24],[25]. In the past few years, many deep learning models were successfully applied to HSI classification. For example, in [26, 27, 28], the autoencoder model has been used to learn deep features from high-dimensional spectral signature directly. Similar to autoencoder, deep belief network was also explored to extract spectral features [29, 30, 31]. However, both of them belong to fully-connected networks, which contain large numbers of parameters to train. Different from them, convolutional neural networks (CNNs) have local connection and weight sharing properties, thus largely reducing the number of training parameters [32, 33, 34]. In [35], Hu et al. proposed to use one-dimensional CNN to learn and represent the spectral information. This model is comprised of an input layer, a convolutional layer, a pooling layer, a fully-connected layer and an output layer. The whole model is trained in an end-to-end manner, thus achieving satisfying results for HSI classification.
Besides spectral information, HSIs also have rich spatial information. How to combine them together has been an active research topic in the field of HSI classification [36],[37]. One potential method is to extend the spectral classification model into its spectral-spatial counterpart. For instance, in [38, 39, 40], a three-dimensional CNN was employed to spectral-spatial classification of HSIs. However, due to the simultaneous convolution operators in both spectral domain and spatial domain, the computational complexity is dramatically increased. In addition, the number of trainable parameters in three-dimensional CNNs is also a problem. In order to perform three-dimensional convolution, the dimensionality of the input and the dimensionality of the kernel (filter) should be equal. This heavily increases the number of parameters. Another candidate method for spectral-spatial classification is the one based on two-branch networks. One branch is for spectral classification and the other one for spatial classification. In [41, 42, 43], one-dimensional CNN or autoencoder was used to learn spectral features and two-dimensional CNN was designed to learn spatial features. These two features are then integrated together via feature-level fusion or decision-level fusion. For two-dimensional CNNs, only a few principal components were extracted and used as inputs, thus reducing the computational consuming compared to three-dimensional CNNs.
Most of existing models can be considered as vector-based methodologies. Recently, a few works attempted to regard HSIs as sequential data, so recurrent neural networks (RNNs) were naturally used to learn features. In [44], Wu et.al proposed using RNN to extract spectral features from HSIs. In [45] and [46], a variant of RNN using long short-term memory (LSTM) units was designed to learn spectral-spatial features from HSIs. In [47], another variant of RNN using gated recurrent units (GRUs) was employed. Compared to the widely explored CNN models, RNNs have many superiorities. For example, the key component of CNNs is the convolutional operator. Due to the kernel size limitations of it, one-dimensional CNNs can only learn the local spectral dependency while easily ignoring the effects of non-adjacent spectral bands. Different from them, RNNs, especially using GRU or LSTM, often input spectral bands one by one via recurrent operators, thus capturing the relationship from the whole spectral bands. Besides, RNNs often have smaller numbers of parameters to train than CNNs, so they will be more efficient in the training and inferring phases.
Benefiting from its powerful learning ability from sequential data, current RNN-related models often simply input the whole spectral bands to networks, which may not fully explore the redundant and complementary properties of HSIs. The redundant information between adjacent spectral bands will increase the computational burden of RNNs without improving the classification results. Sometimes such redundancy may reduce the classification accuracy since it increases within-class variances and decreases between-class variances in the feature space. Besides, it may also increase the difficulties in learning complementary information. To address these issues, we propose a cascaded RNN model using gated recurrent units (GRUs) in this paper. This model mainly consists of two RNN layers. The first RNN layer focuses on reducing the redundant information of adjacent spectral bands. These reduced information are then fed into the second RNN layer to learn their complementary features. Besides, in order to improve the discriminative ability of the learned features, we design two strategies for the proposed model. Finally, we also extend the proposed model to its spectral-spatial version by incorporating some convolutional layers. The major contributions of this paper are summarized as follows.
We propose a cascaded RNN model with GRUs for HSI classification. Compared to the existing RNN-related models, our model can sufficiently consider the redundant and complementary information of HSIs via two RNN layers. The first one is to reduce redundancy and the second one is to learn complementarity. These two layers are integrated together to generate an end-to-end trainable model. 2. 2.
In order to learn more discriminative features, we design two strategies to construct connections between the first RNN layer and the output layer. The first strategy is the weighted fusion of features from two layers, and the second one is the weighted combination of different loss functions from two layers. Their weights can be adaptively learned from data itself. 3. 3.
To capture the spectral and spatial features simultaneously, we further extend the proposed model to its spectral-spatial counterpart. A few convolutional layers are integrated into the proposed model to learn spatial features from each band, and these features are then combined together via recurrent operators.
The rest of this paper is organized as follows. Section II describes the details of the proposed models, including a brief introduction of RNN, and the structure of the proposed model as well as its modifications. The descriptions of data sets and experimental results are given in Section III. Finally, Section IV concludes this paper.
II Methodology
As shown in Fig. 1, the proposed cascaded RNN model mainly consists of four steps. For a given pixel, we firstly divide it into different spectral groups. Then, for each group, we consider the spectral bands in it as a sequence, which is fed into a RNN layer to learn features. After that, the learned features from each group are again regraded as a sequence and fed into another RNN layer to learn their complementary information. Finally, the output of the second RNN layer is connected to a softmax layer to derive the classification result.
II-A Review of RNN
RNN has been widely used for sequential data analysis, such as speech recognition and machine translation [23],[48]. Assume that we have a sequence data , where generally represents the information at the -th time step. When applying RNN to HSI classification, will correspond to the spectral value at the -th band. For RNN, the output of hidden layer at time is
[TABLE]
where is a nonlinear activation function such as logistic sigmoid or hyperbolic tangent functions, is a bias vector, is the output of hidden layer at the previous time, and denote weight matrices from the current input layer to hidden layer and the previous hidden layer to current hidden layer, respectively. From this equation, we can observe that via a recurrent connection, the contextual relationships in the time domain can be constructed. Ideally, can capture most of the time information for the sequence data.
For classification tasks, is often fed into an output layer, and the probability that the sequence belongs to -th class can be derived by using a softmax function. These processes can be formulated as
[TABLE]
where is a bias vector, is the weight matrix from hidden layer to output layer, and are parameters of softmax function, is the number of classes to discriminate. All of these weight parameters in Equation (1) and (2) can be trained using the following loss function
[TABLE]
where is the number of training samples, and are the true label and the predicted label of the -th training sample, respectively. This function can be optimized using a backpropagation through time (BPTT) algorithm.
II-B Cascaded RNNs
HSIs can be described as a three-dimensional matrix , where , and represent the width, height and number of spectral bands, respectively. For a given pixel , we can consider it as a sequence whose length is , so RNN can be naturally employed to learn spectral features. However, HSIs often contain hundreds of bands, making a very long sequence. Such long-term sequence increases the training difficulty since the gradients tend to either vanish or explode [49]. To address this issue, one popularly used method is to design a more sophisticated activation function by using gating units such as the LSTM unit and GRU [50]. Compared to LSTM unit, GRU has a fewer number of parameters [49], which may be more suitable for HSI classification because it usually has a limited number of training samples. Therefore, we select GRU as the basic unit of RNN in this paper.
The core components of GRU are two gating units that control the flow of information inside the unit. Instead of using Equation (1), the activation of the hidden layer for band is now formulated as
[TABLE]
where is the update gate, which can be derived by
[TABLE]
where is a sigmoid function, is a weight value, and is a weight vector. Similarly, can be computed by
[TABLE]
where denotes an element-wise multiplication, and is the reset gate, which can be derived by
[TABLE]
Due to the dense spectral sampling of hyperspectral sensors, adjacent bands in HSIs have some redundancy while non-adjacent bands have some complementarity. In order to take account of such information comprehensively, we propose a cascaded RNN model. Specifically, we divide the spectral sequence into sub-sequences , each of which consists of adjacent spectral bands. Besides the last sub-sequence , the length of the other sub-sequences is , which denotes the nearest integers less than or equal to . Thus, for the -th sub-sequence , it is comprised of the following bands
[TABLE]
Then, we feed all the sub-sequences into the first-layer RNNs respectively. These RNNs have the same structure and share parameters, thus reducing the number of parameters to train. In the sub-sequence , each band has an output from GRU. We use the output of the last band as the final feature representation for , which can be denoted as , where is the size of the hidden layer in the first-layer RNN. After that, we can combine together to generate another sequence whose length is . This sequence is fed into the second-layer RNN to learn their complementary information. Similar to the first-layer RNNs, we also use the output of GRU at the last time as the learned feature . To get a classification result of , we need to input into an output layer whose size equals to the number of candidate classes . Both of these two-layer RNNs have many weight parameters. We choose Equation (3) as a loss function and use the BPTT algorithm to optimize them simultaneously.
II-C Improvement for Cascaded RNNs
As described in subsection II-B, the second-layer RNN is directly connected to the output layer, so it may be optimized better than the first-layer RNNs. However, the performance of the first-layer RNNs will have effects on the second-layer RNN. In order to improve the discriminative ability of , an intuitive method is to construct relations between the first-layer RNNs and the output layer. Here, we propose two strategies to achieve this goal. The first strategy is based on the feature-level connection shown in Fig. 2. Instead of feeding the output of the second-layer RNN into the output layer only, we attempt to feed all the output features from the first- and the second-layer RNNs in a weighted concatenation manner. Specifically, the input of the output layer is computed as follows
[TABLE]
where are fusion weights for the first-layer RNNs, and is the fusion weight for the second-layer RNN. These weights can be integrated into the whole network and their optimal values are automatically learned from data. The same as the original two-layer RNN model, we also use Equation (3) to construct the loss function and use the BPTT algorithm to optimize it.
Different from the first improvement strategy, our second strategy is based on the output-level connection. As shown in Fig. 3, we feed the features extracted by the first-layer RNNs into output layers, respectively, so that they can learn more discriminative features. Combining these features together using the second-layer RNN will result in a better . In particular, for , we can input it into an output layer and construct a loss function . Meanwhile, we also input into an output layer and construct another loss function . After that, a weighted summation method can be used to combine them together, which can be formulated as
[TABLE]
where and are fusion weights, and are derived from Equation (3). The final loss function can be optimized by using the BPTT algorithm. In the prediction phase, we can delete the output layers of the first-layer RNNs and use the output from the second-layer RNN as the final classification result.
II-D Spectral-spatial Cascaded RNNs
Due to the effects of atmosphere, instrument noises, and natural spectrum variations, materials from the same class may have very different spectral responses, while those from different classes may have similar spectral responses. If we only use the spectral information, the resulting classification maps will have many outliers, which is known as the “salt and pepper” phenomenon. As a three-dimensional cube, HSIs also have rich spatial information, which can be used as a complement to address this issue. Among numerous deep learning models, CNNs have demonstrated their superiority in spatial feature extraction. In [38], a typical two-dimensional CNN is designed to extract spatial features from HSIs. The input of this model is the first principle component of HSIs.
Inspired from the two-dimensional CNN model, we extend the cascaded RNN model to its spectral-spatial version by adding some convolutional layers. Fig. 4 shows the flowchart of the proposed spectral-spatial cascaded RNN model. For a given pixel , we select a small cube centered at it. Then, we split this cube into matrices across the spectral domain. For each , we feed it into several convolutional layers to learn spatial features. The same as [38], we also use three convolutional layers, and the first two layers are followed by pooling layers. The input size is . The sizes of the three convolutional filters are , and , respectively. After these convolutional operators, each will generate a -dimensional spatial feature . Similar to the cascaded RNN model, we can also consider as a sequence whose length is . This sequence is divided into sub-sequences, and they are subsequently fed into the first-layer RNNs respectively to reduce redundancy inside each sub-sequence. The outputs from the first-layer RNNs are combined again to generate another sequence, which are fed into the second-layer RNN to learn complementary information.
Compared to the cascaded RNN model, the spectral-spatial cascaded RNN model is deeper and more difficult to train. Therefore, we propose a transfer learning method to train it. Specifically, we firstly pre-train the convolutional layers using all of . We replace two-layer RNNs by an output layer whose size is the number of classes . Besides, we assume that the label of equals to the label of its corresponding pixel . Then, we will have samples. These samples are used to train convolutional layers. After that, the weights of these convolutional layers are fixed and the training samples are used again to train the two-layer RNNs. Finally, the whole network is fine-tuned based on the learned parameters.
III Experiments
III-A Data Description
Our experiments are conducted on two HSIs, which are widely used to evaluate classification algorithms.
Indian Pines Data: The first data set was acquired by the AVIRIS sensor over the Indian Pine test site in northwestern Indiana, USA, on June 12, 1992. The original data set contains 224 spectral bands. We utilize 200 of them after removing four bands containing zero values and 20 noisy bands affected by water absorption. The spatial size of the image is pixels, and the spatial resolution is 20 m. The number of training and test pixels are reported in Table I. Fig. 5 shows the false-color image, as well as training and test maps of this data set.
Pavia University Scene Data: The second data set was acquired by the ROSIS sensor during a flight campaign over Pavia, northern Italy, on July 8, 2002. The original image was recorded with 115 spectral channels ranging from 0.43 to 0.86 . After removing noisy bands, 103 bands are used. The image size is pixels with a spatial resolution of 1.3 m. There are nine classes of land covers with more than 1000 labeled pixels for each class. The number of pixels for training and test are listed in Table II. Their corresponding distribution maps are demonstrated in Fig. 6.
III-B Experimental Setup
In order to highlight the effectiveness of our proposed models, we compare them with SVM, one-dimensional CNN (1D-CNN), two-dimensional CNN (2D-CNN), and the original RNN using GRU (RNN). For simplicity, the cascaded RNN model using GRUs is abbreviated as CasRNN; the two improvement methods of CasRNN based on feature-level and output-level connections are abbreviated as CasRNN-F and CasRNN-O, respectively; the spectral-spatial CasRNN is abbreviated as SSCasRNN. Some of their explanations are summarized as follows.
SVM: The input of SVM is the original spectrum signature. We choose Gaussian kernel as its kernel function. The penalty parameter and the spread of the Gaussian kernel are selected from a candidate set using a fivefold cross-validation method. 2. 2.
1D-CNN: The structure of 1D-CNN is the same as that in [35]. It contains an input layer, a convolutional layer with 20 kernels whose size is , a max-pooling layer whose kernel size is , a fully-connected layer with 100 hidden nodes, and an output layer. 3. 3.
2D-CNN: The structure of 2D-CNN is the same as that in [38], which consists of three convolutional layers and two max-pooling layers. Please refer to Table IX in [38] for the design details of it. 4. 4.
RNN: GRU is used as the basic unit of RNN. The number of hidden nodes is chosen from a candidate set via a fivefold cross-validation method.
The deep learning models are constructed with a PyTorch framework. To optimize them, we use a mini-batch stochastic gradient descent algorithm. The batch size, the learning rate and the number of training epochs are set to 64, 0.001 and 300, respectively. For SVM, we use a libsvm package in a MATLAB framework. All of the experiments are implemented on a personal computer with an Intel core i7-4790, 3.60GHz processor, 32GB RAM, and a GTX TITAN X graphic card.
The classification performance of each model is evaluated by the overall accuracy (OA), the average accuracy (AA), the per-class accuracy, and the Kappa coefficient. OA defines the ratio between the number of correctly classified pixels to the total number of pixels in the test set, AA refers to the average of accuracies in all classes, and Kappa is the percentage of agreement corrected by the number of agreements that would be expected purely by chance.
III-C Parameter Analysis
There exist three important hyperparameters in the proposed models. They are sub-sequence numbers , as well as the size of hidden layers in the first-layer RNN and the second-layer RNN. To test the effects of them on the classification performance, we firstly fix and select the size of hidden layers from a candidate set . Then, we fix the size of hidden layers and choose from another set . Since the same hyperparameter values are used for CasRNN and its two improvements (i.e., CasRNN-F and CasRNN-O), we only demonstrate the performance of CasRNN here, shown in Fig. 7. In this three-dimensional diagram, the first two axes (named and ) respectively correspond to the number of hidden nodes in the first-layer RNN and the second-layer RNN, while the third axis represents the classification accuracy OA. From this figure, we can observe that when and , CasRNN can achieve better OA than the other values on the Indian Pines data. The best OA appears when and . For the Pavia University data, OA changes a little larger than the Indian Pines data, but we can still find the best value when and . Similarly, Fig. 8 shows OA values achieved by SSCasRNN using different hidden sizes. We can see the optimal parameter values are for the Indian Pines data, and for the Pavia University data, respectively.
Fig. 9 and Fig. 10 evaluate the effects of on classifying the Indian Pines and the Pavia University data sets, respectively. In these figures, different colors represent different models. They are CasRNN, CasRNN-F, CasRNN-O and SSCasRNN. As increases, OAs achieved by these models tend to increase firstly and then decrease. Given the same , SSCasRNN significantly outperforms the other three models. For the Indian Pines data, the maximal OAs of four models appear at the same , so their optimal values are set as 10. Different from the Indian Pines data, four models have different optimal values on the Pavia University data. As shown in Fig. 10, the optimal value is 4 for SSCasRNN, and 8 for the other three models.
III-D Performance Comparison
In this section, we will report quantitative and qualitative results of our proposed models and their comparisons with the other state-of-the-art models. Table III reports the detailed classification results of different models on the Indian Pines data, including OA, AA, Kappa and class specific accuracy. The bold fonts in each row denote the best results. Several conclusions can be observed from this table. First, if we directly input the whole spectral bands into RNN, its OA, AA and Kappa values are 69.82%, 75.42% and 65.87%, respectively, which are all lower than those achieved by SVM and 1D-CNN models. This indicates that RNN cannot fully explore the long-term spectral sequence of HSIs. On the contrary, considering the redundant and complementary properties of spectral signature, our proposed model CasRNN can improve the performance of RNN by 4 percents, thus outperforming SVM and 1D-CNN. Second, compared to CasRNN, CasRNN-F and CasRNN-O can obtain better results, which validates the effectiveness of the two improvement strategies. In terms of each class accuracy, CasRNN-F almost increases all of them in comparison with CasRNN, so it might be more powerful than CasRNN-O on the Indian Pines data. Third, compared to spectral classification models, 2D-CNN significantly improves the classification results by about 10 percents. It means that the consideration of spatial information is very important on the Indian Pines data, because there are many large and homogeneous objects shown in Fig. 5(c). By incorporating the spatial information into CasRNN model, our proposed model SSCasRNN can further increase the performance to above 90 percents. Besides, it can obtain highest accuracies in 15 different classes, which sufficiently certifies the effectiveness of SSCasRNN.
In addition to the quantitative results, we also visualize classification results of different models shown in Fig. 11. Different colors in this figure correspond to different classes. Compared to the groundtruth map in Fig. 5(c), spectral classification models (i.e., SVM, 1D-CNN, RNN, CasRNN, CasRNN-F and CasRNN-O) have many outliers in the classification map due to the spectral variability of materials. This phenomenon can be alleviated by 2D-CNN, because it makes use of the spatial contextual information instead of the spectral information. For homogeneous regions, especially large objects, 2D-CNN performs very well. However, it will easily result in an over-smoothing problem especially for small objects, as demonstrated in Fig. 11(g). Different from 2D-CNN and spectral models, SSCasRNN takes advantage of spectral and spatial information simultaneously. As shown in Fig. 11 (h), it has significantly fewer outliers than spectral models, and retains more boundary details of objects than 2D-CNN.
Table IV and Fig. 12 are the classification results of different models on the Pavia University data. Similar conclusions can be observed from them. For spectral models, CasRNN is better than RNN, while CasRNN-F and CasRNN-O are superior to CasRNN. All of these models have the “salt and pepper” phenomenon in their classification maps. Compared to the best spectral model, 2D-CNN can improve OA and Kappa by more than 5 percents. In addition, it generates fewer outliers and leads to a more homogeneous classification map. Nevertheless, without using the spectral information, its performance is not very high, and the classification map is easily to be over-smoothed. Combining the spectral and spatial information together, our proposed model SSCasRNN can alleviate these issues. It improves OA from 86.18% to 90.30%, and generates more details in the classification map. However, in comparison with the Indian Pines data, the classification results achieved by SSCasRNN are still not very high. One possible reason is that there exist many small objects in the Pavia University data, which increases the difficulty in exploring spatial features.
IV Conclusions
In this paper, we proposed a cascaded RNN model for HSI classification. Compared to the original RNN model, our proposed model can fully explore the redundant and complementary information of the high-dimensional spectral signature. Based on it, we designed two improvement strategies by constructing connections between the first-layer RNN and the output layer, thus generating more discriminative spectral features. Additionally, considering the importance of spatial information, we further extended the proposed model into its spectral-spatial version to learn spectral and spatial features simultaneously. To test the effectiveness of the proposed models, we compared them with several state-of-the-art models on two widely used HSIs. The experimental results demonstrate that the cascaded RNN model can obtain higher performance than RNN, and its modifications can further improve the performance. Besides, we also thoroughly evaluated the effects of different hyperparameters on the classification performance of the proposed models, including the hidden sizes and the number of sub-sequences. In the future, more experiments will be conducted to validate the effectiveness of our proposed models. In addition, more powerful spectral-spatial models will be explored. Since the sizes and shapes of different objects vary, using the patches or cubes with same sizes as inputs easily leads to the loss of spatial information.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] Pedram Ghamisi, Naoto Yokoya, Jun Li, Wenzhi Liao, Sicong Liu, Javier Plaza, Behnood Rasti, and Antonio Plaza, “Advances in hyperspectral image and signal processing: A comprehensive overview of the state of the art,” IEEE Geoscience and Remote Sensing Magazine , vol. 5, no. 4, pp. 37–78, 2017.
- 2[2] Giorgos Mountrakis, Jungho Im, and Caesar Ogole, “Support vector machines in remote sensing: A review,” ISPRS Journal of Photogrammetry and Remote Sensing , vol. 66, no. 3, pp. 247–259, 2011.
- 3[3] Mariana Belgiu and Lucian Drăguţ, “Random forest in remote sensing: A review of applications and future directions,” ISPRS Journal of Photogrammetry and Remote Sensing , vol. 114, pp. 24–31, 2016.
- 4[4] Wei Li, Chen Chen, Hongjun Su, and Qian Du, “Local binary patterns and extreme learning machine for hyperspectral imagery classification.,” IEEE Trans. Geoscience and Remote Sensing , vol. 53, no. 7, pp. 3681–3693, 2015.
- 5[5] Xiuping Jia, Bor-Chen Kuo, and Melba M Crawford, “Feature mining for hyperspectral image classification,” Proceedings of the IEEE , vol. 101, no. 3, pp. 676–697, 2013.
- 6[6] Wenzhi Liao, Aleksandra Pizurica, Paul Scheunders, Wilfried Philips, and Youguo Pi, “Semisupervised local discriminant analysis for feature extraction in hyperspectral images,” IEEE Transactions on Geoscience and Remote Sensing , vol. 51, no. 1, pp. 184–198, 2013.
- 7[7] Renlong Hang, Qingshan Liu, Huihui Song, and Yubao Sun, “Matrix-based discriminant subspace ensemble for hyperspectral image spatial–spectral feature fusion,” IEEE Transactions on Geoscience and Remote Sensing , vol. 54, no. 2, pp. 783–794, 2016.
- 8[8] Renlong Hang, Qingshan Liu, Yubao Sun, Xiaotong Yuan, Hucheng Pei, Javier Plaza, and Antonio Plaza, “Robust matrix discriminative analysis for feature extraction from hyperspectral images,” IEEE Journal of Selected Topics in Applied Earth Observations and Remote Sensing , vol. 10, no. 5, pp. 2002–2011, 2017.
