Cardiologist-level interpretable knowledge-fused deep neural network for automatic arrhythmia diagnosis

Yanrui Jin, Zhiyuan Li, Mengxiao Wang, Jinlei Liu, Yuanyuan Tian, Yunqing Liu, Xiaoyang Wei, Liqun Zhao, Chengliang LiuCommunications 2024

Abstract

Our diagnosis system has superior diagnostic performance over that of clinicians. It also has the potential to help clinicians rapidly identify abnormal regions on ECG recordings, thus improving efficiency and accuracy of clinical ECG diagnosis in China. This approach could therefore potentially improve the productivity of out-of-hospital ECG diagnosis and provides a promising prospect for telemedicine.

Introduction

Arrhythmia, characterized by irregular heartbeats, remains a leading cause of sudden cardiac death worldwide. The Electrocardiogram (ECG) is the primary diagnostic tool; however, its interpretation requires significant expertise and is time-consuming. This creates a critical bottleneck in healthcare, particularly in remote or underdeveloped regions where specialized cardiologists are scarce. Existing AI solutions often struggle with the "black box" nature of deep learning—where decisions lack transparency—and are frequently trained on outdated, small-scale datasets that do not reflect modern clinical diversity.

Methodology: SJTU-ECGNet

To address these challenges, we developed SJTU-ECGNet, a hybrid architecture that fuses deep learning with established clinical knowledge. The system comprises two main modules:

  1. Deep Learning Module: This component utilizes 1D Convolutional Neural Networks (CNNs) with Residual blocks to extract morphological features from ECG waveforms. A Bidirectional Long Short-Term Memory (BiLSTM) layer captures long-term rhythm dependencies, while an Attention (ATT) layer highlights clinically significant segments of the signal.
  2. Medical Post-processing Module: This "knowledge-fused" layer applies traditional clinical rules, such as R-peak detection and heart rate calculation. By hard-coding these rules, the model refines its predictions for conditions like Sinus Tachycardia (ST) and Sinus Bradycardia (SB), ensuring the AI adheres to standard medical definitions.
Figure 2: Overview of the SJTU-ECGNet system, including application scenarios, model architecture, and diagnostic output.

Data and Evaluation

The model was trained on the LSCP-ECGDS (Large-scale Chinese ECG benchmark dataset), featuring 352,725 clinical recordings from over 272,000 patients. This dataset covers six common arrhythmias: Normal, ST, SB, Atrial Fibrillation (AF), Atrial Premature Contraction (PAC), and Premature Ventricular Contraction (PVC).

To validate clinical utility, we compared the model against three experienced cardiologists using a "hidden" dataset of 1,261 recordings. The model was also benchmarked against international datasets like MIT-BIH and PTB-XL to ensure generalizability.

Key Results and Interpretability

SJTU-ECGNet achieved a mean accuracy of 93.74% and an average AUC-ROC of 0.977. Notably, the fusion of clinical logic significantly improved the F1 score for sinus-related arrhythmias compared to pure neural network approaches.

A core strength of the system is its interpretability. The attention mechanism generates "attention maps" that peak at abnormal waveforms. For instance, in cases of PAC, the model highlights the specific premature beat, allowing clinicians to verify the AI's reasoning at a glance.

Figure 4: Interpretable AI ECG result showing attention weights highlighting a PAC event.

Furthermore, the study demonstrated that the model's diagnostic consistency was higher than the inter-observer agreement among human experts, positioning it as a reliable "second opinion" in clinical settings.

Conclusion

SJTU-ECGNet bridges the gap between high-performance AI and clinical trust. By combining the pattern-recognition strengths of deep learning with the rigor of medical rules, the system offers a scalable solution for automatic arrhythmia diagnosis. Future work will expand the model's scope to rarer cardiac conditions and integrate 12-lead ECG data to enhance diagnostic depth for structural heart diseases.

Summary updated

BibTeX
@inproceedings{jin2024cardiologist,
  author = {Yanrui Jin and Zhiyuan Li and Mengxiao Wang and Jinlei Liu and Yuanyuan Tian and Yunqing Liu and Xiaoyang Wei and Liqun Zhao and Chengliang Liu},
  title = {{Cardiologist-level interpretable knowledge-fused deep neural network for automatic arrhythmia diagnosis}},
  booktitle = {Communications},
  year = {2024},
  doi = {10.1038/s43856-024-00464-4},
}
Figure