Semantic Clustering of a Sequence of Satellite Images

Carlos Echegoyen, Aritz Pérez, Guzmán Santafé, Unai Pérez-Goya and María Dolores Ugarte This work has been supported by Project PID2020-113125RB-I00/MCIN/AEI/10.130 39/501100011033. Carlos Echegoyen, Guzmán Santafé, Unai Pérez-Goya and María Dolores Ugarte are members the Spatial Statistics Goup, Public University of Navarre, 31006 Pamplona, Spain. Email: {carlos.echegoyen, guzman.santafe, unai.perez, lola.ugarte}@unavarra.esAritz Pérez is at the Basque Center for Applied Mathematics. Email: aperez@bcamath.org
Abstract

Satellite images constitute a highly valuable and abundant resource for many real world applications. However, the labeled data needed to train most machine learning models are scarce and difficult to obtain. In this context, the current work investigates a fully unsupervised methodology that, given a temporal sequence of satellite images, creates a partition of the ground according to its semantic properties and their evolution over time. The sequences of images are translated into a grid of multivariate time series of embedded tiles. The embedding and the partitional clustering of these sequences of tiles are constructed in two iterative steps: In the first step, the embedding is able to extract the information of the sequences of tiles based on a geographical neighborhood, and the tiles are grouped into clusters. In the second step, the embedding is refined by using the neighborhood defined by the clusters, and the final clustering of the sequences of tiles is obtained. We illustrate the methodology by conducting the semantic clustering of a sequence of 20 satellite images of the region of Navarra (Spain). The results show that the clustering of multivariate time series is robust and contains trustful spatio-temporal semantic information about the region under study. We unveil the close connection that exists between the geographic and embedded spaces, and find out that the semantic properties attributed to these kinds of embeddings are fully exploited and even enhanced by the proposed clustering of time series.

Clustering, deep learning, machine learning, semantic embeddings, satellite images, time series, unsupervised learning.

I Introduction

Earth monitoring through the analysis of satellite images is nowadays essential in the identification, mapping, assessment, and monitoring of land use and cover changes. This land monitoring throughout long periods of time is possible and cost-effective thanks to multi-spectral satellite images freely provided by satellite programs supported by public agencies. Thus, public access to satellite imagery has favored the interest of a growing number of researchers in the analysis of satellite image time series (SITS). Additionally, the huge data volume and the complexity of the SITS analysis have promoted the use of machine learning methods. More specifically, supervised classification methods have been used, for instance, to obtain land use maps, land cover maps, crop classification or harvest prediction [Pelletier2017, Csillik2019, Sharifi2020]. Although the access to data from satellite imagery is not a limitation, obtaining labeled data for supervised classification methods may be problematic since these kinds of data are very expensive to produce and maintain. Therefore, semi-supervised and clustering methods are gaining more and more relevance in SITS analysis [rogerio11, subhankar18, Jean2019, Kalinicheva20, jiaxin20].

SITS data have been originally exploited at pixel level [guyet2016, zhang2014, zhang2021]. In these approaches, series of pixels corresponding to the same geographical position throughout a temporal sequence of satellite images are further compared to each other and associated to different classes or clusters. However, in recent years, the rapid development of deep learning techniques, and more specifically convolutional neural networks (CNN), represent a revolution in the field of image analysis in general and in the analysis of SITS data in particular [Shutao19, Moskolai21]. These kinds of techniques are able to extract patterns and insights from vast amounts of complex data. Therefore, they become a natural candidate to solve problems in the field of remote sensing, where the data coming from different satellites is growing dramatically.

Currently, the application of deep learning techniques cover a wide area, ranging from predicting sea ice motion [Petrou19] to wildfire forecasting [Prapas21], land use classification [jagannathan21] and crop type mapping that combines data from satellites and farmer smartphones [Wang20], to name a few. In the case of SITSs, deep learning techniques have also become a useful tool [Moskolai21, Pelletier2019]. Taking advantage of the temporal dimension, they provide a more reliable solution to a wide range of problems [Piles22]. Additionally, we consider that the explicit use of time series also open up a wide variety of possibilities for change-point detection in remote sensing data.

In the analysis of image data, an autoencoder is a type of CNN used for unsupervised dimensionality reduction or feature learning. In remote sensing, autoencoders have been used to create embeddings which are able to extract features from satellite imagery before using other classification or clustering methods [ji2018, Kalinicheva20, He2022]. However, the feature extraction obtained by an autoencoder embedding is guided by a good compression of the information reported in the original image, and it is not directly related to a classification or clustering purpose. With the aim of creating semantically meaningful embeddings, algorithms such as Tile2Vec [Jean2019] have been developed recently. In particular, this algorithm is learned in an unsupervised way by means of CNNs and tries to create an embedding in which similar tiles have vector representations which are close to each other and distant to different tiles. The learning of the model is based on triplets of tiles. The objective is to find the parameters that minimize the distance between geographically neighboring tiles and maximize the distance between distant tiles. This embedding is analogous to the well known Word2Vec [Mikolov13], but instead of encoding words, Tile2Vec encodes tiles of the satellite image.

