Frequency-Aware Masked Autoencoders for Multimodal Pretraining on Biosignals

Ran Liu, Ellen L. Zippi, Hadi Pouransari, Christopher M. Sandino, Jingping Nie, Hanlin Goh, Erdrin Azemi, Ali Moin · DOI

Introduction

Biosignals, such as electroencephalograms (EEG), electromyograms (EMG), and electrooculograms (EOG), are critical for decoding physiological and mental states. However, applying AI to these signals is challenging due to significant distributional shifts. These shifts occur within modalities—across different subjects or sessions—and across modalities, where sensors might be dropped or substituted in real-world scenarios. Existing models are often "brittle," requiring fixed input configurations. To address this, researchers from Apple and Georgia Tech developed bioFAME, a frequency-aware masked autoencoder designed for robust multimodal biosignal representation.

Methodology: The bioFAME Architecture

The bioFAME framework introduces two primary innovations to handle the inherent variability of biosignals:

  1. Frequency-Aware (FA) Encoder: Traditional self-attention mechanisms are often sensitive to sequence length and sampling rates. bioFAME utilizes a multi-head frequency filter layer that applies a Discrete Fourier Transform (DFT) to input tokens. By mixing information in the frequency domain using a fixed-size Fourier-based operator, the model achieves independence from input length and sampling frequency.
  2. Frequency-Maintain (FM) Pretraining: Standard Masked Autoencoders (MAE) typically mask raw signals in the time domain, which can introduce artifacts and distort the frequency spectrum. bioFAME performs masking in the latent space after the frequency-aware encoding. This ensures that the underlying frequency components—the "universal language" of biosignals—remain intact during the reconstruction process.
Comparison of the proposed bioFAME approach against previous masked autoencoder methods, highlighting the Frequency-Aware (FA) Encoder and Frequency-Maintain (FM) Pretraining.

The model also employs Channel Independence, treating each signal channel separately before a second-stage merging. This flexibility allows bioFAME to process an arbitrary number of sensors in any order, enhancing its utility for wearable devices.

Experimental Setup

The model was pretrained on the SleepEDF dataset, which includes EEG, EOG, and EMG recordings. Evaluation spanned several downstream tasks:

  • Epilepsy Detection: Seizure detection using EEG.
  • SleepEOG: Sleep stage classification using EOG.
  • ExpEMG: Detection of muscular disorders via EMG.
  • FD-B: Electromechanical motor vibration data to test cross-domain generalization.

Key Results and Insights

bioFAME demonstrates superior performance and robustness across various benchmarks.

  • State-of-the-Art Performance: The model achieved an average 5.5% improvement in classification accuracy over leading baselines like TF-C and PatchTST.
  • The Benefit of Multimodality: Pretraining on multiple signal types simultaneously (e.g., EEG + EMG) improved performance even on unimodal downstream tasks. This suggests the model learns a generalized "physiological grammar" that transcends specific sensor types.
Performance comparison of bioFAME against state-of-the-art models on Epilepsy (EEG) and SleepEOG datasets, showing the gains from multimodal pretraining.
  • Efficiency and Robustness: bioFAME is computationally efficient, using approximately 40% fewer parameters than the PatchTST baseline. Furthermore, it exhibits "zero-shot robustness," maintaining higher accuracy than competitors when sensors are missing or substituted at test time—a common occurrence in real-world wearable applications.

Discussion and Future Work

While bioFAME sets a new standard for biosignal processing, some limitations remain. The frequency-domain approach, while effective, can be less interpretable than time-domain methods, making it difficult to identify specific frequency bands driving a prediction. Additionally, while the model excels in low-density sensor environments, its scalability to high-density systems and the trade-off between channel independence and learning complex inter-sensor interactions are areas for future exploration.

Reference: Liu, R., et al. (2024). Frequency-Aware Masked Autoencoders for Multimodal Pretraining on Biosignals. arXiv:2309.05927v2.

Summary updated

BibTeX
@misc{liu2023frequency,
  author = {Ran Liu and Ellen L. Zippi and Hadi Pouransari and Christopher M. Sandino and Jingping Nie and Hanlin Goh and Erdrin Azemi and Ali Moin},
  title = {{Frequency-Aware Masked Autoencoders for Multimodal Pretraining on Biosignals}},
  year = {2023},
  eprint = {2309.05927},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2309.05927},
}
Figure