Title: EXPLOITING SEMANTIC COHERENCE TO IMPROVE PREDICTION IN SATELLITE SCENE IMAGE ANALYSIS: APPLICATION TO DISEASE DENSITY ESTIMATION Anonymous

Abstract: High intra-class diversity and inter-class similarity is a characteristic of remote sensing scene image data sets currently posing significant difficulty for deep learning algorithms on classification tasks. To improve accuracy, post-classification methods have been proposed for smoothing results of model predictions. However, those approaches require an additional neural network to perform the smoothing operation, which adds overhead to the task. We propose an approach that involves learning deep features directly over neighboring scene images without requiring use of a cleanup model. Our approach utilizes a siamese network to improve the discriminative power of convolutional neural networks on a pair of neighboring scene images. It then exploits semantic coherence between this pair to enrich the feature vector of the image for which we want to predict a label. Empirical results show that this approach provides a viable alternative to existing methods. For example, our model improved prediction accuracy by 1 percentage point and dropped the mean squared error value by 0.02 over the baseline, on a disease density estimation task. These performance gains are comparable with results from existing post-classification methods, moreover without implementation overheads.

1. INTRODUCTION:

Remote sensing scene image analysis is emerging as an important area of research for application of deep learning algorithms. Application areas include land-use land-cover analysis, urban planning, and natural disaster detection. A deep learning task for labeling a scene image is typically formulated as conditional probability of the form in Eq. 1 Liu et al. (2019) , Albert et al. (2017) , Nogueira et al. (2016) , Castelluccio et al. (2015) , Mnih (2013) , Mnih & Hinton (2010) ,

P (l i |s i ) (1)

where l i is label for image patch s i . This formulation is sufficient for problems where spatial situatedness of a scene, which embodies knowledge of semantic likeness between neighborhoods in the geophysical world, is not important. However, for problems which require knowledge of neighborhood the formulation in Eq. 1 becomes inadequate. An example of such a problem would be estimating disease density for a small geographical region of interest, in which case the probability of label l is likely to depend on the labels for neighboring regions due to semantic coherence among them.

The problem of how to improve model prediction by leveraging semantic coherence among neighboring scene images has previously been considered in the literature. Previous studies consider the problem as a post-classification task. For example, Bischof et al. (1992) used a second classifier to do pixel smoothing to refine predictions made by another classifier. Based on a 5x5 window, a filter assigns pixels to the majority class if it had been assigned a different class. In Mnih (2013) , a post-processing architecture is suggested for incorporating structure into image patch prediction. It involves stacking neural networks (NN) such that the output from a previous one becomes input for the next. Idea is for each network to clean up predictions of previous one in order to progressively improve overall accuracy. While improved model performance was achieved by these methods, they have overhead of performing same classification task in at least two stages. In other words, you need a minimum of two NN to perform the same classification task.

Unlike post-classification methods, this work considers the problem of improving model accuracy on scene images by exploiting knowledge of neighboring scenes as part of the model training process.

We make the assumption that l is conditionally co-dependent on information embedded in scene image i and in other similar, neighboring image j such that the problem is formulated as probability of the form in Eq. 2,

P (l i |S i , S j ) = Π m i=1 P (l i |s i , s j ) (2)

where s j is image for a neighboring tile that is most similar to index tile i and P (l i |S i , S j ) is observed probability distribution.

We used Convolutional Neural Networks (CNN) for modeling the observed probability distribution in Eq. 2. A network architecture is proposed for training our model consisting of four components: a siamese sub-network, a similarity metric learning component, a convolutional network, and a decision layer. The siamese sub-network takes two neighboring scene images as input and extracts features from each. The similarity learning component evaluates how similar the input images are, using the extracted features. If the two input images are found to be similar the convolutional network learns additional features based on the merged feature vector, otherwise those from the index tile are used alone. We implemented the decision layer to perform classification or regression.

A baseline model was implemented that takes a single image, the index tile i, as input.

Empirical results show the proposed model consistently outperforms the baseline. In addition to improving predictive performance with a relatively small training set, our model is fast to train since it uses a pre-trained model for the siamese sub-network. Furthermore, it does not require another NN to smooth out its predictions as is the case with post-classification approaches, while achieving comparable performance gain. In summary,our contributions include the following.

