Unsupervised Transformer-Based Anomaly Detection in ECG Signals

被引:16
|
作者
Alamr, Abrar [1 ]
Artoli, Abdelmonim [1 ]
机构
[1] King Saud Univ, Coll Comp & Informat Sci, Comp Sci Dept, Riyadh 11543, Saudi Arabia
关键词
unsupervised transformers; deep learning; anomaly detection; ECG signal; TIME-SERIES;
D O I
10.3390/a16030152
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
Anomaly detection is one of the basic issues in data processing that addresses different problems in healthcare sensory data. Technology has made it easier to collect large and highly variant time series data; however, complex predictive analysis models are required to ensure consistency and reliability. With the rise in the size and dimensionality of collected data, deep learning techniques, such as autoencoder (AE), recurrent neural networks (RNN), and long short-term memory (LSTM), have gained more attention and are recognized as state-of-the-art anomaly detection techniques. Recently, developments in transformer-based architecture have been proposed as an improved attention-based knowledge representation scheme. We present an unsupervised transformer-based method to evaluate and detect anomalies in electrocardiogram (ECG) signals. The model architecture comprises two parts: an embedding layer and a standard transformer encoder. We introduce, implement, test, and validate our model in two well-known datasets: ECG5000 and MIT-BIH Arrhythmia. Anomalies are detected based on loss function results between real and predicted ECG time series sequences. We found that the use of a transformer encoder as an alternative model for anomaly detection enables better performance in ECG time series data. The suggested model has a remarkable ability to detect anomalies in ECG signal and outperforms deep learning approaches found in the literature on both datasets. In the ECG5000 dataset, the model can detect anomalies with 99% accuracy, 99% F1-score, 99% AUC score, 98.1% recall, and 100% precision. In the MIT-BIH Arrhythmia dataset, the model achieved an accuracy of 89.5%, F1 score of 92.3%, AUC score of 93%, recall of 98.2%, and precision of 87.1%.
引用
收藏
页数:15
相关论文
共 50 条
  • [21] ITran: A novel transformer-based approach for industrial anomaly detection and localization
    Cai, Xiangyu
    Xiao, Ruliang
    Zeng, Zhixia
    Gong, Ping
    Ni, Youcong
    ENGINEERING APPLICATIONS OF ARTIFICIAL INTELLIGENCE, 2023, 125
  • [22] Anomaly Detection in Mutual Actions: Unsupervised Classification of Fighting and Non-Fighting Behaviors Using Transformer-Based Variational Autoencoder
    Zaw, Thura
    Komuro, Takashi
    ADVANCES IN VISUAL COMPUTING, ISVC 2024, PT I, 2025, 15046 : 397 - 410
  • [23] Transformer-Based Fault Detection Using Pressure Signals for Hydraulic Pumps
    Ran Kim, A.
    Seon Kim, Ha
    Young Kim, Sun
    IEEE ACCESS, 2024, 12 : 145795 - 145808
  • [24] Unsupervised representation learning and anomaly detection in ECG sequences
    Pereira, Joao
    Silveira, Margarida
    INTERNATIONAL JOURNAL OF DATA MINING AND BIOINFORMATICS, 2019, 22 (04) : 389 - 407
  • [25] Enhanced Anomaly Detection in IoT Through Transformer-Based Adversarial Perturbations Model
    Zia, Saher
    Bibi, Nargis
    Alhazmi, Samah
    Muhammad, Nazeer
    Alhazmi, Afnan
    ELECTRONICS, 2025, 14 (06):
  • [26] TADL: Fault Localization with Transformer-based Anomaly Detection for Dynamic Microservice Systems
    Li, Yuewei
    Lu, Yan
    Wang, Jingyu
    Qi, Qi
    Wang, Jing
    Wang, Yingying
    Liao, Jianxin
    2023 IEEE INTERNATIONAL CONFERENCE ON SOFTWARE ANALYSIS, EVOLUTION AND REENGINEERING, SANER, 2023, : 718 - 722
  • [27] Vision Transformer-Based Anomaly Detection Method for Offshore Platform Monitoring Data
    Zhu, Quanhua
    Wu, Qingpeng
    Yue, Yalin
    Bao, Yuequan
    Zhang, Tao
    Wang, Xueliang
    Jiang, Zhentao
    Chen, Haozheng
    STRUCTURAL CONTROL & HEALTH MONITORING, 2024, 2024
  • [28] Symmetric transformer-based network for unsupervised image registration
    Ma, Mingrui
    Xu, Yuanbo
    Song, Lei
    Liu, Guixia
    KNOWLEDGE-BASED SYSTEMS, 2022, 257
  • [29] An Unsupervised Transformer-Based Multivariate Alteration Detection Approach for Change Detection in VHR Remote Sensing Images
    Lin, Yizhang
    Liu, Sicong
    Zheng, Yongjie
    Tong, Xiaohua
    Xie, Huan
    Zhu, Hongming
    Du, Kecheng
    Zhao, Hui
    Zhang, Jie
    IEEE JOURNAL OF SELECTED TOPICS IN APPLIED EARTH OBSERVATIONS AND REMOTE SENSING, 2024, 17 : 3251 - 3261
  • [30] Transformer-based anomaly detection in P-LEO constellations: A dynamic graph approach
    Indaco, Manuel
    Guzzetti, Davide
    ACTA ASTRONAUTICA, 2024, 218 : 177 - 194