Attention Based Hierarchical Modeling Of EKGs For Interpretable Cardiac Disease Detection

Abstract

Deployable learning models for electrocardiogram (EKG) analysis shall balance predictive accuracy, computational efficiency, and interpretability. Prior studies applied hierarchical attention to EKGs but were limited to binary classification, single-lead inputs, or small datasets, restricting their clinical utility. This work studies predictive performance and interpretability of an adapted hierarchical attention network (HAN) for multi-class, multi-label cardiovascular disease diagnosis using clinically realistic, variable-length, 12-lead EKGs. Empirical experiments on 3 large-scale, open-source EKG datasets - MIMIC-IV-ECG, PhysioNet CinC-2020, and Shandong Provincial Hospital (SPH)-demonstrate that our adapted HAN achieves competitive predictive accuracy compared to transformer-based and CNN models, yet with substantially fewer parameters. For data preprocessing, we apply a unified pipeline for all models, and quantitatively contrast alternative diagnostic labeling schemes and EKG signal segmentation strategies. For interpretability, we apply integrated gradients and LIME methods to our adapted HAN to highlight key diagnostic EKG signal regions, providing interpretable and localized explanations beyond those of the baselines. Overall, this work establishes our adapted HAN as a lightweight, interpretable, and accurate alternative in resource-constrained environments.

Department(s)

Electrical and Computer Engineering

Comments

National Science Foundation, Grant CCF-2452330

Keywords and Phrases

Electrocardiogram; Hierarchical attention; Interpretability; R-peak segmentation; Resource-efficient learning

Document Type

Article - Conference proceedings

Document Version

Citation

File Type

text

Language(s)

English

Rights

© 2026 Institute of Electrical and Electronics Engineers, All rights reserved.

Publication Date

01 Jan 2026

Share

 
COinS