Masked Transformer for Electrocardiogram Classification

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Zhou, Ya, Diao, Xiaolin, Huo, Yanni, Liu, Yang, Fan, Xiaohan, Zhao, Wei
Format: Preprint
Published: 2023
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866916217924616192
author Zhou, Ya
Diao, Xiaolin
Huo, Yanni
Liu, Yang
Fan, Xiaohan
Zhao, Wei
author_facet Zhou, Ya
Diao, Xiaolin
Huo, Yanni
Liu, Yang
Fan, Xiaohan
Zhao, Wei
contents Electrocardiogram (ECG) is one of the most important diagnostic tools in clinical applications. With the advent of advanced algorithms, various deep learning models have been adopted for ECG tasks. However, the potential of Transformer for ECG data has not been fully realized, despite their widespread success in computer vision and natural language processing. In this work, we present Masked Transformer for ECG classification (MTECG), a simple yet effective method which significantly outperforms recent state-of-the-art algorithms in ECG classification. Our approach adapts the image-based masked autoencoders to self-supervised representation learning from ECG time series. We utilize a lightweight Transformer for the encoder and a 1-layer Transformer for the decoder. The ECG signal is split into a sequence of non-overlapping segments along the time dimension, and learnable positional embeddings are added to preserve the sequential information. We construct the Fuwai dataset comprising 220,251 ECG recordings with a broad range of diagnoses, annotated by medical experts, to explore the potential of Transformer. A strong pre-training and fine-tuning recipe is proposed from the empirical study. The experiments demonstrate that the proposed method increases the macro F1 scores by 3.4%-27.5% on the Fuwai dataset, 9.9%-32.0% on the PTB-XL dataset, and 9.4%-39.1% on a multicenter dataset, compared to the alternative methods. We hope that this study could direct future research on the application of Transformer to more ECG tasks.
format Preprint
id arxiv_https___arxiv_org_abs_2309_07136
institution arXiv
publishDate 2023
record_format arxiv
spellingShingle Masked Transformer for Electrocardiogram Classification
Zhou, Ya
Diao, Xiaolin
Huo, Yanni
Liu, Yang
Fan, Xiaohan
Zhao, Wei
Signal Processing
Artificial Intelligence
Machine Learning
Applications
Electrocardiogram (ECG) is one of the most important diagnostic tools in clinical applications. With the advent of advanced algorithms, various deep learning models have been adopted for ECG tasks. However, the potential of Transformer for ECG data has not been fully realized, despite their widespread success in computer vision and natural language processing. In this work, we present Masked Transformer for ECG classification (MTECG), a simple yet effective method which significantly outperforms recent state-of-the-art algorithms in ECG classification. Our approach adapts the image-based masked autoencoders to self-supervised representation learning from ECG time series. We utilize a lightweight Transformer for the encoder and a 1-layer Transformer for the decoder. The ECG signal is split into a sequence of non-overlapping segments along the time dimension, and learnable positional embeddings are added to preserve the sequential information. We construct the Fuwai dataset comprising 220,251 ECG recordings with a broad range of diagnoses, annotated by medical experts, to explore the potential of Transformer. A strong pre-training and fine-tuning recipe is proposed from the empirical study. The experiments demonstrate that the proposed method increases the macro F1 scores by 3.4%-27.5% on the Fuwai dataset, 9.9%-32.0% on the PTB-XL dataset, and 9.4%-39.1% on a multicenter dataset, compared to the alternative methods. We hope that this study could direct future research on the application of Transformer to more ECG tasks.
title Masked Transformer for Electrocardiogram Classification
topic Signal Processing
Artificial Intelligence
Machine Learning
Applications
url https://arxiv.org/abs/2309.07136