Skip to Content
You are currently on the new version of our website. Access the old version .
Applied SciencesApplied Sciences
  • Article
  • Open Access

29 January 2025

26 Pages

Hyperspectral Image Classification Based on Hybrid Depth-Wise Separable Convolution and Dual-Branch Feature Fusion Network

,
and
School of Computer and Information Engineering, Tianjin Chengjian University, Tianjin 300384, China
*
Author to whom correspondence should be addressed.

Abstract

Recently, advancements in convolutional neural networks (CNNs) have significantly contributed to the advancement of hyperspectral image (HSI) classification. However, the problem of limited training samples is the primary obstacle to obtaining further improvements in HSI classification. The traditional methods relying solely on 2D-CNN for feature extraction underutilize the inter-band correlations of HSI, while the methods based on 3D-CNN alone for feature extraction lead to an increase in training parameters. To solve the above problems, we propose an HSI classification network based on hybrid depth-wise separable convolution and dual-branch feature fusion (HDCDF). The dual-branch structure is designed in HDCDF to extract simultaneously integrated spectral–spatial features and obtain complementary features via feature fusion. The proposed modules of 2D depth-wise separable convolution attention (2D-DCAttention) block and hybrid residual blocks are applied to the dual branch, respectively, further extracting more representative and comprehensive features. Instead of full 3D convolutions, HDCDF uses hybrid 2D–3D depth-wise separable convolutions, offering computational efficiency. Experiments are conducted on three benchmark HSI datasets: Indian Pines, University of Pavia, and Salinas Valley. The experimental results show that the proposed method showcases superior performance when the training samples are extremely limited, outpacing the state-of-the-art method by an average of 2.03% in the overall accuracy of three datasets, which shows that HDCDF has a certain potential in HSI classification.

1. Introduction