Taking into account the aforementioned elements, the methodology presented in this work analyzes SITSs in a completely unsupervised manner by clustering together areas of the image that represent similar geographical characteristics and also similar evolution in the time series. The procedure can be summarized as follows. Firstly, we train the embedding based on Tile2Vec according to the geographic neighborhood in the context of SITS. Secondly, the images are decomposed into grids of tiles so that the semantic embedding is used to obtain the embedded representation of each tile. Accordingly, the sequence of images is represented as a collection of multidimensional time series (MTS) corresponding to each sequence of tiles (ST). Thirdly, we cluster the areas with similar behavior over time using an adaptation of the -means clustering method for MTS. The use of the -means clustering is motivated by the relation between Tile2Vec’s loss function and the -Means’ loss function. Fourthly, we extend the training of the embedding with new data, but this time considering the neighborhood given by the clustering partition of MTS. Finally, we run a second clustering based on the refined embedding.

The resultant partition is analyzed in different ways. Firstly, we plot the obtained clustering partition over the satellite images by assigning a color to every sequence of tiles belonging to the same cluster. The color given to each cluster is related to the semantic information encoded by its centroid. Therefore, similarity among partition colors is related to semantic similarity among them. Secondly, we visualize the clustering of the MTS through two-dimensional projections, and compare the clustering in the geographic space and in the embedded space. Finally, we conduct a visual inspection of the semantics for each cluster by looking for the closest MTS to each centroid and also by exploring representative images close to the path between centroids of different clusters.

The results show that this procedure creates semantically reliable land partitions that are able to go beyond the superficial details of the image. This semantic arrangement is distinguished by finding structured patterns in the image where the clusters tend to cover wide and compact areas that put together mountains, crops, hills, riverbanks and other semantically related elements that evolve similarly over time without the restriction of predefined labels. The study has been carried out by using images from the region of Navarre (Spain) considering the four seasons of the year during the last 5 years. This case study represents a real scenario, where any given region could be the subject of study. The management of the satellite images has been assisted by the rsat package [perez21].

The rest of the paper is organized as follows. Section II discusses relevant previous works. Section III summarizes the background of the Tile2Vec embedding. Section IV develops the proposed methodology based on a semantic embedding, and partitional clustering. Section V specifies the details of the experiments and the model parameters used for the current research. In Section VI the empirical results of the study are presented and discussed. Finally, Section VII draws the conclusion obtained during the study and points out possible future work.

Ii Related work

An important drawback when dealing with satellite images by means of machine learning methods is the need for labeled data [Storie18]. Most of the works have been focused on supervised classification techniques. However, due to the difficulty of obtaining the ground truth when dealing with satellite images, an increasing number of contributions are devoted to develop unsupervised methods. For instance, [Zhang21] develops a procedure based on dynamic time wrapping (DTW) distance measures, [lampert19] carries out unsupervised learning of SITS by adapting a constrained k-means clustering algorithm and using DTW distance measure, and [khiali2019] uses a graph-based strategy to represent the temporal evolution of specific areas in the image and clusters this evolution graphs to identify spatio-temporal entities that evolve similarly. However, this last approach relies on a segmentation phase to extract the spatial entities to track over time.

In parallel to the above, the creation of embedding by means of deep learning techniques [Jenkins19, Jean2019, Kang21, Bjorck21, Taskin21] is gaining increasing attention in the field of satellite images, among other things, due to the complexity of multi-spectral satellite images analysis. These methods are able to create embedded spaces where the images are encoded as vectors of a bounded size. Among these models, we are particularly interested in those that are able to create semantic embeddings where not only the vectors are meaningful but also the distances between them represent the reality of the images.

To the best of our knowledge, this kind of semantic embedding has not been directly incorporated and analyzed within the context of clustering of SITS. Although in [Kalinicheva20] the authors aim at clustering spatial areas with similar temporal evolution, they use 3D convolutional autoencoders where the whole TSs are compressed as a vector and the distance between these vectors has no special meaning. Therefore, the information contained in the TS and the relationship among them are obscured by the encoding given by the autoencoder, which provides a good compression of the image, but it does not encourage vector discrimination.

In [Cheng2018], the authors present a supervised learning method to train CNNs that improves class discrimination in scene classification. They modify the objective function of CNNs with a new proposed function so that in the feature space obtained by the CNN, images from the same scene class are mapped close to each other and images of different classes are mapped as farther apart as possible. This idea is transferred to unsupervised learning by means of semantic embeddings. As introduced before, Tile2Vec [Jean2019] uses a CNN to project the image’s tiles into in an embedded or latent space, so that, similar tiles are mapped close to each other and different tiles are mapped as farther apart as possible. Similarly, [Wozniak2021] presents an analogous approach, but using hexagonal instead of squared tiles. Alternatively, [Jung2022] uses a SimCLR approach, an encoder network trained to maximize agreement by using contrastive loss [Chen2020], and modifies this model to include multiple neighbor tiles. Thus, k-neighbor tiles are used and no distant tile is taken into consideration.

