TopSeg: A Multi-Scale Topological Framework for Data-Efficient Heart Sound Segmentation

Peihong Zhang, Zhixin Li, Yuxuan Liu, Rui Sang, Yiqiang Cai, Yizhou Tan, Shengchen Li · 2025

Read TopSeg: A Multi-Scale Topological Framework for Data-Efficient Heart Sound Segmentation by Peihong Zhang, Zhixin Li, Yuxuan Liu, Rui Sang, Yiqiang Cai, Yizhou Tan, Shengchen Li (2025) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2510-17346.txt.

Introduction

Splitting a heart sound recording into its beats normally takes deep learning models trained on large labelled sets. Peihong Zhang and six co-authors offer a route that needs far less labelled data. Their system, TopSeg, first turns the sound pattern into shape based features that capture its form at several scales, then a light network reads those features to mark beat boundaries.

Trained only on one public heart sound collection, TopSeg was checked on a second, separate collection. The shape features beat sound picture and envelope inputs, with the widest gaps when training data was scarce. Zhang and her co-authors report that every scale helped, which supports use where expert labels are hard to obtain.

Catalog record

CREATORPeihong Zhang, Zhixin Li, Yuxuan Liu, Rui Sang, Yiqiang Cai, Yizhou Tan, Shengchen Li
YEAR2025
COLLECTIONPAPERS
FORMATTXT
FILE SIZE22 KB
VERSION1.0
LICENSEhttp://creativecommons.org/licenses/by/4.0/
RIGHTSCC BY
SOURCEarXiv

Source: https://arxiv.org/abs/2510-17346

Browse the full library · About the Tower of Babel

Full text

The opening of the work, from the library's hosted text:

TopSeg: A Multi-Scale Topological Framework for Data-Efficient Heart Sound Segmentation Peihong Zhang, Zhixin Li, Yuxuan Liu, Rui Sang, Yiqiang Cai, Yizhou Tan, Shengchen Li Abstract Deep learning approaches for heart-sound (PCG) segmentation built on time–frequency features can be accurate but often rely on large expert-labeled datasets, limiting robustness and deployment. We present TopSeg, a topological representation-centric framework that encodes PCG dynamics with multi-scale topological features and decodes them using a lightweight temporal convolutional network (TCN) with an order- and duration-constrained inference step. To evaluate data efficiency and generalization, we train exclusively on PhysioNet 2016 dataset with subject-level subsampling and perform external validation on CirCor dataset. Under matched-capacity decoders, the topological features consistently outperform spectrogram and envelope inputs, with the largest margins at low data budgets; as a full system, TopSeg surpasses representative end-to-end baselines trained on their native inputs under the same budgets while remaining competitive at full data. Ablations at 10% training confirm that all scales contribute and that combining H 0 H_{0} and H 1 H_{1} yields more reliable S1/S2 localization and boundary stability. These results indicate that topology-aware representations provide a strong inductive bias for data-efficient, cross-dataset PCG segmentation, supporting practical use when labeled data are limited. † † address: School of Advanced Technology, Xi’an Jiaotong-Liverpool University, Suzhou, China 1 Introduction Heart disease is the leading cause of mortality worldwide, responsible for approximately 17.9 million deaths annually [ 1 ] , with auscultation serving as a primary, cost-effective diagnostic tool in clinical practice [ 2 ] . Accurate segmentation of phonocardiogram (PCG) signals into their primary components—first (S1) and second (S2) heart sounds, and the intervening systolic and diastolic intervals—aids physicians in cardiac diagnosis by helping identify timing abnormalities, detect murmurs, and assess valvular function [ 3 ] . Fig. 1 illustrates the segmentation task, where PCG signals are segmented into S1, S2, systolic, and diastolic phases. Figure 1: PCG signal segmented into S1, systole, S2, and diastole. Recent advances indicate that deep learning models achieve high performance in PCG segmentation by learning representations from spectro-temporal inputs such as spectrograms [ 4 ] , mel-spectrograms [ 5 ] , and scalograms [ 6 ] , or directly from raw waveforms through end-to-end architectures [ 7 ] . However, when spectro-temporal features are used in deep neural networks, high performance typically relies on large-scale annotated datasets, and performance drops sharply in data-efficient scenarios [ 8 , 9 ] . While handcrafted spectro-temporal features applied to machine learning models can reduce data requirements, they often fail to capture the complex temporal structures of PCGs, thereby limiting their overall effectiveness [ 7 ] . In addition to spectro-temporal features, some studies have explored envelope-based and statistical representations for PCG segmentation, which require fewer labeled data compared to spectro-temporal approaches [ 10 ] . A widely used approach is the logistic regression hidden semi-Markov model built upon Hilbert and homomorphic envelopes [ 11 ] . Variants have since incorporated zero-frequency filtering combined with Hilbert envelopes [ 12 ] to improve boundary detection. More recently, segmentation approaches have utilized clustering of envelope-derived features and wavelet envelopes [ 13 ] to adaptively locate S1 and S2 events. However, their effectiveness is constrained by inherent limitations: envelope and statistical features are highly sensitive to background noise, prone to misidentification in pathological or irregular heart sounds, and insufficient for capturing the complex temporal–structural patterns present in PCGs [ 14 ] . Consequently, while such features reduce data requirements, their lack of robustness and descriptive power restricts their utility for reliable segmentation in diverse clinical scenarios. Despite these advances, PCG segmentation remains a challenging task. Annotated datasets are limited because labeling PCG signal requires the expertise of trained clinicians, which makes large-scale annotation difficult [ 5 ] . Moreover, the quality of recordings is often compromised by environmental noise and patient-specific factors, further complicating the process of reliable segmentation [ 7 ] . These challenges naturally raise the question: are there alternative feature representations that are robust and fully capture the structural characteristics of PCG signals under data-efficient conditions? Topological data analysis (TDA) offers a promising direction to address these challenges by extracting features that capture the underlying structural organization of the data. Topological features are inherently robust to small perturbations and noise [ 15 ] , while their topological structural priors reduce reliance on large annotated datasets [ 16 ] , making them particularly suitable for data-efficient scenarios. This is especially relevant for PCG signals, which are often corrupted by respiratory noise and patient-specific artifacts and available only in limited annotated quantities. Although TDA has been explored in other biomedical domains [ 17 ] , its application to PCG segmentation remains unexplored. In this work, we propose TopSeg, a heart sound segmentation framework that leverages multi-scale topological representations to capture the intrinsic structural patterns of PCGs. Our key insight is that cardiac cycles form persistent structural patterns across multiple physiological timescales, which remain stable under noise perturbations and can be reliably captured even with limited annotated data. To realize this idea, we extract multi-scale topological features at three complementary temporal resolutions: global rhythm patterns (2–8 s), individual cardiac cycles ( \approx 500 ms), and fine-grained S1/S2 components ( \approx 100 ms). These features are incorporated into multiple baseline segmentation models as complementary inputs, enriching their representation capacity. Extensive evaluations on several benchmark datasets demonstrate that integrating multi-scale topological features consistently enhances segmentation accuracy and yields improved generalization under data-efficient conditions. In summary, our contributions are twofold: • We propose TopSeg, a topological framework for PCG segmentation; to our knowledge, this is the first to operationalize multi-scale topological descriptors for this task. These descriptors can be used alone or seamlessly integrated into standard time–frequency baselines with minimal changes. • The topological features extracted by TopSeg impart a geometry-aware inductive bias that promotes morphology and scale consistency, underpinning domain generalization and enabling robust cross-dataset transfer under limited data. 2 Topological Data Analysis TDA provides multi-scale topological invariants that are provably stable to small perturbations of the input [ 15 , 18 ] . Its central construct, persistent homology (PH), assigns to a filtration \{\mathcal{K}_{\varepsilon}\}_{\varepsilon\geq 0} of simplicial complexes the collection of birth–death pairs D=\{(b_{i},d_{i})\} , where b_{i} (resp. d_{i} ) denotes the scale at which a homological feature appears (resp. disappears). Features with large persistence d_{i}-b_{i} are typically interpreted as signal; short-lived features are attributed to noise. These stability and scale-selection properties make PH attractive for label-efficient signal analysis [ 16 ] . To obtain finite-dimensional, differentiable descriptors, we map a persistence diagram D to persistence landscapes [ 19 ] . Each pair (b,d)\in D induces the tent function f_{(b,d)}(\varepsilon)=\max\!\bigl(0,\,\min(\varepsilon-b,\,d-\varepsilon)\bigr), and the k -th landscape is the pointwise k -maximum envelope \lambda_{k}(\varepsilon)=\mathrm{kmax}\,\bigl\{\,f_{(b,d)}(\varepsilon):(b,d)\in D\,\bigr\}. Sampling \{\lambda_{k}\}_{k=1}^{K} on a one-dimensional grid of size G yields a fixed-length representation that preserves PH stability in L^{p} norms and admits straightforward averaging, thereby facilitating integration with learning-based models [ 19 ] . Figure 2: TDA overview. (a) Time-delay embedding of a heart-sound segment; repeating cardiac cycles induce recurrent structures in the reconstructed phase space. (b) Filtration of simplicial complexes indexed by the scale parameter \varepsilon (illustrated with an \alpha -complex), from which PH collects birth–death pairs for H_{0}/H_{1} . (c) Persistence landscapes

Read the complete text