DR-net-Mamba: Selective State-Space Modeling for Long-Range ECG Time-Series Denoising

Basile Morel, Samuel Ruiperez-Campillo, Andreas P. Streich, Julia E. Vogt, Thomas HofmannarXiv 2026

TL;DR

DR-net-Mamba is a novel ECG denoising architecture that integrates selective state-space blocks (Mamba) into a convolutional UNet bottleneck. This approach enables long-range temporal modeling with linear complexity, significantly improving reconstruction fidelity and downstream diagnostic accuracy—particularly for context-sensitive pathologies like ST/T-segment changes—while remaining efficient enough for real-time clinical deployment.

What Problem Does This Paper Address?

Electrocardiogram (ECG) recordings are often plagued by non-stationary noise, such as muscle artifacts, electrode motion, and baseline wander. While deep learning has advanced denoising, existing architectures face a "trilemma" of limitations:

  1. Convolutional Neural Networks (CNNs): Have a limited receptive field, struggling to capture long-range temporal dependencies.
  2. Transformers: Capture global context but suffer from quadratic computational and memory scaling ($O(n^2)$) with sequence length, making them impractical for long ambulatory recordings.
  3. Diffusion Models: Offer high fidelity but incur prohibitive inference costs due to their iterative sampling nature.

The authors seek a solution that provides the long-range context of Transformers with the efficiency of CNNs to improve both signal reconstruction and the reliability of downstream clinical diagnoses.

Methods

The authors propose DR-net-Mamba, a two-stage architecture:

  • Stage 1 (UNet-Mamba): A 1D UNet encoder-decoder serves as the backbone. The key innovation is inserting three Mamba blocks at the bottleneck. Because the signal is downsampled 20x at this stage, Mamba can efficiently model long-range dependencies across the entire sequence with linear complexity ($O(n)$).
  • Stage 2 (Detail Restoration): An optional "DR-net" cascades after the first stage. This multi-branch network operates at full resolution to recover sharp morphological features (like QRS complexes) that might be smoothed over at the bottleneck.
  • Learnable Log-Compression: A specialized input layer fα(x) = sign(x) · log(1 + α |x|) normalizes the dynamic range, allowing the model to focus its capacity on morphological structure rather than amplitude variations.

The team evaluated both lead-agnostic models (one model for all leads) and lead-specific models (specialized instances for each of the 12 ECG leads).

Architecture of UNet-Mamba1-3B showing the integration of Mamba blocks at the convolutional bottleneck.

Datasets

The model was rigorously tested across three distinct cohorts:

  1. Synthetic Cohort: Generated using an ODE-based dynamical model to provide a "gold standard" clean ground truth for precise SNR/RMSE measurements.
  2. PTB-XL: A large clinical dataset of 21,799 12-lead ECGs used for both reconstruction and downstream diagnostic classification (44 pathology classes).
  3. European ST-T Database: Annotated ambulatory recordings used to evaluate performance on real-world ischemic signals.
  4. Noise Source: Realistic noise (baseline wander, muscle artifact, electrode motion) was sourced from the MIT-BIH Noise Stress Test Database (NSTDB).

Key Insights and Ideas

  • Long-Range Context as an Inductive Bias: The "Mamba advantage" grows with sequence length. On synthetic data with perfect regularity, the benefit grows monotonically. On clinical data, the benefit peaks around 10 seconds, suggesting that while long-range context helps, the natural variability of human heart rhythms (HRV) eventually limits the predictability of distant beats.
  • Morphology-Dependent Gains: Mamba provides the most significant boost for ST/T-change diagnoses. These are slow, broad waveforms whose interpretation depends heavily on the surrounding baseline. Conversely, for sharp, local features like QRS complexes, the convolutional backbone does most of the heavy lifting.
  • The Discrimination-Calibration Gap: Denoising consistently improves AUROC (discrimination). However, it can sometimes degrade calibration (Brier score) because the denoised signal might look slightly "unnatural" to a classifier trained only on clean data. The authors found that lead-specific denoising is the key to preserving both discrimination and calibration.

Key Results

  • Superior Reconstruction: DR-net-Mamba achieved the highest SNR and lowest RMSE across all datasets. On PTB-XL, it outperformed the best convolutional baseline (DR-net-IMUNet) by +0.83 dB SNR.
  • Clinical Utility: In downstream classification tasks, Mamba-based denoisers achieved the best macro AUROC and F1 scores.
  • Efficiency: The model processes a 10s ECG window in just 11.9 ms on a standard GPU, making it significantly faster than comparable high-performing baselines like MECGE and well-suited for real-time monitoring.
Reconstruction SNR comparison across synthetic, PTB-XL, and European ST-T datasets, showing DR-net-Mamba outperforming all baselines.

Limitations and Future Work

  • Ground-Truth Quality: Clinical datasets are never perfectly clean; residual artifacts in the "clean" reference can bias the MSE loss.
  • Spatial Correlations: The current pipeline denoises each lead independently. A future multi-lead architecture could exploit spatial correlations between the 12 leads to further improve accuracy and reduce the 12x training cost of lead-specific models.
  • Noise Scope: The study focused on four major noise types but did not cover artifacts like lead misplacement or pacemaker spikes.
  • Boundary Effects: The diminishing returns of Mamba beyond 10s on clinical data warrant further investigation to determine if this is due to biological signal limits or training protocol artifacts.

Summary updated

BibTeX
@misc{morel2026dr,
  author = {Basile Morel and Samuel Ruiperez-Campillo and Andreas P. Streich and Julia E. Vogt and Thomas Hofmann},
  title = {{DR-net-Mamba: Selective State-Space Modeling for Long-Range ECG Time-Series Denoising}},
  year = {2026},
  eprint = {2609.35634},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.35634},
}
Figure