# Project Gradient Descent Adversarial Attack against Multisource Remote Sensing Image Scene Classification

Authors: Yan Jiang; Guisheng Yin; Ye Yuan; Qingan Da
Journal: Security and Communication Networks
 (2021)

---

## Abstract

Deep learning technology (a deeper and optimized network structure) and remote sensing imaging (i.e., the more multisource and the more multicategory remote sensing data) have developed rapidly. Although the deep convolutional neural network (CNN) has achieved state-of-the-art performance on remote sensing image (RSI) scene classification, the existence of adversarial attacks poses a potential security threat to the RSI scene classification task based on CNN. The corresponding adversarial samples can be generated by adding a small perturbation to the original images. Feeding the CNN-based classifier with the adversarial samples leads to the classifier misclassify with high confidence. To achieve a higher attack success rate against scene classification based on CNN, we introduce the projected gradient descent method to generate adversarial remote sensing images. Then, we select several mainstream CNN-based classifiers as the attacked models to demonstrate the effectiveness of our method. The experimental results show that our proposed method can dramatically reduce the classification accuracy under untargeted and targeted attacks. Furthermore, we also evaluate the quality of the generated adversarial images by visual and quantitative comparisons. The results show that our method can generate the imperceptible adversarial samples and has a stronger attack ability for the RSI scene classification.


---

## Body

## 1. Introduction

With the high-speed development of remote sensing technology, we can obtain more multisource and multicategory remote sensing images (RSIs). Those images are more efficiently employed to observe ground objects. RSI encompasses more the abundant spectral features of the ground objects, i.e., the texture and geometric features. Therefore, employing RSI to achieve scene classification has also gathered considerable attention. The purpose of scene classification is to predict the label for a given RSI, e.g., airport, forest, and river. The critical process of RSI scene classification is to extract image features. The existing researches can be mainly divided into two strategies according to the features used: (1) the low-level features and the middle-level global features obtained by the manual extraction and (2) the high-level features extracted automatically by the convolutional neural network (CNN).In early RSI scene classification research, scene classification mainly relies on handcrafted low-level and middle-level features [1–5], e.g., color, texture, spatial structure, and scale-invariant feature transform [6]. The middle-level features’ extracting process can be regarded as the high-order statistical of the low-level local features [7–9]. Compared with the low-level features, the middle-level features (e.g., bag-of-visual-words model [10]) have expressive content for scene images. However, due to the lack of flexibility and adaptability, using the middle-level features cannot easily distinguish the complex scenes and gain the ideal classification accuracy. Traditional methods can express RSI features to a certain extent [11]. Nevertheless, the above features are manually extracted, and end-to-end scene classification cannot be achieved. The final classification accuracy is mainly subject to the human experience.To ameliorate the limitations of handcrafted features, more researchers adopted the automatic extracting of RSI features. In recent years, deep learning has achieved impressive performance in image processing tasks, e.g., image generation, object detection, and image classification. Moreover, the CNN-based classier has also been employed for RSI scene classification. With an end-to-end framework, CNN performs multilayer nonlinear transformations to extract the high-level image features automatically. These features focus on the overall semantics of RSI rather than the pixels of a local region. Hence, the high-level features obtained by CNN can be more effective for RSI scene classification. For instance, Wang et al. [12] proposed a method based on Residual Network (ResNet) to achieve RSI classification. It breaks the limitation of lacking training samples. Zhang et al. [13] proposed an effective architecture based on CNN and Capsule Network (CapsNet), named CNN-CapsNet. RSI scene classification has a common problem, i.e., the overfitting caused by the deeper network (too many parameters). However, the shallower network has not enough extraction ability of semantic information. To this end, Zhang et al. [14] proposed a simple and efficient network based on the dense convolutional network (DenseNet). DenseNet can improve network performance without increasing the number of network parameters.Although the above CNN-based methods have an outstanding performance for RSI scene classification, they also face various security risks [15], e.g., data poisoning attacks [16] and adversarial sample attacks. To defend against these attacks, researchers also proposed corresponding malicious detection methods [17–19]. Among these attacks, the classifiers can easily be fooled by the designed adversarial samples and get unexpected results. This phenomenon has raised serious concerns, especially for the security of applications based on deep learning [20–22]. The vulnerability of deep learning is first revealed in [23]. By adding adversarial perturbations to original images, we can obtain deceptive images imperceptive to human eyes. Subsequently, numerous attack methods were proposed. Goodfellow proposed a hypothesis that the existence of adversarial examples may be due to deep model linear property. Based on this hypothesis, they proposed a fast gradient sign method (FGSM) [24], which can modify the pixel values of images. Hence, the modified images can obtain the misclassify result. Later, an iterative version of FGSM, the basic iterative method (BIM) [25], was proposed. BIM can achieve an effective attack by using the generated more imperceptible adversarial perturbation. Then, projected gradient descent (PGD) [26] attack was proposed, which is seen as a variant of BIM. Unlike BIM, PGD adds a step of initializing the uniform random perturbation. Then, it can run more iterations until finding an adversarial example. Also, it replaces the clip operation of BIM on the gradient with the gradient projection [27]. Due to the above improvements, the attack capability of PGD is far superior to both FGSM and BIM. Moreover, PGD is known as the strongest first-order attack. Another strong attack is the Carlini and Wagner (C & W) [28] attack. C & W proposed a family of three attacks that minimize diverse similarity metrics: L0, L2, and L∞, respectively. C & W achieves the effect that is imperceptive by humans, and they constrain the L0, L2, and L∞ norm to make the perturbation small. Although C & W can generate more precise perturbations, the computational efficiency of C & W is slower. By contrast, PGD is a commonly used attack method that is stable and efficient at present.The research on the adversarial samples for RSI scene classification is not thoroughly studied yet. Czaja et al. [29] provided a preliminary analysis of the adversarial examples for remote sensing data. However, their analysis is only under the targeted attack. Xu et al. [30] used FGSM and L-BFGS [23] attacks to generate the adversarial samples for RSI scene classification. They tested these above two attacks under the targeted and the untargeted attacks. We call it Xu2020 in this paper. Additionally, they utilized an adversarial training strategy to increase the resistibility of deep models that faced adversarial examples. Burnel et al. [31] proposed a different approach based on a modified Wasserstein generative adversarial network (GAN) [32] to generate natural adversarial hyperspectral images. Chen et al. [33] tested two adversarial attack algorithms (i.e., FGSM and BIM) on two classifiers trained on different remote sensing data sets. They found that a higher similarity in the feature space is more straightforward for generating the corresponding adversarial examples. Although the above methods can easily fool the classifier, these attack methods could not represent a state-of-the-art performance according to the attack capacity. FGSM attack has the limitation of its one-step characteristics. Hence, it has a low success rate on large public data sets. Unlike FGSM, BIM has lower iteration numbers than PGD, so its attack effect lags behind PGD.Based on the above analysis, we utilize the PGD attack to generate adversarial samples. Then, we test the generated images on eight state-of-the-art classifiers to prove our method’s effectiveness in this paper. The main contributions are summarized as follows:(1)
We apply a first-order attack (i.e., PGD) to generate the adversarial samples. This method can generate more accurate perturbation by uniform random perturbation as initialization, then running several BIM iterations to find an adversarial example(2)
To demonstrate our method’s effectiveness, we employ three benchmark multicategory remote sensing scene data sets imaged by different sensors. Also, eight CNN-based classifiers are attacked under the untargeted and the targeted settings. Compared with the Xu2020 method, our method can make the attacked classifiers much lower classification accuracy. This phenomenon has revealed that the current state-of-the-art classifiers still have potential security risks in the multisource RSI scene classification task(3)
Furthermore, we also provide visual comparisons of the generated perturbations and the adversarial samples. For the more objective visual quality evaluation, the peak signal-to-noise ratio (PSNR) is employed as the evaluation index. The results indicate that our method can generate imperceptible adversarial samples and has a stronger attack ability for current state-of-the-art classifiersThe rest of this paper is organized as follows. Section2 introduces the main strategies for generating adversarial examples and the detailed expression of the PGD attack under untargeted and targeted settings. Section 3 shows three RSI scene data sets used in this paper and the corresponding experimental results. Conclusions are summarized in Section 4.


