Learning to Learn Personalized Neural Network for Ventricular Arrhythmias Detection on Intracardiac EGMs

Zhenge Jia, Zhepeng Wang, Feng Hong, Lichuan Ping, Yiyu Shi, Jingtong Hu

Introduction

Ventricular arrhythmias (VAs), including ventricular tachycardia and fibrillation, are critical medical emergencies and leading causes of sudden cardiac death. Implantable cardioverter-defibrillators (ICDs) are the primary defense, monitoring heart rhythms and delivering life-saving electrical shocks when VAs are detected. However, current ICDs rely on rigid, heuristic-based detection rules that frequently result in an Inappropriate Shock Rate (ISR) of 12-23%. These unnecessary shocks cause significant physical pain, psychological trauma, and potential cardiac damage.

While deep learning offers a potential solution for more accurate rhythm classification, two major challenges hinder its deployment in ICDs: extreme resource constraints (typically 8-32 KB of RAM) and significant inter-patient variability in heart rhythms. This paper proposes a lightweight 1D-CNN combined with a meta-learning framework to enable rapid personalization on resource-constrained medical hardware.

Lightweight 1D-CNN Architecture

To address the hardware limitations of implantable devices, the researchers developed a highly efficient one-dimensional convolutional neural network (1D-CNN). The model processes 2-second windows of intracardiac electrograms (IEGMs) sampled at 250Hz.

The end-to-end detection pipeline, featuring the sliding window mechanism and the detailed 1D-CNN architecture.

As shown in the architecture diagram, the model consists of five convolutional layers (Conv1-Conv5) followed by two fully connected layers (FC1-FC2). Each convolutional layer utilizes Batch Normalization (BN) and ReLU activation. The design is intentionally shallow and narrow to minimize the memory footprint; the entire model requires only 36.2 KB for parameters, making it compatible with the strict memory limits of modern microcontrollers used in ICDs.

Meta-Learning for Rapid Personalization

The core innovation of this work is the application of meta-learning to handle patient variability. Rather than training a static global model, the authors use a "learning to learn" approach to find an optimal parameter initialization ($\phi^*$) that can be quickly adapted to any specific patient.

The meta-learning framework illustrating the patient-wise task structure and the optimization of the global initialization parameters.

The framework organizes training into patient-specific tasks. Each task consists of a Support Set (used for local adaptation) and a Query Set (used to evaluate the meta-model's performance). By training across a diverse batch of $B$ tasks, the model learns features that are broadly applicable across the population while remaining highly sensitive to individual variations. When a new patient is encountered, the device performs a few steps of gradient descent using a small amount of the patient's own data (approximately 10 seconds), effectively personalizing the detector.

Experimental Results

The proposed method was evaluated using the Ann Arbor Electrogram Libraries (AAEL), comprising 217 recordings from 78 patients. The results demonstrate significant improvements over both traditional heuristics and standard deep learning:

  • Detection Performance: The meta-learning approach achieved an F1 score of 0.993. Compared to classic criteria-based methods, it improved sensitivity by 2.2% and specificity by 8.6%, directly addressing the problem of inappropriate shocks.
  • Adaptation Efficiency: The model reaches peak performance on a new patient after only 10 steps of fine-tuning, requiring minimal labeled data.
  • Hardware Viability: Real-world testing on an Apollo3 Blue microcontroller demonstrated a latency of 368ms and power consumption of 5.445 mW. This confirms that the model can operate in real-time within the power and thermal envelopes of an implantable device.

Conclusion

By treating patient personalization as a few-shot learning problem, this research bridges the gap between high-performance deep learning and the practical constraints of medical implants. The combination of a lightweight 1D-CNN and a robust meta-learning framework provides a path toward next-generation ICDs that are both more effective at saving lives and less prone to delivering traumatic, unnecessary shocks.

Summary updated

Abstract

Life-threatening ventricular arrhythmias (VAs) detection on intracardiac electrograms (IEGMs) is essential to Implantable Cardioverter Defibrillators (ICDs). However, current VAs detection methods count on a variety of heuristic detection criteria, and require frequent manual interventions to personalize criteria parameters for each patient to achieve accurate detection. In this work, we propose a one-dimensional convolutional neural network (1D-CNN) based life-threatening VAs detection on IEGMs. The network architecture is elaborately designed to satisfy the extreme resource constraints of the ICD while maintaining high detection accuracy. We further propose a meta-learning algorithm with a novel patient-wise training tasks formatting strategy to personalize the 1D-CNN. The algorithm generates a well-generalized model initialization containing across-patient knowledge, and performs a quick adaptation of the model to the specific patient's IEGMs. In this way, a new patient could be immediately assigned with personalized 1D-CNN model parameters using limited input data. Compared with the conventional VAs detection method, the proposed method achieves 2.2% increased sensitivity for detecting VAs rhythm and 8.6% increased specificity for non-VAs rhythm.
BibTeX
@inproceedings{jia2021learning,
  author = {Zhenge Jia and Zhepeng Wang and Feng Hong and Lichuan Ping and Yiyu Shi and Jingtong Hu},
  title = {{Learning to Learn Personalized Neural Network for Ventricular Arrhythmias Detection on Intracardiac EGMs}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2021},
  doi = {10.24963/ijcai.2021/359},
}
Figure