Downloads · 30 days
0
zackyabd/clinical-ecg-classifier
clinical-ecg-classifier is a machine learning model from zackyabd. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
A multi-branch deep learning model for automated ECG classification and clinical interpretation.
Downloads · 30 days
0
Access
Public
Updated Jul 10, 2025
Repo size
166 MB
Likes
0
Public
Click a slice to open those files.
.pth166 MB · 100%
From the Hugging Face model README
A multi-branch deep learning model for automated ECG classification and clinical interpretation.
This is a PyTorch-based ECG classification model that uses a multi-branch architecture combining:
The model is trained to classify 71 different ECG conditions including arrhythmias, conduction disorders, ischemia, myocardial infarction, and hypertrophy patterns.
The model combines three specialized branches:
All branches are fused through a final classifier with dropout regularization.
The model can classify 71 different ECG conditions including:
import torch
import numpy as np
# Load the model
model = torch.load('ecg_model.pth', map_location='cpu')
model.eval()
# Prepare ECG data (12 leads, 1000 samples)
ecg_data = np.random.randn(1, 12, 1000) # Replace with actual ECG data
ecg_tensor = torch.tensor(ecg_data, dtype=torch.float32)
# Make prediction
with torch.no_grad():
logits = model(ecg_tensor)
probabilities = torch.sigmoid(logits)
# Get top predictions
top_indices = torch.topk(probabilities, k=5).indices[0]
This model can assist healthcare professionals in:
If you use this model in your research, please cite:
@misc{clinical-ecg-classifier,
title={Clinical ECG Classifier: Multi-branch Deep Learning for ECG Analysis},
author={[Abdul Zacky, Irma Nia Alwijah, Muttaqin Muzakkir]},
year={2024},
url={https://huggingface.co/clinical-ecg-classifier}
}
This model is provided for research and educational purposes. Please ensure compliance with applicable medical device regulations before clinical use.
For questions or issues, please contact: [email protected]