MINA: Multilevel Knowledge-Guided Attention for Modeling Electrocardiography Signals

Shenda Hong, Cao Xiao, Tengfei Ma, Hongyan Li, Jimeng Sun

Introduction

Electrocardiography (ECG) is a fundamental tool for cardiac monitoring, yet its automated interpretation remains challenging. While deep learning models like Convolutional Neural Networks (CNNs) and Recurrent Neural Networks (RNNs) have demonstrated high accuracy, they often operate as "black boxes," lacking the transparency required for clinical trust. Furthermore, real-world ECG signals are frequently degraded by noise from muscle movement or respiration, which can lead to diagnostic errors in models that rely on precise signal segmentation.

To address these challenges, the MINA (Multilevel kNowledge-guided Attention) framework was developed. MINA bridges the gap between high-performance deep learning and clinical expertise by incorporating medical domain knowledge into a multilevel attention mechanism.

Methods: Multilevel Knowledge-Guided Architecture

The core of MINA is a hierarchical architecture designed to mimic the diagnostic process of a cardiologist. The model processes ECG signals across three distinct levels: frequency, beat, and rhythm.

The MINA architecture integrates frequency transformation, CNNs for beat features, and Bi-LSTMs for rhythm dependencies, all guided by domain-specific attention.
  1. Frequency-Level: The raw signal is decomposed into multiple frequency bands using FIR filters. This allows the model to isolate clean signal components from common noise sources like baseline wander.
  2. Beat-Level: Within each frequency band, a CNN extracts local morphological features. This level uses "Beat Attention," guided by signal derivatives to help the model focus on sharp transitions like the QRS complex.
  3. Rhythm-Level: The extracted features are processed by a Bidirectional LSTM (Bi-LSTM) to capture long-term temporal dependencies. "Rhythm Attention" is guided by segment variance, aiding in the detection of irregular patterns characteristic of conditions like Atrial Fibrillation (AF).

Key Insights: Aligning AI with Clinical Features

A major strength of MINA is its inherent interpretability. By using "Knowledge-Guided Attention," the model doesn't just learn statistical correlations; it is nudged to focus on features that are clinically significant.

MINA analyzes ECG signals at the beat, rhythm, and frequency levels, corresponding to the specific patterns clinicians look for when diagnosing heart disease.
  • Interpretability: Qualitative analysis shows that MINA's attention weights align with medical hallmarks of AF, such as the absence of P-waves and irregular RR intervals.
  • Noise Resilience: By processing signals across multiple frequency channels, the model can dynamically shift its attention to cleaner bands when interference is present, making it significantly more robust than single-channel models.
  • Segmentation-Free: Unlike traditional methods that require perfect R-peak detection, MINA utilizes a sliding window approach, ensuring stability even when signal quality is poor.

Results and Performance

The framework was evaluated on the PhysioNet Challenge 2017 dataset, which contains over 8,500 ECG recordings. MINA achieved a state-of-the-art Precision-Recall AUC (PR-AUC) of 0.9436, representing a 5.51% improvement over the best baseline models. Beyond raw performance, the model demonstrated superior stability under simulated noise conditions, maintaining high diagnostic accuracy where standard CNN and CRNN architectures failed.

Conclusion

MINA represents a significant step toward deployable AI in cardiology. By integrating domain knowledge into a multilevel attention framework, it provides a robust, high-performance, and interpretable solution for automated ECG analysis. Future work will explore extending this framework to a broader range of cardiac pathologies and integrating multimodal data from electronic health records.

Summary updated

BibTeX
@inproceedings{hong2019mina,
  author = {Shenda Hong and Cao Xiao and Tengfei Ma and Hongyan Li and Jimeng Sun},
  title = {{MINA: Multilevel Knowledge-Guided Attention for Modeling Electrocardiography Signals}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2019},
  doi = {10.24963/ijcai.2019/816},
}
Figure