Remote sensing techniques are becoming increasingly mature. Among them, hyperspectral remote sensing is an advanced technology combining imaging technology and spectral technology, based on numerous narrow and contiguous spectral bands [1,2]. In a hyperspectral image (HSI), each pixel contains spectral information across different bands and spatial information. Regarding the exploitation of distinguishing subtle spectral differences, HSI has a lot of application prospects in cross-scene coastal wetlands [3], precision agriculture [4], and soil carbon content prediction [5].
In recent years, the research on HSI classification has played a significant role in fully utilizing the value of remote sensing images and has drawn broad attention in the field of remote sensing [6]. Compared to traditional methods depending on the handcrafted feature [7,8,9,10,11], deep learning (DL) has occupied a dominant position in computer vision [12], due to its robust feature representation capabilities and prominent performance. The methods based on DL include recursive autoencoder (RAE) [13], convolutional neural network (CNN) [14,15,16,17], recurrent neural network (RNN) [18,19], and generative adversarial network (GAN) [20], which have achieved exciting performance.
Due to the reliance on spectral features in previous methods, the spatial features were often neglected, resulting in the performance of those models remaining unsatisfactory. Then, more and more classification frameworks based on spectral–spatial features have been developed, which incorporate spatial characteristics of ground objects into pixel-wise classifiers. For instance, a model called HybridSN for HSI classification is explored in ref. [21], which constructs a 2D-CNN and a 3D-CNN to extract more abstract-level feature representation after principle component analysis (PCA) [22] operation on original images, improving the classification effects. The proposed pyramid-based hierarchical spatial–spectral transformer (PyFormer) [23] enhances processing efficiency by organizing input data into hierarchical pyramid segments at different abstraction levels. Each level uses a dedicated transformer encoder to effectively capture local and global contexts. The final input representation integrates outputs from various levels. The pyramid excels at capturing spatial features and local patterns, while the transformer models spatial–spectral correlations and long-range dependencies. One popular structure is decoupling the classification task for two branches to extract the spectral features and spatial features, respectively. Ma et al. [24] present an HSI classification method using a double-branch multi-attention mechanism network (DBMA). The network designs two branches that separately extract spectral features and spatial features, reducing interference between them. Each branch employs a specific attention mechanism suited to its characteristics, ensuring the extraction of more discriminative features. The features from the double branch are then finally fused for classification. Another widely used approach is cropping HSI data into local cubes in a certain size as inputting data and then transferring them to the CNN module for acquiring the joint features [25]. For example, in [26], spatial–spectral information is acquired by feeding data local cubes into a network that combines a 3D CNN with a feature pyramid structure. Additionally, this network employs multiscale fusion to enhance sensitivity to spatial–spectral information.
In recent years, many well-recognized networks based on transformers [27] have been widely and successfully applied to HSI classification since Vision Transformer (ViT) [28] was proposed in 2020. For example, Hong et al. [29] proposed a novel backbone network SpectralFormer which is able to learn spectrally local sequence information from neighboring bands of HSI, thereby generating group-wise spectral embeddings. To prevent information loss during layer propagation, it uses cross-layer skip connections to adaptively fuse residuals across layers. Extended Vision Transformer (ExViT) [30] is a new framework based on multi-modal transformation that extends traditional ViT with minimal changes. Unlike traditional linear projections, ExViT is built on a lightweight separable backbone, extracting features of image patches through local and global perception in both spatial and channel dimensions. To enhance information exchange between multi-modalities, an attention fusion module is designed, which improves the model’s discriminative ability by integrating attention at different stages. In ref. [31], considering that existing CNN-based models cannot sufficiently utilize the sequence attributes of spectral features, Yang et al. embedded the convolution process into the changed structure of the transformer. MFT provides multi-head cross-patch attention for land cover classification tasks, which also utilizes other complementary information to achieve better generalization. Although the above methods based on transformers can obtain global features to increase accuracy effectively, these methods come with notable limitations, including high demands on memory and computational resources.
Among numerous DL models, the CNN has demonstrated its prominent advantage of spectral–spatial characteristic extraction. A CNN has three main specialties: (1) the local receptive field, (2) the sharing of weights, and (3) the multiple convolution kernel. However, a CNN also has some problems that can be further optimized; particularly in the pooling layer, a significant amount of valuable information can be lost and the connection between the global and the local features may be overlooked. In CNN-based methods, the traditional method of using a 1D CNN [32] alone can capture spectral features from each pixel of HSI, but spatial information is not adopted. An HSI classification approach based on the structure of only utilizing a 2D CNN is called the spatial-based classification method, which extracts spatial features following a similar approach to traditional RGB images, which brings an inevitable weakness caused by ignoring the unified spectral–spatial attributes of the hypercube [33,34]. Based on this, the appearance of the 3D CNN successfully captures the integrated spectral–spatial features across various spectral bands. For example, in [35], Fang et al. propose a 3D dense convolutional network with a spectral-wise attention mechanism (MSDN-SA), which simultaneously captures the spectral–spatial features at multiple scales via 3D dilated convolutions. Despite experimental evidence from HSI public datasets showing that utilizing 3D CNNs enhances HSI classification performance, the increased computational complexity of deep 3D CNNs results in suboptimal outcomes for classes with analogous textures over multiple spectral bands. Therefore, to alleviate the mentioned issue, gradually integrating 2D and 3D CNNs with diverse kernel sizes has been paid more attention recently, which contributes to capturing more abstract joint spectral–spatial features, ultimately making the network strong enough. Kanthi et al. leveraged the profound feature extraction capabilities of 3D CNNs for HSI classification and achieved better performance [36]. In ref. [37], ESFNet provided a 3D convolutional neural network based on the fusion of different spectral strides (SSFCNN), which can handle weighted spectral data to facilitate the efficient learning of spectral characteristics. The model optimizes the preservation of spectral continuity, thereby enhancing classification accuracy.
The attention mechanism is also incorporated to enhance the feature matrices, optimizing the differentiation of the extracted features. In [38], the key model is the spectral–spatial domain attention network (SSDA), designed for few-shot HSI classification. SSDA comprises three modules: the spectral–spatial module for learning robust features, the domain attention mechanism to amplify relevant features while mitigating the influence of irrelevant ones, and the multifaceted loss module, implemented to tackle domain adaptation challenges. Ref. [39] presents a novel network that synergistically combines residual modules with attention mechanisms. Separately selecting features from each band by weight-adaptive learning and enhancing the importance of the center pixel are executed in both networks. Furthermore, considering the problem that available training samples for training DL models are generally very limited, Wang et al. [40] propose a depth-wise separable fully convolutional residual network (DFRes) combined with convolutional conditional random fields and region growing to tackle the question of relying on limited training samples, where residual learning and depth-wise separable convolution effectively addresses the challenges of gradient vanishing, overtraining, and high memory requirements.
Consequently, augmenting the capacity for feature extraction and bolstering the classification accuracy of limited training samples have emerged as pressing issues in the realm of HSI classification, particularly within the framework of deep learning networks. In this paper, inspired by the hybrid 2D–3D CNN and feature fusion [41], we construct a hybrid depth-wise separable convolution and dual-branch feature fusion network (HDCDF) for classification. The proposed architecture contains two branches based on 2D–3D depth-wise separable convolutions, combined with an attention mechanism and hybrid residual blocks separately, which both capture joint spectral–spatial features. By fusing the extracted features of the two branches, we obtain further features and send them to the classifier to determine the final classification result. In addition, we evaluate the efficacy of the proposed HDCDF with a reduced number of training samples. The primary contributions of this study are as follows:
  • We propose an innovative network architecture that leverages 2D–3D depth-wise separable convolution along with dual-branch feature fusion for HSI classification;
  • The proposed model incorporates 2D depth-wise separable convolution attention (2D-DCAttention) and hybrid residual blocks, which effectively improve the classification performance;
  • The classification performance of the HDCDF network is analyzed using limited training data, achieving state-of-the-art results across three public datasets.

3. Methodology

Figure 9 shows the architecture of the procedure of the HDCDF framework, which contains three parts. The purpose of data preprocessing is to increase the number of training samples and prepare for HDCDF network input.
Figure 9. Procedure of hyperspectral image classification based on HDCDF.
In the model training and validation part, the training data and the validation data are used to update the network parameters and monitor the performance of models with different parameters, respectively, to obtain the best-trained model. Due to the early stopping strategy, the best-trained model can be obtained and effectively alleviate the overfitting problem. Finally, the test data are used to verify the performance of the best-trained model.

3.1. Data Preprocessing for Dataset Generation

