CardioLearn: A Cloud Deep Learning Service for Cardiac Disease Detection from Electrocardiogram

Shenda Hong, Zhaoji Fu, Rongbo Zhou, Jie Yu, Yongkui Li, Kai Wang, Guanlin Cheng

Abstract

CardioLearn is a cloud-based deep learning service designed to democratize advanced electrocardiogram (ECG) analysis. By providing an "out-of-the-box" API and a portable hardware prototype, the system enables both clinical 12-lead and consumer single-lead devices to detect dozens of cardiac arrhythmias with specialist-level accuracy. The platform bridges the gap between academic deep learning models and real-world clinical deployment.

Introduction

Electrocardiograms (ECGs) are the gold standard for monitoring heart health, yet traditional automated analysis often falls short. Existing commercial software relies on manual feature extraction, which frequently leads to misdiagnosis. While modern Deep Learning (DL) has shown immense promise in outperforming these traditional methods, most DL models remain "academic exercises"—they require massive computational power and specialized datasets that most clinics and hardware manufacturers lack.

CardioLearn ecosystem overview showing the cloud-based API connecting various devices to the deep learning model.

CardioLearn addresses this "deployment gap" by moving the intelligence to the cloud, allowing any internet-connected device—from remote monitors to wearable sensors—to access state-of-the-art cardiac diagnostics via a simple API.

Methods

The authors developed a robust end-to-end system consisting of two primary deep neural networks: one optimized for clinical 12-lead ECGs (supporting 43 disease types) and another for single-lead ECGs (supporting 18 types).

Neural Network Architecture

The model architecture is designed to handle the complexities of temporal cardiac signals:

  • 1D-CNN Stack: The model utilizes 32 layers of one-dimensional Convolutional Neural Networks (CNNs) to capture local patterns and shifts in the electrical signal.
  • Residual Connections: To facilitate the training of such a deep network, residual shortcut connections were implemented to prevent vanishing gradients.
  • RNN Layer: A Recurrent Neural Network (RNN) layer is positioned above the CNN stack to capture long-term temporal variations across the entire recording.
  • Multi-label Classification: Final dense layers are configured for multi-label learning, allowing the system to identify multiple co-occurring conditions in a single patient.
The deep learning architecture combining CNN layers for local feature extraction and an RNN layer for temporal modeling.

Cloud Infrastructure

The system is served via TensorFlow Serving on cloud servers equipped with NVIDIA Tesla P4 GPUs. To demonstrate the system's versatility, the team developed a 10-gram portable hardware prototype that interfaces with a smartphone via a WeChat Mini Program, enabling near-instant cloud-based diagnostics.

Datasets and Evaluation

The models were trained on a large, proprietary dataset from multiple hospitals, featuring 12-lead recordings labeled by professional cardiologists. For independent evaluation, the system was tested on the 2018 China Physiological Signal Challenge dataset, which includes 6,877 12-lead ECG recordings from 11 different hospitals.

Results

The system demonstrated exceptional diagnostic performance across both lead configurations:

  • Accuracy: On the 2018 Challenge dataset, the models achieved ROC-AUC scores higher than 0.93 for nearly all tested diseases.
  • Atrial Fibrillation (AF): Detection was particularly robust, with an AUC of 0.9857 for single-lead data.
  • Throughput and Latency: Stress testing confirmed a throughput of 11.5 records per second, scaling to nearly 1 million 30-second ECG analyses per day. 99% of requests were processed within 2.5 seconds.

Discussion and Conclusion

CardioLearn successfully decouples hardware from diagnostic intelligence. By utilizing a cloud API, hardware can remain inexpensive and lightweight while the underlying "brain" is continuously updated in the cloud. While the system currently requires a stable internet connection and faces the common "black box" interpretability challenges of deep learning, it represents a significant step toward scalable, high-performance cardiac screening. Future work will focus on expanding the model's scope to include rarer conditions and improving diagnostic transparency for clinicians.

Summary updated

Abstract

Electrocardiogram (ECG) is one of the most convenient and non-invasive tools for monitoring peoples’ heart condition, which can use for diagnosing a wide range of heart diseases, including Cardiac Arrhythmia, Acute Coronary Syndrome, et al. However, traditional ECG disease detection models show substantial rates of misdiagnosis due to the limitations of the abilities of extracted features. Recent deep learning methods have shown significant advantages, but they do not provide publicly available services for those who have no training data or computational resources. In this paper, we demonstrate our work on building, training, and serving such out-of-the-box cloud deep learning service for cardiac disease detection from ECG named CardioLearn. The analytic ability of any other ECG recording devices can be enhanced by connecting to the Internet and invoke our open API. As a practical example, we also design a portable smart hardware device along with an interactive mobile program, which can collect ECG and detect potential cardiac diseases anytime and anywhere.
BibTeX
@inproceedings{hong2020cardiolearn,
  author = {Shenda Hong and Zhaoji Fu and Rongbo Zhou and Jie Yu and Yongkui Li and Kai Wang and Guanlin Cheng},
  title = {{CardioLearn: A Cloud Deep Learning Service for Cardiac Disease Detection from Electrocardiogram}},
  booktitle = {The Web Conference},
  year = {2020},
  doi = {10.1145/3366424.3383529},
}
Figure