Manuscript Offprint

arXiv:2611.08969

PhysioWave-T: Token-Efficient Wavelet Foundation Models for Biosignals

Yanlong Chen, Simone Benatti, Luca Benini, Cuntai Guan, Yawei Li

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Yanlong Chen, Simone Benatti, Luca Benini, Fellow, IEEE, Cuntai Guan, Fellow, IEEE, and Yawei Li

Abstract—We present PhysioWave-T, a token-efficient wavelet foundation-model family for electroencephalography (EEG), electrocardiography (ECG), and surface electromyography (sEMG). Dynamic scale folding recombines the J+1J+1 wavelet subbands before tokenization, compressing the sequence from (J+1)CS(J+1)CS to CSCS tokens for JJ decomposition levels, CC channels, and SS temporal patches. Route-specific wavelet front ends and learned channel-name embeddings let one Transformer per modality accommodate diverse channel counts and sampling rates, while unseen configurations reuse the pre-trained backbone via a lightweight front end. Together, these components scale PhysioWave to EEG: we pre-train a 30M-parameter EEG foundation model on over 15M windows spanning 19 to 128 channels, alongside ECG (30M) and sEMG (12M) encoders. Across four EEG routes, folding cuts Transformer latency by 4.0−7.2×4.0-7.2\times and peak memory by 6.8−12.7×6.8-12.7\times over scale expansion without accuracy loss. The EEG encoder leads eight of nine metrics against BENDR, BIOT, LaBraM, and EEGPT, and surpasses LUNA-L on wearable seizure detection with fewer parameters. Reliability-aware latent fusion (RALF) then integrates summary tokens from the independently pre-trained encoders using per-sample reliability weights. On SeizeIT2, fusion raises event sensitivity at 11 false alarms/h from 61.4% to 74.4% with RALF, while RALF boosts window-level AUPRC from 0.321 to 0.399 over the best unimodal model and outperforms weighted-logit and concatenation fusion in AUPRC across all six training variants. PhysioWave-T also sets new state-of-the-art sEMG accuracies and the highest macro-F1 on PTB-XL Super and Chapman-Shaoxing, establishing an efficient, extensible foundation for biosignal representation learning. Code and models are available at https://github.com/ForeverBlue816/PhysioWave.

Index Terms—Biosignal foundation models, self-supervised learning, token efficiency, heterogeneous acquisition, multimodal fusion.

1 INTRODUCTION

PHYSIOLOGICAL signals reflect the underlying dynamics of the human body across diverse temporal scales, yet their acquisition hardware and recording protocols are far from uniform. Across clinical and consumer settings, EEG spans two-channel wearables to 128-channel scalp arrays; ECG ranges from single-lead ambulatory patches to clinical twelve-lead systems; and sEMG is captured by wristbands, forearm arrays, and high-density grids, each governed by a distinct sampling rate and sensor geometry. A truly reusable representation must capture multiscale physiological structure while flexibly accommodating this hardware diversity, yet these two desiderata pull directly against each other. Wavelet decompositions are well suited to non-stationary biosignals, but exposing every scale to a Transformer incurs a steep quadratic cost: a JJ-level decomposition of CC channels and SS patches yields (J+1)CS(J+1)CS tokens, causing channel density, window duration, and decomposition depth to lengthen the token sequence in

tandem. Mapping every recording onto a single fixed input layout sidesteps this variability, but intermediate heuristics such as channel selection, padding, or resampling inevitably discard acquisition-specific information along the way.

Our prior works, WaveFormer [1] and PhysioWave [2], learn multiscale representations of ECG and sEMG through adaptive wavelet selection, soft gating, cross-scale feature aggregation, and frequency-guided masked pre-training. Nevertheless, three design choices in PhysioWave limit how far this paradigm scales. Its tokenizer expanded every wavelet scale into a separate token row, and each encoder was constrained to a single fixed input configuration. Both limitations are most severe for EEG, whose clinical montages vary widely across datasets and whose dense electrode arrays rapidly multiply the token count. PhysioWave's multimodal experiments relied on an external pre-trained backbone and combined modalities using fixed learned weights that could not adapt to the signal quality of individual samples. These bottlenecks raise three central questions that anchor this work: how to retain multiscale time-frequency information without multiplying tokens, how to share a single architecture across heterogeneous acquisition setups, and how to fuse modalities whose reliability varies across recordings.