We record the original spectral–spatial hyperspectral data cube as X ∈ R W × H × D , where X represents the original HSI data, W is the width, H is the height, and D is the number of spectral bands. Each pixel in HSI has a pixel sequence Y = y 1 , y 2 , ⋯ , y c ∈ R 1 × 1 × C , where C donates the land cover categories. Due to the huge computational burden caused by the high dimensionality and existing redundant data in HSI, we apply the PCA strategy to the original HSI along spectral bands for spectral feature enhancement and to reduce redundant data. The original data X ∈ R W × H × D are modified to X ∈ R W × H × B , where B refers to the number of spectral bands after PCA. The PCA not only reduces the number of spectral bands from D to B but also preserves the spatial dimension information, which is of great significance for pixel classification. The data cube is divided into a number of small 3D neighboring patch sets, Z ∈ R P × P × B , from X ; the final label depends on the label of the center pixel. We set the missing adjacent pixels as zero when the core pixel is located at the edge of X so that all patches can cover the P × P size of the space and all spectral bands of HSI. Then, the patch set is randomly split into a training set Z t r a i n , testing set Z t e s t , and validation set Z v a l , and their respective labels are divided into Y t r a i n , Y t e s t , and Y v a l .
Considering the fact that training deep networks requires numerous samples while available training samples are limited, we adopt the date enhancement strategy to increase the number of training samples and extract more sufficient features, which can effectively avoid overfitting and the problem of sample imbalance, improving the generalization ability of the model HDCDF. With equal probability, patches are rotated 45 degrees, 90 degrees, or 135 degrees; vertically flipped; horizontally flipped; or kept the same. Then, the total number of training patches can be multiplied n times, compared with Z t r a i n , obtaining better network parameters. We represent the enhanced training samples by Z e n _ t r a i n and, accordingly, their corresponding new label set is Y t r a i n _ e n .

3.2. Proposed HDCDF Structure

In this paper, in order to overcome the question mentioned in the Introduction, we propose a hybrid depth-wise separable CNN and dual-branch feature fusion model (HDCDF) for hyperspectral image classification. The whole structure of the HDCDF network is displayed in Figure 10, and the different dimensional figures of the same color in the legend represent operations on data of different dimensions.
Figure 10. Structure of the proposed hybrid depth-wise separable CNN and dual-branch feature fusion (HDCDF).
In general, HDCDF is an end-to-end parallel network structure that extracts features from the training patches Z t r a i n simultaneously and then fuses the features extracted from the two branches to obtain the joint feature F f , which is sent into the classifier to obtain the classification map.
Specifically, the upper-branch network stream firstly extracts the abundant spectral–spatial features in the input image using continuous 3D depth-wise separable convolution (3D-DC). After reshaping the extracted features, the 2D-DCAttention module is used to further enhance the features of the spatial dimension and spectral dimension, while retaining key features and suppressing noise and irrelevant information. Finally, we obtain the feature F u extracted from the upper branch. The mixed residual module is adopted in the lower-branch network flow. First, Z t r a i n is processed through two 3D residual blocks to obtain a more comprehensive image feature and then through the 2D residual block after the reshape operation on features of the previous layer. Finally, the characteristics F d of the lower branch are obtained by up-sampling. Hybrid residual blocks reduce the complexity of the lower branches by jumping connections, while retaining the relatively original image features. In this way, we obtain complementary feature F f by fusing the feature F d with more original image information and F u with joint spectral–spatial features, which is passed into the classifier to select the best model.

4. Experimental Results

4.1. Dataset Description

To evaluate the classification performance of the HDCDF network, we used three representative HSI datasets in our experiments: Indian Pines (IP), University of Pavia (UP), and Salinas Valley (SV). The false-color composite, ground-truth maps, and details of each category are shown in Figure 11, Figure 12 and Figure 13. Further details regarding these datasets are presented in the following.
Figure 11. IP dataset. (a) False-color composite; (b) ground-truth map; (c) land cover categories in the IP dataset.
Figure 12. UP dataset. (a) False-color composite; (b) ground-truth map; (c) land cover categories in the UP dataset.
Figure 13. SV dataset. (a) False-color composite; (b) ground-truth map; (c) land cover categories in the SV dataset.
Indian Pines (IP) dataset: The hyperspectral image was acquired by the AVIRIS sensor (manufactured by NASA’s Jet Propulsion Laboratory (JPL) in Pasadena, CA, USA) over the Indian Pines test site in north-western Indiana in 1992, consisting of 16 land cover classes, mainly including corn, soybean, and oats. This dataset consists of 145 × 145 pixels and 220 spectral bands in the wavelength scope of 0.4~2.5 µm. We removed 20 water absorption and low-signal-to-noise-ratio bands and kept the remaining 200 bands for our experiments.
University of Pavia (UP) dataset: The UP dataset was captured by the ROSIS-03 sensor (developed by the German Aerospace Center (DLR) in Oberpfaffenhofen, Germany) in Northern Italy in 2001, with a size of 610 × 340 and a high spatial resolution of 1.3 m per pixel. A total of 103 spectral bands were obtained after removing some low-signal-to-noise-ratio bands in the spectral coverage ranging from 0.43 to 0.86 µm. In addition, the existing ground truths are divided into nine classes, such as meadows, trees, bitumen, and so on.
Salinas Valley (SV) dataset: Collected by the AVIRIS sensor in 1998 over the Salinas Valley in California, this dataset features a high resolution of 3.7 m per pixel with a size of 512 × 217. Since 20 of the bands cannot be reflected by water, we selected the remaining 204 bands with a wavelength scope of 0.4 µm to 2.5 µm to conduct the experiments. The available ground truth for the SV contains 16 categories.
Deep learning structures are data-driven, meaning they need numerous labeled training samples to fully train a network for perfect classification results, but more data mean higher computation complexity and more time consumption. Therefore, we performed experiments to verify that the proposed HDCDF can maintain excellent classification performance in the case of very limited training samples. In Table 1, Table 2 and Table 3, we can see the details of each dataset used in our experiments. During the experiment, we set the size of the training sample and the validation sample at the minimum level. Since each class of UP and SV samples is more sufficient than IP, only 0.5% training samples and 0.5% validation samples are selected, respectively.
Table 1. The details of the Indian Pines (IP) dataset with 5% training samples.
Table 2. The details of the University of Pavia (UP) dataset with 0.5% training samples.
Table 3. The details of the Salinas Valley (SV) dataset with 0.5% training samples.

