Downloads · 30 days
5
13% of all-time downloads
introvoyz041/hubert-ecg-base
hubert-ecg-base is a feature extraction model from introvoyz041. Use it when you need embeddings to search or compare text. It is set up for transformers. The card lists the license as cc-by-nc-4.0.
Original code at https://github.com/Edoar-do/HuBERT-ECG
Downloads · 30 days
5
13% of all-time downloads
All-time downloads
39
Public
Parameters
93.1M
373 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors373 MB · 100%
From the Hugging Face model README
Original code at https://github.com/Edoar-do/HuBERT-ECG
License: CC BY-NC 4.0
Deep learning models have shown remarkable performance in electrocardiogram (ECG) analysis, but the limited availability and size of ECG datasets have constrained their success, resulting in systems that are more task specialists than versatile generalists. To counter this, we introduce HuBERT-ECG, a novel self-supervised foundation ECG model pre-trained on a large and diverse dataset of 9.1 million 12-lead ECGs encompassing 164 cardiovascular conditions. By simply adding a proper 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 0.843 on small datasets to 0.99 on larger sources. When fine-tuned to detect 164 overlapping conditions simultaneously, our model delivers AUROCs above 0.9 and 0.95 for up to 140 and 97 diseases, respectively. HuBERT-ECG can also predict death events within a 2-year follow-up with AUROCs up to 0.91. We release pre-trained models and code as building baselines.
This repository contains the self-supervised pre-trained hubert-ecg-base
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)
Don't forget to pre-process your data! Read the paper to know more about it
If you use our models or find our work useful, please consider citing us:
https://doi.org/10.1101/2024.11.14.24317328