Advanced ECG Signal Analysis for Atrial Fibrillation Detection Using an LSTM Network

Atrial fibrillation (AF) is a heart rhythm disturbance affecting approximately 1% of the global population, being the most common cardiac anomaly. Visual inspection of extensive electrocardiograms (ECGs), patient variabilities, and long-term dependencies make manual AF diagnosis difficult and heavily reliant on a cardiologist’s expertise. Aiming to aid medical diagnosis, this study develops: an innovative R-peak detector to correct database annotation inaccuracies, and machine learning classifiers to enhance AF detection from long-term raw ECGs. The R-peak algorithm combines self-convolved windows filtering, signal derivatives, Shannon energy, and the Hilbert transform. Using the MIT-BIH Atrial Fibrillation database, extracted ECG features included RR intervals (RRi) durations, Jitter and Shimmer disturbances, Shannon and logarithmic energy entropies, instantaneous frequencies, spectral entropy and Wavelet Scattering Transform (WST) coefficients. These were evaluated using Multi-Layer Perceptron (MLP) and Long Short-Term Memory (LSTM) networks. To our knowledge, this is one of the first times that acoustically inspired parameters, Jitter and Shimmer, have described ECG signals. The proposed R-peak algorithm achieved a high accuracy of 98.95%. For AF classification, the best accuracy results were 91.96% for MLP and 98.17% for LSTM, which matches typical state-of-the-art values (≈ 98.00%). Findings indicate that RRi remained the most discriminatory feature, while incorporating P- and T-waves entropies and Jitter significantly enhances performance. Besides LSTM’s superior performance, MLP approaches validate that precise feature engineering allows simpler models to approach state-of-the-art results, highlighting their potential on times of deep learning overuse and of searching for explainable AIs in clinical practice.

Authors

Publication Details

Journal
Preprints.org
Published
2026-11-02
DOI
https://doi.org/10.20944/preprints202611.0053.v1
Primary Topic
ECG Monitoring and Analysis
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
preprint

Advanced ECG Signal Analysis for Atrial Fibrillation Detection Using an LSTM Network

Pedro Henrique Borghi, João Paulo Teixeira, Diamantino Rui Freitas
1 links
Preprints.org
ECG Monitoring and Analysis
preprint

Advanced ECG Signal Analysis for Atrial Fibrillation Detection Using an LSTM Network

Pedro Henrique Borghi, João Paulo Teixeira, Diamantino Rui Freitas
preprint en

Abstract

Atrial fibrillation (AF) is a heart rhythm disturbance affecting approximately 1% of the global population, being the most common cardiac anomaly. Visual inspection of extensive electrocardiograms (ECGs), patient variabilities, and long-term dependencies make manual AF diagnosis difficult and heavily reliant on a cardiologist’s expertise. Aiming to aid medical diagnosis, this study develops: an innovative R-peak detector to correct database annotation inaccuracies, and machine learning classifiers to enhance AF detection from long-term raw ECGs. The R-peak algorithm combines self-convolved windows filtering, signal derivatives, Shannon energy, and the Hilbert transform. Using the MIT-BIH Atrial Fibrillation database, extracted ECG features included RR intervals (RRi) durations, Jitter and Shimmer disturbances, Shannon and logarithmic energy entropies, instantaneous frequencies, spectral entropy and Wavelet Scattering Transform (WST) coefficients. These were evaluated using Multi-Layer Perceptron (MLP) and Long Short-Term Memory (LSTM) networks. To our knowledge, this is one of the first times that acoustically inspired parameters, Jitter and Shimmer, have described ECG signals. The proposed R-peak algorithm achieved a high accuracy of 98.95%. For AF classification, the best accuracy results were 91.96% for MLP and 98.17% for LSTM, which matches typical state-of-the-art values (≈ 98.00%). Findings indicate that RRi remained the most discriminatory feature, while incorporating P- and T-waves entropies and Jitter significantly enhances performance. Besides LSTM’s superior performance, MLP approaches validate that precise feature engineering allows simpler models to approach state-of-the-art results, highlighting their potential on times of deep learning overuse and of searching for explainable AIs in clinical practice.

Preprints.org
Good health and well-being
ECG Monitoring and Analysis
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Laika access coming soon