4.2. Experimental and Optimal Parameter Settings

For the sake of validating the effectiveness and generalization of the HDCDF network, three widely available datasets are used and the experiments are performed using a computer with an NVIDIA GeForce GTX 1660 graphics card (manufactured by NVIDIA Corporation, Santa Clara, CA, USA) Super 6 GB, an Intel Core i7-8700K CPU (Intel, Santa Clara, CA, USA), and a memory of 16 GB. The software framework was PyTorch 1.12.0, CUDA 11.3, and the programming language was Python 3.9.18. For image cube display, we adopted the ENVI 5.6 software to process datasets. We used Adam Optimizer to optimize the network parameters with a batch size of 32. The number of epochs in the experiment was set to 50 and the learning rate was 0.001. In addition, we also adopted the early stopping strategy and set patience to 10, which means that if the validation loss is not improved after 10 consecutive epochs, early stopping will be triggered. For experimental evaluation, three widely used quantitative metrics are utilized to assess the HDCDF performance, as well as a confusion matrix ( C n × n ), a specific table layout used to visualize the performance of supervised learning algorithms. In the confusion matrix, the prediction labels and the actual labels are represented, respectively, by each column and row.
C = C 11 ⋯ C 1 n ⋮ ⋱ ⋮ C n 1 ⋯ C n n
(1)
Overall accuracy (OA) is the proportion of correctly classified samples.
p o = ∑ i = 1 n   c i i ∑ i n   ∑ j n   c i j
(2)
Average accuracy (AA) is the average of all class accuracies.
p a = 1 n × ∑ i = 1 n   C i i C i j
(3)
The Kappa coefficient (Kappa) is a robust measure of the degree of agreement between the ground-truth map and classification map.
p e = ∑ i = 1 n   ∑ i n   C i j × ∑ j n   C i j
k = p o − p e 1 − p e
where p o represents OA, p a refers to AA, and p e computes the measures of agreement between the true and predicted classes. p o − p e describes the difference among OA values obtained by chance and actual accuracy; 1 − p e portrays the maximum value for the difference. Usually, the Kappa falls between 0 and 1; the closer Kappa is to 1, the better and more stable the model classification effect is.
It is vital to find the optimal parameters to run the model. During dataset generation, the HSI cube is divided into overlapping small 3D patches of size Z ∈ R P × P × B , where P × P refers to the spatial input size and B represents the number of spectral bands after PCA processing. This kind of processing method, instead of processing the entire HSI cube, can reduce the number of parameters and, at the same time, significantly reduces the required number of parameters. To obtain the best-fitting spatial size and amount of spectral bands, we conducted several experiments with different sizes and numbers of bands to select the most suitable value. As a result, we concluded that the OAs begin to decline when the spatial size exceeds 21 × 21 and the value of B is over 30. Figure 14 shows the HDCDF classification performance with different spatial sizes and amounts of spectral bands.
Figure 14. Results of parameter analysis. (a) The Effect of B on OAs on three datasets; (b) the effect of P on OAs on three datasets.
To assess the performance of our proposed structure, we also select some DL-related classification methods with better effects than comparative methods, including 3DCNN, the double-branch multi-attention mechanism network (DBMA) [24], SpectralFormer [29], the extended Vision Transformer (ExViT) [30], and the lightweight spectral–spatial neural architecture with a multi-attention feature extraction network (LSSMA) [43]. Specifically, SpectralFormer and ExViT are novel networks developed based on the transformer. SpectralFormer focuses on spectral characteristics in classification, and the author designed two key modules and integrated them into the framework of ViT, improving the ability to capture details of subtle spectral differences. ExViT is a new multi-modal deep learning framework that extends traditional ViT with minimal modification. Full 3D convolutions are used in 3DCNN to process both spatial and spectral information, but it requires millions of parameters. Inspired by ResNet, LSSMA uses convolutional kernels of different sizes to perform residual joins and feature fusion, reducing the number of trainable parameters and effectively preventing overfitting. Under the influence of an attention mechanism, DBMA includes two branches to extract spectral features and spatial features, respectively, which can reduce the interference between the two types of features.

4.3. Classification Maps and Categorized Results