## 2. Method

Adversarial attacks principally followed these two strategies. (1) We maximize the classifier’s loss function under theL norm constraint by the small constant value. This operation will cause the classifier to misclassify. (2) Using the L norm to constrain the perturbation to be minor, the human eye’s imperceptible images are generated. The overall procedure of our method is shown in Figure 1.Figure 1
The overall procedure of our method.Given a set of test remote sensing imagesX=xi,…,xn, xi∈0,255n, with the corresponding labels y∈Yi=1n, a CNN classifier F: X⟶y∈Yin is introduced to map images to the corresponding labels. The adversarial attack aims to find a perturbation, which makes the target label yadv≠yture. Usually, we maximize the loss function of original data under constraint norm (i.e., δp), and δ denotes the perturbation. Hence, the process of finding perturbation can be regarded as an inner maximization problem, and this procedure can be expressed as(1)maxδpℒθ,x′,y,where ℒθ,x′,y is the loss function. θ denotes the model’s parameters and x′ demotes the generated adversarial sample. To find a small perturbation for the given image, therefore, we minimize Dx,x′ for the input image x, where D is the distance metric between the original image and the adversarial image. The procedure can be described as(2)minimizeδp+c⋅fx′,such thatx′∈0,1.However, the optimization problem of equation (2) is difficult to be directly solved. Hence, FGSM was proposed, which is an efficient one-step attack. This attack used an L∞-bounded constraint and the sign function to get its specific gradient direction. Then, it adjusts the input data by a small step in the direction that will maximize the loss until it gets the suitable perturbation. Finally, the perturbed image can be obtained:(3)x′=x+εsign∇xℒx,y,θ,where ε denotes a small constant value that restricts the perturbation. FGSM is based on a linear model, and the direction of loss is fixed. Even if we iterate it multiple times, the direction of the perturbation will not change. However, for a nonlinear model, the direction may not be completely correct after only one iteration. Hence, the multistep iterative version of FGSM was proposed, i.e., PGD attack. PGD uniforms the random perturbation as the initialization firstly. Then, an adversarial example is found by running several iterations of BIM. PGD creates a stronger attack than other previous iterative methods (e.g., BIM). Formally, the iterative procedure follows:(4)xi+1′=∏x+Sx′+αsign∇xℒx,y,θ,where Π denotes the projection operator, which clips the input at the positions around the predefined perturbation range. α means a gradient step size, and x+S represents the perturbation set. ℒ is the cross-entropy loss. Usually, L∞ and L2 norms are currently used as the constraint that bound the perturbation to be small. In this paper, [34] mentioned that L∞ is the optimal distance metric for the image classification task, and [35] argues that the distillation is secure under this distance metric. Thus, we choose PGD-L∞ as our attack method (Algorithm 1).Algorithm 1: Adversarial attack strategy.
Input:(1)
A set of test remote sensing imagesX=x1,…,xn and the corresponding labels Y=y1,…,yn.(2)
A classifierf with parameter θ.(3)
Number of epochst; a small constant that restricts the perturbation parameter α;Output: Adversarial example, xadv;(1)
Letxadv=xi=1n, t=0,(2)
whileiter<tdo(3)
Computeℒ=∑i=1nℒx,y,θ(4)
Computexadvi+1=xadvi+t×L(5)
Computeperterbed=xadvi−xi=1n(6)
Computeperterbed=clipperterbed,−ε,ε(7)
t+=1(8)
end whileReturnxadvGenerally, adversarial attacks can fool the CNN classifier under untargeted and targeted settings. The targeted attack means that the attacker assigns the classification result to a specific class. Unlike the targeted attack, the untargeted attack aims to make the classifier mispredict the given image’s label but does not necessarily specify the prediction into a specific label. The targeted and the untargeted settings of our attack method can be formulated as(5)target:xadvi+1=∏x+sxadvi+αsign∇xJx,y^,θ,untarget:xadvi+1=∏x+sxadvi+αsign∇xJx,y,θ.


## 3. Experiments and Results

### 3.1. Experimental Setup

