Introduction
Cardiac health monitoring is undergoing a paradigm shift from periodic hospital-based checkups to continuous, multi-modal sensing in daily life. However, the diversity of sensors—ranging from clinical 12-lead electrocardiograms (ECGs) to consumer-grade photoplethysmograms (PPGs) in smartwatches—presents a significant challenge for traditional machine learning models. This paper introduces the Cardiac Sensing Foundation Model (CSFM), a transformer-based architecture designed to unify these disparate data streams into a single, highly adaptable framework.
The Challenge of Heterogeneous Cardiac Data
Current deep learning approaches for cardiac signal analysis are often "rigid." Models are typically trained for specific tasks (e.g., arrhythmia detection) using homogeneous datasets (e.g., only 12-lead ECGs). In practice, cardiac data is highly fragmented across different clinical and home environments. A model trained on high-fidelity hospital data often fails when applied to single-lead wearable data due to fixed input requirements and architectural constraints.
The Cardiac Sensing Foundation Model (CSFM)
To address this fragmentation, the authors developed CSFM using a transformer-based architecture. The core innovation is a generative, masked pretraining strategy that operates across both temporal and channel dimensions. By randomly masking segments of time and specific sensor channels (e.g., hiding certain ECG leads or PPG signals), the model is forced to learn the underlying physiological relationships between different modalities.
This approach makes CSFM channel-agnostic. Unlike traditional 1D-CNNs that require a fixed number of input channels, CSFM can process whatever data is available—whether it is a full 12-lead ECG with clinical notes or a single PPG stream from a finger sensor—and infer the broader cardiac context. To accommodate varying computational constraints, the model is available in three sizes: CSFM-Tiny, Base, and Large.
Large-Scale Pretraining and Evaluation
CSFM was pretrained on a massive scale, utilizing data from approximately 1.7 million individuals. The pretraining corpus included diverse sources to ensure robustness:
- MIMIC-III-WDB & MIMIC-IV-ECG: Waveforms paired with clinical notes and machine-generated reports.
- CODE-FULL: A large-scale private dataset of cardiac signals.
The model's versatility was evaluated across five distinct clinical scenarios, including cardiovascular disease (CVD) diagnosis, mortality prediction, and clinical question answering. Evaluation datasets included CinC17, PTB-XL, SimBand, and VitalDB.
Key Insights
- Channel Agnosticism: CSFM can be pretrained on rich hospital data and fine-tuned for wearable devices without reinitializing input layers, enabling seamless cross-device deployment.
- Data Unification: Pretraining on a diverse mix of modalities (text, ECG, PPG) consistently outperforms models trained on massive but homogeneous single-signal datasets. This suggests that the model learns a more generalized representation of cardiac physiology.
- Cross-Modality Synthesis: The model demonstrates an emergent ability to reconstruct missing signals, such as generating a 12-lead ECG from a single-lead input or synthesizing ECG waveforms from PPG data.
- Data Efficiency: Due to its robust pretraining, CSFM can match the performance of traditional models using only 10% of the downstream fine-tuning data, making it ideal for clinical tasks where labeled data is scarce.
Performance Evaluation
CSFM consistently outperformed state-of-the-art baselines (e.g., ResNet1d, Inception1d) across multiple benchmarks:
- CVD Diagnosis: Achieved superior Macro-F1 scores on datasets like CinC17 (0.677 vs. 0.634) and SimBand (0.398 vs. 0.357).
- Mortality Prediction: Reached an AUC of 0.844 for 1-year mortality prediction on the CODE-15 dataset, significantly higher than conventional methods (0.816).
- Clinical QA: In the ECG-QA benchmark, CSFM answered complex clinical questions using only a single lead with accuracy comparable to models using all 12 leads.
- Feature Extraction: When used as a feature extractor for XGBoost, CSFM embeddings outperformed both hand-crafted features and other recent time-series foundation models like ECG-FM.
Conclusion and Future Work
While CSFM represents a major step toward a unified cardiac foundation model, challenges remain regarding the interpretability of its "black box" representations and the computational cost of deploying large-scale transformers in clinical settings. Future research will focus on integrating CSFM with Large Language Models (LLMs) for improved reasoning and utilizing diffusion models to enhance the fidelity of synthetic signal generation.
Summary updated