In this section, to evaluate the classification performance of the proposed HDCDF, we present the detailed results of different methods under three datasets. Table 4, Table 5 and Table 6 and Figure 14, Figure 15, Figure 16 and Figure 17 show the detailed accuracy and visual results of the HDCDF method compared with other methods. It can be seen from the experimental results that, although the model does not achieve optimal results in all categories, HDCDF performs the best in three indicators, OA, AA, and Kappa, with values of 95.73%, 96.51%, and 95.22% on the IP dataset, 96.5%, 97.33%, and 95.26% on the UP dataset, and 97.84%, 98.74%, and 95.46% on the SV dataset, showing a better classification ability on those categories and that other models do not perform well generally, compared with other networks.
Table 4. Classification results of the IP dataset with 5% training samples and the best accuracy each class is in bold.
Table 5. Classification results of the UP dataset with 0.5% training samples and the best accuracy each class is in bold.
Table 6. Classification results of the SV dataset with 0.5% training samples and the best accuracy each class is in bold.
Figure 15. Classification maps of the different models for the IP dataset using 5% training samples: (a) false-color image; (b) ground-truth map; (c–h) maps with different models.
Figure 16. Classification maps of the different models for the UP dataset using 0.5% training samples: (a) false-color image; (b) ground-truth map; (c–h) maps with different models.
Figure 17. Classification maps of the different models for the SV dataset using 0.5% training samples: (a) false-color image; (b) ground-truth map; (c–h) maps with different models.
To be specific, it is obvious that the overall classification effect of the proposed model on the UP and SV datasets is better than that on the IP dataset. Although we only selected 0.5% training samples for these two datasets, there are still enough training samples for each category of them compared with the IP dataset. As a result, SpectralFormer and ExViT, based on the transformer design, are sufficiently trained in that the final classification results are higher than other networks and closer to HDCDF. However, the number of training samples on the IP dataset is limited, so the SpectralFormer and ExViT networks have lower classification results (OAs: SpectralFormer: 91.13%; ExViT: 94.59%) than HDCDF, which also shows that HDCDF can still maintain excellent classification performance in the case of insufficient samples. This may be due to the double-branch feature fusion structure of HDCDF, which helps to extract more abundant features, and thus the training results are better than other models. From the IP dataset, the classification effect of the 3DCNN model is not ideal as the model only relies on a 3D convolution operation; the extracted features are not as sufficient as DBMA with the introduction of an attention mechanism and LSSMA with the introduction of a residual module. In addition, we can see that the phenomenon of salt-and-pepper noise is severe in the 3DCNN network classification figure. In contrast, the HDCDF classification far outperforms the SpectralFormer and ExViT networks. The SpectralFormer network pays more attention to the role of spectral features in classification due to the large number samples in the IP dataset, so the correlation between space and spectral features should be fully utilized to improve classification accuracy. HDCDF includes convolutions of different sizes and dimensions for residual connection and feature fusion, which can extract deeper features and reduce the number of training parameters.
In the UP dataset, we find the sixth category in the middle of the picture; the 3DCNN and DBMA models have many pixels identified as the second category. This may be due to the similarity of the spectral features of the two categories, and the model cannot accurately identify the extracted features. The network proposed in this paper achieves almost 100% in this category. This result also proves the superiority of HDCDF in extracting features, which makes the problem of large spatial differences in spectral features of HSI effectively solved.
At the same time, from the classification diagram, we can see that the network proposed in this paper handles the boundary well. Taking class 16, located in the lower left corner of Figure 17, which only has nine training samples in the SV dataset, as an example, the method proposed performs the best among these models and finally obtains a remarkable result of 100%, while the performance of other networks is not accurate, especially LSSMA. It can be seen from Figure 17 that except for HDCDF and LSSMA with poor recognition effects, there are a few cases of incorrect classification on the boundary of other models.
In general, the accuracy of the proposed HDCDF network on most of the three datasets exceeds 93% for each class; it has strong feature extraction capability and is superior to other models in boundary processing.
The computational efficiency of the HDCDF model is apparent in terms of parameter training and testing times on the IP dataset using 5% training samples in Table 7. A network with good performance should balance accuracy and efficiency properly. The above experiments have proven that our proposed method can obtain excellent performance with limited data. From Table 7, on account of 3DCNN containing more parameters (1481.6 K) to be trained, other methods take less time than 3DCNN. HDCDF takes less time and memory compared to models based on transformer. Although LSSMA possesses fewer parameters (8.7 K) than the proposed model (22.5 K), HDCDF has a shorter training time and a higher accuracy of nearly 1.5%.
Table 7. Complexity analysis of different models and our method on the IP dataset using 5% training samples in 16 classes.

5. Discussion

In this section, different experiments are conducted to further explore HDCDF’s performance. We discuss the assessment of the dual-branch structure, the ablation experiments to assess the performance of the hybrid DSC, and the results of the different activation functions.

5.1. Assessment of Dual-Branch Structure

Our proposed HDCDF is an end-to-end dual-branch structure, which combines two joint feature extraction-independent branches, which are the upper-branch network based on 2D-DCAttention and the lower-branch network based on hybrid residual modules. Theoretically speaking, the information obtained by the single-branch network is very limited, while the features extracted by the two-branch network with different methods are usually richer and more comprehensive than those extracted by the single-branch network, so the two-branch network can obtain better results in the classification task. To verify the conjecture, we split the HDCDF network into an attention branch and residual branches and conducted experiments on three datasets. As can be seen from Table 8, the performance of our proposed two-branch-structure HDCDF on the three datasets is superior to each single branch of HDCDF; the OA is at least 1.2% higher than that of a single branch. Compared with the residual branch, the attention branch obtains higher classification accuracy through three layers of 3D depth-wise separable convolution that further strengthens the features in the spatial dimension and spectral dimension. Compared with the attention branch, the residual module retains the original classification features and also achieves relatively good classification results.
Table 8. Classification results of each single branch and HDCDF.
In short, the two branches in the double-branch structure can complement each other to obtain more abundant features. In order to obtain a better classification effect, it is necessary to choose the double-branch structure over the single-branch structure.

5.2. Accuracy Comparison of the Proposed Model with 2D-DC Versus 3D-DC