We tested the Xu2020 method and our method on three RSI scene classification data sets, i.e., UC Merced (UCM) data set [10], WHU-RS19 data set [36], and AID data set [37]. Figures 2–4 show the examples of the three data sets.Figure 2
Examples of UCM data set. (a) Agricultural. (b) Airplane. (c) Baseball diamond. (d) Beach. (e) Buildings. (f) Chaparral. (g) Dense residential. (h) Forest. (i) Freeway. (j) Golf course. (k) Harbor. (l) Intersection. (m) Medium residential. (n) Mobile home park. (o) Overpass. (p) Parking lot. (q) River. (r) Runway. (s) Sparse residential. (t) Storage tanks. (u) Tennis court.
(a)(b)(c)(d)(e)(f)(g)(h)(i)(j)(k)(l)(m)(n)(o)(p)(q)(r)(s)(t)(u)Figure 3
Examples of the WHU-RS19 data set. (a) Airport. (b) Beach. (c) Bridge. (d) Commercial. (e) Desert. (f) Farmland. (g) Football field. (h) Forest. (i) Industrial. (j) Meadow. (k) Mountain. (l) Park. (m) Parking. (n) Pond. (o) Port. (p) Railway station. (q) Residential. (r) River. (s) Viaduct.
(a)(b)(c)(d)(e)(f)(g)(h)(i)(j)(k)(l)(m)(n)(o)(p)(q)(r)(s)Figure 4
Examples of AID data set. (a) Airport. (b) Bare land. (c) Baseball field. (d) Beach. (e) Bridge. (f) Center. (g) Church. (h) Commercial. (i) Dense residential. (j) Desert. (k) Farmland. (l) Forest. (m) Industrial. (n) Meadow. (o) Medium residential. (p) Mountain. (q) Park. (r) Parking. (s) Playground. (t) Pond. (u) Port. (v) Railway station. (w) Resort (x) River. (y) School. (z) Sparse residential. (a1) Square. (b1) Stadium. (c1) Storage tanks. (d1) Viaduct.
(a)(b)(c)(d)(e)(f)(g)(h)(i)(j)(k)(l)(m)(n)(o)(p)(q)(r)(s)(t)(u)(v)(w)(x)(y)(z)(a1)(b1)(c1)(d1)UCM data set includes 2,100 remote sensing scene images. This data set consists of 21 scene classes, and each class contains 100 samples with a size of 256× 256 pixels. All images were collected from the National Map Urban Area Imagery collection, including multiple towns across the United States. The 21 land-use classes are agricultural, airplane, baseball diamond, beach, buildings, chaparral, dense residential, forest, freeway, golf course, harbor, intersection, medium-density residential, mobile home park, overpass, parking lot, river, runway, sparse residential, storage tanks, and tennis courts. The WHU-RS19 data set was collected from Google Earth (Google Inc.). The WHU-RS19 has 19 different scene classes, and each class contains 50 images with the size of 600 × 600 pixels. The 19 scene classes are airport, beach, bridge, commercial area, desert, farmland, football field, forest, industrial area, meadow, mountain, park, parking lot, pond, port, railway station, residential area, river, and viaduct. AID data set is the biggest data set among the three data sets, containing 30 scene classes. Each class has around 220–420 images. This data set includes 10,000 remote sensing scene images. The 30 scene classes contain airport, bare land, baseball field, beach, bridge, center, church, commercial, dense residential, desert, farmland, forest, industrial, meadow, medium residential, mountain, park, parking, playground, pond, port, railway station, resort, river, school, sparse residential, square, stadium, storage tanks, and viaduct.To prove the strong attack ability of our method, we conducted the experiments in three parts. Firstly, we compared the classification accuracies of the Xu2020 method (used in [30]) with those of our method. Both attacks were tested in the untargeted and targeted settings. Then, we also showed the classification accuracy specific to each class under the targeted setting. Finally, we visualized the generated adversarial images and the corresponding perturbations. For the more objective evaluation, we used the peak signal-to-noise ratio (PSNR) index to analyze the generated images of the Xu2020 and our method.In this paper, we first randomly picked 20% of labeled images as the training set. The rest images are employed as the test set. All experiments were randomly repeated three times. In our experiment, we used Xu2020 as the compared method. Eight state-of-the-art CNN-based classifiers were employed to test our method. These classifiers were VGG-16 [38], GoogLeNet [39], InceptionV3 [40], ResNet-18 [41], ResNet-50 [41], ResNet-101 [41], DenseNet-121 [42], and DenseNet-201 [42], respectively. They were pretrained on the ImageNet [43] data set. Adam was used as the optimizer to train the classifiers with a batch size of 32. The training epochs were set as 40 with a learning rate initialized to 5e − 5 at the first 20 epochs and then the learning rate decay to 1e − 5 at the last 20 epochs. The experimental environment configuration is shown in Table 1.Table 1
Experimental environment configuration.
DesignationInformationOperating systemUbuntu 18.04 LTSSystem configurationCPU: Intel Core i7-9700 K 3.60 GHz, 32 GB RAMGPU: NVIDIA GeForce RTX 2080Ti 11GPython libraryCuda 10.1Pytorch 1.3.1Torchvision 0.4.2Numpy 1.19.2Opencv-python 4.4.0Advertorch 0.2.3


### 3.2. Experimental Results of Untargeted Attack

