# Sparse Temporal AutoEncoder for ECG Anomaly Detection

**Authors:** Radia Daci, Abdelmalik Taleb-Ahmed, Luigi Patrono, Cosimo Distante

PMC · DOI: 10.3390/s26051589 · Sensors (Basel, Switzerland) · 2026-03-03

## TL;DR

A new deep learning model called STAE is developed for detecting abnormal ECG signals without needing labeled abnormal data.

## Contribution

The novel Sparse Temporal Autoencoder (STAE) uses TCNs and a hybrid sparse attention mechanism for efficient ECG anomaly detection.

## Key findings

- STAE achieves a ROC-AUC of 0.872 on the PTB-XL dataset, the highest among unsupervised methods.
- The model maintains a low inference time of 0.009 seconds, suitable for real-world deployment.
- STAE is trained only on normal ECG data, making it effective without requiring abnormal samples.

## Abstract

Electrocardiogram (ECG) analysis is a fundamental tool for diagnosing various cardiac conditions; however, accurately distinguishing between normal and abnormal ECG signals remains challenging due to high inter-individual variability and the inherent complexity of ECG waveforms. In this study, We propose a novel Sparse Temporal Autoencoder (STAE) for unsupervised ECG anomaly detection that leverages Temporal Convolutional Networks (TCNs) to extract hierarchical features from both time-domain and frequency-domain representations of ECG signals. Unlike traditional approaches requiring annotated abnormal samples, the proposed model is trained exclusively on normal ECG data, making it well-suited for real-world deployment. A STAE integrates a masked signal reconstruction strategy and a hybrid sparse attention mechanism combining sparse block and sparse strided attention to capture critical temporal and spectral patterns efficiently. The proposed method is evaluated on the PTB-XL dataset, where it achieves the highest ROC-AUC of 0.872 among compared unsupervised methods while maintaining a low inference time of 0.009 s, demonstrating that STAE achieves state-of-the-art performance in ECG anomaly detection, highlighting its potential as a powerful tool for automated and intelligent ECG analysis.

## Full-text entities

- **Diseases:** ECG Anomaly (MESH:D008133)

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/PMC12986937/full.md

## Figures

6 figures with captions in the complete paper: https://tomesphere.com/paper/PMC12986937/full.md

## References

32 references — full list in the complete paper: https://tomesphere.com/paper/PMC12986937/full.md

---
Source: https://tomesphere.com/paper/PMC12986937