Tangent Phylogenetic PCA

Morten Akhøj, Xavier Pennec, Stefan SommerSCIA 2023

Abstract

Phylogenetic PCA (p-PCA) is a version of PCA for observations that are leaf nodes of a phylogenetic tree. P-PCA accounts for the fact that such observations are not independent, due to shared evolutionary history. The method works on Euclidean data, but in evolutionary biology there is a need for applying it to data on manifolds, particularly shapes. We provide a generalization of p-PCA to data lying on Riemannian manifolds, called Tangent p-PCA. Tangent p-PCA thus makes it possible to perform dimension reduction on a data set of shapes, taking into account both the non-linear structure of the shape space as well as phylogenetic covariance. We show simulation results on the sphere, demonstrating well-behaved error distributions and fast convergence of estimators. Furthermore, we apply the method to a data set of mammal jaws, represented as points on a landmark manifold equipped with the LDDMM metric.

Introduction

In evolutionary biology, Principal Component Analysis (PCA) is a fundamental tool for understanding trait variation across species. However, species are not independent data points; they are related by a phylogenetic tree. Standard PCA ignores this dependency, while Phylogenetic PCA (p-PCA) corrects for it by modeling trait evolution as a Brownian motion along the branches of a tree.

A significant limitation of standard p-PCA is its assumption that traits exist in a flat, Euclidean space. In reality, many biological traits—especially complex anatomical shapes like jawbones—live in non-linear spaces known as Riemannian manifolds. Treating these curved spaces as Euclidean is a "crude approximation" that can lead to mathematical inconsistencies and biologically inaccurate ancestral reconstructions. This paper introduces Tangent p-PCA, a framework that respects the intrinsic geometry of the data while accounting for phylogenetic covariance.

Methods

The proposed Tangent p-PCA framework operates through a two-step algorithmic approach: iterative root estimation and tangent space projection.

1. Iterative Root Estimation

To perform PCA, a "center" or mean must be established. In a phylogenetic context, this center is the estimated trait of the root node (the common ancestor). On a curved manifold, a simple average is insufficient. Instead, the authors employ an iterative process: mapping data to a flat "tangent space" at a current root estimate, calculating a Euclidean estimate within this space, and updating the root estimate by moving along the manifold. This process repeats until convergence.

2. Tangent Space Projection and PCA

Once the root is estimated, the entire dataset is mapped into the tangent space at that root using the Riemannian logarithm. This "flattens" the data locally while preserving the manifold's metric structure. To ensure the PCA respects the manifold's metric (its local "ruler"), a Cholesky decomposition is used to orthonormalize the basis. Standard p-PCA is then performed in this flattened space. If necessary, results can be mapped back onto the manifold using the Riemannian exponential.

Phylogenetic tree structure (a) and simulated Brownian motion paths (b) illustrating the dependency of leaf node observations.

Experiments and Results

The method was evaluated using both simulated and real-world datasets.

Simulated Spherical Data

The authors simulated isotropic Brownian motions on a unit sphere ($S^2$) following a specific tree topology. This served as a ground truth test to verify if the algorithm could accurately recover the root. The error distribution of the root estimate was found to resemble a $\chi^2$ distribution, mirroring the behavior of Euclidean p-PCA and suggesting statistical robustness.

Mammal Jaws Dataset

The method was applied to a dataset of 113 mammal species, each represented by 14 landmarks on a jawbone. These shapes were analyzed in the high-dimensional LDDMM (Large Deformation Diffeomorphic Metric Mapping) landmark space ($R^{28}$).

  • Convergence: The root estimation algorithm converged rapidly, requiring only 8 iterations for the complex jaw dataset.
  • Dimension Reduction: The first six eigenvectors captured a significant portion of the non-phylogenetic variation.
  • Geometric Impact: Qualitative results indicated that the Tangent p-PCA root estimate for jaw shapes deviates significantly from standard Euclidean estimates, highlighting the importance of accounting for manifold geometry in ancestral reconstruction.

Conclusion

Tangent p-PCA provides a mathematically sound method for dimension reduction on non-linear shape spaces while accounting for evolutionary history. While the computational cost of calculating Riemannian logarithms is a factor, the process is highly parallelizable. Future work may extend this framework to more complex models of evolution or higher-dimensional shape spaces.

Summary updated

BibTeX
@inproceedings{akhj2023tangent,
  author = {Morten Akhøj and Xavier Pennec and Stefan Sommer},
  title = {{Tangent Phylogenetic PCA}},
  booktitle = {SCIA},
  year = {2023},
  url = {https://openreview.net/forum?id=bDUE7Vg4HM},
}
Figure