In this section, we show the classification accuracies of eight different classifiers before and after the attack. The overall accuracy (OA, i.e., the number of accurately classified images divided by the number of entire test sets) is employed to evaluate different methods quantitatively. OA gap is the gap between the classification accuracy of the clean test set and that of the Xu2020 method and our method test set. For the untargeted and targeted attacks, the parameterε was set to be 0.01 for the Xu2020 method and our method. Moreover, because Xu2020 is a one-step attack, we set the number of steps to 1. For our method, the number of steps was set to be 40. Tables 2–4 show the untargeted attack results against three types of input (clean, perturbed by Xu2020, perturbed by our method ran for 40 steps).Table 2
Classification accuracy of the UCM data set under the untargeted attack.
ModelsOA of cleanOA of Xu2020OA of oursOA gap of Xu2020OA gap of oursVGG-1691.15± 1.0324.46± 0.954.84± 0.73−66.69−86.31GoogLeNet95.52± 0.6237.32± 1.735.93± 0.75−58.19−89.58InceptionV394.78± 0.3257.24± 1.0310.00± 1.25−37.54−84.78ResNet-1894.80± 0.2231.05± 1.331.92± 1.14−63.75−92.88ResNet-5096.27± 0.1051.29± 1.272.60± 1.21−44.98−93.67ResNet-10196.15± 0.2650.22± 4.272.66± 0.62−45.93−93.49DenseNet-12195.58± 0.6750.08± 1.535.73± 1.51−45.50−89.84DenseNet-20195.91± 0.7351.62± 0.685.65± 1.55−44.29−90.26Table 3
Classification accuracy of the WHU-RS19 data set under the untargeted attack.
ModelsOA of cleanOA of Xu2020OA of oursOA gap of Xu2020OA gap of oursVGG-1691.03± 0.8517.09± 2.790.24± 0.24−73.94−90.79GoogLeNet93.25± 1.5431.52± 0.732.06± 0.48−61.74−91.19InceptionV391.72± 0.5745.90± 1.293.69± 0.88−45.82−88.03ResNet-1891.52± 1.2122.42± 2.791.66± 0.44−69.09−89.86ResNet-5093.90± 0.4441.05± 2.752.02± 1.41−52.85−91.88ResNet-10192.14± 0.8742.95± 0.322.06± 0.00−49.19−90.08DenseNet-12193.05± 0.6943.60± 1.623.64± 0.97−49.45−89.41DenseNet-20194.26± 0.5351.52± 3.764.81± 1.25−42.75−89.45Table 4
Classification accuracy of the AID data set under the untargeted attack.
ModelsOA of cleanOA of Xu2020OA of oursOA gap of Xu2020OA gap of oursVGG-1690.43± 0.2720.97± 0.651.31± 0.74−69.46−89.12GoogLeNet91.97± 0.2828.92± 0.440.42± 0.16−63.05−91.55InceptionV392.26± 0.1646.80± 0.444.49± 0.47−45.46−87.77ResNet-1892.22± 0.3116.32± 1.130.15± 0.04−75.90−92.07ResNet-5093.54± 0.1433.99± 1.080.23± 0.19−59.55−93.31ResNet-10193.80± 0.2136.47± 1.930.34± 0.15−57.34−93.46DenseNet-12193.66± 0.1542.93± 2.650.97± 0.12−50.74−92.69DenseNet-20194.14± 0.1753.88± 1.192.89± 0.80−40.25−91.25As shown in Table2, we can see that all classifiers have excellent performance on three data sets before the attack. Generally, the OA values of eight classifiers are almost around 90%. Among these different classifiers, the classifiers with more complicated layers have higher accuracy than the classifiers with fewer layers. For instance, ResNet-101 has gained about 5% advancement in terms of OA than VGG-16 on the UCM data set. However, the OA of different classifiers all decreased dramatically after the attack.As shown in Table4, for the biggest data set (i.e., AID data set), the OA values of VGG-16 and DenseNet-201 are 20.97% and 53.88% after being attacked by Xu2020. Meanwhile, they are 1.31% and 2.89% after being attacked by our method, respectively.As shown in Tables2–4, our method’s adversarial images have the lower OA values for the bigger data set. Specifically, for the UCM data set (a small size data set with 21 classes), the OA value of DenseNet-201 is 5.65% after being attacked by our method. For the WHU-RS19 and the AID data sets, the OA values of DenseNet-201 are only 4.81% and 2.89% after being attacked by our method, respectively. These experimental results demonstrate the effectiveness of our method for different attacked classifiers and different data sets.Also, we can find an interesting phenomenon from Tables2–4. The OA gap between the clean and the adversarial test sets is highly related to the classifiers’ depth for Xu2020. This phenomenon shows that the complicated classifiers tend to have a more robust and more stable property. However, the experimental results show that our method always has a stable OA gap value no matter the classifiers’ depth. In summary, our method is not affected by the depth of the classifiers and can attack various classifiers stably.


### 3.3. Experimental Results of Targeted Attack

