This evaluation probes a model's ability to detect cardiovascular anomalies in 12-lead electrocardiogram (ECG) signals and localize the specific temporal regions where abnormalities occur. It tests the model's capacity to capture both global and local temporal dependencies in raw, unsegmented time-series data without relying on traditional R-peak detection or heartbeat segmentation. Use when the user wants to benchmark on PTB-XL, or asks about evaluating this task. Reports AUC.
Scanned 9/11/2026
Install to Claude Code
npx -y skills add qhjqhj00/research-skills-pool --skill ptbxl-ecg-anomaly-detection-eval --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Ptbxl Ecg Anomaly Detection Eval?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/qhjqhj00-ptbxl-ecg-anomaly-detection-eval)More formats (shields.io, HTML) on the badges page.
---
name: ptbxl-ecg-anomaly-detection-eval
description: This evaluation probes a model's ability to detect cardiovascular anomalies in 12-lead electrocardiogram (ECG) signals and localize the specific temporal regions where abnormalities occur. It tests the model's capacity to capture both global and local temporal dependencies in raw, unsegmented time-series data without relying on traditional R-peak detection or heartbeat segmentation. Use when the user wants to benchmark on PTB-XL, or asks about evaluating this task. Reports AUC.
metadata:
skill_kind: dataset_eval
source_arxiv: 2502.05494
bibtex_key: zhou2025mmae_ecg
confidence: high
---
# ptbxl-ecg-anomaly-detection-eval
> Multi-scale Masked Autoencoder for Electrocardiogram Anomaly Detection — Ya Zhou et al. (arXiv:2502.05494, 2025)
## What this evaluates
This evaluation probes a model's ability to detect cardiovascular anomalies in 12-lead electrocardiogram (ECG) signals and localize the specific temporal regions where abnormalities occur. It tests the model's capacity to capture both global and local temporal dependencies in raw, unsegmented time-series data without relying on traditional R-peak detection or heartbeat segmentation.
## Datasets
- **PTB-XL** — total 10327; splits: train (8167), test (2160)
## Metrics
- `AUC` **(primary)** — range: [0, 1]
- Area Under the Receiver Operating Characteristic Curve. Computed by plotting the true positive rate against the false positive rate across all classification thresholds and calculating the area under the resulting curve.
## Input / output format
**Input**: Raw 12-lead ECG recordings (500 Hz, 10 seconds) divided into non-overlapping segments of length 125, forming a sequence of T=40 segments. Multi-scale masking is applied during training.
**Output**: A scalar anomaly score/probability per recording for detection, and a sequence of anomaly scores/points per recording for localization.
## Scoring recipe
```python
def compute_auc(predictions, labels):
# predictions: array of anomaly scores (0-1)
# labels: array of ground truth binary labels (0=normal, 1=abnormal)
fpr, tpr, _ = roc_curve(labels, predictions)
auc_score = auc(fpr, tpr)
return auc_score
```
## Common pitfalls
- The method explicitly avoids R-peak detection and heartbeat segmentation, unlike many prior ECG baselines; assuming segmentation is required will lead to incorrect preprocessing.
- Localization performance is only evaluated on a subset of 400 recordings with point-level annotations, not the full test set, which may overestimate general localization capability.
- The test set is imbalanced (912 normal vs 1,248 abnormal); using accuracy instead of AUC would yield misleading results.
## Evidence (verbatim from paper)
> Performance is evaluated using the Area Under the Receiver Operating Characteristic Curve (AUC), following Jiang et al. ([2023]) and Bui et al. ([2024]).
## Citation
```bibtex
@misc{zhou2025mmae_ecg,
title={Multi-scale Masked Autoencoder for Electrocardiogram Anomaly Detection},
author={Ya Zhou et al.},
year={2025},
note={arXiv:2502.05494}
}
```
- arXiv: 2502.05494
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!