The use of Til2Vec in the current paper is mainly motivated by the empirical demonstration that the authors provide in [Jean2019] regarding the properties of the embedded space. The representation given by Til2Vec is semantically meaningful and moreover, simple arithmetic operations within the space conserve semantic properties. This provides us with a solid basis for analyzing the final clustering partition obtained by the proposed methodology from a semantic perspective.

Finally, it is worth mentioning that the clustering and classification of SITS is closely related with the automatic generation of land cover maps, which has experienced a rapid development during the last decade [Hansen13, Rousset21] due to the increasing availability and quality of satellite imagery data. Also in this more specific context, the development of innovative methods based on deep learning techniques opens up new research opportunities [Storie18, Kalinicheva20, Debella21].

Iii Tile2Vec in a nutshell

A well-known successful semantic embedding is Word2Vec [Bengio03, Mikolov13], which has been widely applied to solve natural language processing problems. This word embedding is based on the distributional hypothesis, i.e., words that appear in the same context tend to have similar meanings. When this is translated to static satellite images, the context is given by the spatial neighborhood, as stated by the Tobler’s first law of geography [tobler1979]: everything is related to everything else, but near things are more related than distant things. This idea is succinctly put into practice by Tile2Vec [Jean2019]. As atomic units, this algorithm considers tiles of fixed dimensions as image patches taken from a satellite image . Following Tobler’s law, the learning algorithm of the embedding assumes that, on average, closer tiles are more similar than distant tiles, and therefore, their embedded representation has to be closer. The learning process is expected to build not only an embedded space where vectors of similar images are closer than vectors of dissimilar images, but also to capture the corresponding degree of similarity.

Tile2Vec is learned from a training set of triplets of tiles , where denotes the anchor tile, the neighbor tile and the distant tile. The embedding function is given by a ResNet-18 [He16] architecture with a modified input, to be able to handle multi-spectral tiles, and without the final classification layer. The embedding function maps a tile to a -dimensional vector , , where is the domain of tiles, and it is found by minimizing the following loss function:

(1)

where is the training set of triplets, is the margin, and is the positive part of the argument. In a nutshell, the learning algorithm finds the embedding function that minimizes the Euclidean distance between an anchor and its neighbor while maximizing the Euclidean distance between the anchor and the distant tile over the tile triplets in the training set. For further details, see [Jean2019].

In [Jean2019], the authors show that the Tile2Vec embedding is able to successfully extract semantic information from a set of tiles. They create interpolations and analogies, e.g., between field and urban tiles, and include several experiments that show robust results with different configurations, datasets, and problems. The semantic of these kinds of embeddings has been further explored by creating analogies and compositions in the embedded space with algebraic operations such as addition and difference [Mikolov13, Mikolov2013Distributed] or by learning more complex operations [Santana2021].

We argue that Tile2Vec emerges as a natural candidate to build a multidimensional time series (MTS) embedding for sequences of tiles (ST) on which performing partitional clustering makes sense.

Iv Clustering of the embedding of STs

In this work, we propose a methodology for constructing an embedding of STs given in terms of MTSs. The embedding allows us to perform spatio-temporal clustering of a sequence of satellite images, grouping regions that exhibit similar evolving patterns. We assume that the images can be decomposed into tiles that contain relevant geographic and temporal information when considered in isolation. Thus, the size of the tile should be the minimum that allows an expert to determine relevant spatial and temporal characteristics of the region. For instance, tiles in isolation should allow identifying semantic entities such as rivers, mountains, hills, crops or pastures. The embedding is first constructed by extracting spatial information according to the distributional hypothesis given by Tobbler’s 1 law of geography, and then it is refined by using clustering information.

Let be an image of a region that is decomposed into a grid of tiles of size for . Let be a temporal sequence of satellite images of the same region, where is the image at time , for . From these images, we get sequences of tiles , where corresponds to the -th ST. Based on Tile2Vec, we represent STs as MTSs of embedded vectors. Overall, we propose the following procedure to perform the semantic clustering:

  • Learn a geographic-based embedding of STs, (Subsection IV-A).

  • Clustering of STs using the embedding (Subsection IV-B).

  • Learn a clustering-based embedding of STs, (Subsection IV-C).

  • Clustering of STs using the embedding (Subsection IV-C).

The procedure starts by learning the embedding using a training set of triplets taken from the images , where each triplet belongs to the same time and, neighbor and distant tiles are defined according to a spatial distance. Using the embedding function, , we represent the ST as a MTS, , for . The embedding of a sequence of images using a generic Tile2Vec embedding function is illustrated in Figure 1. Secondly, we construct a partitional clustering of the embedded grid of STs , with for . Thirdly, we learn an embedding learned from triplets obtained from the embedded grid of STs , where each triplet belongs to the same image, and neighbor and distant tiles correspond to embedded tiles from the same and different clusters, respectively. The clustering-based embedding constitutes a refinement of the geographic-based embedding , which captures the spatio-temporal patterns that characterize the identified clusters . Using the function , we embed again each ST as , for . Lastly, the final clustering of STs is obtained in the embedded space given by . In the remainder of this section, we provide a detailed explanation of our proposal.

