Skip to content
Back to skills

Ptbxl Ecg Anomaly Detection Eval

ASecurity

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.

  • 3 stars
  • 0 votes
  • 0 copies
  • 6 views
  • Added September 11, 2026
researchpythonperformance

Security analysis

A100/100

Scanned September 11, 2026

npx -y skills add qhjqhj00/research-skills-pool --skill ptbxl-ecg-anomaly-detection-eval --agent claude-code

Installs 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 with every re-scan.

Security grade badge for Ptbxl Ecg Anomaly Detection Eval
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/qhjqhj00-ptbxl-ecg-anomaly-detection-eval/badge)](https://www.skillsdirectory.com/skills/qhjqhj00-ptbxl-ecg-anomaly-detection-eval)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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: [REDACTED]
  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

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.