Furthermore, we also performed our method and the compared method under the targeted attack. Tables5–7 represent the corresponding OA values.Table 5
Classification accuracy of the UCM data set under the targeted attack.
ModelsOA of cleanOA of Xu2020OA of oursOA gap of Xu2020OA gap of oursVGG-1691.15± 1.0338.04± 0.3829.98± 0.42−53.11−61.17GoogLeNet95.52± 0.6251.21± 0.4524.48± 0.97−44.31−71.04InceptionV394.78± 0.3266.09± 1.2937.69± 1.95−28.70−57.10ResNet-1894.80± 0.2242.89± 0.6716.52± 0.70−51.91−78.28ResNet-5096.27± 0.1060.84± 0.7021.38± 0.19−35.43−74.89ResNet-10196.15± 0.2660.93± 4.9724.70± 2.02−35.22−71.45DenseNet-12195.58± 0.6763.61± 1.2326.14± 0.86−31.97−69.43DenseNet-20195.91± 0.7364.17± 1.0726.10± 0.63−31.75−69.81Table 6
Classification accuracy of the WHU-RS19 data set under the targeted attack.
ModelsOA of cleanOA of Xu2020OA of oursOA gap of Xu2020OA gap of oursVGG-1691.03± 0.8530.83± 2.3026.61± 1.74−60.20−64.42GoogLeNet93.25± 1.5447.80± 1.4222.49± 0.76−45.45−70.76InceptionV391.72± 0.5757.02± 1.0231.45± 0.75−34.70−60.27ResNet-1891.52± 1.2137.46± 1.6515.91± 1.14−54.05−75.60ResNet-5093.90± 0.4451.64± 3.2024.42± 2.19−42.25−69.48ResNet-10192.14± 0.8754.72± 1.0227.58± 1.65−37.43−64.56DenseNet-12193.05± 0.6959.63± 1.6628.05± 0.24−33.42−65.00DenseNet-20194.26± 0.5365.18± 2.5032.53± 0.64−29.08−61.73Table 7
Classification accuracy of the AID data set under the targeted attack.
ModelsOA of cleanOA of Xu2020OA of oursOA gap of Xu2020OA gap of oursVGG-1690.43± 0.2725.25± 0.4122.55± 1.95−65.18−67.88GoogLeNet91.97± 0.2844.08± 0.4119.28± 0.74−47.89−72.69InceptionV392.26± 0.1663.56± 0.1831.81± 0.49−28.70−60.45ResNet-1892.22± 0.3129.12± 0.8613.92± 0.38−63.10−78.30ResNet-5093.54± 0.1450.03± 0.7817.15± 0.41−43.51−76.39ResNet-10193.80± 0.2153.76± 2.6718.81± 0.74−40.04−75.00DenseNet-12193.66± 0.1562.80± 1.6924.33± 1.45−30.87−69.33DenseNet-20194.14± 0.1774.03± 1.1226.92± 1.84−20.11−67.21In our experiments, we set the targeted attack categories as each category every time. The number of attacks was the number of the entire categories of the whole data set. The experimental results demonstrate that the classifiers also have vulnerability under the targeted attack. From Tables5–7, we discover that the targeted attack’s OA values are higher than those of the untargeted attack. For instance, for the RS19 data set, compared with the untargeted attack, the OA value has reached 26.61% on VGG-16 after being attacked by our method. However, the OA value has dropped to 0.24% on the same classifier under the untargeted attack. This phenomenon indicates that the targeted attack is more complicated than the untargeted attack.We can find the common points from Tables5–7. The OA gap between the shallow model (i.e., VGG-16) and the deep model (i.e., DenseNet-201) has a big difference. Specifically, for the AID date set under the targeted attack, the OA value is 25.25% on VGG-16 after being attacked by Xu2020. However, OA has reached about 74.03% on DenseNet-201. A similar phenomenon also can be found under the untargeted attack. The OA gap between VGG-16 and DenseNet-201 is around 30% on VGG-16. In contrast, our method shows a stable OA gap between the shallow and deep models. Specifically, under the targeted attack, the OA value is 22.55% on VGG-16 after being attacked by our method, and the OA value is 26.92% on DenseNet-201. The difference between shallow and deep models only is 4.37%. As shown in Tables 5–7, our method has no significant fluctuation between the OA gaps under targeted and untargeted attacks. This phenomenon proves that our method is more beneficial than Xu2020 under targeted and untargeted attacks.To further analyze the adversarial attack’s capacity, we provided each category classification accuracy (CA) after being attacked by Xu2020 and our method in Figures5–7.Figure 5
Each category classification accuracy of UCM under the targeted attacks of Xu2020 and our method.Figure 6
Each category classification accuracy of WHU-RS19 under the targeted attacks of Xu2020 and our method.Figure 7
Each category classification accuracy of AID under the targeted attacks of Xu2020 and our method.We can know that the CA values of Xu2020 are much lower than those of our method in each class. For instance, for the UCM data set, the CA value is 64.35% after being attacked by Xu2020. However, the CA value is 23.06% after being attacked by our method. As shown in Figures5–7, the CA values are around 60% after being attacked by Xu2020 on each category in all three data sets. The gap between the highest and the lowest CA values was only 8.8% from Figure 5. However, the CA values have fluctuated after being attacked by our method. The possible reason is that the images’ feature distributions of different categories have similar distributions.An interesting phenomenon can be found in Figures5–7. The CA values vary dramatically when the same classifiers are attacked by the same attack method but used different data sets. For the WHU-RS19 data set, the gap between the highest and the lowest CA values is 43.03% attacked by our method. However, for the bigger data set (UCM), the gap between the highest CA and the lowest CA values was only 29.46% when using our method. This phenomenon may be because the deep model is easily overfitting by training on a small data set.


### 3.4. Visualization of Adversarial Samples

In this section, we visualized adversarial samples generated by Xu2020 and our method. To further compare the generated images’ quality, we also demonstrated the generated perturbations against the DenseNet-201 classifier on the UCM data set, as shown in Figure8 (the untargeted attack) and Figure 9 (the targeted attack). These visualization results indicate that the perturbations generated by our method are more imperceptible to human eyes compared with Xu2020. The step of Xu2020 was set to 1, and the step of our method was set to be 40. ε is set to be 0.01. Under the targeted attack, we set the target category to “airport”. The second and the fourth lines of Figures 8 and 9 represent the perturbations generated by the Xu2020 and our method, respectively. We can find that most of the perturbations generated by Xu2020 are more evident than those generated by our method, especially in the third and fifth perturbations of the second line under the targeted attack.Figure 8
Untargeted adversarial samples generated by Xu2020/our method.Figure 9
Targeted adversarial samples generated by Xu2020/our method.To evaluate visual quality more objectively, we employ the PSNR to compare the generated adversarial images, as shown in Figures8 and 9. The PSNR is a common index, which can measure the similarity between the original clean and the adversarial images. The calculation of PSNR is given as(6)PSNR=10×log10MAXI2MSE,where MAXI represents the maximum possible pixel value of the image; MSE is the mean squared error. The higher value of PSNR indicates that the adversarial image’s distribution is closer to the original clean image’s distribution. If the PSNR value is higher than 40 dB, it means that the image quality is excellent. If the PSNR value is between 30 and 40 dB, it usually indicates that the image quality is good, which means that the distortion of the generated image is detectable but acceptable. The PSNR values are provided on the top of the third and fifth lines of Figures 8 and 9.Figure8 presents the adversarial images and perturbations generated by Xu2020 and our method. We can see that the PSNR values of Xu2020 are slightly lower than those of our method. Hence, our method’s distribution of the adversarial images is closer to those of original clean images. This inference also can be confirmed from the generated perturbations in Figure 9. These results show that the images generated by our method have a better trade-off between the attack strength and the image quality.In summary, our method can maintain its attack strength for the different classifiers and the models with different depths. Also, our method is more beneficial than Xu2020 under untargeted and targeted attacks. Moreover, our method’s quality of generated adversarial images has less distortion than Xu2020.


## 3.1. Experimental Setup

