[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Next Article in Journal
Analysis of Near-Surface Temperature Lapse Rates in Mountain Ecosystems of Northern Mexico Using Landsat-8 Satellite Images and ECOSTRESS
Next Article in Special Issue
Meta-Pixel-Driven Embeddable Discriminative Target and Background Dictionary Pair Learning for Hyperspectral Target Detection
Previous Article in Journal
Detecting the Spatial Variability of Seagrass Meadows and Their Consequences on Associated Macrofauna Benthic Activity Using Novel Drone Technology
Previous Article in Special Issue
Building Plane Segmentation Based on Point Clouds
You seem to have javascript disabled. Please note that many of the page functionalities won't work as expected without javascript enabled.
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Lightweight Convolutional Neural Network Based on Group-Wise Hybrid Attention for Remote Sensing Scene 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. 2022, 14(1), 161; https://doi.org/10.3390/rs14010161
Submission received: 25 November 2021 / Revised: 21 December 2021 / Accepted: 29 December 2021 / Published: 30 December 2021
(This article belongs to the Special Issue State-of-the-Art Remote Sensing Image Scene Classification)
Graphical abstract
">
Figure 1
<p>Features obtained by traditional convolution.</p> ">
Figure 2
<p>Channel Attention Module.</p> ">
Figure 3
<p>Spatial Attention Module.</p> ">
Figure 4
<p>Group-wise hybrid attention module (GWHAM). W, H, and C are the width, height and number of channels of the feature, respectively. <math display="inline"><semantics> <mover> <mi>X</mi> <mo>⌢</mo> </mover> </semantics></math> and <math display="inline"><semantics> <mover> <mi>X</mi> <mo>⌣</mo> </mover> </semantics></math> are the output features of channel attention and spatial attention, respectively. <math display="inline"><semantics> <mover> <mi>X</mi> <mo stretchy="false">˜</mo> </mover> </semantics></math> is the hybrid attention feature after fusion.</p> ">
Figure 5
<p>Overall flowchart of the proposed LCNN-GWHA method. (GWHAM refers to the group-wise hybrid attention modules, and GAP denotes global average pooling).</p> ">
Figure 6
<p>Confusion matrix of the proposed LCNN-GWHA method of the RSSCN7 Dataset (50/50).</p> ">
Figure 7
<p>Confusion Matrix for the LCNN-GWHA Method on the UCM21 Dataset (80/20).</p> ">
Figure 8
<p>Confusion Matrix for the LCNN-GWHA Method on the AID (50/50) Dataset.</p> ">
Figure 9
<p>Confusion Matrix for the LCNN-GWHA Method on the NWPU45 (20/80) Dataset.</p> ">
Figure 10
<p>Attention Visualization Results.</p> ">
Figure 11
<p>Class activation map (CAM) visualization results of the LCNN-GWHA method and the VGG_VD16 with SAFF method on UCM21 dataset.</p> ">
Figure 12
<p>Random classification prediction results.</p> ">
Versions Notes

Abstract

:
With the development of computer vision, attention mechanisms have been widely studied. Although the introduction of an attention module into a network model can help to improve classification performance on remote sensing scene images, the direct introduction of an attention module can increase the number of model parameters and amount of calculation, resulting in slower model operations. To solve this problem, we carried out the following work. First, a channel attention module and spatial attention module were constructed. The input features were enhanced through channel attention and spatial attention separately, and the features recalibrated by the attention modules were fused to obtain the features with hybrid attention. Then, to reduce the increase in parameters caused by the attention module, a group-wise hybrid attention module was constructed. The group-wise hybrid attention module divided the input features into four groups along the channel dimension, then used the hybrid attention mechanism to enhance the features in the channel and spatial dimensions for each group, then fused the features of the four groups along the channel dimension. Through the use of the group-wise hybrid attention module, the number of parameters and computational burden of the network were greatly reduced, and the running time of the network was shortened. Finally, a lightweight convolutional neural network was constructed based on the group-wise hybrid attention (LCNN-GWHA) for remote sensing scene image classification. Experiments on four open and challenging remote sensing scene datasets demonstrated that the proposed method has great advantages, in terms of classification accuracy, even with a very low number of parameters.

Graphical Abstract">

Graphical Abstract

1. Introduction

In recent years, convolutional neural networks (CNNs) have achieved excellent performance in many fields [1,2,3,4,5,6,7]. In particular, in the field of image classification [8,9,10,11], convolutional neural networks have become the most commonly used method. The core construction element of a convolutional neural network is the convolutional layer. For each convolutional layer, a group of filters is learned along the input channel to represent the local spatial mode, and feature information is extracted by fusing the spatial and channel information of the local receptive field. Improving the quality of spatial coding of the whole feature level of a convolutional neural network to enhance the representation ability of the network is an effective way to improve the performance of the network. It has been shown, with VGGNet [12], that increasing the depth of the network can significantly improve the performance of the network. ResNet [13] addressed the problem of performance degradation caused by network deepening: it expanded the network depth to 150 or even 1000 layers, based on VGGNet, and achieved good performance. InceptionNet [14] divided the input features into four channels, in which different convolution filters were used to adapt to different scales of features. Finally, the extracted features were fused along the channel dimension to improve network performance by increasing the width of the network. Subsequently, a series of lightweight convolutional neural networks were proposed. These networks reduce the complexity of the model while also having good feature extraction ability. Xception [15] and MoblenetV1 [16] introduced depth-wise separable convolution, instead of traditional convolution, for lightweight networks. Depth-wise separable convolution divides traditional convolution into depth-wise convolution and pointwise convolution to reduce the number of parameters of the model. MobilenetV2 [17] proved the validity of depthwise separable convolution. Grouping convolution also provides a way to improve network representation by increasing the width of the network while reducing the computational cost of the network. Assuming that g is used to represent the number of groups, both the number of parameters and the calculation cost of grouping convolution are 1 / g that of traditional convolution. Grouped convolution was first used in AlexNet due to hardware constraints and served to reduce the associated computational costs. By using grouped convolution in ResNeXts [18] and increasing the depth and width of the model, the classification accuracy was greatly improved. ShuffleNet [19,20] proposed channel shuffling, which can alleviate the loss of information due to a lack of information exchange between channels caused by grouping after grouping convolution.
The improvement of network performance by use of an attention mechanism has been demonstrated in many tasks. SENet [21] improved the network performance by explicitly modeling the dependences between channels. SENet consists of two operations: squeeze and excitation. The squeeze operation extrudes the features spatially through a global average pooling operation to obtain a value with a global receptive field. The resulting values from the excitation are obtained through two consecutive fully connected layers, and the channel attention map is derived from the correlation between the channels, which is used to recalibrate the features. SKNet [22] added two operations, split and fuse, on the basis of SENet. Split operations employ convolution kernels with different receptive field sizes to capture multiscale semantic information. Fusion operations fuse multiscale semantic information, enhance feature diversity, and aggregate feature maps from different size convolution kernels, according to their weights, by use of an SE module. It is also an effective method to improve the performance of the network, by explicitly modeling the dependence between channels and spatial information. CBAM [23] extracts channel attention and spatial attention through a combination of global average pooling and maximum pooling. The input features are enhanced in space and channel by using spatial attention and channel attention, respectively. Finally, the enhanced features are fused to improve the performance of the model. Wang et al. [24] designed a circular attention structure to reduce advanced semantic and spatial features to reduce the number of learning parameters. Tong et al. [25] introduced an attention mechanism into DenseNet to adaptively enhance the weights of important feature channels. Yu et al. [26] improved channel attention and proposed a hierarchical attention mechanism by combining the improved channel attention with a ResNet network. Alhichri et al. [27] proposed a deep attention convolution neural network to learn feature maps from large scene regions. We note that although the introduction of an attention module to a network can help to improve the network performance, adding an attention mechanism directly to the network increases the amount of network parameters and required calculations, thus reducing the running speed of the model. To solve this problem, we first constructed a new channel attention and spatial attention module to recalibrate the features. The channel attention sets the channel compression ratio of the SE module to 1/4 and replaces the fully connected layer with 1 × 1 convolution. We compressed the input features using a 5 × 5 × 1 convolution kernel and achieved spatial attention by using the Sigmoid activation function for the compressed features. Next, we propose a group-wise hybrid attention method, which groups input features and introduces hybrid attention to each group. Each group is re-calibrated using the spatial attention and channel attention, respectively, and the recalibrated features are fused.
The main contributions of this study are as follows:
(1)
Based on the SE module, we propose a channel attention module which is more suitable for remote sensing scene image classification. In the proposed method, the channel compression ratio is set to 1/4, and a 1 × 1 convolution kernel is adopted instead of a fully connected layer. The 1 × 1 convolution does not destroy the spatial structure of the features, and the size of the input features can be arbitrary.
(2)
We propose a spatial attention module with a simpler implementation process. Channels are compressed using a 5 × 5 × 1 convolution kernel directly, and spatial attention features are obtained using the Sigmoid activation function. The convolution kernel of 5 × 5 is helpful in providing a large receptive field, which can extract more spatial features.
(3)
A hybrid attention model is constructed by combining channel attention and spatial attention in parallel, which has higher activation and can learn more meaningful features.
(4)
To alleviate the problem that the introduction of attention leads to an increased number of parameters, we further propose a group-wise hybrid attention module. This module first divides input features into four groups in the channel dimension, then introduces hybrid attention to each group. Each group is recalibrated separately with spatial attention and channel attention and, finally, the rescaled features are fused in the channel dimension. Moreover, a lightweight convolutional neural network is constructed based on group-wise hybrid attention (LCNN-GWHA), which is shown to be an effective method for remote sensing scene image classification.
The remainder of this paper is structured as follows. In Section 2, the channel attention, spatial attention, hybrid attention, group-wise hybrid attention, and the proposed LCNN-GWHA method are described in detail. In Section 3, experiments and analyses are carried out, including a comparison with some state-of-the-art methods, in order to demonstrate the superior performance of the proposed method. In Section 4, the feature extraction ability of the proposed LCNN-GWHA method is evaluated by visualization. The conclusion of this paper is given in Section 5.

2. Methods

2.1. Traditional Convolution Process

Assuming that the input feature is X H × W × C , the output feature Y H × W × C is obtained by the convolution operation F ( ) , as shown in Figure 1. The set of convolution kernels is represented by U = [ u 1 , u 2 , , u C ] , where u C represents the c th convolution kernel. Then, the features of the c th channel of the output, Y = [ y 1 , y 2 , , y C ] , can be represented as:
y C = u C X = i = 1 C u C i x i
where represents the convolution operation, u C = [ u C 1 , u C 2 , , u C C ] , X = [ x 1 , x 2 , , x C ] , u C i represents the i th channel of the c th convolution kernel, x i represents the i th channel of the input feature, and u C i x i represents the spatial features learned from the ith channel. i = 1 C u C i x i means summing the spatial features learned by all channels through convolution, such that the final output feature y C includes both channel features and spatial features. Channel attention and spatial attention can be obtained by modeling the correlations between different channels and different spatial correlations, respectively.

2.2. Channel Attention

Channel attention first obtains the feature M 1 × 1 × C by spatially compressing the input features, then convolutes the compressed feature M 1 × 1 × C to model the correlation among the different channels. Channel attention assigns different weight coefficients to each channel to enhance important features and suppress unimportant features. The process of channel attention is shown in Figure 2.
Suppose the input feature is X = [ x 1 , x 2 , , x C ] , where x i H × W × C represents the feature of the i th channel. The input feature X = [ x 1 , x 2 , , x C ] is spatially compressed by global average pooling to obtain the feature M 1 × 1 × C , and the result M i for the i th channel feature can be represented as
M i = 1 H × W m = 1 H n = 1 W x i ( m , n )
where, H and W represent the height and width of feature x i , respectively. The feature M 1 × 1 × C compressed by global average pooling, can reflect global spatial information. Then, the feature M 1 × 1 × C , with the global receptive field, is subjected to two continuous 1 × 1 convolution operations to obtain M C = W 2 ( R ( W 1 M C ) ) , where W 1 C × C 4 and W 2 C 4 × C are the weights of the first and second 1 × 1 convolutions, respectively, and R ( ) represents the activation function Re l u . The first 1 × 1 convolution has the function of dimension reduction, which reduces the number of feature channels to one quarter of the original number of channels, and then the nonlinear relationship between channels is increased by Re l u . The second convolution restores the number of channels, normalizes the learned activation values of each channel into the range [0, 1] through the Sigmoid activation function and obtains the channel attention feature ζ ( M ) , where ζ ( ) represents the Sigmoid activation function. Finally, the input feature X = [ x 1 , x 2 , , x C ] is recalibrated through the channel attention feature, ζ ( M ) , to obtain X :
X = [ ζ ( M 1 ) x 1 , ζ ( M 2 ) x 2 , , ζ ( M C ) x C ]
where, ζ ( M i ) represents the importance of the i th channel. These activation values can be adaptively adjusted by the convolutional neural network. The channel attention module can enhance important features and suppress unimportant features.

2.3. Spatial Attention

Spatial attention first squeezes the channel to obtain the feature M H × W × 1 . Then, different weight coefficients are assigned to different locations of the compressed feature M H × W × 1 , through an activation function which enhances the target areas of interest and suppresses the unimportant areas. The process of spatial attention is depicted in Figure 3. Assuming that the input feature is X = [ x 1 , 1 , x 1 , 2 , , x m , n , , x H , W ] , x m , n 1 × 1 × C represents the feature at the corresponding spatial location ( m , n ) , where m { 1 , 2 , , H } and n { 1 , 2 , , W } , and the convolution kernel is f s q 5 × 5 × C × 1 . The calculation process of feature M H × W × 1 after channel compression is:
M = f s q X
where M [ M 1 , 1 , , M 1 , 2 , , M m , n , , M H , W ] and M m , n 1 × 1 × 1 represents the linear combination of all channels at spatial position ( m , n ) . Then, the Sigmoid activation function ζ ( ) is used to normalize it into the range [ 0 ,   1 ] to obtain the spatial attention feature ζ ( M m , n ) . Finally, the input feature X = [ x 1 , 1 , x 1 , 2 , , x m , n , , x H , W ] is recalibrated through the spatial attention feature ζ ( M m , n ) to obtain X ; that is:
X = [ ζ ( M 1 , 1 ) x 1 , 1 , ζ ( M 1 , 2 ) x 1 , 2 , , ζ ( M m , n ) x m , n , , ζ ( M H , W ) x H , W ]
where ζ ( M m , n ) represents the importance at the spatial position ( m , n ) of the feature. This enhances the importance of regions of interest and suppresses unimportant spatial locations.

2.4. Group-Wise Hybrid Attention

Spatial attention ignores the information interaction between channels, while channel attention ignores the information interaction in the spatial dimension. To solve this problem, hybrid attention is proposed. The output feature X of the spatial attention module and the output feature X of the channel attention module are fused to obtain the feature X ˜ , which is calibrated in space and channel respectively. ϕ ( p i m , n ) is used to represent the importance of the i th channel at the spatial position ( m , n ) .
The addition of hybrid attention to the network can improve the network performance, but inevitably increases the computational cost of the network and reduces the running speed of the model. Therefore, grouping convolution was designed to extract features more efficiently based on an attention mechanism, as shown in Figure 4. Assuming that the input features are X = [ x 1 1 , 1 , x 1 1 , 2 , , x i m , n , , x C H , W ] , first, the input features are grouped along the channel dimension to obtain X 1 = [ x 1 1 , 1 , x 1 1 , 2 , , x i m , n , , x C 4 H , W ] , X 2 = [ x C 4 1 , 1 , x C 4 1 , 2 , , x i m , n , , x C 2 H , W ] , X 3 = [ x C 2 1 , 1 , x C 2 1 , 2 , , x i m , n , , x 3 C 4 H , W ] and X 4 = [ x 3 C 4 1 , 1 , x 3 C 4 1 , 2 , , x i m , n , , x C H , W ] . Then, for the four grouped features X 1 , X 2 , X 3 and X 4 , channel attention and spatial attention are utilized to calibrate the features, respectively, and the enhanced results X ˜ 1 , X ˜ 2 , X ˜ 3 and X ˜ 4 are obtained. The specific process is as follow. When the grouped feature is X 1 = [ x 1 1 , 1 , x 1 1 , 2 , , x i m , n , , x C 4 H , W ] , where x i m , n represents the feature with spatial position (m, n) in the i th channel, the result for X ˜ 1 after applying the hybrid attention is shown in formula (6). In formula (6), ϕ ( p i m , n ) x i m , n represents the result of feature enhancement of each feature x i m , n in X 1 in the spatial and channel dimensions, respectively.
X ˜ 1 = [ ϕ ( p 1 1 , 1 ) x 1 1 , 1 , ϕ ( p 1 1 , 2 ) x 1 1 , 2 , , ϕ ( p i m , n ) x i m , n , , ϕ ( p C 4 H , W ) x C 4 H , W ]
When the grouped feature is X 2 = [ x C 4 1 , 1 , x C 4 1 , 2 , , x i m , n , , x C 2 H , W ] , the result of X ˜ 2 after hybrid attention is shown in formula (7). In formula (7), ϕ ( p i m , n ) x i m , n represents the enhanced result of each feature x i m , n in X 2 in the spatial and channel dimensions, respectively.
X ˜ 2 = [ ϕ ( p C 4 1 , 1 ) x C 4 1 , 1 , ϕ ( p C 4 1 , 2 ) x C 4 1 , 2 , , ϕ ( p i m , n ) x i m , n , , ϕ ( p C 2 H , W ) x C 2 H , W ]
When the grouped feature is X 3 = [ x C 2 1 , 1 , x C 2 1 , 2 , , x i m , n , , x 3 C 4 H , W ] , the result of X ˜ 3 after hybrid attention is shown in formula (8). In formula (8), ϕ ( p i m , n ) x i m , n represents the result of feature enhancement of each feature x i m , n in X 3 in the spatial and channel dimensions, respectively.
X ˜ 3 = [ ϕ ( p C 2 1 , 1 ) x C 2 1 , 1 , ϕ ( p C 2 1 , 2 ) x C 2 1 , 2 , , ϕ ( p i m , n ) x i m , n , , ϕ ( p 3 C 4 H , W ) x 3 C 4 H , W ]
When the grouped feature is X 4 = [ x 3 C 4 1 , 1 , x 3 C 4 1 , 2 , , x i m , n , , x C H , W ] , the result of X ˜ 4 after hybrid attention is shown in formula (9). In formula (9), ϕ ( p i m , n ) x i m , n represents the result of feature enhancement for each feature x i m , n in X 4 in the spatial and channel dimensions, respectively.
X ˜ 4 = [ ϕ ( p 3 4 C 1 , 1 ) x 3 4 C 1 , 1 , ϕ ( p 3 C 4 1 , 2 ) x 3 C 4 1 , 2 , , ϕ ( p i m , n ) x i m , n , , ϕ ( p C H , W ) x C H , W ]
Finally, the enhanced features X ˜ 1 , X ˜ 2 , X ˜ 3 , and X ˜ 4 are fused along the channel direction to obtain the output feature Y , as shown in formula (10). In formula (10), represents feature fusion along the channel dimension.
Y = X ˜ 1 X ˜ 2 X ˜ 3 X ˜ 4

2.5. Lightweight Convolution Neural Network Based on Group-Wise Hybrid Attention (LCNN-GWHA)

The structure of the proposed lightweight modular LCNN-GWHA method is shown in Figure 5. The structure is mainly composed of convolution, the group-wise hybrid attention module, a global average pooling layer, and the classifier. First, the shallow feature information is extracted through two consecutive convolution operations and then the deeper features are extracted through six group-wise hybrid attention modules (GWHAM). The output features of the last convolution are mapped to each category using global average pooling (GAP). The use of global average pooling does not increase the weight parameters and can effectively avoid the over-fitting phenomenon in the training process. Finally, the softmax function classifier is adopted to classify the features.
If a fully connected layer (FC) with the classification number n is used to classify the average pooled output result g i G , and the classification result is Q [ q 1 , q 2 , , q i , , q N ] F C ( g i ) , the output result S = [ s 1 , s 2 , , s i , , s N ] from softmax can be represented as:
s i = e Q [ i 1 ] k = 0 N 1 e Q [ k ]
where Q i represents the i -th element in Q (the index starts from 0). Cross-entropy is adopted as the loss function. Assuming that T = [ t 1 , t 2 , , t i , , t N ] represents the encoding result of the input sample label. Then, the loss function can be represented as:
L = i = 1 N t i log ( s i )
where N represents the number of categories, s i represents the output result of Softmax, and the input sample label adopts the one-hot coding rule.

3. Experiments

In this section, some evaluation indicators are adopted to evaluate the proposed LCNN-GWHA method. The proposed LCNN-GWHA method was compared with various state-of-the-art methods on four challenging datasets. To make a fair comparison, both the proposed method and those methods used for comparison were carried out under the same experimental environment and super parameters. The experimental results indicate that the proposed method can classify remote sensing scene images more accurately and has obvious advantages in terms of parameter quantity and running speed.

3.1. Dataset Settings

Experiments were performed on four commonly used datasets: UCM21 [28], RSSCN7 [29], AID [30], and NWPU45 [31]. In Table 1, the number of images per category, the number of scene categories, the total number of images, the spatial resolution of images, and the size of images in the four datasets are listed. To avoid memory overflow during the training process, bilinear interpolation was used to resize the input images to 256 × 256.

3.2. Setting of the Experiments

The stratified sampling method was adopted to divide the datasets to avoid the risk of sampling bias. In addition, so that the proposed method and the compared method used the same training samples, random seeds were set during the division of training and test samples. For the UCM21 [28] dataset, the training proportion was set to 80%; For the RSSCN7 [29] dataset, the training proportion was set to 50%; For the AID [30] dataset, the training proportions were set to 20% and 50%, respectively. Finally, for the NWPU45 [31] dataset, the training proportions were set to 10% and 20%, respectively. The parameters and equipment configuration used in the experiments are listed in Table 2, while the training parameters used for the proposed LCNN-GWHA method are given in Table 3.

3.3. Performance of the Proposed Model

Table 4 details the performance of the proposed method on the four data sets with various training ratios. In order to verify the performance of the proposed method, the overall accuracy (OA), average accuracy (AA), kappa coefficient (kappa), and F1 score (F1) were adopted as evaluation indices for the experiments. The OA represents the percentage of correct classification in the test set; AA represents the ratio of the number of correctly predicted samples in each category to the total number of samples in the category; the F1 score is the weighted average of accuracy and recall, which is used to measure the robustness of the model, and the Kappa coefficient is used for consistency evaluation, in terms of whether the predicted results are consistent with the actual classification results. It can be seen from Table 4 that the OA and AA of the proposed method on the four data sets reached more than 90%, and the difference between the OA and AA was less than 1%, indicating that the proposed method has strong generalization ability. The Kappa coefficient was more than 90%, which demonstrates that the predicted value obtained by the proposed method was almost consistent with the real value. The F1 value results also proved that the proposed method has strong robustness.

3.3.1. Experimental Results of the RSSCN7 Dataset

The comparison results for the RSSCN7 dataset are shown in Table 5. In this dataset, the proportion of samples used for training was 50% of the total number of samples. The proposed method had 0.3 M parameters and 97.78% classification accuracy. It had the highest accuracy and the least number of parameters compared with all of the methods used for comparison. The OA of the proposed method was 2.57% higher than that of ADFF [32], 2.24% higher than that of Coutourlet CNN [33], and 3.07% higher than that of SE-MDPMNet [34]. The confusion matrix for the proposed method of the RSSCN7 dataset is shown in Figure 6. It can be seen from Figure 6 that the proposed method achieved 99% classification accuracy for ‘Forest’, ‘Parking’, and ‘RiverLake’ categories, indicating that these scenarios had high interclass differences and intraclass similarities. ‘Grass’ was a scenario with a minimum classification accuracy of 95%, some of which were incorrectly classified into ‘Forest’ and ‘Field’ scenarios, as the three scenarios are similar and have small intraclass differences, resulting in the incorrect classification of grasslands.

3.3.2. Experimental Results of the UCM21 Dataset

The division proportion for the UCM21 dataset was set as training/test = 8:2, and the experimental results on the UCM21 dataset are shown in Table 6. It can be seen from Table 6 that the OAs of some methods on this dataset exceeded 99%. In this case, the number of parameters was an important evaluation index. The parameter amount of the proposed method was 0.31 M and, the classification accuracy was 99.76%, 5.89 M less than that of the LCNN-BFF method [38] parameters with 99.29% accuracy, and 21.69 M less than that of the Inceptionv3+CapsNet method [39] parameters with 99.05% accuracy. The proposed method achieves high classification accuracy while greatly reducing the number of parameters of the model.
The confusion matrix of the proposed method on the UCM21 dataset with a training:test = 8:2 is shown in Figure 7. As can be seen from Figure 7, except for the ‘mediumresidential’ scene, all other scenes were fully recognized. This was because the two scenes ‘mediumresidential’ and ‘mobilehomepark’ were very similar in appearance, resulting in confusion in classification.

3.3.3. Experimental Results on the AID Dataset

For the AID dataset, experiments were performed with training test = 2:8 and training test = 5:5, respectively. The experimental results are shown in Table 7. It can be seen that when the training ratio was 20%, our method achieved the best performance with the least parameters, and the classification accuracy reached 93.85%, which is 0.58% higher than that of Inception V3 [55], and 1.46% higher than that of ResNet50 [55]. When the training proportion was 50%, compared with the Discriminative CNN [44] method, the Inception V3 [55] method, and the Skip Connected CNN [43] method, the proposed method had great advantages in classification accuracy, with the amount of model parameters being only 0.2, 0.6, and 1.6% of the abovementioned methods, respectively.
The confusion matrix for the proposed method on the AID dataset with training test = 5:5 is shown in Figure 8. The three scenarios of ‘Meadow, ‘Viaduct’ and ‘Sparse Residential’ achieved 100% correct classification. The lowest classification accuracy, for the ‘industrial’ category, was 94%, as the ‘Industrial’ and ‘Commercial’ areas have similar architectural styles, resulting in some ‘Industrial’ scenes being incorrectly classified as ‘Commercial’. Moreover, ‘Desert’ and ‘BareLand’ were also easily confused, as they have similar surface appearance, resulting in low classification accuracy for desert areas. Nevertheless, compared with other state-of-the-art classification methods, the proposed method still achieved higher classification accuracy.

3.3.4. Experimental Results on the NWPU45 Dataset

For the NWPU45 dataset, experiments were carried out with training test = 2:8 and training test = 1:9, respectively. The experimental results are shown in Table 8. We can see that when the training proportion was 10%, the proposed method achieved 92.24% classification accuracy with 0.3 M parameters, which is 2.01% higher than that of LiG with RBF kernel [56] with 2.07 M parameters, 7.91% higher than that of Skip-Connected CNN [43] with 6 M parameters, and 5.71% higher than that of the LCNN-BFF method [38] with 6.2 M parameters. When the training proportion was 20%, the OA of the proposed method was 94.26%, which is 1.01% higher than that of LiG with RBF kernel [56], 2.37% higher than that of Discriminative with VGG16 [44], and 2.53% higher than that of the LCNN-BFF Method [38]. The experimental results demonstrate that the proposed method could extract more significant features with fewer parameters in datasets with rich image changes, as well as high similarity between classes and intra-class differences.
The confusion matrix for the proposed method on the training test = 2:8 NWPU45 dataset is shown in Figure 9. As the NWPU45 dataset has high intraclass dissimilarity and interclass similarity, none of the classes were completely correctly classified. However, there were 44 scenarios that achieved a classification accuracy of over 90%, and thus achieved good classification results. As shown in Figure 9, the worst accuracy scenarios were ‘church’ and ‘palace’ with accuracies of 90% and 89%, respectively, as they had very similar buildings, which caused confusion when classifying. In addition, the classification accuracy of ‘roundabout’ scenes was lower than 91%, as irregular intersections can easily be identified as ‘intersection’ scenes, resulting in incorrect classification. Nevertheless, the proposed method still gave good classification results for each scenario.

3.4. Speed Comparison of Models

To verify the advantage of our method in terms of speed, experiments were performed on the UCM21 dataset using the ATT evaluation index. The ATT refers to the average training time required by a model to process an image. Because the results of ATT have a great relationship with the performance of the computer, other algorithms for comparison are rerun on the same computer. In order to reduce random effects, the average value of ten experiments is taken as the final result for each method. The experimental results of our method were compared with those of advanced methods, as detailed in Table 9.
It can be seen that under the same experimental equipment, the proposed method took 0.010 s to process a remote sensing image, which was the shortest time compared with the other methods. It was 0.018 s faster than that the Siamese ALexNet [51] method and 0.019 s faster than that the LCNN-BFF [38] method.

3.5. Comparison of Computational Complexity of Models

The floating-point operations (FLOPs) evaluation index is used to measure the complexity of models. Experiments were performed on the AID dataset with a training proportion of 50%. The experimental results are shown in Table 10. It can be seen that both the OA and FLOPs of the proposed method were the best compared with those of the methods used for comparison. Compared with the lightweight network models, MobileNetv2 [34] and SE-MDPMNet [34], on the premise that the FLOPs value has great advantages, the classification accuracy of the proposed method was 1.68% and 0.5% higher than these methods, respectively, thus verifying that the proposed LCNN-GWHA method can achieve a good trade-off between classification accuracy and running speed.

4. Discussion

To the performance of the proposed LCNN-GWHA method more intuitively, three visualization methods were explored. The UCM21 dataset was selected for these experiments. First, the channel attention, spatial attention, and mixed attention used in the LCNN-GWHA method were visualized, as shown in Figure 10. In Figure 10, different colors represent the degree of attention to the region, and where the yellow color represents a high degree of attention to the region.
From the visualization results in Figure 10, it can be seen that the points of interest under the different attention mechanisms were different, as well as the areas of enhancement. Channel attention enhanced the feature points of interest, while spatial attention enhanced the background area of interest. For hybrid attention, this added spatial attention on the basis of channel attention, which made it more active and allowed learning more meaningful features. Therefore, both the background area and feature points were enhanced at the same time.
Next, class activation map (CAM) visualization was used to visualize the entire network feature extraction ability of the proposed LCNN-GWHA method. This method uses the gradient of any target and then generates a rough attention map from the last layer of the convolution network to show important areas in the image predicted by the model. Some images were randomly selected from the UCM21 dataset for visual analysis. The VGG_VD16 with SAFF method is adopted for CAM visual comparison with the proposed LCNN-GWHA method. The visual comparison results are shown in Figure 11. The LCNN-GWHA method can better cover important objects with a wide range of highlights. Especially for the ‘Tenniscourt’ scenario, the proposed LCNN-GWHA method perfectly covers the main target, while the coverage area of VGG_VD16 with SAFF method deviates severely, resulting in classification errors. This is because the LCNN-GWHA method proposed has strong target positioning and recognition ability due to the enhancement of features by hybrid attention.
In addition, some random classification experiments were conducted on the UCM21 data set to further prove the effectiveness of the proposed LCNN-GWHA method. The experimental results are shown in Figure 12. We can see that the predictive confidence of the model exceeded 99%, and some of the individual cases reached 100%. This proves that the proposed LCNN-GWHA method could extract image features more effectively.

5. Conclusions

In this paper, we present a lightweight end-to-end convolutional neural network for remote sensing scene image classification that combines the advantages of channel attention, spatial attention, and channel grouping. Channel attention is introduced to enhance important features, spatial attention is introduced to enhance the regions of interest, and the two kinds of attention are fused to generate a hybrid attention module with higher activation, which can extract more meaningful features. In order to make the proposed model lightweight, group-wise hybrid attention is proposed, and hybrid attention is introduced into each group, which not only ensures high classification accuracy but also greatly reduces the computational complexity. Experiments were carried out on four data sets with various training ratios. The experimental results demonstrate that the proposed method is robust and has higher classification accuracy than state-of-the-art methods. In addition to spatial attention and channel attention, self -attention is another effective method to improve network performance. In future work, we will propose a more efficient lightweight convolutional neural network for remote sensing scene classification, based on the use of a self-attention mechanism.

Author Contributions

Conceptualization, C.S.; data curation, C.S., X.Z. and J.S.; formal analysis, L.W.; methodology, C.S.; software, X.Z.; validation, C.S., X.Z. and J.S.; writing—original draft, X.Z.; 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 Heilongjiang Science Foundation Project of China under Grant LH2021D022, in part by the National Natural Science Foundation of China (41701479, 62071084), and in part by the Fundamental Research Funds in Heilongjiang Provincial Universities of China under Grant 135509136.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Data associated with this research are available online. The UC Merced dataset is available for download at http://weegee.vision.ucmerced.edu/datasets/landuse.html (accessed on 18 November 2021). RSCCN dataset is available for download at https://sites.google.com/site/qinzoucn/documents (accessed on 18 November 2021). NWPU dataset is available for download at http://www.escience.cn/people/JunweiHan/NWPU-RESISC45.html (accessed on 18 November 2021). AID dataset is available for download at https://captain-whu.github.io/AID/ (accessed on 18 November 2021).

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. Krizhevsky, A.; Sutskever, I.; Hinton, G.E. ImageNet classification with deep convolutional neural networks. Adv. Neural Inf. Process. Syst. 2012, 25, 1097–1105. [Google Scholar] [CrossRef]
  2. Toshev, A.; Szegedy, C. DeepPose: Human Pose Estimation via Deep Neural Networks. In Proceedings of the IEEE Computer Society Conference on Computer Vision and Pattern Recognition, Columbus, OH, USA, 23–28 June 2014; pp. 1653–1660. [Google Scholar]
  3. Long, J.; Shelhamer, E.; Darrell, T. Fully convolutional networks for semantic segmentation. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Columbus, OH, USA, June 2015; pp. 3431–3440. [Google Scholar]
  4. Ren, S.; He, K.; Girshick, R.; Sun, J. Faster R-CNN: Towards real-time object detection with region proposal networks. Adv. Neural Inf. Process. Syst. 2015, 28, 91–99. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  5. Zheng, X.; Chen, X.; Lu, X.; Sun, B. Unsupervised Change Detection by Cross-Resolution Difference Learning. IEEE Trans. Geosci. Remote. Sens. 2021, 18, 1–16. [Google Scholar] [CrossRef]
  6. Zheng, X.; Wang, B.; Du, X.; Lu, X. Mutual Attention Inception Network for Remote Sensing Visual Question Answering. IEEE Trans. Geosci. Remote. Sens. 2021, 18, 1–14. [Google Scholar] [CrossRef]
  7. Luo, F.; Zou, Z.; Liu, J.; Lin, Z. Dimensionality reduction and classification of hyperspectral image via multi-structure unified discriminative embedding. IEEE Trans. Geosci. Remote Sens. 2021, 18, 1. [Google Scholar] [CrossRef]
  8. 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]
  9. Luo, F.; Huang, H.; Ma, Z.; Liu, J. Semi-supervised Sparse Manifold Discriminative Analysis for Feature Extraction of Hyperspectral Images. IEEE Trans. Geosci. Remote Sens. 2016, 54, 6197–6221. [Google Scholar] [CrossRef]
  10. Luo, F.; Zhang, L.; Zhou, X.; Guo, T.; Cheng, Y.; Yin, T. Sparse-Adaptive Hypergraph Discriminant Analysis for Hyperspectral Image Classification. IEEE Geosci. Remote Sens. Lett. 2020, 17, 1082–1086. [Google Scholar] [CrossRef]
  11. Zheng, X.; Gong, T.; Li, X.; Lu, X. Generalized Scene Classification From Small-Scale Datasets With Multitask Learning. IEEE Trans. Geosci. Remote Sens. 2021, 18, 1–11. [Google Scholar] [CrossRef]
  12. Simonyan, K.; Zisserman, A. Very deep convolutional networks for large-scale image recognition. arXiv 2014, arXiv:1409.1556. [Google Scholar]
  13. He, K.; Zhang, X.; Ren, S.; Sun, J. Identity Mappings in Deep Residual Networks. In Proceedings of the 14th European Conference on Computer Vision, Amsterdam, The Netherlands, 11–14 October 2016; pp. 630–645. [Google Scholar] [CrossRef] [Green Version]
  14. Ioffe, S.; Szegedy, C. Batch normalization: Accelerating deep network training by reducing internal covariate shift. arXiv 2015, arXiv:1502.03167. [Google Scholar]
  15. Carreira, J.; Madeira, H.; Silva, J.G. Xception: A technique for the experimental evaluation of dependability in modern computers. IEEE Trans. Softw. Eng. 1998, 24, 125–136. [Google Scholar] [CrossRef] [Green Version]
  16. Howard, A.G.; Zhu, M.; Chen, B.; Kalenichenko, D.; Wang, W.; Weyand, M.; Andreetto, M.; Adam, H. Mobilenets: Efficient convolutional neural networks for mobile vision applications. arXiv 2017, arXiv:1704.04861. [Google Scholar]
  17. Sandler, M.; Howard, A.; Zhu, M.; Zhmoginov, A.; Chen, L. MobileNetV2: Inverted residuals and linear bottlenecks. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Salt Lake City, UT, USA, 18–23 June 2018; pp. 4510–4520. [Google Scholar] [CrossRef] [Green Version]
  18. Xie, S.N.; Girshick, R.; Dollar, P.; Tu, Z.W.; He, K.M. Aggregated Residual Transformations for Deep Neural Networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Honolulu, HI, USA, 21–26 July 2017; pp. 5987–5995. [Google Scholar] [CrossRef] [Green Version]
  19. Zhang, X.; Zhou, X.; Lin, M.; Sun, J. ShuffleNet: An Extremely Efficient Convolutional Neural Network for Mobile Devices. In Proceedings of the 2018 IEEE/CVF Conference on Computer Vision and Pattern Recognition, Salt Lake City, UT, USA, 18–23 June 2018; p. 18326147. [Google Scholar]
  20. Ma, N.; Zhang, X.; Zheng, H.T.; Sun, J. Shufflflenet v2: Practical guidelines for efficient cnn architecture design. arXiv 2018, arXiv:1807.11164. [Google Scholar]
  21. Hu, J.; Shen, L.; Sun, G. Squeeze-and-Excitation Networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Salt Lake City, UT, USA, 18–23 June 2018; pp. 7132–7141. [Google Scholar]
  22. Li, X.; Wang, W.; Hu, X.; Yang, J. Selective kernel networks. In Proceedings of the 2019 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Long Beach, CA, USA, 15–20 June 2019; pp. 510–519. [Google Scholar]
  23. Woo, S.; Park, J.; Lee, J.; Kweon, I.S. CBAM: Convolutional Block Attention Module. In Proceedings of the 2018 European Conference on Computer Vision, Munich, Germany, 8–14 September 2018. [Google Scholar]
  24. Wang, Q.; Liu, S.; Chanussot, J.; Li, X. Scene Classification With Recurrent Attention of VHR Remote Sensing Images. IEEE Trans. Geosci. Remote Sens. 2019, 57, 1155–1167. [Google Scholar] [CrossRef]
  25. Tong, W.; Chen, W.; Han, W.; Li, X.; Wang, L. Channel-Attention-Based DenseNet Network for Remote Sensing Image Scene Classification. IEEE J. Sel. Top. Appl. Earth Obs. Remote Sens. 2020, 13, 4121–4132. [Google Scholar] [CrossRef]
  26. Yu, D.; Guo, H.; Xu, Q.; Lu, J.; Zhao, C.; Lin, Y. Hierarchical Attention and Bilinear Fusion for Remote Sensing Image Scene Classification. IEEE J. Sel. Top. Appl. Earth Obs. Remote Sens. 2020, 13, 6372–6383. [Google Scholar] [CrossRef]
  27. Alhichri, H.; Alswayed, A.S.; Bazi, Y.; Ammour, N.; Alajlan, N.A. Classification of Remote Sensing Images Using EfficientNet-B3 CNN Model With Attention. IEEE Access 2021, 9, 14078–14094. [Google Scholar] [CrossRef]
  28. Yang, Y.; Newsam, S. Bag-of-visual-words and spatial extensions for land-use classification. In Proceedings of the 18th SIGSPATIAL International Conference on Advances in Geographic Information Systems, San Jose, CA, USA, 3–5 November 2010; pp. 270–279. [Google Scholar]
  29. Zou, Q.; Ni, L.; Zhang, T.; Wang, Q. Deep Learning Based Feature Selection for Remote Sensing Scene Classification. IEEE Geosci. Remote Sens. Lett. 2015, 12, 2321–2325. [Google Scholar] [CrossRef]
  30. Xia, G.-S.; Hu, J.; Hu, F.; Shi, B.; Bai, X.; Zhong, Y.; Zhang, L.; Lu, X. AID: A Benchmark Data Set for Performance Evaluation of Aerial Scene Classification. IEEE Trans. Geosci. Remote Sens. 2017, 55, 3965–3981. [Google Scholar] [CrossRef] [Green Version]
  31. Cheng, G.; Han, J.; Lu, X. Remote Sensing Image Scene Classification: Benchmark and State of the Art. Proc. IEEE. 2017, 105, 1865–1883. [Google Scholar] [CrossRef] [Green Version]
  32. Li, B.; Su, W.; Wu, H.; Li, R.; Zhang, W.; Qin, W.; Zhang, S. Aggregated Deep Fisher Feature for VHR Remote Sensing Scene Classification. IEEE J. Sel. Top. Appl. Earth Obs. Remote Sens. 2019, 12, 3508–3523. [Google Scholar] [CrossRef]
  33. Liu, M.; Jiao, L.; Liu, X.; Li, L.; Liu, F.; Yang, S. C-CNN: Contourlet Convolutional Neural Networks. IEEE Trans. Neural Netw. Learn. Syst. 2021, 32, 2636–2649. [Google Scholar] [CrossRef] [PubMed]
  34. Zhang, B.; Zhang, Y.; Wang, S. A Lightweight and Discriminative Model for Remote Sensing Scene Classification With Multidilation Pooling Module. IEEE J. Sel. Top. Appl. Earth Obs. Remote Sens. 2019, 12, 2636–2653. [Google Scholar] [CrossRef]
  35. Zhao, F.; Mu, X.; Yang, Z.; Yi, Z. A novel two-stage scene classification model based on feature variable significance in high-resolution remote sensing. Geocarto Int. 2019, 35, 1603–1614. [Google Scholar] [CrossRef]
  36. Liu, Y.; Liu, Y.; Ding, L. Scene classification based on two-stage deep feature fusion. IEEE Geosci. Remote Sens. Lett. 2018, 15, 183–186. [Google Scholar] [CrossRef]
  37. Liu, B.-D.; Meng, J.; Xie, W.-Y.; Shao, S.; Li, Y.; Wang, Y. Weighted Spatial Pyramid Matching Collaborative Representation for Remote-Sensing-Image Scene Classification. Remote Sens. 2019, 11, 518. [Google Scholar] [CrossRef] [Green Version]
  38. Shi, C.; Wang, T.; Wang, L. Branch Feature Fusion Convolution Network for Remote Sensing Scene Classification. IEEE J. Sel. Top. Appl. Earth Obs. Remote Sens. 2020, 13, 5194–5210. [Google Scholar] [CrossRef]
  39. Zhang, W.; Tang, P.; Zhao, L. Remote sensing image scene classification using CNN-CapsNet. Remote Sens. 2019, 11, 494. [Google Scholar] [CrossRef] [Green Version]
  40. He, N.; Fang, L.; Li, S.; Plaza, A.; Plaza, J. Remote Sensing Scene Classification Using Multilayer Stacked Covariance Pooling. IEEE Trans. Geosci. Remote. Sens. 2018, 56, 6899–6910. [Google Scholar] [CrossRef]
  41. Sun, H.; Li, S.; Zheng, X.; Lu, X. Remote Sensing Scene Classification by Gated Bidirectional Network. IEEE Trans. Geosci. Remote Sens. 2020, 58, 82–96. [Google Scholar] [CrossRef]
  42. Lu, X.; Sun, H.; Zheng, X. A Feature Aggregation Convolutional Neural Network for Remote Sensing Scene Classification. IEEE Trans. Geosci. Remote Sens. 2019, 57, 7894–7906. [Google Scholar] [CrossRef]
  43. He, N.; Fang, L.; Li, S.; Plaza, J.; Plaza, A. Skip-Connected Covariance Network for Remote Sensing Scene Classification. IEEE Trans. Neural Netw. Learn. Syst. 2019, 31, 1461–1474. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  44. Cheng, G.; Yang, C.; Yao, X.; Guo, L.; Han, J. When Deep Learning Meets Metric Learning: Remote Sensing Image Scene Classification via Learning Discriminative CNNs. IEEE Trans. Geosci. Remote Sens. 2018, 56, 2811–2821. [Google Scholar] [CrossRef]
  45. Boualleg, Y.; Farah, M.; Farah, I.R. Remote Sensing Scene Classification Using Convolutional Features and Deep Forest Classifier. IEEE Geosci. Remote Sens. Lett. 2019, 16, 1944–1948. [Google Scholar] [CrossRef]
  46. Xie, J.; He, N.; Fang, L.; Plaza, A. Scale-Free Convolutional Neural Network for Remote Sensing Scene Classification. IEEE Trans. Geosci. Remote Sens. 2019, 57, 6916–6928. [Google Scholar] [CrossRef]
  47. Li, J.; Lin, D.; Wang, Y.; Xu, G.; Zhang, Y.; Ding, C.; Zhou, Y. Deep Discriminative Representation Learning with Attention Map for Scene Classification. Remote Sens. 2020, 12, 1366. [Google Scholar] [CrossRef]
  48. Yan, P.; He, F.; Yang, Y.; Hu, F. Semi-Supervised Representation Learning for Remote Sensing Image Classification Based on Generative Adversarial Networks. IEEE Access 2020, 8, 54135–54144. [Google Scholar] [CrossRef]
  49. Wang, C.; Lin, W.; Tang, P. Multiple resolution block feature for remote-sensing scene classification. Int. J. Remote Sens. 2019, 40, 6884–6904. [Google Scholar] [CrossRef]
  50. Liu, X.; Zhou, Y.; Zhao, J.; Yao, R.; Liu, B.; Zheng, Y. Siamese Convolutional Neural Networks for Remote Sensing Scene Classification. IEEE Geosci. Remote Sens. Lett. 2019, 16, 1200–1204. [Google Scholar] [CrossRef]
  51. Zhou, Y.; Liu, X.; Zhao, J.; Ma, D.; Yao, R.; Liu, B.; Zheng, Y. Remote sensing scene classification based on rotation-invariant feature learning and joint decision making. EURASIP J. Image Video Process. 2019, 2019, 3. [Google Scholar] [CrossRef] [Green Version]
  52. Lu, X.; Ji, W.; Li, X.; Zheng, X. Bidirectional adaptive feature fusion for remote sensing scene classification. Neurocomputing 2019, 328, 135–146. [Google Scholar] [CrossRef]
  53. Liu, Y.; Zhong, Y.; Qin, Q. Scene Classification Based on Multiscale Convolutional Neural Network. IEEE Trans. Geosci. Remote Sens. 2018, 56, 7109–7121. [Google Scholar] [CrossRef] [Green Version]
  54. Cao, R.; Fang, L.; Lu, T.; He, N. Self-Attention-Based Deep Feature Fusion for Remote Sensing Scene Classification. IEEE Geosci. Remote Sens. Lett. 2021, 18, 43–47. [Google Scholar] [CrossRef]
  55. Li, W.; Wang, Z.; Wang, Y.; Wu, J.; Wang, J.; Jia, Y.; Gui, G. Classification of High-Spatial-Resolution Remote Sensing Scenes Method Using Transfer Learning and Deep Convolutional Neural Network. IEEE J. Sel. Top. Appl. Earth Obs. Remote Sens. 2020, 13, 1986–1995. [Google Scholar] [CrossRef]
  56. Xu, C.; Zhu, G.; Shu, J. A Lightweight Intrinsic Mean for Remote Sensing Classification With Lie Group Kernel Function. IEEE Geosci. Remote Sens. Lett. 2021, 18, 1741–1745. [Google Scholar] [CrossRef]
