dheerajthuvara/ecg-arrhythmia-data
Viewer β’ Updated β’ 1k β’ 56
Multi-class arrhythmia classification from ECG signals trained on the MIT-BIH Arrhythmia Database.
| Class | F1 |
|---|---|
| N β Normal | 0.99 |
| L β LBBB | 1.00 |
| R β RBBB | 1.00 |
| V β PVC | 0.98 |
| A β APC | 0.91 |
| Macro avg | 0.98 |
Overall accuracy: 99%
from huggingface_hub import hf_hub_download
import torch, json, pickle
config = json.load(open(hf_hub_download("dheerajthuvara/ecg-arrhythmia-detection", "models/model_config.json")))
encoder = pickle.load(open(hf_hub_download("dheerajthuvara/ecg-arrhythmia-detection", "models/label_encoder.pkl"), "rb"))
# load model weights and run inference