An Adaptive Multiscale ECG Delineation Framework for Accurate P-QRS-T Wave Detection Under Noise Using MATLAB/Simulink

We present a fully block-based, adaptive multiscale framework that detects the R peak, P wave, T wave and QRS onset/offset of the electrocardiogram (ECG) and keeps working when the recording is contaminated by muscle (EMG) noise, baseline wander and 50 Hz powerline interference. The detector is a dyadic à trous wavelet bank (quadratic spline, scales 2¹–2⁵) followed by decaying peak envelopes and a spike-clipped noise-floor tracker that set the detection thresholds continuously. R peaks are located by zero-crossings of scale 2² inside an adaptive QRS gate derived from scale 2³. T and P waves are located by zero-crossings of either polarity at scale 2⁵ inside beat-relative search windows, so inverted and biphasic waves are handled. The whole algorithm uses only standard Simulink blocks (FIR filters, delays, comparators, logic gates, integrators), with no MATLAB Function or S-Function blocks, so it runs at a fixed step and is a direct candidate for HDL or embedded code generation. An in-model scoring chain computes sensitivity and positive predictive value against expert annotations with a ±50 ms tolerance. On record sel100 of the QT Database (lead MLII, 250 Hz), the detector reaches F1 = 1.00 for R and P and about 0.93 for T on clean data. Under EMG noise up to 0.10 mV, R detection stays at F1 ≥ 0.99 and P detection at F1 ≥ 0.95. Under a combined disturbance (EMG 0.05 mV, baseline wander 0.3 mV, powerline 0.05 mV), R stays at 1.00, P falls to about 0.88 and T to about 0.65, which identifies T-wave detection as the limiting step.

Authors

Institutions

Publication Details

Journal
Research Square
Published
2026-11-30
DOI
https://doi.org/10.21203/rs.3.rs-11890364/v1
Primary Topic
ECG Monitoring and Analysis
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
preprint

An Adaptive Multiscale ECG Delineation Framework for Accurate P-QRS-T Wave Detection Under Noise Using MATLAB/Simulink

Sadia Mostofa
Research Square
ECG Monitoring and Analysis
preprint

An Adaptive Multiscale ECG Delineation Framework for Accurate P-QRS-T Wave Detection Under Noise Using MATLAB/Simulink

Sadia Mostofa
preprint en

Abstract

We present a fully block-based, adaptive multiscale framework that detects the R peak, P wave, T wave and QRS onset/offset of the electrocardiogram (ECG) and keeps working when the recording is contaminated by muscle (EMG) noise, baseline wander and 50 Hz powerline interference. The detector is a dyadic à trous wavelet bank (quadratic spline, scales 2¹–2⁵) followed by decaying peak envelopes and a spike-clipped noise-floor tracker that set the detection thresholds continuously. R peaks are located by zero-crossings of scale 2² inside an adaptive QRS gate derived from scale 2³. T and P waves are located by zero-crossings of either polarity at scale 2⁵ inside beat-relative search windows, so inverted and biphasic waves are handled. The whole algorithm uses only standard Simulink blocks (FIR filters, delays, comparators, logic gates, integrators), with no MATLAB Function or S-Function blocks, so it runs at a fixed step and is a direct candidate for HDL or embedded code generation. An in-model scoring chain computes sensitivity and positive predictive value against expert annotations with a ±50 ms tolerance. On record sel100 of the QT Database (lead MLII, 250 Hz), the detector reaches F1 = 1.00 for R and P and about 0.93 for T on clean data. Under EMG noise up to 0.10 mV, R detection stays at F1 ≥ 0.99 and P detection at F1 ≥ 0.95. Under a combined disturbance (EMG 0.05 mV, baseline wander 0.3 mV, powerline 0.05 mV), R stays at 1.00, P falls to about 0.88 and T to about 0.65, which identifies T-wave detection as the limiting step.

Research Square
Varendra University (BD)
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