1. We propose an approach for training a probabilistic deep learning model to improve prediction accuracy by exploiting semantic coherence between neighboring tiles in aerial scene images. A CNN architecture is suggested for this purpose.

2. We provide empirical evidence that demonstrates the viability of this approach on a disease density estimation task.

3. Lastly, we discovered an important limitation of the synthetic minority over-sampling technique (SMOTE). This method fails when used for oversampling an under-represented class whereby knowledge of spatial proximity between scene image data points must be preserved, an important requirement under the framework of learning deep features over neighboring scene images introduced in this work.

2. RELATED WORK:

Remote sensing scene images represent a difficult problem for deep learning algorithms due to high intra-class diversity and inter-class similarity (Cheng et al., 2017) . Previous efforts to address this problem is presented first, followed by recent use of siamese networks to improve discriminative ability of CNN.

2.1. IMPROVING MODEL ACCURACY BY EXPLOITING COHERENCE IN SCENE IMAGES:

One of the earliest works aimed at improving model accuracy by exploiting semantic coherence between neighboring images is by Bischof et al. (1992) . The problem addressed there is 'salt and pepper' noise in classified satellite images. The authors employ a multi-layer perceptron (MLP) consisting of five hidden units to classify low resolution (30m) satellite scene images. Their proposed network has four output units corresponding to four land-use classes. The sigmoid activation function was used with both hidden and output units. The network had seven input units, each corresponding to one of seven Landsat TM spectral bands. It generates two separate channels when classifying an input image: one for class prediction result and the other representing how confident the classification is. A post-classification smoothing operation is then performed using a two-layer NN whose input is the classified image within a 5 x 5 window. For each pixel, the predicted class and confidence information are used as input to decide its new class belonging by applying a majority filter. Gain in classification accuracy was 2.9 percent for the network whose input data was enhanced with texture information (and 4.9 percent for the one without enhancement). Mnih (2013) introduce indirect dependencies between outputs of a model by using knowledge of structure (e.g. shape) to resolve the issue of disconnected blobs and holes or gaps in predicted building and road network maps. The architecture used consists of stacking NN, each using as input the outputs of a previous network. Precisely, let M0 be the map predicted by a model. The ith level cleanup NN (f i ) takes a w s x w s patch of M i-1 and outputs a w m x w m patch of Mi . The model f i is trained by minimizing the negative log likelihood on patches of the observed map M , just like other NN in the architecture. Thus, the ith cleanup NN improves predictions of the previous NN f i-1 . The authors extended this idea to Conditional Random Fields (CRF) i.e. pairwise lattice CRF to introduce explicit dependencies between pairs of neighboring pixels. For both NN and CRF, an average gain of 0.0195 was achieved in precision and recall break-even points.

The above works demonstrate that post-classification smoothing operations can improve performance of deep learning models. However, a draw back of those approaches is the necessary requirement to implement additional models to perform smoothing operations. Therefore, approaches that sidestep this requirement would be a welcome alternative.

2.2. SIAMESE NEURAL NETWORKS:

Another innovation that inspired the current work is siamese neural networks (SNN) introduced by Bromley et al. (1993) and Baldi & Chauvin (1993) . A SNN architecture consists of two identical (shared weight) sub-networks merged by the same function at their outputs. During training each sub-network extracts features from one of two concurrent inputs, after which the joining function evaluates whether the input pair is similar based on a distance metric, such as cosine of angle between the pair of feature vectors. Output from the SNN is a decision score e.g., 1 for similar image pair, 0 otherwise.

SNN have recently been used for remote sensing scene image understanding. Liu et al. (2019) used a siamese architecture to improve discriminative ability of CNN for satellite scene image classification. The architecture consists of two identical CNN models, 3 additional convolutional layers, and one square non-parametric layer. Each branch of the siamese network is responsible for extracting features from each dual input image, giving feature vectors f 1 and f 2 . Two of the convolutional layers take these feature vectors as input and perform additional learning before a softmax function predicts the label for each input image. On the other hand, the square layer takes f 1 and f 2 as input and outputs the tensor f s = (f 1 -f 2 ) 2 which is used to measure similarity between the input pair. The model thus produces three outputs: predicted label for each input image and a score for their similarity.