Encoding of a sequence of tiles (ST)
(a)
Fig. 1: Encoding of a sequence of tiles (ST) by means of the embedding , .

Iv-a Geographic-based embedding of STs

We aim at constructing an embedding for STs, therefore, we have to adapt the training of the Tile2Vec model to this context. Since we want to capture the semantic of a region as a whole for any given time, we generate the training set of tile triplets by using sequences of images. To create a triplet, we consider two sequences of images and with the same timestamps subject to the next constraint: the triplet must belong to images from the same time, where and . Due to this temporal constraint, intuitively, our embedding of tiles will be focused on the extraction of semantic information based on the spatial component of every image conforming the sequence . As shown above, the sequence of images is used to obtain distant tiles. Thus, by considering the use of distant tiles from another sequence of images, we obtain a richer geographic-based embedding.

The training set consists of triplets, each of one generated following the next process:

  • Select uniformly at random from

  • Select an anchor uniformly at random from the image

  • Select a neighbor uniformly at random from a ball of radius of centered at

  • Select a distant tile uniformly at random from corresponding to the same timestamp from the sequence

The process of the generation of the training set of triplets is illustrated in Figure 2.

Scheme to illustrate the generation of the dataset of tile triplets.
Fig. 2: Scheme to illustrate the generation of the dataset of tile triplets.

Once the dataset of triplets is created, we learn the geographic-based embedding function from by minimizing Equation 1. The embedding function maps the space of the tiles into , where is the dimension of the embedding.

Iv-B Clustering STs

Given the embedding of a grid of sequences of tiles, , we would like to identify distinct groups of sequence of tiles by using partitional clustering techniques. In particular, we propose to solve the -means problem for , where determines the number of subgroups (clusters) of a partition of (clustering), , with non-empty clusters for . The -means problem consists of finding a clustering that minimizes the error:

(2)

where is the Euclidean distance between the MTSs and , and is the centroid of the cluster which corresponds to the average of the MTS within this cluster. The -means problem is NP-hard, and the Lloyds’s algorithm [lloyd1982least] (a.k.a. the -means algorithm) is used to obtain a solution. The Lloyd’s algorithm has been identified as one of the top 10 algorithm in data mining [wu2008top].

The Lloyd’s algorithm is an iterative procedure that generates a sequence of clusterings with a monotone decreasing error function (Eq. 2), until its convergence to a fixed point. The algorithm is linear in the number of considered data points, , and therefore, the proposed methodology can be applied to large images. In Appendix -A we show the link between an adaptation of the Tile2Vec for partitional clustering and the -means error of the sequence of clusterings obtained by the Lloyd’s algorithm.

In [Jean2019], the authors show that the interpolation of two tiles using the Tile2Vec embedding allows covering the full spectrum of intermediate patterns. The Lloyd’s algorithm obtains convex clustering111Convex clustering: We say that a partitional clustering is convex when the convex hulls of its corresponding clusters are pairwise disjoint. Convex clusterings are particularly interesting from the Tile2Vec embedding perspective because the convex combination of any subset of points from a cluster belongs to the convex hull of . In other words, both the interpolation of any two points and the centroid of a cluster belong to the class of points given by the cluster .

Iv-C Clustering-based embedding of STs

The last step consists of refining the geographical-based embedding by using information obtained from the partitional clustering and conducting the final clustering of STs using the new embedding . For this purpose, we generate a training set of triplets using a neighborhood based on . With a slight abuse in the notation, in this section, we consider that the clustering corresponds to the partition of the sequences of images associated to the geographic-based embedding . The triplets conforming , , again satisfy the temporal constraint. The training set consists of triplets, where each of them is generated following the next process:

  • Select a cluster index at random from with a probability proportional to the size of the cluster .

  • Select an anchor ST uniformly at random from the cluster .

  • Select a neighbor ST uniformly at random from the cluster .

  • Select a cluster index at random from with a probability proportional to the size of the cluster .

  • Select a distant ST uniformly at random from .

  • Construct the triplet by selecting uniformly at random from .

Now, we learn the clustering-based embedding by extending the training of using the new training set . The obtained clustering-based embedding , is still a mapping from the tile space into . The cluster based embedding will decrease the average intra-cluster dissimilarity of with respect to the geographical-based embedding, while increasing the average inter-cluster dissimilarity.

Finally, the STs are re-clustered using the Lloyd’s algorithm over (see Section IV-B). This last clustering is a refinement of the clustering obtained for , where the clustering tends to show a better separation between its conforming clusters.

V Experimental design

In this section, we illustrate our proposal by using a sequence of Sentinel-2 images from the region of Navarre (northern Spain). Firstly, we provide the details of the learning parameters and the satellite imagery dataset. Secondly, we explain the three kinds of results we use to analyze the proposed methodology and the region of interest.

