1,272
Views
0
CrossRef citations to date
0
Altmetric
CIVIL & ENVIRONMENTAL ENGINEERING

Methods of computational topology and discrete Riemannian geometry for the analysis of arid territories

, , & | (Reviewing editor)
Article: 1808340 | Received 27 Jul 2019, Accepted 16 Jul 2020, Published online: 25 Aug 2020

Abstract

The purpose of this article is the development and application of discrete differential geometry methods for digital image analysis within the framework of Topological Data Analysis (TDA). The proposed approach consists of two stages. First of all, topological invariants, Betti numbers, are extracted from the digital image using TDA algorithms. They contain information about the appearance and disappearance of topological properties: the connected components and holes when filtering the image along with the height of the photometric topography. The interval of heights measuring the lifetime of a property is called the persistence of the property. The most common information about Betti’s persistent numbers is presented in the form of a cloud of points on the birth-death diagram, the so-called persistence diagram (PD). The vectorization of PD with the help of a diffuse kernel makes it possible to estimate its pdf. At the second stage, we use the representation of the received pdf on the Riemannian sphere. Here, the Fischer-Rao metric reduces to the Hilbert scalar product of semi-density on the tangent bundle of a sphere. This approach allows you to analyze images of complex, multicomponent natural systems that do not have clear spectral boundaries of the transition between texture classes. Space images of natural landscapes were used as digital images. We demonstrate this technique to describe the morphological dynamics of wetlands located in arid zones and characterized by extremely high temporal variability.

Public interest statement

This article discusses methods of discrete Riemannian geometry applied in Topological Data Analysis (TDA). TDA extracts the basic topological properties of the field at different levels, namely, a numbers of connected components and holes estimated on areas with pixels’ intensities below a given level. Two properties change when the level crosses fields critical points. This results in density distribution of the properties along the level. It is difficult to find a suitable metric for the probability density functions (pdfs). Typically, entropy distances or divergences are used. We turn to semi-densities: the pdf square roots with distribution on a unit sphere. Well-known Fisher-Rao metric measures the distance between two pdfs by an angle obtained as a scalar product in a tangent space. We applied this technique to study seasonal variability of swamps in arid territories. The approach is universal if comparison and averaging of histograms for observed characteristics are needed. Such problems often arise when we deal with matrix data or digital images.

1. Introduction

The clustering of digital images, including remote sensing data, is the main tool for analyzing the spectral characteristics of the underlying surface in the tasks of monitoring landscapes and their temporal dynamics. The principle of this treatment is based on differences in the spectral characteristics of different types of the underlying surface. The greater the spectral differences are, the more accurate the results of the classification of the underlying surface will be. However, in some cases, on the underlying surface there may be several different objects without clear, spectral boundaries separating them. For example, water surface and water vegetation, which coexist with different parts of leaf cover water surface or water surface and land surface, joined through wetlands. In these cases, standard clustering methods do not provide consistent results of classifications of many images suitable for comparative analysis, even with a large training set. In this case, Topological Data Analysis (TDA), which extracts information based on the sample structure at all scales from the image, may be useful.

The basis of TDA is the idea of topological filtering. It can be understood by the example of the chain rule for establishing the proximity of points in the feature space in clustering problems (Grenander, Citation2012). Namely, two points in the feature space are connected by an edge, if the distance between them in a suitable metric does not exceed a specified small number ε. The use of ε -connectivity to describe the fracturing of the ice cover is described in (Robins et al., Citation2004). Her version was used by us in the problem of multifractal segmentation of HR images (Makarenko et al., Citation2014).

In algebraic topology, chain proximity leads to the concept of topological nerve coverage of a point set (Edelsbrunner & Harer, Citation2009). LetS=vi,i=1,2,…N be the sample points on the plane R2. Decorate each point with a disk Bvi,ε with a radius ε centered atvi. We will simultaneously increase the radii of all the disks. The intersection of 2 disks is replaced by an edge connecting their centers. The intersection of 3 discs is replaced by a triangular face. The resulting structure consisting of the simplest elements of vertices, edges and faces, is called a simplicial complex if its adjacent elements intersect at a point or have a common edge. So, the dilatation of the disks leads to the complex, which is called the Čech complex:

