PaperPMID 41843891

MMAE-ECG: multi-scale masked autoencoder for ECG anomaly detection

Venue listed2026

Authors: Ya Zhou, Yujie Yang, Jianhuang Gan, Xiangjie Li, Jing Yuan, Wei Zhao

PLoS ONE 21(3):e0343571

TL;DR

MMAE-ECG is a multi-scale masked autoencoder for detecting and locating anomalies in ECG without R-peak detection or heartbeat segmentation. It combines multi-scale masking with multi-scale attention so that a lightweight Transformer encoder captures both global and local patterns. It reached state-of-the-art anomaly detection and localization while using about 1/78 of the inference FLOPs and 1/18 of the trainable parameters of the previous leading method.

  • Architecture: lightweight Transformer, multi-scale masked autoencoder
  • Task: anomaly detection and localization
  • Efficiency: ~1/78 FLOPs, ~1/18 parameters vs prior best

Abstract

Electrocardiogram (ECG) analysis is crucial for diagnosing cardiovascular conditions. While traditional classification models require large volumes of labeled data across multiple disease categories, anomaly detection offers a flexible alternative by identifying deviations from normal patterns-an approach particularly valuable given the rarity and diversity of cardiac conditions. However, existing anomaly detection methods often rely on R-peak detection or heartbeat segmentation, which increases preprocessing complexity and reduces robustness to signal variability. To address these limitations, we propose MMAE-ECG, a multi-scale masked autoencoder designed to capture both global and local dependencies without such preprocessing steps. MMAE-ECG integrates a multi-scale masking strategy and a multi-scale attention mechanism with distinct positional embeddings, enabling a lightweight Transformer encoder to efficiently model ECG signals. Additionally, an aggregation strategy is introduced to improve anomaly score estimation. Experiments demonstrate that MMAE-ECG achieves state-of-the-art performance in both anomaly detection and localization while significantly reducing computational costs. Specifically, it requires only approximately 1/78 of the inference FLOPs and 1/18 of the trainable parameters compared to the previous leading method. Ablation studies further validate the contributions of each component, demonstrating the potential of multi-scale masked autoencoders as an effective and efficient approach for ECG anomaly detection.

Verbatim from Europe PMC (opens in a new tab) · Licence: cc by

Results on ChatPPG leaderboards

All leaderboards

No results from this paper on ChatPPG leaderboards yet. Browse the leaderboards.

Tasks & signals

Signals

Keywords

MaeMaskingAnomaly DetectionReview

How it works

How Method works: Setup → Method → TargetSetup: Signals (ECG). Method: Method, lightweight Transformer, multi-scale masked autoencoder (Transformer · Masked reconstruction).SetupSignals: ECGSignalsECGMethod×NMethodlightweight Transformer, multi-scale…Transformer · Masked reconstruction

Cite this paper

Cite this paper with the fields recorded here. Check it against the publisher before submitting.

MMAE-ECG: multi-scale masked autoencoder for ECG anomaly detection. (2026). PLoS ONE, 21(3), e0343571.
@article{mmaeecgmultiscal2026mmaeecg,
  title         = {{MMAE-ECG: multi-scale masked autoencoder for ECG anomaly detection}},
  year          = {2026},
  journal       = {PLoS ONE},
  volume        = {21},
  number        = {3},
  pages         = {e0343571}
}

Source metadata: 2026