Downloads · 30 days
0
ahczhg/ecg-mamba2-mambalrp-noise-comparison
ecg-mamba2-mambalrp-noise-comparison is a machine learning model from ahczhg. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
A comprehensive implementation comparing three noise handling methods with MambaLRP explainability for ECG classification using Mamba-2 architecture on the PTB-XL dataset.
Downloads · 30 days
0
Access
Public
Updated Nov 26, 2025
Repo size
—
Likes
1
Public
Click a slice to open those files.
.ipynb2.3 MB · 100%
From the Hugging Face model README
A comprehensive implementation comparing three noise handling methods with MambaLRP explainability for ECG classification using Mamba-2 architecture on the PTB-XL dataset.
This project provides three main components for ECG signal classification research:
Compares two Mamba-2 based architectures for ECG classification:
Evaluates three noise handling strategies using the Baseline ECG-Mamba architecture:
Implements Layer-wise Relevance Propagation (LRP) adapted for Mamba architecture to visualize which parts of ECG signals contribute most to model predictions.
This project uses the PTB-XL dataset from PhysioNet:
torch
mamba-ssm>=2.0.0
causal-conv1d>=1.2.0
wfdb
pandas
numpy
scikit-learn
matplotlib
tqdm
Note: mamba-ssm requires CUDA. An LSTM fallback is provided for CPU-only environments.
pip install torch
pip install causal-conv1d>=1.2.0
pip install mamba-ssm
pip install wfdb pandas numpy scikit-learn matplotlib tqdm
The main notebook ECG_Mamba2_Architecture_Comparison.ipynb contains:
The notebook compares:
If you use this code, please cite:
@misc{ecg-mamba2-mambalrp-noise,
title={ECG-Mamba2: MambaLRP Explainability and Noise Handling Comparison},
year={2024},
url={https://github.com/skkuhg/ecg-mamba2-mambalrp-noise-comparison}
}
This project is licensed under the MIT License - see the LICENSE file for details.