V-a Image dataset and training parameters

We use Sentinel-2 RGB bands to create images of size with spatial resolution of meters per pixel. These three bands, along with the near infrared, are the only bands provided by Sentinel-2 with this resolution. The remaining bands are given at 20m and 60m. Since this work stresses the use of MTSs and part of the experiments rely on visual inspection, we choose to deal with images of bounded complexity in terms of band composition to facilitate the interpretation of the results.

The region selected for the current research is the area surrounding the province of Navarre in Spain (see Figure 3). This area contains a variety of land types such as mountains or crops, and it exhibits different characteristics along the year, such as snow-covered areas or harvested fields. The selection of this area demonstrates that the methodology presented in this paper works in practice. We emphasize that our proposal is general and can be applied to any other places, resolutions and bands.

The whole area considered for embedding training is covered by 4 satellite images (see Figure 3 on the right). Note that this scheme can be extrapolated directly to any other region of interest. To maintain a balance between complexity and soundness of the results, the final analysis focuses on the sequence of images, , corresponding to the area marked in red in Figure 3. The other three areas will be used to conform , the sequence of images from which the distant tiles are sampled. We get images of each season of the year during the last five years (2017-2021). Therefore, we use a total of Sentinel-2 images to train the embedding .

Region of Navarre in northern Spain. The training is conducted with the whole area, while the clustering is focused on the area marked in red.
Fig. 3: Region of Navarre in northern Spain. The training is conducted with the whole area, while the clustering is focused on the area marked in red.

We firstly train the geographic-based embedding, , following the procedure proposed in Section IV-A and the experiments carried out in [Jean2019] are taken into consideration to fix the values of the learning parameters. Thus, triplets sampled from the Sentinel-2 images, triplets from each timestamp. The size of the tiles is pixels (covering 1 km), the geographical neighborhood is given by a ball of radius , and the distant tile is always chosen from a different region with the same timestamp to amplify the differences between neighbors and distant tiles. The training process is iterated epochs, with a batch size of and a margin of . The last layer of the network has features, which correspond to the number of dimensions of the embedding space for the tiles. For the clustering-based embedding , we continue the learning of the model using the procedure described in Section IV-C, with triplets taken from (the red region). The neighborhood is given by a partitional clustering of size . The training process is iterated epochs, with a batch size of and a margin of . We reduce the number of triplets and epochs due to the more specific nature of this refinement.

The experiments have a twofold purpose. Firstly, we study the combination of the following three basic elements: i) the semantic embedding whose training is guided by a triplet loss function, ii) the Lloyd’s algorithm to conduct unsupervised learning within the embedded space and to establish the neighborhood of the second phase of training, and iii) the explicit use of MTS to create a rich, flexible and scalable framework. Secondly, we empirically show the semantically meaningful results obtained with the MTS embedding and the clustering.

V-B Methods of analysis

Geographic representation of the embedded spaces

Given a clustering of the MTSs obtained with the Lloyd’s algorithm, , we plot the semantic representation as an image of the same spatial dimensions of the original satellite images. We assign the same color to the tiles belonging to the same cluster for . The colors are generated using principal component analysis (PCA). For this purpose, we use a PCA projection of the embedded STs, , and the RGB colors are given by the first three PCA components. Specifically, a cluster is represented by its centroid, . The color of the cluster is given by the first three components of the PCA projection for , for . The centroid captures the overall semantic of the cluster. Due to the properties of the constructed embedding, the difference between the colors of a pair of clusters indicate their semantic similarity, which facilitates the interpretation of the obtained clustering. Additionally, we plot the semantic representation of the temporal sequence of images by using the colors given by the PCA for the embedding of each ST in the grid, , without clustering. This kind of result provides a visual tool to gain intuition about the general spatio-temporal pattern of the region and, in particular, about the possible number of clusters behind the images. When we show the geographic representation of the clustering , we keep the same PCA colors as for to ease the comparison of the generated images.

Projections of the embedded spaces

As a complement of the previous geographic representation, we show the clustering through a two-dimensional projection of the embedded space. The color of the clusters are the same as in the geographic representation, in order to study both representations together. Specifically, the original embedded space is projected down to two dimensions by using the -Distributed Stochastic Neighbor Embedding (t-SNE) [Maaten08] and the Multidimensional Scaling (MDS) [kruskal1964MDS]. These methods are based on distances between points. We consider the euclidean distance between MTS. Then, each point corresponding to an MTS is depicted with the color of the cluster to which it belongs. The t-SNE is a probabilistic approach for manifold learning. It is well suited for the current research since it focuses on the local structure of the data and will tend to extract clustered local groups. In addition, this algorithm is used in previous works [Jean2019, Bjorck21] for the visualization of embeddings of tiles. On the other hand, MDS seeks a low-dimensional representation of the data that preserves the relative distances of the high-dimensional embedded space. The same representations are used for both, the geographical-based and clustering-based embeddings.

Interpolation of centroids

