HCTG-Net: A Hybrid CNN–Transformer Network with Gated Fusion for Automatic ECG Arrhythmia Diagnosis
Open Access
- 19 November 2025
- journal article
- research article
- Published by MDPI AG in Bioengineering
- Vol. 12 (11) , 1268
Abstract
Accurate detection of cardiac arrhythmias from electrocardiogram (ECG) signals is essential for the early diagnosis of cardiovascular diseases but remains challenging due to the complex, non-linear nature of ECG waveforms. This study proposes HCTG-Net, a Hybrid CNN–Transformer Network with Gated Fusion, designed to jointly capture local morphological features and long-range temporal dependencies in ECG data. The model employs a dual-branch architecture, where a residual CNN extracts localized waveform patterns and a Transformer branch models global temporal context. A learnable gated fusion mechanism adaptively balances and integrates features from both branches at the per-dimension level. Experiments conducted on the MIT-BIH Arrhythmia Database demonstrate that HCTG-Net achieves superior performance compared with existing methods, reaching an overall accuracy of 0.9946 and F1-score of 0.9711. Visualization results show well-clustered feature distributions, confirming robust feature learning, while ablation studies verify the complementary roles of the CNN, Transformer, and fusion modules. Overall, HCTG-Net offers a powerful and adaptive framework for automatic ECG-based arrhythmia diagnosis and holds strong potential for real-time clinical and wearable healthcare applications.Keywords
Funding Information
- National Natural Science Foundation of China (82070400, 82270367)
This publication has 45 references indexed in Scilit:
- A novel efficient hybrid deep learning framework for ECG-based heartbeat arrhythmia classificationNeural Computing and Applications, 2025
- A lightweight 1D convolutional neural network model for arrhythmia diagnosis from electrocardiogram signalPhysical and Engineering Sciences in Medicine, 2025
- A lightweight hybrid CNN-LSTM explainable model for ECG-based arrhythmia detectionBiomedical Signal Processing and Control, 2023
- Multi-phase ECG dynamic features for detecting myocardial ischemia and identifying its etiology using deterministic learningBiomedical Signal Processing and Control, 2023
- SRT: Improved transformer-based model for classification of 2D heartbeat imagesBiomedical Signal Processing and Control, 2023
- Fuzz-ClustNet: Coupled fuzzy clustering and deep neural networks for Arrhythmia detection from ECG signalsComputers in Biology and Medicine, 2023
- Multi-classification of arrhythmias using a HCRNet on imbalanced ECG datasetsComputer Methods and Programs in Biomedicine, 2021
- Arrhythmia diagnosis of young martial arts athletes based on deep learning for smart medical careNeural Computing and Applications, 2021
- A novel hybrid deep learning method with cuckoo search algorithm for classification of arrhythmia disease using ECG signalsNeural Computing and Applications, 2021
- A high-precision arrhythmia classification method based on dual fully connected neural networkBiomedical Signal Processing and Control, 2020