KS,ε=i=1NBνi,ε

The nerve theorem (Ghrist, Citation2014) states that the Čech complex for a set and its covering by disks are homotopy equivalent to each other.

Rebuilding the Čech complex with increasing scale ε produces a nested sequence of complexes or filtering, KS,ε1KS,ε2 for ε1ε2. It is possible to define algebraic objects—homology groups (Edelsbrunner & Harer, Citation2009; Ghrist, Citation2014). Roughly speaking, these groups describe “holes”, i.e. kdimensional cycles that are not the boundaries of k+1dimensional faces. For R2, zero-dimensional holes, i.e. ε-distinguishable components form a zero-dimensional homology group H0. The rank of this group, i.e. the number of different elements is called the Betti number β0. The group H1 consists of one-dimensional cycles around the holes. Her rank is called the Betti number β1. For example, for an annulus, the Betti numbers are β0=1 and β1=1, respectively.

Obviously, the filtering of the Čech complex will reduce the number of connected components to the only one in which all holes are “killed”. At the same time, the lifetimes of each point prior to its inclusion in the edge and of each hole until its disappearance (painting) are different (Carlsson, Citation2009). Here, the lifespan or persistence is measured in the radii of dilation of the coating disks from birth to dying of a topological property. Lifetimes are usually depicted by a set of horizontal segments—barcodes (Ghrist, Citation2008). It is more convenient to represent barcodes in the form of a persistence diagram (PD), i.e. clouds of points on a plane, the coordinates of each of which are the beginning and end of the barcode (Edelsbrunner & Harer, Citation2009). The described technique is fundamental to the TDA and differs only in the homology calculation algorithms and the ways of representing many barcodes (Edelsbrunner & Morozov, Citation2012; Ghrist, Citation2018).

For digital images, brightness filtering is implemented using a horizontal plane moving along the height of the photometric relief. For each of its levels, the first two Betti numbers are calculated using, for example, an algorithm (Makarenko et al., Citation2015). Betti’s persistent numbers are obtained in the form of a set of barcodes, or PD, obtained by parametrizing barcodes in birth–death coordinates (Carlsson, Citation2009; Ghrist, Citation2008). Note that PD is a multiset: its diagonal contains an infinite number of points with zero lifetime. Applications need a suitable measure of comparison between different PDs that do not form either a vector space or a manifold. Wasserstein metric can be used to estimate the distance between two PDs. However, it requires the implementation of the bijection property between two-point clouds, which is impossible to implement for a multiset (Kerber et al., Citation2017). The proposed piecewise linear constructions, the so-called persistent landscapes (Bubenik, Citation2015) are sensitive to individual random points. PD rank statistics (Robins & Turner, Citation2016) lose local information.

The most suitable option is the so-called persistent images (Adams et al., Citation2017). They are obtained by blurring PD using Gaussian kernels placed at its points. After converting the result to the final window, a matrix representation of the probability density function (pdf) estimate for PD is obtained. It is easy to standardize using the appropriate matrix norm.

Unfortunately, in the general case, the sum of two probabilities is not defined, i.e. probabilities do not form a vector space. Therefore, for comparison, pdf use entropy distances (Edelsbrunner et al., Citation2019) or divergences (Amari, Citation2009), which are not metrics. In general, probability density function g(t)belong to belong to the Banach space regionP:

(1) P={g:[0,1]R001g(t)dt=1}(1)

The well-known information metric of Fisher-Rao introduces (1) a Riemannian structure (Amari & Nagaoka, Citation2007). However, it leads to time-consuming calculations to estimate distances. The approach from quantum mechanics can be used here. It is associated with Young’s experience in passing electrons through two slits on the screen. Let P1,P2 be the probabilities of the passage of an electron through slits 1 and 2, respectively. It is known that the presence of a detector determining the electron path leads to the classical bimodal distribution P1+P2=P12. However, in the absence of an absorber, the electrons behave like a wave, and we will observe their interference with the distribution, so the probabilities do not add up P1+P2P12.