We tested the Xu2020 method and our method on three RSI scene classification data sets, i.e., UC Merced (UCM) data set [10], WHU-RS19 data set [36], and AID data set [37]. Figures 2–4 show the examples of the three data sets.Figure 2
Examples of UCM data set. (a) Agricultural. (b) Airplane. (c) Baseball diamond. (d) Beach. (e) Buildings. (f) Chaparral. (g) Dense residential. (h) Forest. (i) Freeway. (j) Golf course. (k) Harbor. (l) Intersection. (m) Medium residential. (n) Mobile home park. (o) Overpass. (p) Parking lot. (q) River. (r) Runway. (s) Sparse residential. (t) Storage tanks. (u) Tennis court.
(a)(b)(c)(d)(e)(f)(g)(h)(i)(j)(k)(l)(m)(n)(o)(p)(q)(r)(s)(t)(u)Figure 3
Examples of the WHU-RS19 data set. (a) Airport. (b) Beach. (c) Bridge. (d) Commercial. (e) Desert. (f) Farmland. (g) Football field. (h) Forest. (i) Industrial. (j) Meadow. (k) Mountain. (l) Park. (m) Parking. (n) Pond. (o) Port. (p) Railway station. (q) Residential. (r) River. (s) Viaduct.
(a)(b)(c)(d)(e)(f)(g)(h)(i)(j)(k)(l)(m)(n)(o)(p)(q)(r)(s)Figure 4
Examples of AID data set. (a) Airport. (b) Bare land. (c) Baseball field. (d) Beach. (e) Bridge. (f) Center. (g) Church. (h) Commercial. (i) Dense residential. (j) Desert. (k) Farmland. (l) Forest. (m) Industrial. (n) Meadow. (o) Medium residential. (p) Mountain. (q) Park. (r) Parking. (s) Playground. (t) Pond. (u) Port. (v) Railway station. (w) Resort (x) River. (y) School. (z) Sparse residential. (a1) Square. (b1) Stadium. (c1) Storage tanks. (d1) Viaduct.
(a)(b)(c)(d)(e)(f)(g)(h)(i)(j)(k)(l)(m)(n)(o)(p)(q)(r)(s)(t)(u)(v)(w)(x)(y)(z)(a1)(b1)(c1)(d1)UCM data set includes 2,100 remote sensing scene images. This data set consists of 21 scene classes, and each class contains 100 samples with a size of 256× 256 pixels. All images were collected from the National Map Urban Area Imagery collection, including multiple towns across the United States. The 21 land-use classes are agricultural, airplane, baseball diamond, beach, buildings, chaparral, dense residential, forest, freeway, golf course, harbor, intersection, medium-density residential, mobile home park, overpass, parking lot, river, runway, sparse residential, storage tanks, and tennis courts. The WHU-RS19 data set was collected from Google Earth (Google Inc.). The WHU-RS19 has 19 different scene classes, and each class contains 50 images with the size of 600 × 600 pixels. The 19 scene classes are airport, beach, bridge, commercial area, desert, farmland, football field, forest, industrial area, meadow, mountain, park, parking lot, pond, port, railway station, residential area, river, and viaduct. AID data set is the biggest data set among the three data sets, containing 30 scene classes. Each class has around 220–420 images. This data set includes 10,000 remote sensing scene images. The 30 scene classes contain airport, bare land, baseball field, beach, bridge, center, church, commercial, dense residential, desert, farmland, forest, industrial, meadow, medium residential, mountain, park, parking, playground, pond, port, railway station, resort, river, school, sparse residential, square, stadium, storage tanks, and viaduct.To prove the strong attack ability of our method, we conducted the experiments in three parts. Firstly, we compared the classification accuracies of the Xu2020 method (used in [30]) with those of our method. Both attacks were tested in the untargeted and targeted settings. Then, we also showed the classification accuracy specific to each class under the targeted setting. Finally, we visualized the generated adversarial images and the corresponding perturbations. For the more objective evaluation, we used the peak signal-to-noise ratio (PSNR) index to analyze the generated images of the Xu2020 and our method.In this paper, we first randomly picked 20% of labeled images as the training set. The rest images are employed as the test set. All experiments were randomly repeated three times. In our experiment, we used Xu2020 as the compared method. Eight state-of-the-art CNN-based classifiers were employed to test our method. These classifiers were VGG-16 [38], GoogLeNet [39], InceptionV3 [40], ResNet-18 [41], ResNet-50 [41], ResNet-101 [41], DenseNet-121 [42], and DenseNet-201 [42], respectively. They were pretrained on the ImageNet [43] data set. Adam was used as the optimizer to train the classifiers with a batch size of 32. The training epochs were set as 40 with a learning rate initialized to 5e − 5 at the first 20 epochs and then the learning rate decay to 1e − 5 at the last 20 epochs. The experimental environment configuration is shown in Table 1.Table 1
Experimental environment configuration.
DesignationInformationOperating systemUbuntu 18.04 LTSSystem configurationCPU: Intel Core i7-9700 K 3.60 GHz, 32 GB RAMGPU: NVIDIA GeForce RTX 2080Ti 11GPython libraryCuda 10.1Pytorch 1.3.1Torchvision 0.4.2Numpy 1.19.2Opencv-python 4.4.0Advertorch 0.2.3


## 3.2. Experimental Results of Untargeted Attack