To validate the effectiveness of integrating 2D-DC and 3D-DC in the HDCDF network, we develop two supplementary models for comparative analysis. The first model exclusively uses 3D-DC by replacing the 2D-DC in two branches of the proposed model, while maintaining the output sizes of the feature-extracted branches as in the original model. The second model employs 2D-DC exclusively, following a similar design. The comparative OA results, illustrated in Figure 18, demonstrate that the proposed hybrid depth-wise separable convolution structure consistently achieves superior classification performance across varying numbers of training samples in three datasets. Generally, the classification accuracies of models using 2D-DC or 3D-DC alone are comparable to the original model, with the 2D-DC-only model showing slightly lower performance. This reduction in performance is attributable to 2D-DC’s inability to capture the inter-spectral band information of HSI, directly resulting in lower classification accuracy.
Figure 18. The classification performance of the proposed method employing hybrid depth-wise separable convolution, that using only 3D-DC, and that using only 2D-DC.
Overall, HDCDF derives more distinctive features by means of the hybrid integration of 2D-DC and 3D-DC, substantially enhancing the final classification performance.

5.3. Effectiveness of the Mish Activation Function

In Section 2.2, we explain why we chose Mish as the activation function instead of ReLU. Here, we will test the two functions separately to further verify the much better performance of HDCDF based on Mish. As you can see from Figure 19, HDCDF based on Mish surpasses HDCDF based on ReLU. Specifically, there was an increase of 2.27%, 1.97%, and 2.84% on the IP, UP, and SV datasets, respectively. Thus, the Mish activation function is more suitable than ReLU to deal with the nonlinear relationship between the spectral and spatial dimensions of hyperspectral images.
Figure 19. Results of different activation functions.

6. Conclusions

To address the challenges associated with the limited labeled training samples and high computational complexity for HSI classification, this study proposes an end-to-end dual-branch network structure, HDCDF. Instead of full 3D convolutions, we use mixed 2D and 3D depth-wise separable convolutions, offering computational efficiency. The input of the HDCDF framework is achieved after a series of data preprocessing tasks, including the PCA strategy to reduce dimensionality and rotation with equal probability to increase the number of trainable samples. Based on hybrid depth-wise separable convolutions, 2D-DCAttention module, and hybrid residual blocks, we design two branches to simultaneously capture joint spectral–spatial features and introduce some strategies to prevent overfitting involving early stopping and a dropout layer. To accelerate the counter-propagation and convergence, Mish is introduced as the activation function, taking full advantage of the spectral–spatial correlation of HSI. Experimental results demonstrate the validity and generalization of the HDCDF. In detail, the overall accuracy of the three widely used datasets is as high as 95.73%, 96.5%, and 97.84%, respectively, in cases with limited training samples.
A prospective avenue for our research involves extending the framework’s application to forthcoming hyperspectral datasets, beyond just the existing public datasets. The main focus is still on creating models that can make the most out of a small amount of training data and maintain lower computational costs.

Author Contributions

Conceptualization, H.D. and Q.L.; methodology, Y.Y. and H.D.; software, Y.Y.; validation, H.D.; resources, H.D. and Q.L.; data curation, Y.Y.; writing—original draft, Y.Y.; writing—review and editing, Y.Y. and H.D.; visualization, Y.Y.; supervision, H.D. and Q.L.; funding acquisition, H.D and Q.L. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the Tianjin Science and Technology Planning Project, grant number 23YDTPJC00350.

Institutional Review Board Statement

Not applicable.

Data Availability Statement