For a formal explanation of these results in quantum mechanics, it is assumed that addition is valid for the probability amplitude or square root of pdf: Pi=φi2:

P12=φ1+φ22=φ12+φ22+2φ1φ22=P1+P2+2φ1φ22

The last term describes the interference.

It can be shown that the new variables—square roots of pdf or semi-density, allow us to consider them as points on a multidimensional unit Riemannian sphere. Then, on the tangent bundle to the sphere, the Fisher-Rao metric reduces to the standard Hilbert scalar product. This circumstance allows measuring the distance between two pdf as an angle, between two tangent vectors.

We apply the proposed method to analyze changes in the dynamic morphology of arid landscapes. As noted above, they are characterized by mixtures of several features, and the usual spectral classification methods work very poorly. Therefore, our main goal is to assess the suitability of TDA together with the technique of discrete Riemannian geometry, to describe these difficult situations.

2. Semi-densities and Fisher-Rao metrics on the sphere

In differential geometry, the square of the distance between two infinitesimally close points is determined by the expression ds2=gikdxidxk. Hereinafter, repeated indices mean summation. In an orthonormal basis, the metric tensor has the form gik=δik, where δikis the unit matrix and we have the usual Euclidean metric:

(2) ds2=δikdyidyk=idyi2(2)

Let pia set of discrete normalized pdf. Using the analogy with quantum mechanics, we introduce new coordinates, semi-densitiesyi=pi. Then the normalization condition ipi=1will be equivalent to the equation for the unit Ndimensional sphere SN:iyi2=1 embedded in RN. In the new coordinates, the metric (2) has the form:

(3) ds2=idyi2=idpidpi=14idpidpipi=14ipid(logpi)d(logpi)(3)

Expression (3) is a discrete version of the well-known Fisher-Rao metric (Amari & Nagaoka, Citation2007). A weighted scalar product of the form ipi1dpidpiin (3) can be considered as the product of the differentials pdf in the tangent bundle TgPat a point gP of the Banach space containing pdf (see (1)). Let, v1,v2TgP then the continuous analog of metric (3) can be written as (Srivastava & Klassen, Citation2016):

(4) (v1,v2)Tg=01v1(t)v2(t)(1/g(t))dt(4)

Strictly speaking, we must use the restriction P as P0={gP|g>0}, because the weighting factors in (3) and (4) cannot be zeros. As in the discrete case, let q(t)=+g(t) be the new coordinates. According to the definition

(5) 01g(t)dt=101q2(t)dt=1(5)

Thus, q(t) is an element of a positive domain, an infinite-dimensional sphereS. Let QS+ be the set of all square roots of density functions be on. The tangent vector wTqQof the new variable is related to the tangent vectorvTgP0 by the relation q(t)=g(t) . Therefore, from (4) it is easy to obtain (Srivastava & Klassen, Citation2016):

(6) v1,v2Tg01w1tw2tdt=w1w2Tq(6)

Thus, we got the usual Hilbert metric in TqQ, and we can now calculate the distance between two pdf a standard way using the dot product:

(7) w1,w2=w1w2cosφ,φ=arccosw1,w2w1w2(7)

where the norm is the normal Frobenius norm.

Note that the tangent vectors wTqQcorrespond to the segments of geodesics on the sphere, obtained using the exponential map: expq:TqQSN. It is a local diffeomorphism of some neighborhood of zero in the tangent bundle, onto some neighborhood of the base (Srivastava & Klassen, Citation2016). The maximum angular distance, for which a diffeomorphism is valid, is given by the value φ=π/21.57. For pdf averaging, it is convenient to use the Karcher mean, which is defined as follows (Karcher & Karcher, Citation1977). We define the variance Ψ(p):SNR0 relative to the pointp and the probability distribution density fq of the points qforming the reference measure:

(8) Ψ(p)=Sd(p,q)2f(q)dq(8)