In this section, we show the classification accuracies of eight different classifiers before and after the attack. The overall accuracy (OA, i.e., the number of accurately classified images divided by the number of entire test sets) is employed to evaluate different methods quantitatively. OA gap is the gap between the classification accuracy of the clean test set and that of the Xu2020 method and our method test set. For the untargeted and targeted attacks, the parameterε was set to be 0.01 for the Xu2020 method and our method. Moreover, because Xu2020 is a one-step attack, we set the number of steps to 1. For our method, the number of steps was set to be 40. Tables 2–4 show the untargeted attack results against three types of input (clean, perturbed by Xu2020, perturbed by our method ran for 40 steps).Table 2
Classification accuracy of the UCM data set under the untargeted attack.
ModelsOA of cleanOA of Xu2020OA of oursOA gap of Xu2020OA gap of oursVGG-1691.15± 1.0324.46± 0.954.84± 0.73−66.69−86.31GoogLeNet95.52± 0.6237.32± 1.735.93± 0.75−58.19−89.58InceptionV394.78± 0.3257.24± 1.0310.00± 1.25−37.54−84.78ResNet-1894.80± 0.2231.05± 1.331.92± 1.14−63.75−92.88ResNet-5096.27± 0.1051.29± 1.272.60± 1.21−44.98−93.67ResNet-10196.15± 0.2650.22± 4.272.66± 0.62−45.93−93.49DenseNet-12195.58± 0.6750.08± 1.535.73± 1.51−45.50−89.84DenseNet-20195.91± 0.7351.62± 0.685.65± 1.55−44.29−90.26Table 3
Classification accuracy of the WHU-RS19 data set under the untargeted attack.
ModelsOA of cleanOA of Xu2020OA of oursOA gap of Xu2020OA gap of oursVGG-1691.03± 0.8517.09± 2.790.24± 0.24−73.94−90.79GoogLeNet93.25± 1.5431.52± 0.732.06± 0.48−61.74−91.19InceptionV391.72± 0.5745.90± 1.293.69± 0.88−45.82−88.03ResNet-1891.52± 1.2122.42± 2.791.66± 0.44−69.09−89.86ResNet-5093.90± 0.4441.05± 2.752.02± 1.41−52.85−91.88ResNet-10192.14± 0.8742.95± 0.322.06± 0.00−49.19−90.08DenseNet-12193.05± 0.6943.60± 1.623.64± 0.97−49.45−89.41DenseNet-20194.26± 0.5351.52± 3.764.81± 1.25−42.75−89.45Table 4
Classification accuracy of the AID data set under the untargeted attack.
ModelsOA of cleanOA of Xu2020OA of oursOA gap of Xu2020OA gap of oursVGG-1690.43± 0.2720.97± 0.651.31± 0.74−69.46−89.12GoogLeNet91.97± 0.2828.92± 0.440.42± 0.16−63.05−91.55InceptionV392.26± 0.1646.80± 0.444.49± 0.47−45.46−87.77ResNet-1892.22± 0.3116.32± 1.130.15± 0.04−75.90−92.07ResNet-5093.54± 0.1433.99± 1.080.23± 0.19−59.55−93.31ResNet-10193.80± 0.2136.47± 1.930.34± 0.15−57.34−93.46DenseNet-12193.66± 0.1542.93± 2.650.97± 0.12−50.74−92.69DenseNet-20194.14± 0.1753.88± 1.192.89± 0.80−40.25−91.25As shown in Table2, we can see that all classifiers have excellent performance on three data sets before the attack. Generally, the OA values of eight classifiers are almost around 90%. Among these different classifiers, the classifiers with more complicated layers have higher accuracy than the classifiers with fewer layers. For instance, ResNet-101 has gained about 5% advancement in terms of OA than VGG-16 on the UCM data set. However, the OA of different classifiers all decreased dramatically after the attack.As shown in Table4, for the biggest data set (i.e., AID data set), the OA values of VGG-16 and DenseNet-201 are 20.97% and 53.88% after being attacked by Xu2020. Meanwhile, they are 1.31% and 2.89% after being attacked by our method, respectively.As shown in Tables2–4, our method’s adversarial images have the lower OA values for the bigger data set. Specifically, for the UCM data set (a small size data set with 21 classes), the OA value of DenseNet-201 is 5.65% after being attacked by our method. For the WHU-RS19 and the AID data sets, the OA values of DenseNet-201 are only 4.81% and 2.89% after being attacked by our method, respectively. These experimental results demonstrate the effectiveness of our method for different attacked classifiers and different data sets.Also, we can find an interesting phenomenon from Tables2–4. The OA gap between the clean and the adversarial test sets is highly related to the classifiers’ depth for Xu2020. This phenomenon shows that the complicated classifiers tend to have a more robust and more stable property. However, the experimental results show that our method always has a stable OA gap value no matter the classifiers’ depth. In summary, our method is not affected by the depth of the classifiers and can attack various classifiers stably.


## 3.3. Experimental Results of Targeted Attack