We illustrate the semantic behavior of the obtained cluster-based embedding by using the interpolation of the representation of pairs of STs. Specifically, we analyze the interpolation of pair of centroids. For this purpose, we take two centroids and , and we get intermediate MTS embeddings , for . Then, we get the three STs, , and from , whose embeddings are the closest to , and , respectively. A particularly interesting interpolation corresponds to centroids from adjacent clusterings in the embedded spaces with , because it corresponds to an ST that falls in the boundary between the two clusters. These experiments show that the semantic properties revealed in [Jean2019] when dealing with isolated images, can be extrapolated to more complex contexts involving STs.

Vi Results

This section presents the results of the aforementioned experiments. Firstly, we show how the clustering arranges the STs both, in the geographic space and in the embedded space. Secondly, we study the impact that the clustering-based embedding has in the underlying structure of the clustering and in the corresponding external geographic representation. Lastly, we carry out a visual inspection of the semantic captured by the centroids and the interpolations between them.

Vi-a Geographic and embedded representations

Results prior to the clustering with the embedding
(a)
Results prior to the clustering with the embedding
(b)
Results prior to the clustering with the embedding
(c)
Fig. 4: Results prior to the clustering with the embedding : (a) Example of a satellite images belonging to the sequence for the region under analysis. (b) Geographic representation by assigning a different color for each ST according to PCA. (c) Projection of the embedded space.

A general overview of the region under study is presented in Figure 4. The terrain is illustrated in Figure 4(a) with one of the images of the sequence. The mountains in the middle of the images correspond to the Pyrenees, where we can see snowy mountains on the east side.

Figures 4(b) and (c) show the geographic representation and the projection of the embedding, respectively. These images are generated by assigning a different color to each MTS embedding of STs according to PCA, as explained before. These images contain spatio-temporal information regarding the changing semantic of the different areas and the relationships among them. According to the colors, Figure 4(b) clearly shows three distinct big areas: the northern part after the Pyrenees, the southern part and the Pyrenees themselves. Although the comparison between Figures 4(a) and (b) is difficult since we have a single image on the one hand and a representation of 20 images on the other, we can see a strong connection between them. For instance, by inspection of the whole sequence of images (not shown here), we can check that the most intense violet-blue colors correspond to the area of the Pyrenees, where it snows frequently. In Figure 4(c) two main conglomerates can be observed, where the points corresponding to the Pyrenees have been arranged together with those belonging to the north. With this kind of preliminary analysis, it is possible to extract some useful information about the general patterns of the region, where some clear groups have emerged.

Figures 5 and 6 show the results of the clustering, , over the geographic-based embedding, , with different number of clusters, . We can observe that a hierarchical pattern naturally emerges in Figure 5. The big areas are mostly kept intact, and they are subdivided as the number of clusters increases, revealing additional details each time. In general, we can observe a very structured pattern, grouping large areas compactly. This suggests that the method is not only capable of abstracting from the specific details of the STs, but also it is able to capture fine-grain semantics when higher numbers of clusters are allowed. The corresponding projection of the MTS embedded of different clusterings are presented in Figure 6. Similarly, it is clearly seen how well-defined groups appear as the number of clusters increases. Note that if two clusters are neighbors in the geographic representation, they are also neighbors in the projection and vice versa.

In particular, we can see in Figure 5 (c) that the southern region and the Pyrenees have been divided into two partitions with . We select this number of clusters to train the clustering-based embedding, , because it entails a reasonable balance between richness of details and interpretability. Of course, the number of clusters can be set according to any requirement of the application at hand.

Geographical representation of the clustering
(a)
Geographical representation of the clustering
(b)
Geographical representation of the clustering
(c)
Geographical representation of the clustering
(d)
Geographical representation of the clustering
(e)
Geographical representation of the clustering
(f)
Fig. 5: Geographical representation of the clustering as the number of clusters increases
t-SNE projection of the clustering
(a)
t-SNE projection of the clustering
(b)
t-SNE projection of the clustering
(c)
t-SNE projection of the clustering
(d)
t-SNE projection of the clustering
(e)
t-SNE projection of the clustering
(f)
Fig. 6: t-SNE projection of the clustering in the embedded space as the number of clusters increases

Vi-B The clustering-based embedding

This section presents the results of the clustering, , obtained with the clustering-based embedding, , in comparison with those of the clustering, , obtained with the geographic-based embedding, . For the sake of clarity, we plot the results with the same colors as in the previous figures.

