# xGNN4MI: explainability of graph neural networks in 12-lead electrocardiography for cardiovascular disease classification

**Authors:** Miriam Cindy Maurer, Philip Hempel, Kristin Elisabeth Steinhaus, Hryhorii Chereda, Marcus Vollmer, Dagmar Krefting, Nicolai Spicher, Anne-Christin Hauschild

PMC · DOI: 10.1038/s41746-026-02367-1 · NPJ Digital Medicine · 2026-02-06

## TL;DR

This paper introduces xGNN4MI, an open-source framework for interpretable AI in ECG modeling to improve cardiovascular disease diagnosis.

## Contribution

The novel contribution is an XAI-integrated GNN framework for interpretable CVD prediction in 12-lead ECGs.

## Key findings

- The ECG-GNN models achieved good performance in CVD classification tasks.
- XAI analysis revealed clinically meaningful insights, such as differentiating types of myocardial infarction.

## Abstract

The clinical deployment of artificial intelligence (AI) solutions for assessing cardiovascular disease (CVD) risk in 12-lead electrocardiography (ECG) is hindered by limitations in interpretability and explainability. To address this, we present xGNN4MI, an open-source framework for graph neural networks (GNNs) in ECG modeling for interpretable CVD prediction. Our framework facilitates modeling clinically relevant spatial relationships between ECG leads and their temporal dynamics. We integrated explainable AI (XAI) and developed a task-specific XAI evaluation and visualization workflow to identify ECG leads crucial to the model’s decision-making process, enabling a systematic comparison with established clinical knowledge. We evaluated xGNN4MI on two challenging tasks: diagnostic superclass classification and localization of myocardial infarction. Our findings show that the interpretable ECG-GNN models demonstrate good performance across the tasks. XAI analysis revealed clinically meaningful training effects, such as differentiating between anteroseptal and inferior myocardial infarction. Our work demonstrates the potential of ECG-GNNs for providing trustworthy and interpretable AI-based CVD diagnosis.

## Linked entities

- **Diseases:** cardiovascular disease (MONDO:0004995), myocardial infarction (MONDO:0005068)

## Full-text entities

- **Diseases:** CVD (MESH:D002318), anteroseptal and inferior myocardial infarction (MESH:D056988), myocardial infarction (MESH:D009203)

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/PMC13021949/full.md

## Figures

6 figures with captions in the complete paper: https://tomesphere.com/paper/PMC13021949/full.md

## References

24 references — full list in the complete paper: https://tomesphere.com/paper/PMC13021949/full.md

---
Source: https://tomesphere.com/paper/PMC13021949