More precisely, feature discrimination enhancement is achieved in the square layer by imposing a metric learning regularization term that minimizes Euclidean distance between a similar image pair and maximizes that for a dissimilar pair (Eq. 3),

D(x i , x j ) = ||f 1 -f 2 || 2 2 (3)

where D(x i , x j ) is distance between a pair of input images. A margin τ is set to separate as far apart as possible, the similar image pairs from dissimilar ones in feature space. If (x i , x j ) is from the same scene class the distance between them is less than τ , otherwise it is greater than τ . Let label for training pair (x i , x j ) be (y i , y j ), respectively. The formulation for Euclidean distance between them is given by (Eq. 4),

D(x i , x j ) < τ, y i = y j D(x i , x j ) > τ, y i = y j (4)

This model only minimizes feature distance between similar input pairs through the margin τ to achieve feature discrimination.

Therefore, the model in Liu et al. (2019) optimizes for two objective functions: a distance loss function and a regularization term as shown in Eq. 5,

Dist(f 1 , f 2 ) = i,j D(x i , x j ), D(x i , x j ) < τ (5)

Of the three pre-trained models experimented with (AlexNet, VGG- 

3. LEARNING DEEP FEATURES OVER NEIGHBORING SCENE IMAGES:

3.1 OVERVIEW An end-to-end pipeline is proposed consisting of four components: a siamese sub-network, similarity metric learning function, convolutional network, and decision layer. The siamese sub-network takes a pair of scene images s i (tile we want to predict a label for) and s j (other tile neighboring s i ) as input and extracts features from each, outputting feature vectors f i and f j , respectively. The similarity function takes as input the two feature vectors and learns a similarity metric between them. If the feature vector pair (f i , f j ) is found to be similar they are merged and the resulting feature vector used to train the convolutional network, otherwise training is done using (f i ) alone. Output from the convolutional network is passed as input to the decision layer to predict a label (or to regress a numerical value) for image patch s i . The proposed and baseline architectures are shown in Figures 1a and 1b , respectively. The ResNet model has benefit of enabling deeper architectures to be utilized in CNN models since these provide higher accuracy rates than shallow architectures.

3.2.2. SIMILARITY METRIC LEARNING:

The similarity function takes as input feature vector (f i , f j ) to evaluate how similar the input image pair is. This unit outputs one of a binary decision score i.e neighboring input pair (s i , s j ) is similar (1) or dissimilar (0). The optimization function used here works by minimizing feature distance between similar images. Following work in Liu et al. (2019) , given a pair of input image s i and s j the distance between them is calculated using Eq. 3. A margin τ separates similar image features from dissimilar ones such that D(f i , f j ) < τ for a similar pair, D(f i , f j ) > τ otherwise. We also optimized for two objective functions as defined in Eq. 5.

An important question to consider is how to identify a neighboring image that is semantically closest in likeness to index tile i, over which to co-learn features. For any image patch in the middle region of a w x h scene image S where w≥3 and h≥3, there will be eight such tiles to choose from, considering four adjacent and diagonal neighbors. For edge tiles there will be five while for corner tiles there will be three neighbors, Figure 2 in Appendix.

We can determine neighbors of the tile at location i by specifying the maximum Harversine distance within which the centroid coordinates of all neighbors will lie. Take as an example tiles of size 250m 2 in a 3 x 3 scene image.The centroid of all eight neighbors of the center tile would fall within a maximum distance of 350m from its own centroid. We can evaluate how similar tile at i is to its neighbor at location j using Euclidean distance. If at least one is similar, we select the neighbor with least distance to be most similar. Given that D(s i , s j ) < τ for images from same scene class, a neighboring image is most similar to s i if it has the smallest distance Eq. 6, ŝi = arg min si (s i , s j )

where ŝi is neighboring image most similar to index tile at location i.

In the current analysis however, we consider only the preceding neighbor to tile at location i (image s i-1 ) for similarity analysis. The loss function used is binary cross-entropy, defined in Eq. 7.

EQUATION

3.2.3. CONVOLUTIONAL NETWORK:

This network is trained using features resulting from merging feature vector pair (f i , f j ) if respective input image pair (s i , s j ) is found to be similar and it outputs feature vector f m (f i , f j ). If the input pair is dissimilar, only the feature vector f i is fed to the convolutional network, which outputs f i (f i ).

Our implementation used three dense layers in the convolutional network. Merge operation used is feature averaging.

3.2.4. DECISION LAYER:

For a classification task we learn the parameters (weights) of the CNN by minimizing the negative log likelihood of the training data under our model. For the multi-class problem considered in this work the negative log likelihood under the model in Eq. 2 assumes the form of a cross-entropy between the probability distribution for observed labels l and the predicted label probabilities ŷ (Eq. 8),

L(W, b) = - N i=1 M j=1 y i × log ŷi (8)

where M, the number of classes, is 3.

The outer sum of objective function L is over all training samples. Stochastic gradient descent with mini-batches is used for optimizing L. Our implementation for the current problem uses a fully connected network (FCN) with a 3-way softmax classifier.

Taken as a regression task, we optimized for the mean absolute error (MAE) loss and mean squared error (MSE). The form of MAE we used is given by Eq. 9,

L(W, b) = 1 2N N i=1 M j=1 ŷi -y i (9)

where M, the number of features to be predicted, is 2. For MSE the loss function is given by Eq. 10,

L(W, b) = 1 N N i=1 1 M M i=1 ŷi -y i 2 (10)

4. EXPERIMENTS:

We applied our method to the task of estimating disease density from satellite scene imagery. Below we describe data sets and methods used.

4.1. METHODS AND DATASET:



Dataset:

A number of data sets were used in our experiments. The epidemic data consists of monthly disease case counts aggregated by sub-county for year 2015. We dis-aggregated the data to 250m 2 grids, our geospatial unit of analysis, using population data from Facebook & CIESIN (2016) . The latter data gives estimate of people living in a 30m 2 grid based on recent census data and high resolution (0.5m 2 ) satellite imagery. The data was up-sampled to 250m 2 grid to be consistent with our spatial unit of analysis. The population data was used to create a weighting scheme for dis-aggregating epidemic data. The building (housing) concentration data consists of satellite imagery extracted from Google Static Maps API using method in Sanya & Mwebaze (2018) . It consists of land-use type buildings i.e. objects of interest in a satellite scene image is buildings or houses. The housing data was used as input to train the model, as proxy for indoor overcrowding -a known risk factor for our case study disease. All input data was pre-processed into feature vectors and normalized to (0,1) value range by min-max scaling or (-1,1) by standardizing (zero mean, unit variance).

Methods:

We created disease density classes out of the epidemic data to make it a classification task. We did this by binning the normalized data such that each 250m 2 grid assumed a class value depending on which bin its disease density lies in. Following the procedure in Robinson et al. (2017) for binning population data, we created a matrix C where an entry

C i = 0 if 5.74e -05 ≤ d i ≤ 1.52e -4, 1 if 1.52e -4 < d i ≤ 2.46e -4, and 2 if 2.46e -4 < d i ≤ 3.4e -4

, where d i is normalized disease density. The classes correspond to the semantic labels 0, 1, 2 for high, low, and moderate disease density with 3,628, 6,472, and 1,970 membership count, respectively.

Let D be a grid of disease case counts for a region of interest at time t, C grid of disease density class label values, and S grid of housing concentration data. For every disease case count value d i and density class label value c i there is an associated housing concentration image s i .

We formulated the learning task as estimating unknown function f based on the idea of learning deep features over neighboring scene images (one neighbor in this case) using Eq. 11 (Figure 1a ), where c i is estimated disease density for a 250m 2 patch of land on earth's surface (approx. 224m 2 pixels for an image), represented by image s i . s j is image of a neighboring scene that is most similar to image of tile at location i, identified using method in Eq. 6.

EQUATION

We used CNN to estimate function f because the mapping from input data to disease incidence estimate is non-linear, noisy, and dependent on semantic content of input data. To train our model we used transfer learning by fine-tuning two pre-trained models on our data set i.e., Xception net and ResNet-50. Transfer learning eliminates network architecture design time while often achieving higher accuracy rates than training a model from scratch.

We applied the same regularization methods and other hyperparameter values ( 1 . ResNet-50 performed better than Xception net on precision (0.39 vs. 0.70) and recall (0.10 vs. 0.60) on the task of detecting whether or not a pair of satellite scene images is similar, even though the overall performance is low for both pre-trained models (maximum OA score of 83 percent got with Xception net).

4.2.2. CLASSIFICATION PERFORMANCE:

Performance results for the baseline and proposed model are shown in Table 2 . Overall, the Xception based model performed better than the ResNet-50 based one on the task of estimating disease density from housing satellite scene data when performance is measured using precision, recall, and F1-Score metrics. However, both models generally performed poorly, achieving a maximum overall accuracy score of 44 percent for ResNet-50. Our proposed model however, consistently out performed the baseline across both pre-trained models (scores marked with bold). For example, using Xception net as the Siamese network our model achieved precision score of 0.15 vs. 0.13, recall of 0.39 vs. 0.26, and f1-score of 0.22 vs. 0.18 for the baseline model, respectively. A similar performance trend is observed for the model based on ResNet-50.

Confusion matrix plots for baseline and our model built using Xception net are shown in Figure 3a and 3b, respectively (Appendix). On the other hand Figure 4 shows AUROC plots. Both show that our model performed better than the baseline on medium and low disease density classes with 58 vs. 48 percent and 47 vs. 37 percent, respectively. However, the model performed worse than the baseline on high disease density class (0 vs. 13 percent, respectively). Generally, the results from both models are as good as chance. 

4.2.3. REGRESSION PERFORMANCE:



5. DISCUSSION:

Our model performed better than the baseline in both the classification and regression tasks for disease density estimation. For example, our model achieved 1 percentage point gain in accuracy over the baseline model. While a gain as result of deploying a siamese network to boost discriminative power of CNN for aerial scene image classification is consistent with findings in previous studies overall results from our model are poor. For instance, our model was only able to attain a maximum overall accuracy of 34 percent on the classification task. We would like to pin these poor results to a combination of three factors. First, the small data set used to train our model (12,070 images) could have impacted accuracy negatively, despite the use of regularization methods.It is therefore, possible that our model suffered the problem of overfitting. Secondly, our data set was unbalanced.

It is likely that the extra parameter we introduced in the loss function to weight classes by giving higher importance to under-represented classes did not work as expected. The result could have been that our model did not learn all the necessary features required to make a prediction but rather could have resorted to guessing the output and hence, failing to generalize well over the test set. Class imbalance in our data set could also have negatively affected feature correlation which in turn could have reduced model performance. Besides, well-known methods for mitigating sample size bias in imbalanced data sets, for example by over-sampling under-represented classes Chawla et al. (2002) could not be applied directly to our data set without modifying the algorithm. That is because it was not immediately clear how to preserve spatial proximity between neighboring tiles, an idea that is central to learning deep features over neighboring scene images.However, despite the low overall performance by our model we have been able to demonstrate that it is possible to improve model accuracy by learning deep features over neighboring scene images in a disease density estimation task.

Figure 2 : Finding a neighboring image j that is semantically most similar to image i. 

:



Figures and Tables:

Figure 1: Network architectures used in this work.

(a) Confusion matrix plot for baseline. (b) Confusion matrix plot for our model.

Figure 3: Confusion matrix plots for models used in this study.

Figure 4: AUROC plots for models used in this study.

16, highest feature discrimination accuracy gain (1.14 percentage point) was achieved with a Siamese AlexNet model on the challenging NWPU-RESIC45(Cheng et al., 2017) benchmark data set. Cheng et al. (2018) reported a 1.53 percentage point gain in accuracy on the same data set.

Table content: <table/>

Overall accuracy, precision, recall, and F1-score for similarity metric learning

Table content: <table><tr><td/><td colspan="3">Accuracy Precision Recall</td></tr><tr><td colspan="2">ResNet-50 57</td><td>0.39</td><td>0.10</td></tr><tr><td>Xception</td><td>83</td><td>0.70</td><td>0.60</td></tr></table>

Overall accuracy, precision, recall, F1-score for baseline and proposed model.

Table content: <table><tr><td/><td>Accuracy</td><td/><td>Precision</td><td/><td>Recall</td><td/><td>F1-score</td><td/></tr><tr><td/><td>Bline</td><td>Model</td><td>Bline</td><td colspan="3">Model Bline Model</td><td>Bline</td><td>Model</td></tr><tr><td colspan="2">ResNet-50 44</td><td>42</td><td>0.0</td><td>0.11</td><td>0.0</td><td>0.3</td><td>0.0</td><td>0.5</td></tr><tr><td>Xception</td><td>33</td><td>34</td><td>0.13</td><td>0.15</td><td>0.26</td><td>0.39</td><td>0.18</td><td>0.22</td></tr></table>



Table content: <table><tr><td>in Appendix)</td></tr></table>

MAE and MSE scores for baseline and proposed model. Overall, the model built using ResNet-50 performed better than the one built with Xception net when used to estimate disease density from housing concentration satellite scene image data. Again, our proposed model performed consistently (even though marginally) better than the baseline (scores marked with bold). It achieved MAE score of 0.35 vs. 0.38 and MSE score of 0.18 vs. 0.20 for the baseline, respectively. A similar trend is observed for the model built with Xception net as base.

Table content: <table/>

MAE and MSE scores for baseline and proposed model.

Table content: <table><tr><td/><td>MAE</td><td/><td>MSE</td><td/></tr><tr><td/><td colspan="4">Baseline Model Baseline Model</td></tr><tr><td colspan="2">ResNet-50 0.38</td><td>0.35</td><td>0.20</td><td>0.18</td></tr><tr><td>Xception</td><td>0.39</td><td>0.37</td><td>0.20</td><td>0.19</td></tr></table>

Hyperparameter values used in our experiments

Table content: <table><tr><td>Hyperparameter</td><td>Method or Value</td></tr><tr><td colspan="2">Activation function (convolutional layer) ReLU</td></tr><tr><td colspan="2">Activation function (classification layer) Softmax</td></tr><tr><td>Optimization method</td><td>SGD (Adadelta)</td></tr><tr><td>Loss function</td><td>Multi-class cross-entropy</td></tr><tr><td>Learning rate</td><td>0.1 (halved every 10 epochs)</td></tr><tr><td>Batch normalization</td><td>(momentum=0.9)</td></tr><tr><td>Weight initialization</td><td>Mean=0, std=0.01</td></tr><tr><td>Bias initialization</td><td>Mean=0.5, std=0.01</td></tr><tr><td>Weight decay type (kernel regularizer)</td><td>L2 (0.01)</td></tr><tr><td>Amount of weight decay</td><td>0.0002</td></tr><tr><td>Drop out</td><td>Not used</td></tr><tr><td>Mini-batch size</td><td>16</td></tr><tr><td>Number of epochs</td><td>50</td></tr></table>

Peer review (iclr2020):
This papers proposed a solution to the problem of disease density estimation using satellite scene images. One common challenge in this type of applications is having a high intra-class diversity and a high inter-class similarity. The solution proposed by the authors is based on the use of siamese networks to extract features from pairs of neighbouring images, and merge the features only if they are similar. The authors claim that this approach alleviate the need of a post-classification smoothing. Advantages: The idea of merging siamese features for similar tiles only is sound. The paper is clearly written and structured. The shown results seem to outperform the baseline. Drawbacks: The paper seems of fairly limited novelty. Moreover, it is centered around one particular application. Although the task is approached with both a classification and a regression model, the classification dataset is obtained by a simple binning which makes the two tasks highly related. It would be interesting to have different settings to test the consistency of improvement with the proposed method. Finally, the authors claim that the method alleviates the need to post-classification smoothing, but this cannot be straightforwardly concluded from the conducted experiments. It would be interesting to have a more thorough comparison to other methods that use post-classification processing.