In Figure 7, we can see that the geographic representations of and are almost the same, with small variations in some isolated tiles. This result suggests a convergence in the geographic representation of the semantic clustering. However, the rest of the charts reveal a dramatic change in the internal structure of the embedding. In this case, we use the two aforementioned projections: t-SNE (Figures 7 (c) and 7 (d)) and MDS (Figures 7 (e) and 7 (f)). Since t-SNE is probabilistic, the final result may vary slightly from run to run. We provide a second example of a t-SNE projection for in Figure 7 (c), which has different shape from the charts on Figure 6 but shares similar characteristics. If we compare the projections of both clusterings, we can see that the relative positions between the clusters are similar. However, a clear difference appears in the general structure and, in particular, in the borders between the   cluster and the   cluster, where the separation becomes evident. We can see that the t-SNE projections of the clustering, , present many small subgroups within the bigger conglomerates, while the MDS projections tend to create very compact structures with dense yet well-structured borders. This picture clearly changes for the second clustering, , as we see in Figures 7 (d) and 7 (f). In particular, Figure 7 (d) strongly supports the existence of two main clusters: 1) the southern zone under the Pyrenees and 2) the northern area in conjunction with the Pyrenees. In this case, we can see more defined clusters and smaller borders between them. The difference is even clearer between the MDS projections (Figures 7 (e) and 7 (f)) where the two big groups are pushed to the sides with the clustering-based embedding . The green clusters are now closer than before in relation to the rest of them. This means that the embedding is able to either bring closer or separate the clusters and then, it can provide additional information about the underlying patterns of the sequence of images. On the other hand, the three clusters on the right of Figure 7 (f) have been slightly separated from each other. We can see that   and   clusters keep a similar connection, but the   cluster has been moved slightly away.

Land according to
(a) Land according to
Land according to
(b) Land according to
t-SNE of
(c) t-SNE of
t-SNE with
(d) t-SNE with
MDS of
(e) MDS of
MDS of
(f) MDS of
Fig. 7: Comparison between the geographic and embedded representation of and .

Vi-C Interpolation

 cluster centroid
(a)   cluster centroid
Middle point
(b) Middle point
 cluster centroid
(c)   cluster centroid
Fig. 8: Centroids and interpolation of the   and   clusters from .
 cluster centroid
(a)   cluster centroid
Middle point
(b) Middle point
 cluster centroid
(c)   cluster centroid
Fig. 9: Centroids and interpolation of the   and   clusters from .
 cluster centroid
(a)   cluster centroid
Middle point
(b) Middle point
 cluster centroid
(c)   cluster centroid
Fig. 10: Centroids and interpolation of the   and   clusters from .
 cluster centroid
(a)   cluster centroid
Middle point
(b) Middle point
 cluster centroid
(c)   cluster centroid
Fig. 11: Centroids and interpolation of the   and   clusters from .

We use the clustering, , given by the clustering-based embedding, , to explore the spatio-temporal semantics that the clustering has captured. In order to do that, we show the closest ST to each centroid and the closest ST to some intermediate points between centroids in Figures 8, 9, 10, 11 and 12. Due to space limitations and also to facilitate the interpretation of the figures, we only show the first 4 elements of the STs that correspond to the four season of years 2017-2018. From left to right, the charts correspond to the spring, summer, autumn and winter.

The cluster centroids and the middle ST (interpolation with ) between neighboring clusters are presented in Figures 8, 9, 10 and 11. The centroids (charts (a) and (c)) and the middle points (charts(b)) are shown together to better appreciate the changes in semantics. First, we can observe that each cluster centroid expresses a clear and well-defined semantic. Roughly speaking, the   cluster is associated with crops and some pasture. The   cluster includes different kinds of hills and pastures. The   cluster also contains crops and pasture but of another type belonging to the north of the Pyrenees. The   and   clusters group together the mountains of the Pyrenees, where the   cluster contains the highest mountains with the most snow. We can see that, in these four figures, the interpolation with always represents a semantic halfway between the two centroids. For instance, in Figure 8(b) we can see crops with more pasture than in Figure 8(a) and some hills that appear in Figure 8(c). In Figure 9(b) we observe more mountain peaks than in Figure 9(a) and an intermediate amount of snow in comparison with the centroids. Figure 10(b) shows crops between hills, which appear in in10(c). Finally, Figure 11(b) represents a landscape halfway between hills and mountains.

The last experiment is shown in Figure 12, where we present an interpolation with three intermediate steps, corresponding to . In this case, we choose the most distant clusters. The figure shows a smooth transition from the   cluster, with crops along the year, to the   cluster that contains high mountains with snow in some seasons of the year. We can see that the land contains more pasture and mountainous terrain as increases, while the crops disappear. It is also worth mentioning that the amount of snow increases at each step.

The results of the clustering of STs go beyond the superficial details. For example, we have seen that the   and   clusters contain crop-related landscapes. Although these clusters apparently have similar semantics, they have been separated in the projection of the embedding. The difference between the crops on both sides of the Pyrenees have been captured by the MTS of embedded vectors and the subsequent clustering.

 cluster centroid
(a)   cluster centroid
Interpolation step 1
(b) Interpolation step 1
Interpolation step 2
(c) Interpolation step 2
Interpolation step 3
(d) Interpolation step 3
 cluster centroid
(e)   cluster centroid
Fig. 12: Interpolation between   and   clusters with three intermediate points from .

Vii Conclusions

