Arrhythmia classification based on multi-input convolutional neural network with attention mechanism

B Bin Zheng (Academy of Medical Engineering and Translational Medicine, Department of Medicine) W Wenbo Luo M Mingming Zhang (State Key Laboratory for Porous Metal Materials, Shaanxi Key Laboratory of New Conceptual Sensors and Molecular Materials, Shaanxi International Research Center for Soft Matter, Xi’an Key Laboratory of Sustainable Polymer Materials, School of Materials Science and Engineering) H Huiyuan Jin

Abstract

Arrhythmia is a prevalent cardiac disorder that can lead to severe complications such as stroke and cardiac arrest. While deep learning has advanced automated ECG analysis, challenges remain in accurately classifying arrhythmias due to signal variability, data imbalance, and feature representation limitations. In this work, we propose a novel arrhythmia classification algorithm based on a multi-input convolutional neural network (CNN) enhanced with a Squeeze-and-Excitation (SE) attention mechanism. Distinct from previous methods that rely on single-resolution features or unimodal inputs, our model integrates multi-scale time-frequency representations derived from Short-Time Fourier Transform (STFT) applied to ECG signals segmented into two temporal resolutions. The dual-branch CNN architecture enables complementary feature learning from both short and long segments, while SE blocks enhance inter-channel dependencies to prioritize critical features. The fusion strategy combines feature maps via bicubic interpolation and element-wise summation to maintain spatial integrity. Evaluated on MIT-BIH and SPH arrhythmia databases, the proposed model achieves high accuracy (99.13% and 95.84%, respectively) and Macro-F1 scores (94.46% and 95.91%), outperforming several state-of-the-art approaches. These results highlight the model’s potential for robust and interpretable arrhythmia classification in clinical practice.

Article Details

Journal PLoS ONE
Volume / Issue Vol. 20, Issue 6
Published June 17, 2025
Pages e0326079
ISSN 1932-6203
Publisher Public Library of Science

Journal Info

PLoS ONE

Public Library of Science

ISSN: 1932-6203 Open Access Health Sciences

Authors (4)

B

Bin Zheng

Academy of Medical Engineering and Translational Medicine, Department of Medicine

W

Wenbo Luo

M

Mingming Zhang

State Key Laboratory for Porous Metal Materials, Shaanxi Key Laboratory of New Conceptual Sensors and Molecular Materials, Shaanxi International Research Center for Soft Matter, Xi’an Key Laboratory of Sustainable Polymer Materials, School of Materials Science and Engineering

H

Huiyuan Jin