Downloads · 30 days
0
moberg-analytics/okekeclean-ecg
okekeclean-ecg is a machine learning model from moberg-analytics. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for pytorch. The card lists the license as agpl-3.0.
This repository contains the released ECG checkpoint for OkekeClean, an artifact detection pipeline for clinical ECG waveforms.
Downloads · 30 days
0
Access
Public
Updated Mar 23, 2026
Repo size
17.6 MB
Likes
0
Public
Click a slice to open those files.
.pth17.6 MB · 100%
From the Hugging Face model README
This repository contains the released ECG checkpoint for OkekeClean, an artifact detection pipeline for clinical ECG waveforms.
The released ECG model is okekeclean-ecg-efficientnet_b0, an EfficientNet-B0
model with full fine-tuning on spectrograms derived from 10-second ECG windows.
This weight is intended for inference on ECG waveforms represented as a
pandas.Series with a DatetimeIndex. The public okekeclean package segments the
waveform into 10-second windows, resamples them to 500 Hz when needed, converts each
window to a normalized 3-channel spectrogram image, and returns artifact
probabilities or binary labels.
Inference code: https://github.com/moberg-analytics/oss-models
cnn-efficientnet_b0-full-best-v65-5ef1694d9ae9fab6c6e0023903f63997.pth| Public model | Backbone | Input | Threshold |
|---|---|---|---|
okekeclean-ecg-efficientnet_b0 | EfficientNet-B0 (full FT) | 10-second ECG spectrogram, 224x224, 3-channel | 0.20802117884159088 |
The classifier head is replaced with Linear -> ReLU -> Dropout -> Linear. ECG
uses the default 3-channel EfficientNet stem after spectrogram generation.
Held-out ECG test-set performance from the associated paper:
| Model | Accuracy | Sensitivity | Specificity | AU-ROC |
|---|---|---|---|---|
| EfficientNet-B0 (Full FT) | 0.922 | 0.858 | 0.950 | 0.970 |
The ECG paper reported a slightly stronger two-model ensemble (AU-ROC 0.972), but
this release publishes the best practical single-model checkpoint for straightforward
deployment.
The ECG model was trained on data from the PRECICECAP study:
Single-lead ECG (lead II) was sampled at 500 Hz and transformed into spectrograms for transfer-learning-based classification.
@inproceedings{okeke2026spectrogram,
title = {Spectrogram-Based Transfer Learning for Electrocardiogram ({ECG}) Artifact Detection in the {ICU}},
author = {Okeke, Tony K. and Moyer, Ethan and Hirsch, Karen G. and May, Teresa L. and He, Zihuai and Tam, Jonathan and Faiver, Laura and Moberg, Richard and Elmer, Jonathan},
booktitle = {Society of Critical Care Medicine (SCCM) Critical Care Congress},
year = {2026},
month = mar,
note = {Research Snapshot presentation}
}