In this paper, we have investigated a fully unsupervised methodology to conduct a semantic clustering over a region of interest from a sequence of satellite images. The sequence of images is encoded as a set of MTS by means of a semantically meaningful embedding, which is built in three steps: 1) training the embedding with triplets generated according to the geographic neighborhood, 2) clustering of the MTS and 3) embedding refining with triplets generated according to the clustering neighborhood.

The experiments are designed to explore the clustering from different perspectives in an unsupervised manner. Overall, the main conclusions of the paper are the following:

  • The clustering of MTS based on embedded vectors exhibits robust and stable patterns of behavior in all the experiments carried out.

  • The semantic clustering can contribute a wealth of knowledge about the region of interest, from coarse-grained semantic information to fine-grained details, as the number of clusters increases.

  • There exist a very close connection between the geographic and the embedded representation of the clustering.

  • The clustering can be refined and enhanced by means of a second phase of training based on the clustering neighborhood.

  • The clustering of MTS automatically captures precise spatio-temporal semantic information.

We have seen that the geographic representation of the clustering exhibits a clear structure in which large areas are grouped in a very compact way. Nevertheless, as the number of clusters increases, a hierarchical partition naturally emerges, revealing an increasing number of semantic details, that could be studied more in-depth depending on the specific application. Both, in the geographic and the embedded representations, the clusters are arranged in a very similar pattern in terms of relative positions among them. Spatially adjacent clusters in the geographic representation tend to be adjacent in the embedding, and vice versa. Nevertheless, both spaces can provide complementary information about the shape of the clusters and their relationships. We have seen that the clustering-based embedding is able to sharpen the semantic information obtained from the sequence of satellite images. This embedding captures refined information about the underlying properties of the land for a given number of clusters. The clustering-based embedding highlights the elements’ belonging to each cluster, i.e., it tries to separate the borders and brings the points to the center of the cluster, which would be desirable for further classifications tasks. The visual inspection of the centroids and the corresponding interpolations show the ability of the clustering to capture the different semantics of a region and their evolution. Not only each cluster is able to represent a specific and well differentiated spatio-temporal semantic, but also the interpolation between clusters is clearly meaningful. The results indicate that the semantic properties investigated in previous works with isolated images and manually selected semantics are also expressed when a clustering of MTS is conducted.

We argue that the development and understanding of general unsupervised methods is crucial in the field of satellite images, where the labeled data is expensive to obtain. To illustrate our proposal, we have selected the region of Navarre in northern Spain, but any other region of interest could have been studied. The methods proposed in the current paper can later be incorporated into the pipeline of a larger system, where they can be combined with labeled data or expert knowledge if possible. Nonetheless,a fully unsupervised semantic analysis is a crucial tool to study a region of interest, as it allows to obtain from general patterns to specific details as the number of clusters increases. Thus, these kinds of methods can assist on a wide variety of issues such as studying the climate change, designing land policies or measuring human footprint.

Finally, it is important to note that the use of STs is an essential element to conduct further analysis related with the changing semantic of a region. The specific use of STs incorporates a new dimension in the semantic clustering that provides richer information and opens a wide variety of possibilities. For instance, the development of bi-clustering algorithms to be run over the set of MTS could find similar sub-sets both in space and time. Our proposal constitutes the fundamental basis to carry out these further developments, which would be highly suitable to detect change points and seasonality.

-a The quality of partitional clustering from the Tile2Vec perspective

Once, the Tile2Vec embedding is learned from the tiles of a sequence of satellite images, we can represent the image as a grid of sequences tiles given by , where is a multidimensional time series of length with for and . A partitional clustering of is given by a set of subsets that is a partition of , with and . In particular, in this work, we propose the use of -means algorithm to learn the partition . In this section, we motivate the use of this approach by relating the partitions learned using a -means and an adaptation of the Tile2Vec error for partitional clustering.

The -means algorithm is an iterative algorithm for partitional clustering heuristic that produces a sequence of clusterings until convergence. The algorithm deals with the minimization of the -means error:

(3)

where is the centroid and is the Euclidean distance between the time series and . The minimization of the -means error is NP-hard. It can be shown that, -means algorithm reduces the -means error every iteration until it converges to a stationary point.

We define the partitional Tile2Vec error (PT2V) for a clustering as follows:

(4)

where is the margin of the standard Tile2Vec error function. The PT2V corresponds to the Tile2Vec error for the neighborhood defined by the partition , i.e., and are neighbors when they belong to the same partition , and otherwise they are considered distant. In other words, this error function defines the neighborhood in terms of the partition, and the distance of two sequences of tiles in the original image is irrelevant.

Figure 13 shows the evolution of the average PT2V for the clustering of obtained after each iteration, for 25 runs of the algorithm. On average, PT2V decreases monotonically with the iterations. This evidence shows a strong relation between the -means error and Tile2Vec error, and motivates the use of the -means algorithm to construct an appropriate partition from the Tile2Vec error perspective.

The evolution of the average PT2V with the iterations of the
Fig. 13: The evolution of the average PT2V with the iterations of the -means algorithm over runs. The shadow region correspond to the standard deviation of the PT2V for each iteration.

References