Topseg: A Multi-Scale Topological Framework for Data-Efficient Heart Sound Segmentation
Executive Summary
This study introduces TopSeg, a novel heart sound segmentation framework that leverages multi-scale topological data analysis (TDA) to extract robust, geometry-aware features from phonocardiogram (PCG) signals. TopSeg encodes PCG dynamics at global, meso, and fine temporal scales using persistent homology and persistence landscapes, and decodes them with a lightweight temporal convolutional network (TCN) plus a convex, physiology-constrained inference step. In cross-dataset validation (PhysioNet to CirCor), TopSeg consistently outperforms both feature- and architecture-level baselines, especially under limited labeled data, demonstrating superior data efficiency and generalization for S1/S2 localization and boundary stability.
Answer Machine Insights
Q: How does TopSeg perform compared to standard deep learning and envelope-based methods under limited labeled data?
TopSeg outperforms both feature- and architecture-level baselines, with the largest margins in low-data regimes (e.g., 66.7% macro-F1 at 5% data vs. 60.5% for FFT+CNN U-Net and 54.3% for LR-HSMM).
"Our full pipeline—topological features decoded by a lightweight TCN with order/duration-constrained decoding—outperforms representative end-to-end baselines trained on their native inputs at every budget, with the largest margins when data are scarce and competitive performance at 100%."
Q: What is the contribution of each temporal scale and homology in the topological representation?
Each scale (global, meso, fine) and both H0 and H1 homologies are necessary; removing any branch or homology consistently degrades segmentation accuracy, confirming their complementary roles.
"Each scale is necessary: removing any branch consistently degrades macro-F1, confirming that global (slow rhythm), meso (single-cycle structure), and fine (sharp transients) capture complementary cues. ... H0 and H1 are complementary: either homology alone underperforms the combined design, showing that both amplitude-driven morphology (H0) and loop-level patterns (H1) are informative."
Q: Is TopSeg practical for real-world deployment in terms of computational cost and robustness?
Yes, topological features are computed once per recording and cached, with test-time decoding adding negligible latency and runtime scaling near-linearly with sequence length and graph sparsity.
"For deployment, topological features are computed once per recording and cached; test-time decoding uses the same lightweight TCN and the convex refinement ... adding negligible latency. Runtime scales near-linearly with sequence length and graph sparsity, and admits a smooth speed–accuracy trade-off by reducing landscape sampling density."
Key Results
TopSeg (TCN with topological features) achieved a macro-F1 of 66.7% at 5% training data and 85.3% at 100% on external CirCor validation, outperforming all baselines at every data budget.
Ablation at 10% training data showed the full multi-scale topological model achieved 71.9% macro-F1, with each scale (global, meso, fine) and both H0/H1 homologies contributing significantly to performance.
Visual Evidence

Fig. 3: Illustration of the TopSeg framework.
Clinical Snapshot
Evidence Rating
Relevance
high Priority