Deep learning optimisation for cardiology: Neural Architecture Search-driven arrhythmia classification with electrocardiograms

Erik Vanegas Mülle, Arese Joe-Oshodi, Abhirup Banerjee, Mauricio Villarroel

Abstract

Cardiovascular disease is the leading cause of death worldwide. Sudden cardiac death (SCD) accounts for roughly 50% of all cardiac deaths. The electrocardiogram (ECG) is widely used for diagnosing cardiac disease. However, the complexity of interpretation limits the ECG’s efficacy. Modern deep learning methods can assist clinicians in diagnosis. We applied Neural Architecture Search (NAS) to identify optimal deep learning architectures for classifying cardiac arrhythmias with ECGs. 

Introduction

Cardiovascular disease is the leading cause of death worldwide, annually accounting for approximately 20.5 million deaths [1]. Cardiovascular deaths are expected to rise to 35.6 million in 2050 [1]. Sudden cardiac death (SCD) is defined as a death within one hour of the onset of symptoms. Presumably of cardiac origin, SCD accounts for roughly 50% of all cardiac deaths worldwide [2]. The largest absolute number of SCD cases occurs in the general population, which is unaware of its cardiac risk [2].

Methods

Dataset

We use the PhysioNet 2021 dataset for the NAS-driven arrhythmia classification. The PhysioNet Challenge 2021 ECG recordings originate from seven institutions across three continents (America, Asia, and Europe). The publicly available dataset includes 88,253 ECGs with 133 diagnoses or classes. Of these 133 classes, only 30 are used for evaluation. The choice of those 30 arrhythmias is justified by their clinical frequency and relevance, as well as their likelihood of being recognisable from ECG recordings [23].

Results

Our deep learning architecture achieved an AUROC of 0.95 and a higher challenge metric of 0.66 during validation (see Table 1). During testing, the results were 0.97 for AUROC and 0.72 for the challenge metric. The winner of the PhysioNet Challenge 21 achieved a validation challenge score of 0.63 [25]. We ran the PhysioNet Challenge 21 winner and achieved an AUROC of 0.91 and a challenge metric of 0.69 during testing (the PhysioNet Challenge 21 winners also reported a challenge metric of 0.69 [25]). 

Discussion

Neural architecture search

We apply NAS to design a deep learning architecture for arrhythmia classification. Early NAS iterations prefer larger architectures, as indicated by an embedding dimension of 768 and depth of 6. However, as the search progresses, both macro and micro architecture parameters converge towards minimal configurations: an embedding dimension of 384, a depth of 4 blocks, 4 self-attention heads, and an MLP ratio of 1. 

Conclusion

Our NAS revealed that minimal architectural configurations outperform larger alternatives for ECG-based arrhythmia classification. Both macro and micro-level parameters converged toward the smallest values in the search space. The convergence towards minimal architectural configurations suggests that effective AI-based ECG analysis does not require substantial computational resources, making deployment in resource-constrained clinical settings feasible.

Citation: Vanegas Müller E, Joe-Oshodi A, Banerjee A, Villarroel M (2026) Deep learning optimisation for cardiology: Neural Architecture Search-driven arrhythmia classification with electrocardiograms. PLoS One 21(11): e0362129. https://doi.org/10.1371/journal.pone.0362129

Editor: Ibrahim Marai, Baruch Padeh Medical Center Poriya, ISRAEL

Received: March 23, 2026; Accepted: October 20, 2026; Published: November 6, 2026

Copyright: © 2026 Vanegas Müller et al. This is an open access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.

Data Availability: The PhysioNet Challenge 21 is an open-source dataset and can be downloaded from https://physionet.org/content/challenge-2021/1.0.3/#files. The PhysioNet Challenge 2020 is a subset of the PhysioNet Challenge 21 dataset.

Funding: EVM and MV are funded by The Podium Institute for Sports Medicine and Technology. AB is supported by the Royal Society University Research Fellowship (Grant No. URF\R1\221314). The funders had no role in study design, data collection and analysis, decision to publish, or preparation of the manuscript.

Competing interests: The authors have declared that no competing interests exist.