Furthermore, we also performed our method and the compared method under the targeted attack. Tables5–7 represent the corresponding OA values.Table 5
Classification accuracy of the UCM data set under the targeted attack.
ModelsOA of cleanOA of Xu2020OA of oursOA gap of Xu2020OA gap of oursVGG-1691.15± 1.0338.04± 0.3829.98± 0.42−53.11−61.17GoogLeNet95.52± 0.6251.21± 0.4524.48± 0.97−44.31−71.04InceptionV394.78± 0.3266.09± 1.2937.69± 1.95−28.70−57.10ResNet-1894.80± 0.2242.89± 0.6716.52± 0.70−51.91−78.28ResNet-5096.27± 0.1060.84± 0.7021.38± 0.19−35.43−74.89ResNet-10196.15± 0.2660.93± 4.9724.70± 2.02−35.22−71.45DenseNet-12195.58± 0.6763.61± 1.2326.14± 0.86−31.97−69.43DenseNet-20195.91± 0.7364.17± 1.0726.10± 0.63−31.75−69.81Table 6
Classification accuracy of the WHU-RS19 data set under the targeted attack.
ModelsOA of cleanOA of Xu2020OA of oursOA gap of Xu2020OA gap of oursVGG-1691.03± 0.8530.83± 2.3026.61± 1.74−60.20−64.42GoogLeNet93.25± 1.5447.80± 1.4222.49± 0.76−45.45−70.76InceptionV391.72± 0.5757.02± 1.0231.45± 0.75−34.70−60.27ResNet-1891.52± 1.2137.46± 1.6515.91± 1.14−54.05−75.60ResNet-5093.90± 0.4451.64± 3.2024.42± 2.19−42.25−69.48ResNet-10192.14± 0.8754.72± 1.0227.58± 1.65−37.43−64.56DenseNet-12193.05± 0.6959.63± 1.6628.05± 0.24−33.42−65.00DenseNet-20194.26± 0.5365.18± 2.5032.53± 0.64−29.08−61.73Table 7
Classification accuracy of the AID data set under the targeted attack.
ModelsOA of cleanOA of Xu2020OA of oursOA gap of Xu2020OA gap of oursVGG-1690.43± 0.2725.25± 0.4122.55± 1.95−65.18−67.88GoogLeNet91.97± 0.2844.08± 0.4119.28± 0.74−47.89−72.69InceptionV392.26± 0.1663.56± 0.1831.81± 0.49−28.70−60.45ResNet-1892.22± 0.3129.12± 0.8613.92± 0.38−63.10−78.30ResNet-5093.54± 0.1450.03± 0.7817.15± 0.41−43.51−76.39ResNet-10193.80± 0.2153.76± 2.6718.81± 0.74−40.04−75.00DenseNet-12193.66± 0.1562.80± 1.6924.33± 1.45−30.87−69.33DenseNet-20194.14± 0.1774.03± 1.1226.92± 1.84−20.11−67.21In our experiments, we set the targeted attack categories as each category every time. The number of attacks was the number of the entire categories of the whole data set. The experimental results demonstrate that the classifiers also have vulnerability under the targeted attack. From Tables5–7, we discover that the targeted attack’s OA values are higher than those of the untargeted attack. For instance, for the RS19 data set, compared with the untargeted attack, the OA value has reached 26.61% on VGG-16 after being attacked by our method. However, the OA value has dropped to 0.24% on the same classifier under the untargeted attack. This phenomenon indicates that the targeted attack is more complicated than the untargeted attack.We can find the common points from Tables5–7. The OA gap between the shallow model (i.e., VGG-16) and the deep model (i.e., DenseNet-201) has a big difference. Specifically, for the AID date set under the targeted attack, the OA value is 25.25% on VGG-16 after being attacked by Xu2020. However, OA has reached about 74.03% on DenseNet-201. A similar phenomenon also can be found under the untargeted attack. The OA gap between VGG-16 and DenseNet-201 is around 30% on VGG-16. In contrast, our method shows a stable OA gap between the shallow and deep models. Specifically, under the targeted attack, the OA value is 22.55% on VGG-16 after being attacked by our method, and the OA value is 26.92% on DenseNet-201. The difference between shallow and deep models only is 4.37%. As shown in Tables 5–7, our method has no significant fluctuation between the OA gaps under targeted and untargeted attacks. This phenomenon proves that our method is more beneficial than Xu2020 under targeted and untargeted attacks.To further analyze the adversarial attack’s capacity, we provided each category classification accuracy (CA) after being attacked by Xu2020 and our method in Figures5–7.Figure 5
Each category classification accuracy of UCM under the targeted attacks of Xu2020 and our method.Figure 6
Each category classification accuracy of WHU-RS19 under the targeted attacks of Xu2020 and our method.Figure 7
Each category classification accuracy of AID under the targeted attacks of Xu2020 and our method.We can know that the CA values of Xu2020 are much lower than those of our method in each class. For instance, for the UCM data set, the CA value is 64.35% after being attacked by Xu2020. However, the CA value is 23.06% after being attacked by our method. As shown in Figures5–7, the CA values are around 60% after being attacked by Xu2020 on each category in all three data sets. The gap between the highest and the lowest CA values was only 8.8% from Figure 5. However, the CA values have fluctuated after being attacked by our method. The possible reason is that the images’ feature distributions of different categories have similar distributions.An interesting phenomenon can be found in Figures5–7. The CA values vary dramatically when the same classifiers are attacked by the same attack method but used different data sets. For the WHU-RS19 data set, the gap between the highest and the lowest CA values is 43.03% attacked by our method. However, for the bigger data set (UCM), the gap between the highest CA and the lowest CA values was only 29.46% when using our method. This phenomenon may be because the deep model is easily overfitting by training on a small data set.


## 3.4. Visualization of Adversarial Samples

In this section, we visualized adversarial samples generated by Xu2020 and our method. To further compare the generated images’ quality, we also demonstrated the generated perturbations against the DenseNet-201 classifier on the UCM data set, as shown in Figure8 (the untargeted attack) and Figure 9 (the targeted attack). These visualization results indicate that the perturbations generated by our method are more imperceptible to human eyes compared with Xu2020. The step of Xu2020 was set to 1, and the step of our method was set to be 40. ε is set to be 0.01. Under the targeted attack, we set the target category to “airport”. The second and the fourth lines of Figures 8 and 9 represent the perturbations generated by the Xu2020 and our method, respectively. We can find that most of the perturbations generated by Xu2020 are more evident than those generated by our method, especially in the third and fifth perturbations of the second line under the targeted attack.Figure 8
Untargeted adversarial samples generated by Xu2020/our method.Figure 9
Targeted adversarial samples generated by Xu2020/our method.To evaluate visual quality more objectively, we employ the PSNR to compare the generated adversarial images, as shown in Figures8 and 9. The PSNR is a common index, which can measure the similarity between the original clean and the adversarial images. The calculation of PSNR is given as(6)PSNR=10×log10MAXI2MSE,where MAXI represents the maximum possible pixel value of the image; MSE is the mean squared error. The higher value of PSNR indicates that the adversarial image’s distribution is closer to the original clean image’s distribution. If the PSNR value is higher than 40 dB, it means that the image quality is excellent. If the PSNR value is between 30 and 40 dB, it usually indicates that the image quality is good, which means that the distortion of the generated image is detectable but acceptable. The PSNR values are provided on the top of the third and fifth lines of Figures 8 and 9.Figure8 presents the adversarial images and perturbations generated by Xu2020 and our method. We can see that the PSNR values of Xu2020 are slightly lower than those of our method. Hence, our method’s distribution of the adversarial images is closer to those of original clean images. This inference also can be confirmed from the generated perturbations in Figure 9. These results show that the images generated by our method have a better trade-off between the attack strength and the image quality.In summary, our method can maintain its attack strength for the different classifiers and the models with different depths. Also, our method is more beneficial than Xu2020 under untargeted and targeted attacks. Moreover, our method’s quality of generated adversarial images has less distortion than Xu2020.


## 4. Conclusions

In this paper, we discussed the adversarial sample problem on the RSI scene classification task. Although the classifiers based on CNN have a state-of-the-art performance on the classification task, they have vulnerability toward adversarial samples. This may cause security risks for the RSI scene classification application. Moreover, our method performs better than the compared method under targeted and untargeted attacks. Specifically, our method has a stronger attack strength and better attack stability. We also analyzed the PSNR values of the generated adversarial images, and the results indicated that our method’s adversarial images have better image quality.Adversarial samples are a potential threat to the RSI scene classification task. We will further investigate the effective defense or detection strategies against the adversarial samples for RSI image classification in our future work.



---

*Source: 6663028-2021-06-12.xml*