A Framework for Shape Analysis via Hilbert Space Embedding

Sadeep Jayasumana, Mathieu Salzmann, Hongdong Li, Mehrtash Tafazzoli Harandi

Abstract: We propose a framework for 2D shape analysis using positive definite kernels defined on Kendall's shape manifold. Different representations of 2D shapes are known to generate different nonlinear spaces. Due to the nonlinearity of these spaces, most existing shape classification algorithms resort to nearest neighbor methods and to learning distances on shape spaces. Here, we propose to map shapes on Kendall's shape manifold to a high dimensional Hilbert space where Euclidean geometry applies. To this end, we introduce a kernel on this manifold that permits such a mapping, and prove its positive definiteness. This kernel lets us extend kernel-based algorithms developed for Euclidean spaces, such as SVM, MKL and kernel PCA, to the shape manifold. We demonstrate the benefits of our approach over the state-of-the-art methods on shape classification, clustering and retrieval.

Introduction

A fundamental challenge in computer vision is performing robust statistical analysis on 2D shapes when the underlying "shape space" is inherently non-Euclidean. In this context, a shape is defined as the geometric information remaining after removing translation, scale, and rotation. Mathematically, these shapes reside on Kendall’s shape manifold, a complex projective space $\mathbb{CP}^{m-2}$.

Because this manifold is nonlinear, standard machine learning algorithms that assume Euclidean geometry cannot be applied directly. Historically, researchers have relied on two main strategies:

  1. Nearest Neighbor Methods: These are simple to implement but limited in their ability to learn complex patterns.
  2. Tangent Space Projection: This involves projecting data onto a flat tangent plane at a single point (often the mean). While effective for clusters of similar shapes, it introduces significant distortion for data points far from the projection center.

To overcome these limitations, we propose a method to use powerful kernel-based tools directly on the manifold by embedding it into a Reproducing Kernel Hilbert Space (RKHS).

The Procrustes Gaussian Kernel

The core contribution of this work is the introduction of the Procrustes Gaussian kernel, the first provably positive definite (PD) kernel for Kendall’s shape manifold. The kernel is defined as:

$$k_P([z_1], [z_2]) = \exp\left(-\frac{d_{FP}^2([z_1], [z_2])}{2\sigma^2}\right)$$

where $d_{FP}$ represents the full Procrustes distance.

Comparison of shape metrics and their properties on the manifold.

As shown in the figure above, various metrics exist for comparing shapes on the manifold. However, we provide a rigorous mathematical proof using Schoenberg’s theorem to demonstrate that the squared full Procrustes distance is "negative definite." This property is crucial because it ensures the resulting Gaussian kernel is positive definite, allowing for a valid embedding into a Hilbert space where the manifold's geometry is preserved while the mathematics becomes linear.

By establishing this PD property, we can extend several classic algorithms to the shape manifold:

  • Kernel SVM: For robust shape classification.
  • Multiple Kernel Learning (MKL): To combine shape representations with varying landmark counts.
  • Kernel PCA: For dimensionality reduction and efficient retrieval.
  • Kernel k-means: For unsupervised clustering.

Experimental Evaluation

We evaluated the framework on several standard benchmarks, including ETH-80, COIL-100, MPEG-7, and the Swedish Leaves dataset. The latter is particularly challenging due to high intra-class variation, where leaves from the same species can exhibit significantly different contours.

Sample images from the Swedish Leaves dataset showing high intra-class variation.

Our "Manifold Kernel" approach consistently outperformed tangent space approximations and specialized distributions:

  • Classification: On ETH-80, the Manifold SVM achieved 93.75% accuracy, compared to 87.29% for the Tangent Space SVM. On Swedish Leaves, using MKL to combine different landmark scales reached 94.40% accuracy.
  • Clustering: In unsupervised tests on ETH-80, Manifold Kernel k-means outperformed Tangent k-means by a wide margin (e.g., 86.98% vs 78.41% for 3 classes).
  • Retrieval: Using Kernel PCA allowed for rapid nearest-neighbor searches in a Euclidean representation of the SQUID fish dataset, proving more efficient than direct manifold distance calculations.

Conclusion

This framework provides the first mathematically sound embedding of the shape manifold into a Hilbert space, avoiding the distortions inherent in tangent space projections. While the method currently relies on consistent landmark ordering, it offers a powerful new way to apply linear machine learning tools to nonlinear shape data. Future work will explore extending this Gaussian kernel approach to other Riemannian manifolds, such as those used for motion trajectories or diffusion tensors.

Summary updated

BibTeX
@inproceedings{jayasumana2013framework,
  author = {Sadeep Jayasumana and Mathieu Salzmann and Hongdong Li and Mehrtash Tafazzoli Harandi},
  title = {{A Framework for Shape Analysis via Hilbert Space Embedding}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2013},
  url = {https://openreview.net/forum?id=rybYfZM_-H},
}
Figure