Then the Karcher average is the function μkar=fq that delivers the local minimum of the variance (8).

3. Diagnosis of changes in the morphology of natural landscapes

We used the technique described above to analyze the long-term dynamics of natural territorial complexes. A class of natural systems with high seasonal variability was chosen. Their seasonal component reflects climate change, and therefore, variability is of considerable interest.

A typical representative of this class is lake-marsh complexes located in arid climates (Kharazmi et al., Citation2017, Citation2016). During the season, the area of water spaces and flooded vegetation can change dramatically, until they disappear completely in the dry season. Seasonal regimes are not stable on the scale of a decade. Wet years are interspersed dry. Thus, a complex dynamic is formed, tracing climate change and its variability. An additional negative factor in such systems, almost always, is the anthropogenic load caused by agricultural production in conditions of climatic moisture deficit.

Remote sensing using spacecraft is the best source of information about changes in the dynamic regimes of natural complexes. In the case of lake-marsh systems, the main types of underlying surface are water surface, vegetation, and wasteland. However, despite the significant spectral differences of these three base classes, the results of the mapping of the underlying surface can be very unstable. The main problem is associated with the lack of clear spectral boundaries separating classes. The water surface of substantial depth smoothly passes into the shallow water and submerged soil. The vegetation cover is represented by all possible gradations, from multi-scale waterlogging to oppression, caused by a lack of moisture up to its complete disappearance and the formation of a wasteland. It is easy to separate pure classes, for example, the water cover from the vegetation, but it is difficult to determine when the flooded vegetation ceases to be vegetation and should relate to the water surface.

There are two major settings in which we wish to learn remote sensing data. In one, called supervised learning, we know (sometimes only approximately) of the class descriptor for the m samples in the training set, M. The selected classification algorithm, for example, the Maximum Likelyhood method, determines the criteria for thresholds that divide classes and builds thematic layers. It is clear that the result of the classification of many images describing seasonal dynamics will depend on the chosen algorithm and classification descriptors. At the same time, the actual pixel intensity values of different channels of a multi-zone survey, relating it to one or another class in different pictures, may not coincide.

Most of the unsupervised learning methods use a measure of similarity between patterns in order to group them into clusters. The simplest of these involves defining a distance between patterns. Based on the expert assessment, the operator will have to assign the resulting classes to the specified types of underlying surface as part of the thematic map legend. The method of expert interpretation of pseudo-color satellite imagery, in fact, is a kind of unsupervised classifications. The basic classification, in this case, is the formula that forms the color of the pixel (RGB, CMYK or another basis), and the operator, based on expert judgment, reduces all the variety of characteristics (colors) to the types of coatings, according to the legend of the thematic map. The description of the morphological dynamics of the landscape is based on data from a multispectral satellite survey taken at different times. Nevertheless, they are considered as a single complex, without preliminary discretization of individual images and instabilities in the results associated with this. Therefore, the main problem lies in the choice of descriptors, as free as possible from an a priori context, and a suitable discriminating metric capable of separating the dynamic fragments of the seasonal dynamics of natural complexes, in general.

Hamum wetlands, Seistan basin of the Helmand rivers on the eastern border of Iran (bordered by Afghanistan) were selected for testing the methodology, see Figure . They are described in detail in the works (Kharazmi et al., Citation2017, Citation2016). Monthly multispectral images of Landsat 5 and Landsat 8 were used for the time interval 2015–2016.

Figure 1. Google-Earth images of Hamum wetlands dated 1999 and 2013 years, that illustrate the variability of wetting.

Figure 1. Google-Earth images of Hamum wetlands dated 1999 and 2013 years, that illustrate the variability of wetting.

We used topological invariants, Betty numbers, represented by the persistence diagrams (PDs) as descriptors of digital images (Makarenko et al., Citation2015). Figure shows an example of the PD.

Figure 2. (a) A fragment of the swamp landscape (02/25/2015). (b) the PDs for this image. Blue colour corresponds to the connected components, red color to the holes. The number of points in each clouds is shown in the legend. (c) A persistent image for the PD(β1).

