Membership Inference Attacks Expose Participation Privacy in ECG Foundation Encoders
Ziyu Wang, Elahe Khatibi, Ankita Sharma, Krishnendu Chakrabarty, Sanaz Rahimi Moosavi, Farshad Firouzi, Amir Rahmani · 2026
Read Membership Inference Attacks Expose Participation Privacy in ECG Foundation Encoders by Ziyu Wang, Elahe Khatibi, Ankita Sharma, Krishnendu Chakrabarty, Sanaz Rahimi Moosavi, Farshad Firouzi, Amir Rahmani (2026) 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-2604-10424.txt.
Introduction
Wang and six colleagues test whether heart signal encoders leak who trained them. Shared ECG encoders hand out scores or hidden vectors, which foes can probe for membership clues. Their audit hits contrastive and masked rebuild encoders through three realistic attacker routes. Leaks run worst in small or single site groups and can saturate in hidden vector space. Wider, mixed data sets blunt the tail risk, so hiding raw waves alone cannot guard enrollment privacy.
Catalog record
| CREATOR | Ziyu Wang, Elahe Khatibi, Ankita Sharma, Krishnendu Chakrabarty, Sanaz Rahimi Moosavi, Farshad Firouzi, Amir Rahmani |
|---|---|
| YEAR | 2026 |
| COLLECTION | PAPERS |
| FORMAT | TXT |
| FILE SIZE | 58155 |
| LICENSE | http://creativecommons.org/licenses/by/4.0/ |
| RIGHTS | CC BY |
| SOURCE | arXiv |
Source: https://arxiv.org/abs/2604.10424
Browse the full library · About the Tower of Babel
Full text
The opening of the work, from the library's hosted text:
Membership Inference Attacks Expose Participation Privacy in ECG Foundation Encoders Ziyu Wang, Elahe Khatibi, Ankita Sharma, Krishnendu Chakrabarty, Sanaz Rahimi Moosavi, Farshad Firouzi, Amir Rahmani Abstract . Foundation-style ECG encoders pretrained with self-supervised learning are increasingly reused across tasks, institutions, and deployment contexts, often through model-as-a-service interfaces that expose scalar scores or latent representations. While such reuse improves data efficiency and generalization, it raises a participation privacy concern: can an adversary infer whether a specific individual or cohort contributed ECG data to pretraining, even when raw waveforms and diagnostic labels are never disclosed? In connected-health settings, training participation itself may reveal institutional affiliation, study enrollment, or sensitive health context. We present an implementation-grounded audit of membership inference attacks (MIAs) against modern self-supervised ECG foundation encoders, covering contrastive objectives (SimCLR, TS2Vec) and masked reconstruction objectives (CNN- and Transformer-based MAE). We evaluate three realistic attacker interfaces: (i) score-only black-box access to scalar outputs, (ii) adaptive learned attackers that aggregate subject-level statistics across repeated queries, and (iii) embedding-access attackers that probe latent representation geometry. Using a subject-centric protocol with window-to-subject aggregation and calibration at fixed false-positive rates under a cross-dataset auditing setting, we observe heterogeneous and objective-dependent participation leakage: leakage is most pronounced in small or institution-specific cohorts and, for contrastive encoders, can saturate in embedding space, while larger and more diverse datasets substantially attenuate operational tail risk. Overall, our results show that restricting access to raw signals or labels is insufficient to guarantee participation privacy, underscoring the need for deployment-aware auditing of reusable biosignal foundation encoders in connected-health systems. 1. Introduction Electrocardiograms (ECGs) are among the most widely deployed physiological modalities in connected health ( 7 ) . They are routinely collected in emergency departments and inpatient wards, and increasingly measured through ambulatory and at-home monitoring, supporting applications from rapid clinical triage and arrhythmia screening to long-term risk assessment. Beyond clinical utility, modern biosignal ecosystems are becoming increasingly shareable and deployable at scale : public repositories and community benchmarks such as PhysioNet ( 9 ) and PTB-XL ( 27 ) enable reproducible research, while real-world connected-health pipelines rely on cross-institution data exchange across hospitals, vendors, and cloud platforms to improve robustness in heterogeneous populations ( 33 ; 34 ) . Motivated by the rapid progress of foundation models in language ( 21 ; 6 ; 35 ) , biosignal modeling is undergoing a similar shift from task-specific supervised training to foundation-style representation learning. In this paradigm, a general-purpose encoder is pretrained on large unlabeled corpora and then reused across downstream tasks, domains, and institutions. For ECG, recent progress includes contrastive learning of cardiac signals across patients and time (e.g., CLOCS) ( 14 ) , universal time-series SSL (e.g., TS2Vec) ( 37 ) , and masked reconstruction objectives (e.g., MAE) ( 12 ) . Importantly, this foundation trend is not unique to ECG: large-scale wearable data have enabled open foundation models for optical physiological signals such as photoplethysmography (PPG), including Pulse-PPG ( 23 ) and PaPaGei ( 22 ) , alongside industry efforts that train and deploy wearable biosignal foundation models in practice ( 24 ; 26 ) . Together, these developments make it increasingly common to package pretrained encoders as reusable components accessed through APIs for scoring, monitoring, and downstream personalization. However, broad reuse of biosignal foundation encoders raises a subtle but consequential privacy question: does the model reveal whether a specific individual contributed data to pretraining? This is a form of participation privacy risk—membership in a training corpus can itself be sensitive, even when raw waveforms and diagnostic labels are never disclosed. In connected health, membership may imply that a person visited a particular institution, participated in a study, or belongs to a cohort associated with stigmatized conditions, creating downstream harms from discrimination to unwanted health inferences. Such concerns are amplified for biosignals because physiological traces often contain stable subject-specific morphology and can support biometric recognition ( 15 ; 29 ; 30 ) . Crucially, unresolved participation leakage can also degrade trust in clinical AI and discourage institutions and individuals from contributing or sharing data, limiting the scale and diversity of corpora that foundation-style biosignal models rely on for generalization ( 11 ; 28 ) . We study this risk through membership inference attacks, which aim to determine whether a target individual was included in a model’s training data. Membership inference has been extensively demonstrated in computer vision and language modeling ( 25 ; 36 ; 3 ; 18 ) , yet systematic evidence for self-supervised and foundation-style biosignal encoders remains limited. This gap matters because the biosignal setting differs from canonical image/text benchmarks: training data are often cohort-based with relatively few distinct subjects, each contributing many correlated windows, making subject participation potentially more separable. At the same time, connected-health deployments rarely expose full model internals; they instead expose limited observable interfaces such as scalar quality or anomaly scores, or derived statistics aggregated across repeated queries. Therefore, participation risk in biosignal foundation encoders cannot be assumed from prior domains and must be measured directly under deployment-aligned access constraints. Figure 1 illustrates this deployment pipeline and its resulting participation-leakage surface. Figure 1. Motivation and threat surface in connected health. A foundation encoder trained on biosignal cohorts may be deployed through exposed interfaces, enabling membership inference and participation privacy leakage. A key driver of participation leakage is what the attacker can observe . Many realistic deployments return only scalar outputs such as reconstruction errors for quality control, anomaly scores, or similarity-derived metrics, restricting adversaries to score-only inference. Moreover, practical adversaries can often query multiple windows from the same individual and aggregate evidence across time, which is particularly relevant for ECG where recordings are long and windowed. Some connected-health systems additionally expose latent representations as “feature APIs” to support retrieval, clustering, personalization, or downstream training. Such embedding-access interfaces substantially enlarge the attack surface: representation geometry itself may encode subject-specific stability induced by pretraining. In this work, we therefore extend our audit beyond scalar-only interfaces to explicitly evaluate embedding-space membership inference, modeling deployments where feature vectors are accessible to external components or partners. Our evaluation follows a subject-centric protocol with window-to-subject aggregation and calibration at fixed false-positive rates. Because real-world cohorts are often near-exhaustively used for pretraining, we audit membership using a cross-dataset non-member construction in which non-members are drawn from auxiliary ECG datasets disjoint from the training dataset. This protocol models a realistic cross-distribution participation leakage threat (e.g., across institutions or data sources), and may include dataset-level confounding factors (such as acquisition or resampling artifacts). We summarize our contributions as follows. • We present an implementation-grounded audit of membership inference against self-supervised ECG foundation encoders across multiple real-world ECG datasets and model families. • We formalize a deployment-grounded participation privacy threat model for connected health, organized by observable interfaces (e.g., scalar scores, aggregated statistics, and embedding access), and discuss stronger representation-access surfaces as an important future direction. • We propose an operational, subject-centric auditing protocol calibrated at fixed fpr operating points and report standardized leakage metrics ( auc , tpr@fpr , and attacker advantage), revealing objective- and cohort-dependent participation leakage under a cross-dataset auditing protocol. 2. Background and Related Work Foundation-style representation learning for ECG and biosignals. Inspired by the rapid progress of foundation