Downloads · 30 days
0
SEARCH-IHI/mesomorphicECG
mesomorphicECG is a machine learning model from SEARCH-IHI. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as cc-by-4.0.
The mesomorphicECG repository hosts a family of binary ECG classification models trained on 12‑lead ECG signals at two sampling rates (100 Hz and 500 Hz). Each model predicts whether an ECG segment belongs to a normal…
Downloads · 30 days
0
Access
Public
Updated Feb 6, 2026
Repo size
419 MB
Likes
0
Public
Click a slice to open those files.
.ckpt419 MB · 100%
From the Hugging Face model README
The mesomorphicECG repository hosts a family of binary ECG classification models trained on 12‑lead ECG signals at two sampling rates (100 Hz and 500 Hz). Each model predicts whether an ECG segment belongs to a normal control patient (norm) or to one of four diagnostic categories:
Five architectural variants are provided:
Models are provided for both 100 Hz and 500 Hz sampling rates where applicable, yielding 4 (tasks) × 7 (architectures) = 28 model configurations.
Checkpoints are organized in the repository as:
| Category | Path | Checkpoint pattern | Metrics file |
|---|---|---|---|
| Categorical IMN 100 Hz | categorical_imn_100hz/<task>/ | best-imn-epoch=E-val_auc=A.ckpt | metrics.csv |
| Categorical IMN 500 Hz | categorical_imn_500hz/<task>/ | best-imn-epoch=E-val_auc=A.ckpt | metrics.csv |
| Single‑Linear IMN 100 Hz | single_linear_imn_100hz/<task>/ | best-imn-epoch=E-val_auc=A.ckpt | metrics.csv |
| Single‑Linear IMN 500 Hz | single_linear_imn_500hz/<task>/ | best-imn-epoch=E-val_auc=A.ckpt | metrics.csv |
| GradCAM 100 Hz | gradcam_100hz/<task>/ | best-epoch=E-val_auc=A.ckpt | validation_metrics.csv |
| GradCAM 500 Hz | gradcam_500hz/<task>/ | best-epoch=E-val_auc=A.ckpt | validation_metrics.csv |
| IMN Direct | imn_direct/<task>/ | best-imn-epoch=E-val_auc=A.ckpt | metrics.csv |
Where <task> is one of:
norm_vs_cdnorm_vs_hypnorm_vs_minorm_vs_sttcEach task directory typically contains:
args.yaml: Training configuration and hyperparameters.validation_metrics.csv; IMN models use metrics.csv.These models are not intended for direct clinical decision making without further validation and regulatory clearance.
args.yaml for each checkpoint).0 for normal, 1 for the target diagnostic group (CD / HYP / MI / STTC), per task.The data used for training and validation consists of de‑identified ECG records. For details on cohort selection, preprocessing, and labeling, please refer to the associated project documentation or publication (if available) or contact the authors.
val_auc across runs (see metrics files).Exact hyperparameters (learning rate, batch size, input window length, etc.) are stored per‑run in the accompanying args.yaml files.
accuracybalanced_accuracyprecisionrecallf1_scoremccauroc (used for model selection)These metrics reflect performance on the internal validation splits and may not generalize to other datasets, institutions, or devices.
from huggingface_hub import hf_hub_download
repo_id = "SEARCH-IHI/mesomorphicECG"
# Example: Categorical IMN 500 Hz, norm_vs_mi
ckpt_path = hf_hub_download(
repo_id=repo_id,
filename="categorical_imn_500hz/norm_vs_mi/best-imn-epoch=18-val_auc=0.9555.ckpt",
)
print(ckpt_path)
# Example: GradCAM 100 Hz, norm_vs_mi
ckpt_path = hf_hub_download(
repo_id=repo_id,
filename="gradcam_100hz/norm_vs_mi/best-epoch=25-val_auc=0.9699.ckpt",
)
# Example: IMN Direct, norm_vs_cd
ckpt_path = hf_hub_download(
repo_id=repo_id,
filename="imn_direct/norm_vs_cd/best-imn-epoch=08-val_auc=0.5155.ckpt",
)
Use the corresponding inference scripts from the project repository , passing the downloaded checkpoint path via --ckpt. See the project README for task‑specific arguments (window, stride, leads, etc.).