The IP, UP, and SV datasets can be obtained from www.ehu.eus/ccwintco/index.php?title=Hyperspectral_Remote_Sensing_Scenes (accessed on 23 December 2024).

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Ahmad, M.; Shabbir, S.; Roy, S.K.; Hong, D.F.; Wu, X.; Yao, J.; Khan, A.M.; Mazzara, M.; Distefano, S.; Chanussot, J. Hyperspectral Image Classification—Traditional to Deep Models: A Survey for Future Prospects. IEEE J. Sel. Top. Appl. Earth Obs. Remote Sens. 2022, 15, 968–999. [Google Scholar] [CrossRef] [Scilit]
  2. Kumar, B.; Dikshit, O.; Gupta, A.; Singh, M.K. Feature extraction for hyperspectral image classification: A review. Int. J. Remote Sens. 2020, 41, 6248–6287. [Google Scholar] [CrossRef] [Scilit]
  3. Xin, Z.; Li, Z.; Xu, M.; Wang, L.; Ren, G.; Wang, J.; Hu, Y. Feature disentanglement based domain adaptation network for cross-scene coastal wetland hyperspectral image classification. Int. J. Appl. Earth Obs. Geoinf. 2024, 129, 103850. [Google Scholar] [CrossRef] [Scilit]
  4. Ram, B.G.; Oduor, P.; Igathinathane, C.; Howatt, K.; Sun, X. A systematic review of hyperspectral imaging in precision agriculture: Analysis of its current state and future prospects. Comput. Electron. Agric. 2024, 222, 109037. [Google Scholar] [CrossRef] [Scilit]
  5. Li, X.; Li, Z.; Qiu, H.; Chen, G.; Fan, P. Soil carbon content prediction using multi-source data feature fusion of deep learning based on spectral and hyperspectral images. Chemosphere 2023, 336, 139161. [Google Scholar] [CrossRef] [Scilit]
  6. Kumar, D.; Kumar, D. Hyperspectral image classification using deep learning models: A review. J. Phys. Conf. Ser. 2021, 129, 012087. [Google Scholar] [CrossRef] [Scilit]
  7. Okwuashi, O.; Ndehedehe, C.E. Deep support vector machine for hyperspectral image classification. Pattern Recognit. 2020, 103, 107298. [Google Scholar] [CrossRef] [Scilit]
  8. Jin, S.; Zhang, F.; Zheng, Y.; Zhou, L.; Zuo, X.; Zhang, Z.; Zhao, W.; Zhang, W.; Pan, X. CSKNN: Cost-sensitive K-Nearest Neighbor using hyperspectral imaging for identification of wheat varieties. Comput. Electr. Eng. 2023, 111, 108896. [Google Scholar] [CrossRef] [Scilit]
  9. Tong, F.; Zhang, Y. Spectral–spatial and cascaded multilayer random forests for tree species classification in airborne hyperspectral images. IEEE Trans. Geosci. Remote Sens. 2022, 60, 4411711. [Google Scholar] [CrossRef] [Scilit]
  10. Li, J.; Bioucas-Dias, J.M.; Plaza, A. Spectral–spatial hyperspectral image segmentation using subspace multinomial logistic regression and Markov random fields. IEEE Trans. Geosci. Remote Sens. 2011, 50, 809–823. [Google Scholar] [CrossRef] [Scilit]
  11. Li, J.; Bioucas-Dias, J.M.; Plaza, A. Semisupervised hyperspectral image segmentation using multinomial logistic regression with active learning. IEEE Trans. Geosci. Remote Sens. 2010, 48, 4085–4098. [Google Scholar] [CrossRef] [Scilit]
  12. Gao, H.; Zhang, Y.; Chen, Z.; Li, C. A multiscale dual-branch feature fusion and attention network for hyperspectral images classification. IEEE J. Sel. Top. Appl. Earth Obs. Remote Sens. 2021, 14, 8180–8192. [Google Scholar] [CrossRef] [Scilit]
  13. Zhang, X.; Liang, Y.; Li, C.; Huyan, N.; Jiao, L.; Zhou, H. Recursive autoencoders-based unsupervised feature learning for hyperspectral image classification. IEEE Geosci. Remote Sens. Lett. 2017, 14, 1928–1932. [Google Scholar] [CrossRef] [Scilit]
  14. Esmaeili, M.; Abbasi-Moghadam, D.; Sharifi, A.; Tariq, A.; Li, Q. Hyperspectral image band selection based on CNN embedded GA (CNNeGA). IEEE J. Sel. Top. Appl. Earth Obs. Remote Sens. 2023, 16, 1927–1950. [Google Scholar] [CrossRef] [Scilit]
  15. Chen, S.-Y.; Hsu, K.-H.; Kuo, T.-H. Hyperspectral Target Detection-Based 2D-3D Parallel Convolutional Neural Networks for Hyperspectral Image Classification. IEEE J. Sel. Top. Appl. Earth Obs. Remote Sens. 2024, 17, 9451–9469. [Google Scholar] [CrossRef] [Scilit]
  16. Zhao, R.; Zhang, C.; Xue, D. A multi-scale multi-channel CNN introducing a channel-spatial attention mechanism hyperspectral remote sensing image classification method. Eur. J. Remote Sens. 2024, 57, 2353290. [Google Scholar] [CrossRef] [Scilit]
  17. Zhang, M.; Liu, L.; Jin, Y.; Lei, Z.; Wang, Z.; Jiao, L. Tree-shaped multiobjective evolutionary CNN for hyperspectral image classification. Appl. Soft Comput. 2024, 152, 111176. [Google Scholar] [CrossRef] [Scilit]
  18. Mou, L.; Ghamisi, P.; Zhu, X.X. Deep recurrent neural networks for hyperspectral image classification. IEEE Trans. Geosci. Remote Sens. 2017, 55, 3639–3655. [Google Scholar] [CrossRef] [Scilit]
  19. Dong, Y.; Gao, D.; Li, Y.; Shi, G.; Liu, D. Degradation estimation recurrent neural network with local and non-local priors for compressive spectral imaging. IEEE Trans. Geosci. Remote Sens. 2024, 62, 5520115. [Google Scholar] [CrossRef] [Scilit]
  20. Yu, Z.; Cui, W. Robust hyperspectral image classification using generative adversarial networks. Inf. Sci. 2024, 666, 120452. [Google Scholar] [CrossRef] [Scilit]
  21. Roy, S.K.; Krishna, G.; Dubey, S.R.; Chaudhuri, B.B. HybridSN: Exploring 3-D–2-D CNN feature hierarchy for hyperspectral image classification. IEEE Trans. Geosci. Remote Sens. Lett. 2019, 17, 277–281. [Google Scholar] [CrossRef] [Scilit]
  22. Rodarmel, C.; Shan, J. Principal component analysis for hyperspectral image classification. Surv. Land Inf. Sci. 2002, 62, 115–122. [Google Scholar]
  23. Ahmad, M.; Butt, M.H.F.; Mazzara, M.; Distefano, S.; Khan, A.M.; Altuwaijri, H.A. Pyramid hierarchical spatial-spectral transformer for hyperspectral image classification. IEEE J. Sel. Top. Appl. Earth Obs. Remote Sens. 2024, 17, 17681–17689. [Google Scholar] [CrossRef] [Scilit]
  24. 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] [Scilit]
  25. Rasti, B.; Hong, D.; Hang, R.; Ghamisi, P.; Kang, X.; Chanussot, J.; Benediktsson, J.A. Feature extraction for hyperspectral imagery: The evolution from shallow to deep: Overview and toolbox. IEEE Trans. Geosci. Remote Sens. Mag. 2020, 8, 60–88. [Google Scholar] [CrossRef] [Scilit]
  26. Zhou, J.; Zeng, S.; Gao, G.; Chen, Y.; Tang, Y. A novel spatial-spectral pyramid network for hyperspectral image classification. IEEE Trans. Geosci. Remote Sens. 2023, 61, 5519314. [Google Scholar] [CrossRef] [Scilit]
  27. Zhao, Z.; Xu, X.; Li, S.; Plaza, A. Hyperspectral Image Classification Using Groupwise Separable Convolutional Vision Transformer Network. IEEE Trans. Geosci. Remote Sens. 2024, 62, 5511817. [Google Scholar] [CrossRef] [Scilit]
  28. Alexey, D. An image is worth 16x16 words: Transformers for image recognition at scale. arXiv 2020, arXiv:2010.11929. [Google Scholar]
  29. Hong, D.; Han, Z.; Yao, J.; Gao, L.; Zhang, B.; Plaza, A.; Chanussot, J. SpectralFormer: Rethinking hyperspectral image classification with transformers. IEEE Trans. Geosci. Remote Sens. 2021, 60, 5518615. [Google Scholar] [CrossRef] [Scilit]
  30. Yao, J.; Zhang, B.; Li, C.; Hong, D.; Chanussot, J. Extended vision transformer (ExViT) for land use and land cover classification: A multimodal deep learning framework. IEEE Trans. Geosci. Remote Sens. 2023, 61, 5514415. [Google Scholar] [CrossRef] [Scilit]
  31. Yang, X.; Cao, W.; Lu, Y.; Zhou, Y. Hyperspectral image transformer classification networks. IEEE Trans. Geosci. Remote Sens. 2022, 60, 5528715. [Google Scholar] [CrossRef] [Scilit]
  32. Hu, W.; Huang, Y.; Wei, L.; Zhang, F.; Li, H. Deep convolutional neural networks for hyperspectral image classification. J. Sensors 2015, 2015, 258619. [Google Scholar] [CrossRef] [Scilit]
  33. Ge, Z.; Cao, G.; Li, X.; Fu, P. Hyperspectral image classification method based on 2D–3D CNN and multibranch feature fusion. IEEE J. Sel. Top. Appl. Earth Obs. Remote Sens. 2020, 13, 5776–5788. [Google Scholar] [CrossRef] [Scilit]
  34. Yu, C.; Han, R.; Song, M.; Liu, C.; Chang, C.-I. A simplified 2D-3D CNN architecture for hyperspectral image classification based on spatial–spectral fusion. IEEE J. Sel. Top. Appl. Earth Obs. Remote Sens. 2020, 13, 2485–2501. [Google Scholar] [CrossRef] [Scilit]
  35. Fang, B.; Li, Y.; Zhang, H.; Chan, J.C.-W. Hyperspectral images classification based on dense convolutional networks with spectral-wise attention mechanism. Remote Sens. 2019, 11, 159. [Google Scholar] [CrossRef] [Scilit]
  36. Kanthi, M.; Sarma, T.H.; Bindu, C.S. A 3D-deep CNN based feature extraction and hyperspectral image classification. In Proceedings of the 2020 IEEE India Geoscience and Remote Sensing Symposium (InGARSS), Ahmedabad, India, 1–4 December 2020; pp. 229–232. [Google Scholar]
  37. Zhou, J.; Zeng, S.; Xiao, Z.; Zhou, J.; Li, H.; Kang, Z. An enhanced spectral fusion 3D CNN model for hyperspectral image classification. Remote Sens. 2022, 14, 5334. [Google Scholar] [CrossRef] [Scilit]
  38. Zhang, Z.; Gao, D.; Liu, D.; Shi, G. Spectral-spatial domain attention network for hyperspectral image few-shot classification. Remote Sens. 2024, 16, 592. [Google Scholar] [CrossRef] [Scilit]
  39. Chhapariya, K.; Buddhiraju, K.M.; Kumar, A. A Deep Spectral-Spatial Residual Attention Network for Hyperspectral Image Classification. IEEE J. Sel. Top. Appl. Earth Obs. Remote Sens. 2024, 17, 15393–15406. [Google Scholar] [CrossRef] [Scilit]
  40. Wang, Y.; Li, K.; Xu, L.; Wei, Q.; Wang, F.; Chen, Y. A depthwise separable fully convolutional ResNet with ConvCRF for semisupervised hyperspectral image classification. IEEE J. Sel. Top. Appl. Earth Obs. Remote Sens. 2021, 14, 4621–4632. [Google Scholar] [CrossRef] [Scilit]
  41. Imani, M.; Ghassemian, H. An overview on spectral and spatial information fusion for hyperspectral image classification: Current trends and challenges. Inf. Fusion 2020, 59, 59–83. [Google Scholar] [CrossRef] [Scilit]
  42. Woo, S.; Park, J.; Lee, J.-Y.; Kweon, I.S. Cbam: Convolutional block attention module. In Proceedings of the European Conference on Computer Vision (ECCV), Munich, Germany, 8–14 September 2018; pp. 3–19. [Google Scholar]
  43. Ding, S.; Ruan, X.; Yang, J.; Sun, J.; Li, S.; Hu, J. LSSMA: Lightweight Spectral-Spatial Neural Architecture with Multi-Attention Feature Extraction for Hyperspectral Image Classification. IEEE J. Sel. Top. Appl. Earth Obs. Remote Sens. 2024, 17, 6394–6413. [Google Scholar] [CrossRef] [Scilit]
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.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.