A joint cross-dimensional contrastive learning framework for 12-lead ECGs and its heterogeneous deployment on SoC

Comput Biol Med. 2023 Jan:152:106390. doi: 10.1016/j.compbiomed.2022.106390. Epub 2022 Dec 1.

Abstract

The utilization of unlabeled electrocardiogram (ECG) data is always a critical topic in artificial intelligence healthcare, as the manual annotation for ECG data is a time-consuming task that requires much medical expertise. The recent development of self-supervised learning, especially contrastive learning, has provided helpful inspirations to solve this problem. In this paper, a joint cross-dimensional contrastive learning algorithm for unlabeled 12-lead ECGs is proposed. Unlike existing studies about ECG contrastive learning, our algorithm can simultaneously exploit unlabeled 1-dimensional ECG signals and 2-dimensional ECG images. A cross-dimensional contrastive learning method enhances the interaction between 1-dimensional and 2-dimensional ECG data, resulting in a more effective self-supervised feature learning. Combining this cross-dimensional contrastive learning, a 1-dimensional contrastive learning with ECG-specific transformations is employed to constitute a joint model. To pre-train this joint model, a new hybrid contrastive loss balances the 2 algorithms and uniformly describes the pre-training target. In the downstream classification task, the features learned by our algorithm shows impressive advantages. Compared with other representative methods, it achieves a at least 5.99% increase in accuracy. For real-world applications, an efficient heterogenous deployment on a "system-on-a-chip" (SoC) is designed. According to our experiments, the model can process 12-lead ECGs in real-time on the SoC. Furthermore, this heterogenous deployment can achieve a 14 × faster inference than the pure software deployment on the same SoC. In summary, our algorithm is a good choice for unlabeled 12-lead ECG utilization, the proposed heterogenous deployment makes it more practical in real-world applications.

Keywords: Contrastive learning; Deep learning (DL); Electrocardiogram (ECG); Self-supervised learning (SSL); System-on-a-chip (SoC).

Publication types

  • Research Support, Non-U.S. Gov't

MeSH terms

  • Algorithms
  • Artificial Intelligence*
  • Electrocardiography*
  • Health Facilities
  • Software