PhysioWave-T addresses the first two questions by decoupling acquisition-specific processing from representation learning. Each acquisition route, defined by a channel count and sampling rate, receives a dedicated wavelet front end and sampling-rate-specific patch projection, while sharing a single Transformer backbone and a name-based channel vocabulary across the modality. Within each front end, dynamic scale folding recombines wavelet subbands prior to tokenization using weights predicted from local

Y. Chen and Y. Li are with the School of Electrical and Electronic Engineering, Nanyang Technological University, Singapore 639798, and were previously with the Integrated Systems Laboratory, ETH Zürich, 8092 Zürich, Switzerland. E-mail: yanlong.chen@ntu.edu.sg; yawei.li@ntu.edu.sg.

S. Benatti is with the Department of Engineering "Enzo Ferrari" (DIEF), University of Modena and Reggio Emilia, 41125 Modena, Italy. E-mail: simone.benatti@unimore.it.

L. Benini is with the Integrated Systems Laboratory, ETH Zürich, 8092 Zürich, Switzerland, and also with the Department of Electrical, Electronic and Information Engineering "Guglielmo Marconi" (DEI), University of Bologna, 40136 Bologna, Italy. E-mail: lbenini@iis.ee.ethz.ch.

C. Guan is with the College of Computing and Data Science, Nanyang Technological University, Singapore 639798. E-mail: CTGuan@ntu.edu.sg.

Corresponding author: Yawei Li.

subband statistics and refined by learned synthesis filters. Consequently, the backbone processes CSCS rather than (J+1)CS(J+1)CS tokens regardless of decomposition depth: deeper analysis enriches individual tokens instead of multiplying sequence length. Because folding contains no channel-specific parameters, it transfers unchanged across montages; an unseen downstream configuration requires only attaching a lightweight front end to the frozen or fine-tuned backbone and appending any new sensor names to the vocabulary.

These mechanisms allow PhysioWave to scale to EEG, yielding a unified EEG foundation model as a central contribution of this work. Without coercing recordings into a common montage, we pre-train a 30M-parameter encoder on over 15M four-second windows spanning clinical, research, brain-computer interface, and high-density corpora (19–128 channels at 256 and 512 Hz). Across four EEG routes, scale folding reduces Transformer latency by 4.0–7.2× and peak memory by 6.8–12.7× over scale expansion, cutting per-batch memory on 128-channel recordings from ~32GB to 2.5GB. Against BENDR, BIOT, LaBraM, and EEGPT, our encoder leads on eight of nine metrics across sleep staging, P300, and error-related negativity detection—including on Sleep-EDFx, whose 100 Hz derivations are unseen during pre-training. On two-channel behind-the-ear seizure detection, it reaches 61.4% sensitivity at ≤11 false alarms per hour, outperforming LUNA-L with 25.4M versus 40.4M parameters. Pre-training also boosts label efficiency: using just 10% of KaggleERN labels, the encoder surpasses a fully supervised scratch model. Finally, the learned representations capture intrinsic physiology: channel embeddings recover scalp topography without coordinate supervision, and the slowest wavelet scale's weight progressively increases from wakefulness to deep sleep.

For the third question, reliability-aware latent fusion (RALF) combines this EEG encoder with independently pretrained ECG and sEMG encoders, without joint multimodal pre-training. Each encoder contributes four summary tokens. A per-sample reliability score gates that modality's contribution to attention and the residual unimodal prediction, and missing modalities are masked explicitly. On SeizeIT2, with simultaneous wearable EEG, ECG, and EMG, RALF raises event sensitivity at 11 false alarms per hour from 61.4% to 78.9% and window-level AUPRC from 0.321 to 0.399 relative to the best EEG model. All six training variants exceed weighted-logit and concatenation fusion in AUPRC, most clearly on ECG-containing combinations. RALF also retains an AUPRC of at least 0.33 under every tested single-modality corruption. Relative to PhysioWave, the contributions are:

  • Token-efficient multiscale modeling. Dynamic scale folding shortens the sequence by a factor of J+1J+1 while retaining adaptive wavelet analysis. We quantify its effects on accuracy, latency, memory, and computation.
  • An EEG foundation model across acquisition configurations. Route-specific front ends and extensible channel vocabularies let one shared 30M-parameter backbone learn from heterogeneous montages and transfer to unseen ones, including two-channel wearable EEG.

  • Reliability-aware multimodal prediction. RALF fuses compact modality summaries using sample-specific reliability estimates. We evaluate it on seizure detection under complete, missing, and corrupted inputs.

