A deep learning method for beat-level risk analysis and interpretation of atrial fibrillation patients during sinus rhythm

Jun Lei, Yuxi Zhou, Xue Tian, Qinghao Zhao, Qi Zhang, Shijia Geng, Qingbo Wu, Shenda HongBiomedical Signal Processing and Control 2024

Abstract

Atrial Fibrillation (AF) is a common cardiac arrhythmia associated with severe complications like stroke. Early detection is vital, yet current algorithms often fail when patients are in sinus rhythm (normal heart rhythm) between AF episodes. This paper proposes a novel AI algorithm for beat-level analysis to distinguish "sinus rhythm in AF patients" from "sinus rhythm in healthy individuals." We introduce beat-level and trend risk interpreters to address deep learning's "black box" nature and a beat-level information fusion decision to enhance accuracy. Experimental results on the CPSC 2021 dataset show an average AUC of 0.7314 for single beats, rising to 0.7591 with a 150-beat fusion algorithm. Our lightweight, beat-level approach significantly reduces data dimensionality and parameter counts, facilitating deployment on portable medical devices.

Introduction: The Challenge of "Invisible" Arrhythmia

Atrial Fibrillation (AF) is a leading contributor to stroke and heart failure. A significant diagnostic hurdle is paroxysmal AF, where irregular rhythms are intermittent. When a patient is screened during a period of normal sinus rhythm, standard ECG analysis often appears healthy, missing the underlying "AF substrate"—the structural or electrical changes predisposing the heart to arrhythmia.

Existing AI models typically analyze long ECG segments (10+ seconds) and require massive computational resources. This study shifts the focus to the "beat level," identifying subtle markers of AF risk within individual normal heartbeats.

Hierarchy of AF risk analysis from individual to beat level.

Methodology: Beat-Level Analysis and Net1D

The proposed framework utilizes a 1D convolutional neural network, Net1D, optimized for efficiency and interpretability.

1. Beat-Level Processing

Instead of processing long strips, the model extracts 1-second windows centered on the R-peak of each heartbeat. This focus reduces noise and highlights morphological changes specific to the cardiac cycle.

2. Net1D Architecture and Framework

The architecture consists of seven feature extraction stages followed by global average pooling. To ensure clinical utility, the authors integrated three interpretability and decision-making modules:

  • Beat-level Risk Interpreter (BRI): Employs Class Activation Mapping (CAM) to pinpoint which waveform components (e.g., P-wave, T-wave) contribute to the risk score.
  • Beat-level Information Fusion Decision (BID): Aggregates risk probabilities across a sequence of beats (e.g., 150 beats) to stabilize predictions.
  • Trend Risk Interpreter (TRI): Visualizes risk fluctuations over time, providing a longitudinal view of a patient's status.
The proposed framework for AF risk analysis, from beat sequence input to risk interpretation and fusion decision.

Key Insights and Clinical Findings

The model's interpretability modules revealed several physiologically significant findings:

  • P-Wave Integrity: The AI confirmed that the disappearance or fragmentation of the P-wave is a primary indicator of AF risk, aligning with traditional medical knowledge of atrial health.
  • T-Wave Alterations: Interestingly, the model identified subtle T-wave changes as risk markers. This suggests that AF burden may lead to ventricular remodeling detectable by AI before becoming apparent to human clinicians.
  • Proximity to Premature Ventricular Contractions (BNV): Sinus beats occurring near BNV carried a much higher predictive value for AF than "stable" sinus beats.

Results and Performance

The model was validated using the CPSC 2021 dataset (1,436 recordings from 105 subjects).

  • Accuracy and AUC: A single heartbeat achieved an average AUC of 0.7314. When utilizing the BID algorithm over 150 beats, the AUC improved to 0.7591, with an accuracy of 0.6887.
  • Efficiency Gains: By moving to a beat-level approach, the parameter count dropped from 5.90M (segment-level) to 0.10M. Inference time was reduced by over 90% (from 0.6784s to 0.0629s), making it highly suitable for real-time monitoring on wearable devices.

Conclusion

This research demonstrates that deep learning can detect the "invisible" signs of AF within normal sinus rhythm at the beat level. By providing a lightweight and interpretable framework, this method paves the way for continuous, low-power AF screening on consumer wearables. Future work will involve testing on larger, more diverse datasets and refining the model to distinguish between different levels of AF burden.

Summary updated

BibTeX
@article{lei2024deep,
  author = {Jun Lei and Yuxi Zhou and Xue Tian and Qinghao Zhao and Qi Zhang and Shijia Geng and Qingbo Wu and Shenda Hong},
  title = {{A deep learning method for beat-level risk analysis and interpretation of atrial fibrillation patients during sinus rhythm}},
  journal = {Biomedical Signal Processing and Control},
  year = {2024},
}
Figure