Kalman-based Spectro-Temporal ECG Analysis using Deep Convolutional Networks for Atrial Fibrillation Detection

Zheng Zhao, Simo Särkkä, Ali Bahrami Rad

Abstract

Atrial Fibrillation (AF) detection is a critical task in cardiovascular health, yet traditional automated methods often struggle with the resolution trade-offs of standard spectral analysis. This paper introduces a hybrid framework that combines Bayesian signal processing with deep learning. By utilizing Kalman filters to generate high-resolution "spectro-temporal" images, the authors provide a modified DenseNet architecture with richer input data. The proposed approach achieves a state-of-the-art F1 score of 80.24% on the PhysioNet 2017 dataset, demonstrating superior performance over standard Short-Time Fourier Transform (STFT) and Continuous Wavelet Transform (CWT) methods.

Introduction

Atrial Fibrillation is a common heart arrhythmia associated with a significantly increased risk of stroke. While automated detection is essential for large-scale screening, it remains technically challenging. Traditional approaches typically rely on hand-crafted features, such as RR-interval variability, which require significant domain expertise. Conversely, end-to-end deep learning models often operate on raw 1D signals, which may not effectively capture the complex, time-varying frequency patterns characteristic of AF.

A primary limitation identified by the authors is the "uncertainty principle" of signal processing, where standard tools like STFT or CWT suffer from inherent resolution trade-offs between time and frequency. To address this, the authors developed a high-resolution, time-varying spectral representation—a "spectro-temporal" map—designed to preserve the intricate details of ECG signals better than conventional spectrograms.

Methods

The proposed pipeline consists of two main stages: feature engineering via Kalman filtering and classification using a custom Convolutional Neural Network (CNN).

Bayesian Spectro-Temporal Representation (FourierKS)

Instead of using fixed windows, the ECG signal is modeled as a Fourier series with time-varying coefficients. A Kalman filter and smoother are employed to estimate these coefficients, allowing the spectrum to evolve smoothly over time. This approach avoids the "blocky" artifacts common in STFT.

Input multi-sinusoidal signal y(t) used to validate frequency resolution.

The Oscillator Model (OscKS)

To improve computational efficiency for long recordings, the authors derived an alternative model based on stochastic differential equations (SDEs). By treating the heart rhythm as a system of quasi-periodic oscillators, they utilize a stationary (steady-state) Kalman filter. This allows for solving the Algebraic Riccati Equation once, resulting in a ~10x speedup over the standard FourierKS method.

Dense18+ Classifier

The resulting 2D spectro-temporal maps are fed into a modified DenseNet-18. Key modifications include the removal of the initial downsampling layer to preserve fine-grained spectral details and the use of combined global max and average pooling to capture both peak activations and general trends.

Results and Discussion

The authors validated their approach using both simulated data and the PhysioNet/CinC Challenge 2017 dataset.

High-Resolution Spectral Analysis

Validation on simulated multi-sinusoidal signals confirmed that the Kalman-based methods provide significantly higher frequency resolution and lower noise compared to STFT, CWT, or autoregressive models. As shown in the spectro-temporal map below, the proposed method recovers sharp frequency tracks that are typically blurred in standard transforms.

High-resolution spectro-temporal representation of the simulated signal generated by the proposed Kalman-based approach.

Performance on Clinical Data

The FourierKS + Dense18+ model achieved an overall F1 score of 80.24%, outperforming STFT (77.67%) and CWT (79.63%) benchmarks. A key insight was the visual distinction in the 2D maps: normal rhythms exhibit sharp, distinct edges at QRS complexes, while AF rhythms appear "blurred" due to irregular RR intervals. This distinction facilitates more effective learning by the CNN.

Conclusion

This work demonstrates that integrating classical Bayesian filters with deep learning architectures can significantly enhance the detection of complex arrhythmias like Atrial Fibrillation. While the model is highly effective, future work will focus on improving robustness to extreme noise and exploring frequency-dependent length scales to further refine spectral resolution. Additionally, the reliance on accurate QRS detection remains a dependency that could be addressed through more robust segmentation techniques.

Summary updated

BibTeX
@article{zhao2020kalman,
  author = {Zheng Zhao and Simo Särkkä and Ali Bahrami Rad},
  title = {{Kalman-based Spectro-Temporal ECG Analysis using Deep Convolutional Networks for Atrial Fibrillation Detection}},
  journal = {J. Signal Process. Syst.},
  year = {2020},
  doi = {10.1007/s11265-020-01531-4},
}
Figure