References (58)

  • Waveformer: A lightweight transformer model for semg-based gesture recognition
  • Physiowave: A multi-scale wavelet-transformer for physiological signal representation
  • Bert: Pretraining of deep bidirectional transformers for language understanding
  • Masked autoencoders are scalable vision learners
  • Bendr: Using transformers and a contrastive self-supervised learning task to learn from massive amounts of eeg data
  • Brant: Foundation model for intracranial neural signal
  • Biot: Biosignal transformer for cross-data learning in the wild
  • Large brain model for learning generic representations with tremendous eeg data in bci
  • Eegpt: Pretrained transformer for universal and reliable representation of eeg signals
  • Cbramod: A criss-cross brain foundation model for eeg decoding
  • Guiding masked representation learning to capture spatio-temporal relationship of electrocardiogram
  • Hubert-ecg as a self-supervised foundation model for broad and scalable cardiac applications
  • Ecg-fm: An open electrocardiogram foundation model
  • emg2pose: A large and diverse benchmark for surface electromyographic hand pose estimation
  • A generic non-invasive neuromotor interface for human-computer interaction
  • Moment: A family of open time-series foundation models (opens arXiv in a new tab)
  • Units: A unified multi-task time series model
  • A theory for multiresolution signal decomposition: the wavelet representation
  • SIAM, 1992
  • Entropy-based algorithms for best basis selection
  • De-noising by soft-thresholding
  • Wavelet integrated cnns for noise-robust image classification
  • Perceiver: General perception with iterative attention
  • Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layer
  • Switch transformers: Scaling to trillion parameter models with simple and efficient sparsity
  • A Time Series is Worth 64 Words: Long-term Forecasting with Transformers
  • Eeg-gnn: Graph neural networks for classification of electroencephalogram (eeg) signals
  • Luna: efficient and topology-agnostic foundation model for eeg signal analysis
  • Attention bottlenecks for multimodal fusion
  • Root mean square layer normalization
  • The temple university hospital eeg data corpus
  • An open resource for transdiagnostic research in pediatric mental health and learning disorders
  • A large finer-grained affective computing eeg dataset
  • The two decades brainclinics research archive for insights in neurophysiology (tdbrain) database
  • M3cv: A multi-subject, multi-session, and multi-task database for eeg-based biometrics challenge
  • Eeg motor movement/imagery dataset
  • Deep learning with convolutional neural networks for eeg decoding and visualization
  • Pulsedb: A large, cleaned dataset based on mimic-iii and vitaldb for benchmarking cuff-less blood pressure estimation methods
  • Icentia11k: An unsupervised representation learning dataset for arrhythmia subtype discovery (opens arXiv in a new tab)
  • Mimic-iv-ecg-diagnostic electrocardiogram matched subset
  • Code-15%: A large scale annotated dataset of 12-lead ecgs
  • A large-scale multi-label 12-lead electrocardiogram database with standardized diagnostic statements
  • Medalcare-xl: 16,900 healthy and pathological synthetic 12 lead ecgs from electrophysiological simulations
  • Classification of 12-lead ecgs: the physionet/computing in cardiology challenge 2020
  • emg2qwerty: A large dataset with baselines for touch typing using surface electromyography
  • A consecutive multi-day high-density surface electromyography dataset comprising 7 grasps and 11 gestures
  • Open access dataset, toolbox and benchmark processing results of high-density surface electromyogram recordings
  • putemg—a surface electromyography hand gesture recognition dataset
  • Analysis of a sleep-dependent neuronal feedback loop: the slow-wave microcontinuity of the eeg
  • Documenting, modelling and exploiting p300 amplitude changes due to variable target delays in donchin's speller
  • Objective and subjective evaluation of online error correction during p300-based spelling
  • Ptb-xl, a large publicly available electrocardiography dataset
  • An open access database for evaluating the algorithms of electrocardiogram rhythm and morphology abnormality detection
  • A 12-lead electrocardiogram database for arrhythmia research covering more than 10,000 patients
  • EMG-EPN-612 Dataset (opens the publisher in a new tab)
  • Multi-day dataset of forearm and wrist electromyogram for hand gesture recognition and biometrics
  • Towards generalisable time series understanding across domains (opens arXiv in a new tab)
  • SeizeIT2: Wearable dataset of patients with focal epilepsy