Persistence weighted Gaussian kernel for topological data analysis
Genki Kusano, Kenji Fukumizu, Yasuaki Hiraoka

TL;DR
This paper introduces a new kernel method for persistence diagrams in topological data analysis, offering stability, explicit persistence control, and fast approximation, demonstrated on protein and glass data.
Contribution
It proposes a novel kernel for persistence diagrams that enhances stability, control, and computational efficiency in topological data analysis.
Findings
The kernel satisfies stability properties.
It provides explicit control over persistence effects.
Applied to protein and glass data with improved results.
Abstract
Topological data analysis (TDA) is an emerging mathematical concept for characterizing shapes in complex data. In TDA, persistence diagrams are widely recognized as a useful descriptor of data, and can distinguish robust and noisy topological properties. This paper proposes a kernel method on persistence diagrams to develop a statistical framework in TDA. The proposed kernel satisfies the stability property and provides explicit control on the effect of persistence. Furthermore, the method allows a fast approximation technique. The method is applied into practical data on proteins and oxide glasses, and the results show the advantage of our method compared to other relevant methods on persistence diagrams.
Click any figure to enlarge with its caption.
Figure 1
Figure 2
Figure 3
Figure 4
Figure 5
Figure 6
Figure 7
Figure 8
Figure 9
Figure 10
Figure 11
Figure 12
Figure 13
Figure 14
Figure 15
Figure 16
Figure 17
Figure 18| RKHS-Linear | RKHS-Gauss | |
|---|---|---|
| PWGK | 60.0 | 83.0 |
| PSSK | 49.5 | 54.5 |
| Gauss | 57.6 | 69.7 |
| Protein-Drug | Hemoglobin | |
|---|---|---|
| PWGK | 100 | 88.90 |
| MTF-SVM | (nbd) 93.91 / (bd) 98.31 | 84.50 |
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsTopological and Geometric Data Analysis · Advanced Neuroimaging Techniques and Applications · Cell Image Analysis Techniques
Persistence weighted Gaussian kernel for topological data analysis
Genki Kusano Tohoku University, [email protected]
Kenji Fukumizu The Institute of Statistical Mathematics, [email protected]
Yasuaki Hiraoka Tohoku University, [email protected]
Abstract
Topological data analysis (TDA) is an emerging mathematical concept for characterizing shapes in complex data. In TDA, persistence diagrams are widely recognized as a useful descriptor of data, and can distinguish robust and noisy topological properties. This paper proposes a kernel method on persistence diagrams to develop a statistical framework in TDA. The proposed kernel satisfies the stability property and provides explicit control on the effect of persistence. Furthermore, the method allows a fast approximation technique. The method is applied into practical data on proteins and oxide glasses, and the results show the advantage of our method compared to other relevant methods on persistence diagrams.
1 Introduction
Recent years have witnessed an increasing interest in utilizing methods of algebraic topology for statistical data analysis. This line of research is called topological data analysis (TDA) [Car09], which has been successfully applied to various areas including information science [CIdSZ08, dSG07], biology [KZP*+*07, XW14], brain science [LCK*+*11, PET*+*14, SMI*+*08], biochemistry [GHI*+*13], and material science [NHH*+*15a, NHH*+*15b]. In many of these applications, it is not straightforward to provide feature vectors or descriptors of data from their complicated geometric configurations. The aim of TDA is to detect informative topological properties (e.g., connected components, rings, and cavities) from such data, and use them as descriptors.
A key mathematical apparatus in TDA is persistent homology, which is an algebraic method for extracting robust topological information from data. To provide some intuition for the persistent homology, let us consider a typical way of constructing persistent homology from data points in a Euclidean space, assuming that the data lie on a submanifold. The aim is to make inference on the topology of the underlying manifold from finite data. We consider the -balls (balls with radius ) to recover the topology of the manifold, as popularly employed in constructing an -neighbor graph in many manifold learning algorithms. While it is expected that, with an appropriate choice of , the -ball model can represent the underlying topological structures of the manifold, it is also known that the result is sensitive to the choice of . If is too small, the union of -balls consists simply of the disjoint -balls. On the other hand, if is too large, the union becomes a contractible space. Persistent homology [ELZ02] can consider all simultaneously, and provides an algebraic expression of topological properties together with their persistence over . We give a brief explanation of persistent homology in Supplementary material A.3.
The persistent homology can be visualized in a compact form called a persistence diagram , and this paper focuses on persistence diagrams, since the contributions of this paper can be fully explained in terms of persistence diagrams. Every point , called a generator of the persistent homology, represents a topological property (e.g., connected components, rings, and cavities) which appears at and disappears at in the -ball model. Then, the persistence of the generator shows the robustness of the topological property under the radius parameter. As an example shown in Figure 1, the rings and other tiny ones are expressed as , and the other points in the persistence diagram shown in Figure 10. A topological property with large persistence can be regarded as a reliable structure, while that with small persistence (points close to the diagonal) is likely to be noise. In this way, persistence diagrams encode topological and geometric information of data points.
While persistence diagrams nowadays start to be applied to various problems such as the ones listed in the beginning of this section, statistical or machine learning methods for analysis on persistence diagrams are still limited. In TDA, analysts often elaborate only one persistence diagram and, in particular, methods for handling many persistence diagrams, which should be supposed to contain randomness from the data, are at the beginning stage (see the end of this section for related works). Hence, developing a statistical framework on persistence diagrams is a significant issue for further success of TDA.
To this aim, this paper discusses kernel methods for persistence diagrams (see Figure 3). Since a persistence diagram is a point set of variable size, it is not straightforward to apply standard methods of statistical data analysis, which typically assume vectorial data. Here, to vectorize persistence diagrams, we employ the framework of kernel embedding of (probability and more general) measures into reproducing kernel Hilbert spaces (RKHS). This framework has recently been developed, leading various new methods for nonparametric inference [MFDS12, SGSS07, SFG13]. It is known [SFL11] that, with an appropriate choice of kernels, a signed measure can be uniquely represented by the Bochner integral of the feature vectors with respect to the measure. Since a persistence diagram can be regarded as a non-negative measure, it can be embedded into an RKHS by the Bochner integral. Once such a vector representation is obtained, we can introduce any kernel methods for persistence diagrams systematically.
For embedding persistence diagrams in an RKHS, we propose a useful class of positive definite kernels, called persistence weighted Gaussian kernel (PWGK). It is important that the PWGK can discount the contributions of generators close to the diagonal (small persistence), since in many applications those generators are likely to be noise. The advantages of this kernel are as follows. (i) We can explicitly control the effect of persistence, and hence, discount the noisy generators appropriately in statistical analysis. (ii) As a theoretical contribution, the distance defined by the RKHS norm for the PWGK satisfies the stability property, which ensures the continuity from data to the vector representation of the persistence diagram. (iii) The PWGK allows efficient computation by using the random Fourier features [RR07], and thus it is applicable to persistence diagrams with a large number of generators, which are seen in practical examples (Section 4).
We demonstrate the performance of the proposed kernel method with synthesized and real-world data, including protein datasets (taken by NMR and X-ray crystallography experiments) and oxide glasses (taken by molecular dynamics simulations). We remark that these real-world problems have biochemical and physical significance in their own right, as detailed in Section 4.
There are already some relevant works on statistical approaches to persistence diagrams. Some studies discuss how to transform a persistence diagram to a vector [Bub15, CMW*+*15, COO15, RT15]. In these methods, a transformed vector is typically expressed in a Euclidean space or a function space , and simple and ad-hoc summary statistics like means and variances are used for data analysis such as principal component analysis and support vector machines. The most relevant to our method is [RHBK15] (see also [KHN*+*15]), where they vectorize a persistence diagram by using the difference of two Gaussian kernels evaluated at symmetric points with respect to the diagonal so that it vanishes on the diagonal. We will show detailed comparisons between this method and ours. Additionally, there are some works discussing statistical properties of persistence diagrams for random data points: [CGLM14] show convergence rates of persistence diagram estimation, and [FLR*+*14] discuss confidence sets in a persistence diagram. These works consider a different but important direction to the statistical methods for persistence diagrams.
The remaining of this paper is organized as follows. In Section 2, we review some basics on persistence diagrams and kernel embedding methods. In Section 3, the PWGK is proposed, and some theoretical and computational issues are discussed. Section 4 shows experimental results, and compares the proposed kernel method with other methods.
2 Background
We review the concepts of persistence diagrams and kernel methods. For readers who are not familiar with algebraic topology and homology, we give a brief summary in Supplementary material. See also [Hat01] as an accessible introduction to algebraic topology.
2.1 Persistence diagram
Let be a finite subset in a metric space . To analyze topological properties of , let us consider a fattened ball model consisting of balls with radius , and use the homology to describe the topology of . Here, for a topological space , its -th homology is defined as a vector space, and its dimension counts the number of connected components , rings , cavities , and so on111Throughout this paper we use a field coefficient for homology.. For the precise definition of homology, see Supplementary material. For example, in Figure 1 consists of one connected component and two rings, and hence and .
Because of for , the set becomes a filtration222A filtration is a family of subsets indexed by a totally ordered set such that for .. When the radius changes as in Figure 1, a new generator appears at some radius and disappears at a radius larger than (called birth and death, respectively). By gathering all generators in the filtration , we obtain the collection of these birth-death pairs as a multi-set333A multi-set is a set with multiplicity of each point. We regard a persistence diagram as a multi-set, since several generators can have the same birth-death pairs.. The persistence diagram is defined by the disjoint union of and the diagonal set counted with infinite multiplicity. A point is also called a generator of the persistence diagram. The persistence of is its lifetime and measures the robustness of in the filtration. We will see shortly that the diagonal set is included in a persistence diagram to simplify the definition of a distance on persistence diagrams.
Figure 10 shows the persistence diagram of given in Figure 1. The generators and correspond to the rings and in Figure 1, respectively. The persistence of is the longest, while the other generators including have small persistences, implying that they can be seen as noisy rings. Although there are no topological rings in itself, the persistence diagram shows that there is a robust ring and several noisy rings in . In this way, the persistence diagram provides an informative topological summary of over all .
We remark that, in the finite fattened ball model, there is only one generator in which does not disappear in the filtration; its lifetime is . Thus, from now on, we deal with by removing this infinite lifetime generator in order to simplify the notation444This is called the reduced persistence diagram.. We also note that the cardinality of obtained from the finite fattened ball model is finite.
2.2 Stability with respect to
Any statistical data involve noise or stochasticity, and thus it is desired that the persistence diagrams are stable under perturbation of data. A popular measure to study the similarity between two persistence diagrams and is the bottleneck distance
[TABLE]
where ranges over all multi-bijections555A multi-bijection is a bijective map between two multi-sets counted with their multiplicity. from to 666For , denotes . . Note that the cardinalities of and are equal by considering the diagonal set with infinite multiplicity. As a distance between finite sets in a metric space , let us recall the Hausdorff distance given by
[TABLE]
Then, we have the following stability property (for more general settings, see [CdSO14]).
Proposition 2.1**.**
Let and be finite subsets in a metric space . Then the persistence diagrams satisfy*
[TABLE]
Proposition 2.1 provides a geometric intuition of the stability of persistence diagrams. Assume that is the true location of points and is a data obtained from skewed measurement with (Figure 4). If there is a point , then we can find at least one generator in which is born in and dies in . Thus, the stability guarantees the similarity of two persistence diagrams, and hence we can infer the true topological features from one persistence diagram.
2.3 Kernel methods for representing signed measures
Let be a set and be a positive definite kernel on , i.e., is symmetric, and for any number of points in , the Gram matrix is nonnegative definite. A popular example of positive definite kernel on is the Gaussian kernel , where is the Euclidean norm in . It is also known that every positive definite kernel on is uniquely associated with a reproducing kernel Hilbert space (RKHS).
We use a positive definite kernel to represent persistence diagrams by following the idea of the kernel mean embedding of distributions [SGSS07, SFL11]. Let be a locally compact Hausdorff space, be the space of all finite signed Radon measures on , and be a bounded measurable kernel on . Then we define a mapping from to by
[TABLE]
The integral should be understood as the Bochner integral [DU77], which exists here, since is finite.
For a locally compact Hausdorff space , let denote the space of continuous functions vanishing at infinity777A function is said to vanish at infinity if for any there is a compact set such that .. A kernel on is said to be -kernel if is of as a function of . If is -kernel, the associated RKHS is a subspace of . A -kernel is called -universal if is dense in . It is known that the Gaussian kernel is -universal on [SFL11]. When is -universal, by the mapping (1), the vector in the RKHS uniquely determines the finite signed measure , and thus serves as a representation of .
Proposition 2.2** ([SFL11]).**
If is -universal, the mapping is injective. Thus,
[TABLE]
defines a distance on .
3 Kernel methods for persistence diagrams
We propose a kernel for persistence diagrams, called the Persistence Weighted Gaussian Kernel (PWGK), to embed the diagrams into an RKHS. This vectorization of persistence diagrams enables us to apply any kernel methods to persistence diagrams. We show the stability theorem with respect to the distance defined by the embedding, and discuss efficient computation of the PWGK.
3.1 Persistence weighted Gaussian kernel
We propose a method for vectorizing persistence diagrams using the kernel embedding (1) by regarding a persistence diagram as a discrete measure. In vectorizing persistence diagrams, it is important to discount the effect of generators located near the diagonal, since they tend to be caused by noise. To this end, we explain slightly different two ways of embeddings, which turn out to introduce the same inner products for two persistence diagrams.
First, for a persistence diagram , we introduce a weighted measure with a weight for each generator (Figure 5), where is the Dirac delta measure at . The weight function discounts the effect of generators close to the diagonal, and a concrete choice will be discussed later.
As discussed in Section 2.3, given a -universal kernel on , the measure can be embedded as an element of the RKHS via
[TABLE]
From Proposition 2.2, this mapping does not lose any information about persistence diagrams, and serves as a representation of the persistence diagram.
As the second construction, let
[TABLE]
be the weighted kernel with the same weight function as above, and consider the mapping
[TABLE]
This also defines vectorization of persistence diagrams, and it is essentially equivalent to the first one, as seen from the next proposition (See Supplementary material for the proof.).
Proposition 3.1**.**
The following mapping
[TABLE]
defines an isomorphism between the RKHSs. Under this isomorphism, and are identified.
Note that under the identification of Proposition 3.1, we have
[TABLE]
and thus the two constructions introduce the same similarity (and hence distance) among persistence diagrams. We apply methods of data analysis to vector representations or . The first construction may be more intuitive by the direct weighting of a measure, while the second one is also practically useful since all the parameter tuning is reduced to kernel choice.
For a practical purpose, we propose to use the Gaussian kernel for , and for a weight function. The corresponding positive definite kernel is
[TABLE]
We call it Persistence Weighted Gaussian Kernel (PWGK). Since the Gaussian kernel is -universal and on , defines a distance on the persistence diagrams. We also note that is an increasing function with respect to persistence. Hence, a noisy (resp. essential) generator gives a small (resp. large) value . By adjusting the parameters and , we can control the effect of the persistence.
3.2 Stability with respect to
Given a data , we vectorize the persistence diagram as an element of the RKHS. Then, for practical applications, this map should be stable with respect to perturbations to the data as discussed in Section 2.2. The following theorem shows that the map has the desired property (See Supplementary material for the proof.).
Theorem 3.2**.**
Let be a compact subset in , be finite subsets and . Then
[TABLE]
where is a constant depending on .
Let be the set of finite subsets in a compact subset . Since the constant is independent of and , Theorem 3.2 concludes that the map
[TABLE]
is Lipschitz continuous. To the best of our knowledge, a similar stability result has not been obtained for the other Gaussian type kernels (e.g., [RHBK15] does not deal with the Hausdorff distance.). Our stability result is achieved by incorporating the weight function with appropriate choice of .
3.3 Kernel methods on RKHS
Once persistence diagrams are represented by the vectors in an RKHS, we can apply any kernel methods to those vectors. The simplest choice is to consider the linear kernel
[TABLE]
on the RKHS. We can also consider a nonlinear kernel on the RKHS, such as the Gaussian kernel:
[TABLE]
where is a positive parameter and
[TABLE]
Note that we can observe better performance with nonlinear kernels for some complex tasks [MFDS12]. In this paper, we mainly apply the RKHS Gaussian kernel in the experimental section. In Section 4, we apply SVM, kernel PCA, and kernel change point detection.
3.4 Computation of Gram matrix
Let be a collection of persistence diagrams. In many practical applications, the number of generators in a persistence diagram can be large, while is often relatively small: in Section 4.3, for example, the number of generators is 30000, while .
If the persistence diagrams contain at most points, each element of the Gram matrix involves evaluation of , resulting the complexity for obtaining the Gram matrix. Hence, reducing computational cost with respect to is an important issue, since in many applications is relatively small
We solve this computational issue by using the random Fourier features [RR07]. To be more precise, let be random variables from the -dimensional normal distribution where is the identity matrix. This method approximates by , where denotes the complex conjugation. Then, is approximated by , where . As a result, the computational complexity of the approximated Gram matrix is .
We note that approximation by the random Fourier features can be sensitive to the choice of . If is much smaller than , the relative error can be large. For example, in the case of and , is about while we observed the approximated value can be about with . As a whole, these errors may cause a critical error to the approximation. Moreover, if is largely deviated from the ensemble for , then most values become close to [math] or .
In order to obtain a good approximation and extract meaningful values, choice of parameter is important. For supervised learning such as SVM, we use the cross-validation (CV) approach. For unsupervised case, we follow the heuristics proposed in [GFT*+*07]. In Section 4.3, we set , where , so that takes close values to many . For the parameter , we also set , where . Similarly, is defined by . In this paper, since all points of data are in , we set from the assumption in Theorem 3.2.
4 Experiments
We demonstrate the performance of the PWGK using synthesized and real data. In this section, all persistence diagrams are -dimensional (i.e., rings) and computed by CGAL [DLY15] and PHAT [BKRW14].
4.1 Comparison to the persistence scale space kernel
The most relevant work to our method is [RHBK15]. They propose a positive definite kernel called persistence scale space kernel (PSSK for short) on the persistence diagrams:
[TABLE]
where , and for . Note that the PSSK also takes zero on the diagonal by subtracting the Gaussian kernels for and .
While both methods discount noisy generators, the PWGK has the following advantages over the PSSK. (i) The PWGK can control the effect of the persistence by and in independently of the bandwidth parameter in the Gaussian factor, while in the PSSK only one parameter must control the global bandwidth and the discounting effect. (ii) The approximation by the random Fourier features is not applicable to the PSSK, since it is not shift-invariant in total. We also note that, in [RHBK15], only the linear kernel is considered on the RKHS, while our approach involves a nonlinear kernel on the RKHS.
Regarding the approximation of the PSSK, Nyström method [WS01] or incomplete Cholesky factorization [FS01] can be applied. In evaluating the kernels, we need to calculate , which is not symmetric. We then need to apply Nyström or incomplete Cholesky to the symmetric but big positive definite matrix of size . Either, we need to apply incomplete Cholesky to the non-symmtric matrix for all the combination of , which requires considerable computational cost for large . In contrast, the random Fourier features can be applied to the kernel function irrespective to evaluation points, and the same Fourier expansion can be applied to any . This guarantees the efficient computational cost.
The detailed comparisons will be experimentally verified in Sections 4.2 and 4.3. With respect to the parameter in the PSSK, since is only used to vanish the value of the feature map on the diagonal, we set by using the same defined in Section 3.4.
4.2 Classification with synthesized data
We first use the proposed method for a classification task with SVM, and compare the performance with the PSSK. The synthesized data are generated as follows. Each data set assumes one or two circles, and data points are located at even spaces along the circle(s). It always contains one larger circle of radius raging from 1 to 10, and it may have a smaller circle of radius 0.2 (10 points) with probability 1/2. Roughly speaking, the class label is made by , where ( is a binary variable: if the smaller exists, and if the birth and death of the generator corresponding to satisfies and for fixed thresholds . We can control and by choosing the number of points along (for birth) and the radius (for death). To generate the data points, we add noise effects to make the classification harder: the radius and sample size are in fact given by adding noise to and , and are made according to the shifted and , while the class label is given by the non-shifted and . For the precise description of the data generation procedure, see Supplementary material. By this construction, the classifier needs to look at both of the location of the generator and the existence of the generator for the smaller one around the diagonal.
SVMs are trained with persistence diagrams given by 100 data sets, and evaluated with 99 independent test data sets. For the kernel on RKHS, we used both of the linear and Gaussian kernels. The hyper-parameters in the PWGK and in the PSSK are chosen by the 10-fold cross-validation, and the degree in the weight of the PWGK is set to be . The variance parameter in the RKHS-Gaussian kernel is set by the median heuristics. We also apply the Gaussian kernel (without any weights) for embedding persistence diagrams to RKHS.
In Table 1, we can see that the PSSK does not work well for this problem, even worse than the Gaussian kernel, and the classification rate by the linear RKHS kernel used originally in [RHBK15] is almost the chance level. This must be caused by the difficulty in handling the global location of generators and close look around the diagonal simultaneously. This classification task involves strong nonlinearity on the RKHS, as seen in the large improvement by PWGK+Gauss kernel.
4.3 Analysis of
In this experiment, we compare the PWGK and the PSSK to the non-trivial problem of glass transition on , focusing also on their computational efficiency.
When we rapidly cool down the liquid state of , it avoids the usual crystallization and changes into a glass state. Understanding the liquid-glass transition is an important issue for the current physics and industrial applications [GS07]. For estimating the glass transition temperature by simulations, we first prepare atomic configurations of for a certain range of temperatures, and then draw the temperature-enthalpy graph. The graph consists of two lines in high and low temperatures with slightly different slopes which correspond to the liquid and the glass states, respectively, and the glass transition temperature is conventionally estimated as an interval of the transient region combining these two lines (e.g., see [Ell90]). However, since the slopes of the two lines are close to each other, determining the interval is a subtle problem, and usually the rough estimate of the interval is only available. Hence, it is desired to develop a mathematical framework to detect the glass transition temperature.
Our strategy is to regard the glass transition temperature as the change point and detect it from a collection of persistence diagrams made by atomic configurations of , where is the index of the temperatures listed in the decreasing order. We use the kernel Fisher discriminant ratio [HMB09] as a statistical quantity for the change point detection. Here, we set in this paper, and the index achieving the maximum of corresponds to the estimated change point. The is calculated by the Gram matrix with respect to the kernel .
We compute with from the data used in [NHH*+*15a, NHH*+*15b]. Since the persistence diagrams of contain huge amount of points, we apply the random Fourier features and the Nyström methods [DM05] for the approximations of the PWGK with the Gaussian RKHS and the PSSK, respectively. The sample sizes used in both approximations are denoted by and , where is the number of chosen columns. Figrue 6 summarizes the plots of the change points for several sample sizes and the computational time.
The interval of the glass transition temperature estimated by the conventional method explained above is , which corresponds to .
The computational complexity of the random Fourier features with respect to the sample size is , while that of the Nyström method involves matrix inversion of . For this reason, the PSSK with cannot be performed in reasonable time, and hence we cannot check the convergence of the change points with respect to the sample size as shown in Figure 6. On the other hand, the PWGK plot shows the convergence to , implying that is the true change point. We here emphasize that the computation to obtain by the PWGK is much faster than the PSSK.
Figure 7 shows the normalized plots of and the -dimensional plot given by KPCA (the color is given by the result of the change point detection by the PWGK). As we see from the figure, the KPCA plot shows the clear phase change between before (red) and after (blue) the change point. This strongly suggests that the glass transition occurs at the detected change point.
4.4 Protein classification
We apply the PWGK to two classification tasks studied in [CMW*+*15]. They use the molecular topological fingerprint (MTF) as a feature vector for the input to the SVM. The MTF is given by the 13 dimensional vector whose elements consist of the persistences of some specific generators (e.g., the longest, second longest, etc.) in persistence diagrams. We compare the performance of the PWGK with the Gaussian RKHS kernel and the MTF method under the same setting of the SVM reported in [CMW*+*15].
The first task is a protein-drug binding problem, and we classify the binding and non-binding of drug to the M2 channel protein of the influenza A virus. For each form, 15 data were obtained by NMR experiments, in which 10 data are used for training and the remaining for testing. We randomly generated 100 ways of partitions, and calculated the classification rates.
In the second problem, the taut and relaxed forms of hemoglobin are to be classified. For each form, 9 data were collected by the X-ray crystallography. We select one data from each class for testing, and use the remaining for training. All the 81 combinations are performed to calculate the CV classification rates.
The results of the two problems are shown in Table 2. We can see that the PWGK achieves better performance than the MTF in both problems.
5 Conclusion
In this paper, we have proposed a kernel framework for analysis with persistence diagrams, and the persistence weighted Gaussian kernel as a useful kernel for the framework. As a significant advantage, our kernel enables one to control the effect of persistence in data analysis. We have also proven the stability result with respect to the kernel distance. Furthermore, we have analyzed the synthesized and real data by using the proposed kernel. The change point detection, the principal component analysis, and the support vector machine using the PWGK derived meaningful results in physics and biochemistry. From the viewpoint of computations, our kernel provides an accurate and efficient approximation to compute the Gram matrix, suitable for practical applications of TDA.
Supplementary Material
This supplementary material provides a brief introduction of topological tools used in the paper, the proof of Theorem 3.1, the proof of Proposition 3.1, and explanations of synthesized data used in Section 4.2. In oder to prove Theorem 3.1, we introduce sub-level sets in Section B and total persistence in Section C, and we will prove a generalization of Theorem 3.1 in Section D.
Appendix A Topological tools
This section summarizes some topological tools used in the paper. In general, topology concerns geometric properties invariant to continuous deformations. To study topological properties algebraically, simplicial complexes are often considered as basic objects. We start with a brief explanation of simplicial complexes, and gradually increase the generality from simplicial homology to singular and persistent homology. For more details, see [Hat01].
A.1 Simplicial complex
We first introduce a combinatorial geometric model called simplicial complex to define homology. Let be a finite set (not necessarily points in a metric space). A simplicial complex with the vertex set is defined by a collection of subsets in satisfying the following properties:
for , and 2. 2.
if and , then .
Each subset with vertices is called a -simplex. We denote the set of -simplices by . A subcollection which also becomes a simplicial complex (with possibly less vertices) is called a subcomplex of .
We can visually deal with a simplicial complex as a polyhedron by pasting simplices in into a Euclidean space. The simplicial complex obtained in this way is called a geometric realization, and its polyhedron is denoted by . In this context, the simplices with small correspond to points (), edges (), triangles (), and tetrahedra ().
Example A.1**.**
Figure 8 shows two polyhedra of simplicial complexes
[TABLE]
A.2 Homology
A.2.1 Simplicial homology
The procedure to define homology is summarized as follows:
Given a simplicial complex , build a chain complex . This is an algebraization of characterizing the boundary. 2. 2.
Define homology by quotienting out certain subspaces in characterized by the boundary.
We begin with the procedure 1 by assigning orderings on simplices. When we deal with a -simplex as an ordered set, there are orderings on . For , we define an equivalence relation on two orderings of such that they are mapped to each other by even permutations. By definition, two equivalence classes exist, and each of them is called an oriented simplex. An oriented simplex is denoted by , and its opposite orientation is expressed by adding the minus . We write for the equivalence class including . For , we suppose that we have only one orientation for each vertex.
Let be a field. We construct a -vector space as
[TABLE]
for and for . Here, for a set is a vector space over such that the elements of formally form a basis of the vector space. Furthermore, we define a linear map called the boundary map by the linear extension of
[TABLE]
where means the removal of the vertex . We can regard the linear map as algebraically capturing the -dimensional boundary of a -dimensional object.
For example, the image of the -simplex is given by , which is the boundary of (see Figure 8).
In practice, by arranging some orderings of the oriented - and - simplices, we can represent the boundary map as a matrix with the entry given by the coefficient in (6). For the simplicial complex in Example A.1, the matrix representations and of the boundary maps are given by
[TABLE]
Here the -simplices (resp. [math]-simplices) are ordered by (resp. , , ).
We call a sequence of the vector spaces and linear maps
[TABLE]
the chain complex of . As an easy exercise, we can show . Hence, the subspaces and satisfy . Then, the -th (simplicial) homology is defined by taking the quotient space
[TABLE]
Intuitively, the dimension of counts the number of -dimensional holes in and each generator of the vector space corresponds to these holes. We remark that the homology as a vector space is independent of the orientations of simplices.
For a subcomplex of , the inclusion map naturally induces a linear map in homology . Namely, an element is mapped to , where the equivalence class is taken in each vector space.
For example, the simplicial complex in Example A.1 has
[TABLE]
from (13). Hence , meaning that there are no -dimensional hole (ring) in . On the other hand, since and , we have , meaning that consists of one ring. Hence, the induced linear map means that the ring in disappears in under .
A topological space is called triangulable if there exists a geometric realization of a simplicial complex whose polyhedron is homeomorphic888A continuous map is said to be homeomorphic if is bijective and the inverse is also continuous. to . For such a triangulable topological space, the homology is defined by . This is well-defined, since a different geometric realization provides an isomorphic homology.
A.2.2 Singular homology
We here extend the homology to general topological spaces. Let be the standard basis of (i.e., , 1 at -th position, and 0 otherwise), and set
[TABLE]
We also denote the inclusion by .
For a topological space , a continuous map is called a singular -simplex, and let be the set of -simplices. We construct a -vector space as
[TABLE]
The boundary map is defined by the linear extension of
[TABLE]
Even in this setting, we can show that , and hence the subspaces and satisfy . Then, the -th (singular) homology is similarly defined by
[TABLE]
It is known that, for a triangulable topological space, the homology of this definition is isomorphic to that defined in A.2.1. From this reason, we hereafter identify simplicial and singular homology.
The induced linear map in homology for an inclusion pair of topological space is similarly defined as in A.2.1.
A.3 Persistent homology
Let be a (right continuous) filtration of topological spaces, i.e., for and . For , we denote the linear map induced from by . The persistent homology of is defined by the family of homology and the induced linear maps for all .
A homological critical value of is the number such that the linear map is not isomorphic for any . The persistent homology is called tame, if for any and the number of homological critical values is finite. A tame persistent homology has a nice decomposition property:
Theorem A.2** ([ZC05]).**
A tame persistent homology can be uniquely expressed by
[TABLE]
where consists of a family of vector spaces
[TABLE]
and the identity map for .
Each summand is called a generator of the persistent homology and is called its birth-death pair. We note that, when for any (or for any resp.), the decomposition (14) should be understood in the sense that some takes the value (or , resp.), where are the elements in the extended real .
From the decomposition in Theorem A.2, we define a multiset
[TABLE]
The persistence diagram is defined by the disjoint union of and the diagonal set with infinite multiplicity.
By definition, a generator close to possesses a short lifetime, implying a noisy topological feature under parameter changes. On the other hand, a generator far away from can be regarded as a robust feature.
As an example, we show a filtration of simplicial complexes in Figure 9 and its persistence diagram in Figure 10.
In the paper, we considered a filtration generated by a finite subset in some metric space by , where . For notational simplicity, we denote the persistence diagram of this filtration model by .
Appendix B Sub-level sets
A popular way of constructing a filtration of topological spaces and thus persistent homology is to use the sub-level sets of a function.
Given a function , a sub-level set defines a filtration (Figure 11) and its persistent homology . A function is said to be tame if the persistent homology is tame for all . For a tame function , the persistence diagram can be defined and denoted by . Note that, for a finite set in and the function defined by , is tame and the persistence diagram of the sub-level set is the same as .
In case of sub-level sets, the stability of the persistence diagram is shown in [CSEH07]. Here, we measure the difference between two functions by .
Proposition B.1** ([CSEH07]).**
Let be a triangulable compact metric space with continuous tame functions . Then the persistence diagrams satisfy
[TABLE]
For finite subsets and in a metric space , since the difference of norm is nothing but the Hausdorff distance , we obtain Proposition 2.1 as a corollary.
Appendix C Total persistence
In order to estimate constants appearing in Theorem 3.1, we will review several properties of persistence.
Let be a triangulable compact metric space. For a Lipschitz function , the degree- total persistence is defined by
[TABLE]
for . Here, is the amplitude of . Let be a triangulated simplicial complex of by a homeomorphism . The diameter of a simplex and the mesh of the triangulation are defined by and , respectively. Furthermore, let us set . The degree- total persistence is bounded as follows:
Lemma C.1** ([CSEHM10]).**
Let be a triangulable compact metric space and be a tame Lipschitz function. Then is bounded from above by
[TABLE]
where is the Lipschitz constant of .
For a compact triangulable subspace in , the number of -cubes with length covering is bounded for every . The minimum of these numbers is and bounded from above by for some constant depending only on .
For , we can find upper bounds for the both terms as follows:
[TABLE]
and
[TABLE]
We note for . Then, an upper bound of the total persistence is given as follows:
Lemma C.2**.**
Let be a triangulable compact subspace in and . For any Lipschitz function ,
[TABLE]
where is a constant depending only on .
In case of a finite subset , there always exists an -ball containing for some , which is a triangulable compact subspace in , and the total persistence of is bounded as follows:
Lemma C.3**.**
Let be a triangulable compact subspace in , be a finite subset of , and . Then
[TABLE]
where is a constant depending only on .
Proof.
The Lipschitz constant of is , because, for any ,
[TABLE]
Moreover, the amplitude is less than or equal to , because and . ∎
For more general, for a persistence diagram , we define -degree total persistence of by . Let be points of . Then we can consider the -dimensional vector
[TABLE]
from . Since each is always positive, by using the -norm of , we have . In general, since , we have
[TABLE]
Proposition C.4**.**
If and is bounded, is also bounded.
Appendix D Proof of Theorem 3.1 and its generalization
We can have the following generalized stability result:
Theorem D.1**.**
Let and be finite persistence diagrams. Then
[TABLE]
where is a constant depending on .
In fact, we can calculate the constant in Theorem D.1 such as
[TABLE]
Actually, this constant is dependent on and , and hence we cannot say that the map is continuous. However, in the case of persistence diagrams obtained from finite sets, this constant becomes independent of and . From now on, to obtain the constant , we show several lemmas.
Lemma D.2**.**
For any , .
Proof.
[TABLE]
We have used the fact in (15) and in (16). ∎
Lemma D.3**.**
For any , the difference of persistences is less than or equal to .
Proof.
For , we have
[TABLE]
∎
Lemma D.4**.**
For any , we have
[TABLE]
Proof.
[TABLE]
We have used the fact that the Lipschitz constant of is in (17) and for any ,
[TABLE]
in (18). ∎
Proof of Theorem D.1.
Here, let a multi-bijection such that and . By the definition of , each point in is -close to the diagonal. Then, we evaluate as follows:
[TABLE]
Form Lemma D.2, we have
[TABLE]
from Lemma D.4,
[TABLE]
Moreover, for any we have . Therefore, the continuation of (19) is
[TABLE]
We have used the fact in (20), in (21) and
[TABLE]
in (23). Thus, if both -degree total persistence of and that of are bounded, since -degree total persistence of is also bounded from Proposition C.4, the coefficient of appearing in (23) is bounded. ∎
Proof of Theorem 3.1.
For any finite set , from Lemma C.3, there exists a constant such that
[TABLE]
By replacing and with and in (23), respectively, we have
[TABLE]
This value is a constant dependent on but independent of . ∎
Appendix E Proof of Proposition 3.1
Proof.
Let
[TABLE]
and define its inner product by
[TABLE]
Using , it is easy to see that is a Hilbert space, and the mapping is an isomorphism of the Hilbert spaces. Moreover, we can see is in fact . To see this, it is sufficient to see that is a reproducing kernel of . Then, the uniqueness of a reproducing kernel for an RKHS completes the proof. The reproducing property is in fact proved from
[TABLE]
The second assertion is obvious from Equations (2) and (3) in Section 3.1. ∎
Appendix F Synthesized data
We describe the details of synthesized data used in Section 4.2.
Each data set contains a variable number of 2 dimensional points, which are located on one or two circles. A data set always contains points along a larger circle of random center and radius raging from 1 to 10. points are located along at even spaces. Another circle of radius at the origin exists with probability 0.5, and 10 points are located at even spaces, if exists. The variables and are in fact noisy version of and , which are also randomly given. The generative model of these variables are shown later.
Consider the persistence diagram for the -ball model with the above points, and let () be the birth-death coordinate for the generator corresponding to . Note that there are no noise to the points on the circle, once the circle is given, and is essentially determined by and : if is sufficiently large, the birth time is approximately (here we use for a small ), and the death time is equal to , if no intersection occurs with balls around the points on . See Figure 12.
For the binary classification, the class label is assigned depending on whether or not exists, and whether or not the hypothetical (or true) circle and virtual data points given by and has long persistence. Let and be constants (we set and in the experiments). We introduce binary variables and ; if exists, and if and . Note that if the hypothetical (or true) generator approximately satisfy and . The class label of the data set is then given by
[TABLE]
The generative models of and are given as follows. The radius is generated by
[TABLE]
and the number of points is given by
[TABLE]
The center point is given by with independent . The “true” radius is generated by
[TABLE]
and the number of points is a random integer with equal probability in , where . Note that points on the circle of radius approximately give a birth time . If the true birth is smaller than approximately.
Note that the class label is given based on and , while the data points and persistence diagram are based on the noisy version and . By this randomness, the best classification boundary does not give 100 classification rate. Figure 13 shows two examples of data set.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[BKRW 14] U. Bauer, M. Kerber, J. Reininghaus, and H. Wagner. Mathematical Software – ICMS 2014: 4th International Congress, Seoul, South Korea, August 5-9, 2014. Proceedings , chapter PHAT – Persistent Homology Algorithms Toolbox, pages 137–143. Springer Berlin Heidelberg, Berlin, Heidelberg, 2014.
- 2[Bub 15] P. Bubenik. Statistical topological data analysis using persistence landscapes. Journal of Machine Learning Research , 16(1):77–102, 2015.
- 3[Car 09] G. Carlsson. Topology and data. Bulletin of the American Mathematical Society , 46(2):255–308, 2009.
- 4[Cd SO 14] F. Chazal, V. de Silva, and S. Oudot. Persistence stability for geometric complexes. Geometriae Dedicata , 173(1):193–214, 2014.
- 5[CGLM 14] F. Chazal, M. Glisse, C. Labruère, and B. Michel. Convergence rates for persistence diagram estimation in topological data analysis. In Proceedings of the 31st International Conference on Machine Learning (ICML-14) , pages 163–171, 2014.
- 6[C Id SZ 08] G. Carlsson, T. Ishkhanov, V. de Silva, and A. Zomorodian. On the local behavior of spaces of natural images. International journal of computer vision , 76(1):1–12, 2008.
- 7[CMW + 15] Z. Cang, L. Mu, K. Wu, K. Opron, K. Xia, and G. W. Wei. A topological approach for protein classification. Molecular Based Mathematical Biology , 3(1), 2015.
- 8[COO 15] M. Carriere, S. Oudot, and M. Ovsjanikov. Local signatures using persistence diagrams. preprint, 2015.
