Banana Trees for the Persistence in Time Series Experimentally
Lara Ost, Sebastiano Cultrera di Montesano, Herbert Edelsbrunner
TL;DR
The paper addresses the challenge of maintaining persistent homology for dynamically evolving time series by introducing Banana Trees, a dual-tree data structure that represents min–max relations and their nested windows. Updates incur per-change time $O(\log n + k)$, enabling substantial speedups over static recomputation with state-of-the-art tools, especially on large sequences generated by unbiased random walks. Experimental results show large median speedups (up to hundreds or more) for long time series, with structural properties like $\text{nesting depth} \sim O(\log n)$ that support efficient maintenance; worst-case inputs reveal linear-time behavior, while quasi-periodic and real-world data behave similarly to unbiased random walks in practice. These findings suggest Banana Trees can enable real-time topological analysis in applications such as healthcare and finance, while also outlining future work in period estimation and broader deployment.
Abstract
In numerous fields, dynamic time series data require continuous updates, necessitating efficient data processing techniques for accurate analysis. This paper examines the banana tree data structure, specifically designed to efficiently maintain persistent homology -- a multi-scale topological descriptor -- for dynamically changing time series data. We implement this data structure and conduct an experimental study to assess its properties and runtime for update operations. Our findings indicate that banana trees are highly effective with unbiased random data, outperforming state-of-the-art static algorithms in these scenarios. Additionally, our results show that real-world time series share structural properties with unbiased random walks, suggesting potential practical utility for our implementation.