Figure 1. Features obtained by traditional convolution.
Figure 1. Features obtained by traditional convolution.
Remotesensing 14 00161 g001
Figure 2. Channel Attention Module.
Figure 2. Channel Attention Module.
Remotesensing 14 00161 g002
Figure 3. Spatial Attention Module.
Figure 3. Spatial Attention Module.
Remotesensing 14 00161 g003
Figure 4. Group-wise hybrid attention module (GWHAM). W, H, and C are the width, height and number of channels of the feature, respectively. X and X are the output features of channel attention and spatial attention, respectively. X ˜ is the hybrid attention feature after fusion.
Figure 4. Group-wise hybrid attention module (GWHAM). W, H, and C are the width, height and number of channels of the feature, respectively. X and X are the output features of channel attention and spatial attention, respectively. X ˜ is the hybrid attention feature after fusion.
Remotesensing 14 00161 g004
Figure 5. Overall flowchart of the proposed LCNN-GWHA method. (GWHAM refers to the group-wise hybrid attention modules, and GAP denotes global average pooling).
Figure 5. Overall flowchart of the proposed LCNN-GWHA method. (GWHAM refers to the group-wise hybrid attention modules, and GAP denotes global average pooling).
Remotesensing 14 00161 g005
Figure 6. Confusion matrix of the proposed LCNN-GWHA method of the RSSCN7 Dataset (50/50).
Figure 6. Confusion matrix of the proposed LCNN-GWHA method of the RSSCN7 Dataset (50/50).
Remotesensing 14 00161 g006
Figure 7. Confusion Matrix for the LCNN-GWHA Method on the UCM21 Dataset (80/20).
Figure 7. Confusion Matrix for the LCNN-GWHA Method on the UCM21 Dataset (80/20).
Remotesensing 14 00161 g007
Figure 8. Confusion Matrix for the LCNN-GWHA Method on the AID (50/50) Dataset.
Figure 8. Confusion Matrix for the LCNN-GWHA Method on the AID (50/50) Dataset.
Remotesensing 14 00161 g008
Figure 9. Confusion Matrix for the LCNN-GWHA Method on the NWPU45 (20/80) Dataset.
Figure 9. Confusion Matrix for the LCNN-GWHA Method on the NWPU45 (20/80) Dataset.
Remotesensing 14 00161 g009
Figure 10. Attention Visualization Results.
Figure 10. Attention Visualization Results.
Remotesensing 14 00161 g010
Figure 11. Class activation map (CAM) visualization results of the LCNN-GWHA method and the VGG_VD16 with SAFF method on UCM21 dataset.
Figure 11. Class activation map (CAM) visualization results of the LCNN-GWHA method and the VGG_VD16 with SAFF method on UCM21 dataset.
Remotesensing 14 00161 g011
Figure 12. Random classification prediction results.
Figure 12. Random classification prediction results.
Remotesensing 14 00161 g012
Table 1. Description of four datasets.
Table 1. Description of four datasets.
DatasetsNumber of Images Per ClassNumber of ClassesTotal Number of ImagesSpatial Resolution (m)Image Size
UCM211002121000.3256 × 256
RSSCN740072800-400 × 400
AID200–4003010,0000.5–0.8600 × 600
NWPU457004531,5000.2–30256 × 256
Table 2. Experimental environment and parameter settings.
Table 2. Experimental environment and parameter settings.
ItemContents
ProcessorAMD Ryzen 7 4800 H with Radeon [email protected] GHz
Memory16 GB
Operating systemWindows10
Solid state hard disk512 GB
SoftwarePyCharm Community Edition 2020.3.2
GPUNVIDIA GeForce RTX2060 6 GB
Kerasv2.2.5
Initial study rate0.01
Momentum0.9
Table 3. Training Parameters for Proposed LCNN-GWHA Methods.
Table 3. Training Parameters for Proposed LCNN-GWHA Methods.
InputOperatorRepeated TimesStrideOutput ChannelsOutput
256 × 256 × 3Conv 2d 3 × 31232128 × 128 × 32
128 × 128 × 32Conv 2d 3 × 3126464 × 64 × 64
64 × 64 × 64GWHAM1212832 × 32 × 128
32 × 32 × 128GWHAM2225616 × 16 × 256
16 × 16 × 256GWHAM225128 × 8 × 512
8 × 8 × 512GWHAM125124 × 4 × 512
4 × 4 × 512Avgpool1-5121 × 1 × 512
1 × 1 × 512Dense1-71 × 1 × 7
Table 4. Performance Indices for the Proposed LCNN-GWHA Model on Four Datasets.
Table 4. Performance Indices for the Proposed LCNN-GWHA Model on Four Datasets.
DatasetsOA (%)Kappa (%)AA (%)F1 (%)
RSSCN797.7897.4297.7097.71
UCM2199.7699.7599.4999.52
AID (50/50)97.6497.5597.0597.16
AID (20/80)93.8593.6393.6093.67
NWPU45 (20/80)94.2694.1393.9594.10
NWPU45 (10/90)92.2492.0492.1592.20
Table 5. Performance comparison of the proposed model with some advanced methods on the RSSCN7 dataset.
Table 5. Performance comparison of the proposed model with some advanced methods on the RSSCN7 dataset.
Network ModelOA (%)Number of Parameters
VGG16+SVM Method [30]87.18130 M
Variable-Weighted Multi-Fusion Method [35]89.1-
TSDFF Method [36]92.37 ± 0.72-
ResNet+SPM-CRC Method [37]93.8623 M
ResNet+WSPM-CRC Method [37]93.923 M
LCNN-BFF Method [38]94.64 ± 0.216.2 M
ADFF [32]95.21 ± 0.5023 M
Coutourlet CNN [33]95.54 ± 0.1712.6 M
SE-MDPMNet [34]94.71 ± 0.155.17 M
Proposed Method97.78 ± 0.120.3 M
Table 6. Performance Comparison of the Proposed Model with Some Advanced Methods on the UCM21 Dataset.
Table 6. Performance Comparison of the Proposed Model with Some Advanced Methods on the UCM21 Dataset.
Network ModelOA (%)Number of Parameters
Variable-Weighted Multi-Fusion [35]97.79-
ResNet+WSPM-CRC [37]97.9523 M
ADFF [32]98.81 ± 0.5123 M
LCNN-BFF [38]99.29 ± 0.246.2 M
VGG16 with MSCP [40]98.36 ± 0.58-
Gated Bidirectional+global feature [41]98.57 ± 0.48138 M
Feature Aggregation CNN [42]98.81 ± 0.24130 M
Skip-Connected CNN [43]98.04 ± 0.236 M
Discriminative CNN [44]98.93 ± 0.10130 M
VGG16-DF [45]98.97130 M
Scale-Free CNN [46]99.05 ± 0.27130 M
Inceptionv3+CapsNet [39]99.05 ± 0.2422 M
DDRL-AM [47]99.05 ± 0.08-
Semi-Supervised Representation Learning [48]94.05 ± 1.2210 M
Multiple Resolution BlockFeature [49]94.19 ± 1.5-
Siamese CNN [50]94.29-
Siamese ResNet50 with R.D [51]94.76-
Bidirectional Adaptive Feature Fusion [52]95.48130 M
Multiscale CNN [53]96.66 ± 0.9060 M
VGG_VD16 with SAFF [54]97.02 ± 0.7815 M
Proposed Method99.76 ± 0.250.3 M
Table 7. Performance Comparison of the Proposed Model with Some Advanced Methods on the AID Dataset.
Table 7. Performance Comparison of the Proposed Model with Some Advanced Methods on the AID Dataset.
Network ModelOA (20/80) (%)OA (50/50) (%)Number of Parameters
VGG16+CapsNet [39]91.63 ± 0.1994.74 ± 0.17130 M
VGG_VD16 with SAFF [54]90.25 ± 0.2993.83 ± 0.2815 M
Discriminative CNN [44]90.82 ± 0.1696.89 ± 0.10130 M
Fine-tuning [30]86.59 ± 0.2989.64 ± 0.36130 M
Skip-Connected CNN [43]91.10 ± 0.1593.30 ± 0.136 M
LCNN-BFF [38]91.66 ± 0.4894.64 ± 0.166.2 M
Gated Bidirectional [41]90.16 ± 0.2493.72 ± 0.3418 M
Gated Bidirectional+global feature [41]92.20 ± 0.2395.48 ± 0.12138 M
TSDFF [36]-91.8-
AlexNet with MSCP [40]88.99 ± 0.3892.36 ± 0.21-
VGG16 with MSCP [40]91.52 ± 0.2194.42 ± 0.17-
ResNet50 [55]92.39 ± 0.1594.69 ± 0.1925.61 M
InceptionV3 [55]93.27 ± 0.1795.07 ± 0.2245.37 M
Proposed Method93.85 ± 0.1697.64 ± 0.280.3 M
Table 8. Performance Comparison of the Proposed Model with Some Advanced Methods on the NWPU45 Dataset.
Table 8. Performance Comparison of the Proposed Model with Some Advanced Methods on the NWPU45 Dataset.
Network ModelOA (10/90) (%)OA (20/80) (%)Number of Parameters
R.D [51]-91.03-
AlexNet with MSCP [40]81.70 ± 0.2385.58 ± 0.16-
VGG16 with MSCP [40]85.33 ± 0.1788.93 ± 0.14-
VGG_VD16 with SAFF [54]84.38 ± 0.1987.86 ± 0.1415 M
Fine-tuning [30]87.15 ± 0.4590.36 ± 0.18130 M
Skip-Connected CNN [43]84.33 ± 0.1987.30 ± 0.236 M
LCNN-BFF [38]86.53 ± 0.1591.73 ± 0.176.2 M
VGG16+CapsNet [39]85.05 ± 0.1389.18 ± 0.14130 M
Discriminative with AlexNet [44]85.56 ± 0.2087.24 ± 0.12130 M
Discriminative with VGG16 [44]89.22 ± 0.5091.89 ± 0.22130 M
ResNet50 [55]86.23 ± 0.4188.93 ± 0.1225.61 M
InceptionV3 [55]85.46 ± 0.3387.75 ± 0.4345.37 M
Contourlet CNN [33]85.93 ± 0.5189.57 ± 0.4512.6 M
LiG with RBF kernel [56]90.23 ± 0.1393.25 ± 0.122.07 M
Proposed Method92.24 ± 0.1294.26 ± 0.250.31 M
Table 9. ATT Comparison of the Proposed Model with Advanced Methods on UCM21 Datasets.
Table 9. ATT Comparison of the Proposed Model with Advanced Methods on UCM21 Datasets.
Network ModelTime Required to Process Each Image(s)
Siamese ResNet_50 [51]0.053
Siamese AlexNet [51]0.028
Siamese VGG-16 [51]0.039
GBNet+global feature [41]0.052
GBNet [41]0.048
LCNN-BFF [38]0.029
Proposed Method0.010
Table 10. Complexity Evaluation of some Models.
Table 10. Complexity Evaluation of some Models.
Network ModelOA (%)Number of ParametersFLOPs
CaffeNet [30]89.5360.97 M715 M
VGG-VD-16 [30]89.64138.36 M15.5 G
GoogLeNet [30]86.397 M1.5 G
MobileNetV2 [34]95.963.5 M334 M
SE-MDPMNet [34]97.145.17 M3.27 G
Proposed Method97.640.31 M12.6 M
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Shi, C.; Zhang, X.; Sun, J.; Wang, L. A Lightweight Convolutional Neural Network Based on Group-Wise Hybrid Attention for Remote Sensing Scene Classification. Remote Sens. 2022, 14, 161. https://doi.org/10.3390/rs14010161

AMA Style

Shi C, Zhang X, Sun J, Wang L. A Lightweight Convolutional Neural Network Based on Group-Wise Hybrid Attention for Remote Sensing Scene Classification. Remote Sensing. 2022; 14(1):161. https://doi.org/10.3390/rs14010161

Chicago/Turabian Style

Shi, Cuiping, Xinlei Zhang, Jingwei Sun, and Liguo Wang. 2022. "A Lightweight Convolutional Neural Network Based on Group-Wise Hybrid Attention for Remote Sensing Scene Classification" Remote Sensing 14, no. 1: 161. https://doi.org/10.3390/rs14010161

APA Style

Shi, C., Zhang, X., Sun, J., & Wang, L. (2022). A Lightweight Convolutional Neural Network Based on Group-Wise Hybrid Attention for Remote Sensing Scene Classification. Remote Sensing, 14(1), 161. https://doi.org/10.3390/rs14010161

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