ECG Beat Classifier

Compare multiple models beat-by-beat

Input

Models

ECG timeline

Each marker is one detected beat. Drag to pan, mouse-wheel to zoom, double-click to reset. Click any marker to see the local waveform.

Upload an ECG file and run analysis to see results.

Per-model test performance

Numbers below are computed on the MIT-BIH Long Term database — a held-out, cross-dataset test set that neither model saw during training or validation. Training and validation used MIT-BIH Arrhythmia with an inter-patient DS1/DS2 split.

Curves (one-vs-rest, per class)

Each plot shows one class as positive, the others as negative. One line per loaded model.

ROC

Precision–recall

Descriptive calibration (10 equal-width bins, held-out test set)

Cross-dataset generalization

In-distribution vs cross-dataset (DS2 → LT)

Macro-F1 with DS2-tuned thresholds, applied to both DS2 (in-distribution MIT-BIH Arrhythmia validation) and LT (cross-dataset MIT-BIH Long-Term test). Retention column is LT/DS2.

Pairwise McNemar (significance on shared LT predictions)