Data Skeletonization via Reeb Graphs

Xiaoyin Ge, Issam Safa, Mikhail Belkin, Yusu WangNeurIPS 2011

Introduction

In machine learning and data analysis, we frequently encounter high-dimensional data that intrinsically "lives" on a much simpler, low-dimensional structure. Often, this underlying structure is graph-like—consider GPS coordinates tracing a city's road network, the branching paths of blood vessels, or the complex trajectories of a protein folding in a simulation.

The challenge lies in the fact that raw data is typically "unorganized" (a mere cloud of points) and inherently noisy. While existing methods like Principal Curves excel at modeling simple lines, they struggle significantly with intersections and branches. Other approaches are either restricted to 2D images or require mathematically intense, hard-to-tune optimizations.

To address this, researchers have developed a general-purpose, robust, and computationally efficient framework to extract one-dimensional "skeletons" from unorganized data using a topological tool known as the Reeb graph.

The Core Concept: Topology over Geometry

By focusing on how components connect (topology) rather than just where they sit in space (geometry), this method is remarkably robust to uneven sampling density and "fat" junctions in the data.

The Reeb graph tracks how the connected components of a space change relative to a scalar function (like height or distance). As you "sweep" through the data, the Reeb graph records when distinct branches merge or split, effectively capturing the skeleton of the shape.

Illustration of a Reeb graph extracting a 1D skeleton from a 2D surface.

The Three-Step Skeletonization Framework

The authors propose a straightforward, three-step algorithm to compute this skeleton:

  1. Build a Simplicial Complex: Instead of analyzing isolated points, the algorithm connects nearby points to form a "Vietoris-Rips complex." If two points are within a specified distance $r$ of each other, an edge is drawn; if three points are mutually close, they form a filled triangle. This step transforms a discrete point cloud into a continuous, measurable "shape."
  2. Define an Intrinsic Function: To build the Reeb graph, a function is needed to sweep through the data. The authors utilize geodesic distance (the shortest path along the graph edges) starting from an automatically selected "extreme" base point. Because this distance is measured along the data itself, the algorithm is intrinsic—it doesn't matter how the data is rotated or warped in high-dimensional space.
  3. Compute and Simplify the Reeb Graph: The algorithm tracks how "blobs" of data split and merge as the geodesic distance increases. To handle inevitable noise, the authors employ a Topological Data Analysis (TDA) concept called persistence. This mathematically grounded filter prunes away small, insignificant branches that represent noisy spikes rather than true structural features.

Finally, the abstract graph can be embedded back into a visualizable space (like 2D or 3D) and smoothed for a cleaner representation.

Key Results and Applications

The algorithm's generality was proven across a diverse array of datasets, ranging from 2D hand-written Chinese characters to 13-dimensional speech trajectories and massive molecular simulations of protein conformations.

Superiority on Complex Structures

Compared to existing techniques like the Metric Graph Reconstruction (MGR) algorithm, the Reeb graph method proved vastly superior at recovering complex, tightly wound structures.

Skeletonization of the complex Nautilus spiral, demonstrating the algorithm's ability to handle high curvature and loops.

For example, when applied to a "Nautilus" spiral, the algorithm successfully mapped the distinct, highly curved branches without collapsing the dense center into a single, erroneous point.

High-Dimensional Success and Efficiency

Crucially, the algorithm successfully reconstructed trajectories in spaces where traditional 2D-centric skeletonization methods fail entirely, such as high-dimensional protein folding spaces.

Furthermore, it is highly efficient. The time complexity is dominated by the initial proximity graph construction ($O(n^2)$ for high dimensions), but the Reeb graph computation itself is exceptionally fast ($O(m \log n)$), making it highly practical for large-scale datasets.

Limitations and Future Directions

While powerful, the approach has a few limitations:

  • Parameter Sensitivity: The algorithm relies on a primary parameter (the neighborhood size $r$ or $k$). The final skeleton depends on choosing a scale that captures the macro-structure without merging distinct branches or capturing too much micro-noise.
  • The 1D Assumption: The method is explicitly designed for graph-like structures. If the underlying data is truly a 2D surface (like a sheet) or a 3D volume, forcing a 1D skeleton might oversimplify the data.
  • Base Point Dependency: The "flow" of the graph depends on the starting base point. Different starting points could yield slightly different skeletal representations.

Looking forward, the authors suggest that hybrid approaches—combining their robust topological framework with the geometric "centering" capabilities of Principal Curves—could lead to even more accurate and visually pleasing medial skeletons.

Summary updated

BibTeX
@inproceedings{ge2011data,
  author = {Xiaoyin Ge and Issam Safa and Mikhail Belkin and Yusu Wang},
  title = {{Data Skeletonization via Reeb Graphs}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2011},
  url = {https://openreview.net/forum?id=rkNbEdWubS},
}
Figure