IMLE-Net: An Interpretable Multi-level Multi-channel Model for ECG Classification

Likith Reddy, Vivek Talwar, Shanmukh Alle, Raju S. Bapi, U. Deva PriyakumarSMC 2021

Overview

Deep learning has achieved remarkable success in electrocardiogram (ECG) classification, often matching or exceeding cardiologist-level performance. However, two significant challenges persist: the reliance on single-channel data and the "black-box" nature of high-performing models. Clinical diagnosis typically utilizes 12-lead ECGs to gain a three-dimensional perspective of cardiac activity. Furthermore, medical practitioners require transparency—understanding why a model identifies a specific pathology, such as a Myocardial Infarction (MI).

IMLE-Net (Interpretable Multi-level Multi-channel Model) addresses these gaps by mimicking the hierarchical clinical reasoning process: analyzing individual heartbeats, overall rhythms, and specific lead perspectives. By leveraging a multi-level attention mechanism, the model achieves state-of-the-art accuracy while providing explainable outputs.

Methodology

The IMLE-Net architecture is structured into three hierarchical blocks designed to capture features at different scales:

  1. Beat Level Block: Raw ECG signals are segmented into individual beats. Each beat is processed by a CNN (based on a residual architecture) to extract local morphological features. A Beat Level Attention layer identifies critical components within the heartbeat, such as the QRS complex or T-wave.
  2. Rhythm Level Block: The sequence of processed beats is fed into a Bidirectional LSTM (Bi-LSTM) to capture temporal dependencies and rhythm patterns. A Rhythm Level Attention layer highlights specific abnormal beats within the 10-second recording.
  3. Channel Level Block: The model aggregates features from all 12 leads. A Channel Level Attention layer assigns weights to each lead, prioritizing those most relevant to the suspected condition (e.g., leads II, III, and aVF for Inferior MI).
The hierarchical architecture of IMLE-Net, showing the flow from beat segmentation to channel encoding.

Experimental Setup and Results

The model was evaluated using the PTB-XL dataset, the largest openly available clinical 12-channel ECG dataset, containing 21,837 recordings. IMLE-Net demonstrated superior performance compared to established baselines like ResNet101 and Rajpurkar’s model:

  • Macro ROC-AUC: 0.9216 (highest among compared models)
  • Mean Accuracy: 88.85%
  • Maximum F1 Score: 0.8057

Ablation studies confirmed that while precordial leads (V1-V6) are often more informative, the full 12-lead set yields peak performance, validating the importance of multi-channel data.

Interpretability and Clinical Validation

A core strength of IMLE-Net is its inherent interpretability. By visualizing attention weights, the model provides "heatmaps" that align with clinical logic. For instance, in cases of Inferior Myocardial Infarction, the model correctly prioritizes leads II, III, and aVF—the exact leads a cardiologist would examine for that diagnosis.

Visualization of attention weights across 12 leads, highlighting the specific segments and channels that influenced the model's prediction.

This hierarchical mirroring ensures that the model's internal representations correspond to the scales at which human experts operate, fostering trust in AI-assisted diagnostics.

Conclusion and Future Work

While IMLE-Net sets a new standard for interpretable ECG analysis, future work will address data scarcity for rare MI subtypes and explore adaptive windowing for heart rate variability. The authors aim to further validate the model's explanations across a broader spectrum of cardiac pathologies to ensure robust clinical utility.

Summary updated

BibTeX
@inproceedings{reddy2021imle,
  author = {Likith Reddy and Vivek Talwar and Shanmukh Alle and Raju S. Bapi and U. Deva Priyakumar},
  title = {{IMLE-Net: An Interpretable Multi-level Multi-channel Model for ECG Classification}},
  booktitle = {SMC},
  year = {2021},
}
Figure