Nonlinear high pass filter for R-wave detection in ECG signal
Related Experiment Video
Updated: Oct 31, 2026

BrainBeats as an Open-Source EEGLAB Plugin to Jointly Analyze EEG and Cardiovascular Signals
Published on: April 26, 2024
L Keselbrener1, M Keselbrener, S Akselrod
1Abramsom Center for Medical Physics, Sackler Faculty of Exact Sciences, Tel Aviv University, Israel.
Abstract:
A simple and easily implemented method for R-wave detection from ECG signals is presented. The method is based on the subtraction of a filtered version of the signal. The filter we used is a nonlinear median filter. The median filter is applied to the ECG signal. It results in a smoothed version of the signal, without any reminder of the R waves. This smoothed signal is then subtracted from the original and the resulting signal presents undistorted R-waves, without baseline drift. A simple threshold detection can then be performed on the filtered signal. Results are presented for simulated signals, with sinusoidal and step baseline drifts, as well as ECG complex shape change. The detection is accurate and the average error we obtained for 300 s length signals was of the order of 10(-8)s, for RR intervals of 1 s. Results are also presented for a real experimental signal with strong baseline drift, and the accuracy of the detection can be observed.
More Related Videos
10:23Equipment Setup and Artifact Removal for Simultaneous Electroencephalogram and Functional Magnetic Resonance Imaging for Clinical Review in Epilepsy
Published on: June 23, 2023
10:22Interictal High Frequency Oscillations Detected with Simultaneous Magnetoencephalography and Electroencephalography as Biomarker of Pediatric Epilepsy
Published on: December 6, 2016
Related Concept Videos
Passive Filters
Low-Pass Filters
Low-pass filters are designed to transmit signals with frequencies lower than the cutoff frequency, ωc, and attenuate those above it. The cutoff frequency...
Instrumentation Amplifier
To overcome this challenge, an ECG machine utilizes an instrumentation amplifier. This specialized amplifier is...
Active Filters
ECG Interpretation of Rhythms
Components of the Electrocardiogram
The primary components of a normal ECG waveform in Normal sinus rhythm(NSR) include the P wave, PR interval, QRS complex, ST segment, T wave, and occasionally a U wave.
ECG waveforms are divided by vertical and horizontal lines at standard intervals.
The horizontal axis measures time and rate, and the vertical axis measures amplitude or voltage. When...
Second-order Op Amp Circuits
The analysis of such circuits follows a systematic approach, similar to the second-order RLC circuits. In practical scenarios, bulky inductors are rarely employed due to their size and weight. This means...
Parallel Resonance