Edoardo-BS / HuBERT-ECG-SSL-Pretrained

huggingface.co
Total runs: 0
24-hour runs: 0
7-day runs: 0
30-day runs: 0
Model's Last Updated: June 25 2025

Introduction of HuBERT-ECG-SSL-Pretrained

Model Details of HuBERT-ECG-SSL-Pretrained

HuBERT-ECG: A Self-Supervised Foundation Model for Broad and Scalable Cardiac Application

Original code at ( https://github.com/Edoar-do/HuBERT-ECG )

License: CC BY-NC 4.0

Abstract

Deep learning models have shown remarkable performance in electrocardiogram (ECG) analysis, but their success has been constrained by the limited availability and size of ECG datasets, resulting in systems that are more task specialists than versatile generalists. In this work, we introduce HuBERT-ECG, a foundation ECG model pre-trained in a self-supervised manner on a large and diverse dataset of 9.1 million 12-lead ECGs encompassing 164 cardiovascular conditions. By simply adding an output layer, HuBERT-ECG can be fine-tuned for a wide array of downstream tasks, from diagnosing diseases to predicting future cardiovascular events. Across diverse real-world scenarios, HuBERT-ECG achieves AUROCs from 84.3% in low-data settings to 99% in large-scale setups. When trained to detect 164 overlapping conditions simultaneously, our model delivers AUROCs above 90% and 95% for 140 and 94 diseases, respectively. HuBERT-ECG also predicts death events within a 2-year follow-up with an AUROC of 93.4%. We release models and code.

Models

This repository contains:

  • SMALL/BASE/LARGE HuBERTECG model sizes ready to be fine-tuned on any downstream dataset or to be used as feature extractor
Usage

Input signals need to be pre-processed first. Read Methods - Data and Preprocessing section

import torch
from hubert_ecg import HuBERTECG, HuBERTECGConfig

path = "path/to/your/hubert-ecg-model.pt"
checkpoint = torch.load(path, map_location='cpu')
config = checkpoint['model_config']
hubert_ecg = HuBERTECG(config)
hubert_ecg.load_state_dict(checkpoint['model_state_dict']) # pre-trained model ready to be fine-tuned or used as feature extractor
Easier usage

(for pre-trained models only)

from transformers import AutoModel
size = 'small' # any size from small, base, large
hubert_ecg = AutoModel.from_pretrained(f"Edoardo-BS/hubert-ecg-{size}", trust_remote_code=True)
📚 Citation

If you use our models or find our work useful, please consider citing us:

doi: https://doi.org/10.1101/2024.11.14.24317328

Runs of Edoardo-BS HuBERT-ECG-SSL-Pretrained on huggingface.co

0
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
0
30-day runs

More Information About HuBERT-ECG-SSL-Pretrained huggingface.co Model

More HuBERT-ECG-SSL-Pretrained license Visit here:

https://choosealicense.com/licenses/cc-by-nc-4.0

HuBERT-ECG-SSL-Pretrained huggingface.co

HuBERT-ECG-SSL-Pretrained huggingface.co is an AI model on huggingface.co that provides HuBERT-ECG-SSL-Pretrained's model effect (), which can be used instantly with this Edoardo-BS HuBERT-ECG-SSL-Pretrained model. huggingface.co supports a free trial of the HuBERT-ECG-SSL-Pretrained model, and also provides paid use of the HuBERT-ECG-SSL-Pretrained. Support call HuBERT-ECG-SSL-Pretrained model through api, including Node.js, Python, http.

HuBERT-ECG-SSL-Pretrained huggingface.co Url

https://huggingface.co/Edoardo-BS/HuBERT-ECG-SSL-Pretrained

Edoardo-BS HuBERT-ECG-SSL-Pretrained online free

HuBERT-ECG-SSL-Pretrained huggingface.co is an online trial and call api platform, which integrates HuBERT-ECG-SSL-Pretrained's modeling effects, including api services, and provides a free online trial of HuBERT-ECG-SSL-Pretrained, you can try HuBERT-ECG-SSL-Pretrained online for free by clicking the link below.

Edoardo-BS HuBERT-ECG-SSL-Pretrained online free url in huggingface.co:

https://huggingface.co/Edoardo-BS/HuBERT-ECG-SSL-Pretrained

HuBERT-ECG-SSL-Pretrained install

HuBERT-ECG-SSL-Pretrained is an open source model from GitHub that offers a free installation service, and any user can find HuBERT-ECG-SSL-Pretrained on GitHub to install. At the same time, huggingface.co provides the effect of HuBERT-ECG-SSL-Pretrained install, users can directly use HuBERT-ECG-SSL-Pretrained installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

HuBERT-ECG-SSL-Pretrained install url in huggingface.co:

https://huggingface.co/Edoardo-BS/HuBERT-ECG-SSL-Pretrained

Url of HuBERT-ECG-SSL-Pretrained

HuBERT-ECG-SSL-Pretrained huggingface.co Url

Provider of HuBERT-ECG-SSL-Pretrained huggingface.co

Edoardo-BS
ORGANIZATIONS

Other API from Edoardo-BS