Figure 2. (a) A fragment of the swamp landscape (02/25/2015). (b) the PDs for this image. Blue colour corresponds to the connected components, red color to the holes. The number of points in each clouds is shown in the legend. (c) A persistent image for the PD(β1).

For each PD a persistent image was obtained (Adams et al., Citation2017), which serves as a pdf rating (see Figure , c). The semi-density is obtained by extracting the square root of the resulting matrices, converted into a row vector. The metric was the Hilbert scalar product of semi-densities in the tangent bundle to the unit sphere.

Figure 3. Comparative dynamics of natural complexes, represented by the Riemannian metric relative to the Karcher mean for the connected components, dim0_rdist, and holes, dim_1rdist: (a) the variability of the relative Riemannian distance for 2015; (b) the variability of the relative Riemannian distance for 2016. On the x-axis, the months and dates of the image are shown in a format (month_date).

Figure 3. Comparative dynamics of natural complexes, represented by the Riemannian metric relative to the Karcher mean for the connected components, dim0_rdist, and holes, dim_1rdist: (a) the variability of the relative Riemannian distance for 2015; (b) the variability of the relative Riemannian distance for 2016. On the x-axis, the months and dates of the image are shown in a format (month_date).

Our results are summarized in Figure . It shows the seasonal dynamics of the above areas, expressed in monthly deviations of the Riemannian semi-density from the Karcher average. The differences in texture variability at the 2-year interval are well noticeable. So, the pronounced autumn variability of the textural morphology of 2015 is practically absent in 2016.

4. Conclusion

The article describes the use of methods of discrete differential geometry for diagnosing patterns of digital images of landscapes, expressed by topological descriptors. This technique is designed to analyze the dynamics of the underlying surface in the case of its high temporal variation and the absence of clear spectral boundaries between the classes.

Topological Data Analysis, TDA, has three obvious advantages. The first of these is the simplicity of the signs—they are the ordered values of the photometric measure in pixels. The second is the multiresolution property: all scales are analyzed in the feature space. Finally, the third advantage is the invariant nature of the descriptors obtained: the Betti numbers do not need any a priori model, which is necessary for the traditional methods of spectral classification.

As an example, the article considers the satellite monitoring of wetlands in arid territories. The comparative morphological dynamics was analyzed on a 2-year interval based on topological descriptors. For the time sequence of descriptors obtained in the form of PD, estimates of pdf and their semi-densities were obtained, i.e. pdf. The resulting unit Riemannian sphere, as the support of semidifinities, was equipped with a tangent bundle with a Hilbert scalar product. This design allows to measure the Riemannian distance between points, (i.e., pdf) in the angular measure; estimate the distance between them and calculate the average by Karcher on the sphere. We have shown that a change in the Riemannian distance relative to the average makes it possible to track the seasonal dynamics of landscapes. Note that the spectral classification methods do not allow obtaining an integral descriptor suitable for these purposes. We hope that the proposed method will allow analyzing satellite images, with an estimate of the measure of proximity between them. The latter circumstance makes it possible to use it in the tasks of identifying climate signals in long-term changes in the morphology of landscapes.

Acknowledgements

We gratefully acknowledge the financial support of the Ministry of Education and Sciences, Republic of Kazakhstan (Grant AP05134227).

Additional information

Funding

The authors received no direct funding for this research.

Notes on contributors

Nikolai Makarenko

Nikolai Makarenko, Dr of technical science and Dr of Physical and Mathematical Sciences, Principal Researcher of Institute of Information and Computational Technologies, Almaty, Kazakhstan; Head of the Department of Mathematical Modeling of the Central Astronomical Observatory of the Russian Academy of Sciences, St. Petersburg, Russia. A member of the Board of the executive committee of Russian Neural Networks Society. Research interests: computer modeling of nonlinear systems, computational topology, fractal geometry, deterministic chaos, mathematical morphology, Artificial Neural Networks, analysis of remote sensing data. He has over 100 publications in various sources.

References