Baseline Suppression in ECG-signals Lisette Harting.

Slides:



Advertisements
Similar presentations
Design of Digital IIR Filter
Advertisements

Nonrecursive Digital Filters
EE513 Audio Signals and Systems Digital Signal Processing (Synthesis) Kevin D. Donohue Electrical and Computer Engineering University of Kentucky.
ELEN 5346/4304 DSP and Filter Design Fall Lecture 8: LTI filter types Instructor: Dr. Gleb V. Tcheslavski Contact:
Filtering Filtering is one of the most widely used complex signal processing operations The system implementing this operation is called a filter A filter.
So far We have introduced the Z transform
Digital Signal Processing – Chapter 11 Introduction to the Design of Discrete Filters Prof. Yasser Mostafa Kadah
Sampling and quantization Seminary 2. Problem 2.1 Typical errors in reconstruction: Leaking and aliasing We have a transmission system with f s =8 kHz.
LINEAR-PHASE FIR FILTERS DESIGN
Chapter 8 FIR Filter Design
Sampling, Reconstruction, and Elementary Digital Filters R.C. Maher ECEN4002/5002 DSP Laboratory Spring 2002.
Nonlinear and Time Variant Signal Processing R.C. Maher ECEN4002/5002 DSP Laboratory Spring 2002.
Adaptive FIR Filter Algorithms D.K. Wise ECEN4002/5002 DSP Laboratory Spring 2003.
EE513 Audio Signals and Systems Wiener Inverse Filter Kevin D. Donohue Electrical and Computer Engineering University of Kentucky.
 Distortion – the alteration of the original shape of a waveform.  Function of distortion analyzer: measuring the extent of distortion (the o/p differs.
EE313 Linear Systems and Signals Fall 2010 Initial conversion of content to PowerPoint by Dr. Wade C. Schwartzkopf Prof. Brian L. Evans Dept. of Electrical.
1 QRS Detection Section Linda Henriksson BRU/LTL.
Normalised Least Mean-Square Adaptive Filtering
Inputs to Signal Generation.vi: -Initial Distance (m) -Velocity (m/s) -Chirp Duration (s) -Sampling Info (Sampling Frequency, Window Size) -Original Signal.
Introduction to Frequency Selective Circuits
Over-Sampling and Multi-Rate DSP Systems
EE513 Audio Signals and Systems Digital Signal Processing (Systems) Kevin D. Donohue Electrical and Computer Engineering University of Kentucky.
Lecture 1 Signals in the Time and Frequency Domains
Announcements Assignment 5 due tomorrow (or now)
„Bandwidth Extension of Speech Signals“ 2nd Workshop on Wideband Speech Quality in Terminals and Networks: Assessment and Prediction 22nd and 23rd June.
Synthesis advanced techniques. Other modules Synthesis would be fairly dull if we were limited to mixing together and filtering a few standard waveforms.
AUDIO COMPRESSION msccomputerscience.com. The process of digitizing audio signals is called PCM PCM involves sampling audio signal at minimum rate which.
MATLAB for Signal Processing The MathWorks Inc. Natick, MA USA Filter Design.
IIR Filter design (cf. Shenoi, 2006) The transfer function of the IIR filter is given by Its frequency responses are (where w is the normalized frequency.
Automatic Ballistocardiogram (BCG) Beat Detection Using a Template Matching Approach Adviser: Ji-Jer Huang Presenter: Zhe-Lin Cai Date:2014/12/24 30th.
Professor Walter W. Olson Department of Mechanical, Industrial and Manufacturing Engineering University of Toledo Loop Shaping.
The Physical Layer Lowest layer in Network Hierarchy. Physical transmission of data. –Various flavors Copper wire, fiber optic, etc... –Physical limits.
Unit-V DSP APPLICATIONS. UNIT V -SYLLABUS DSP APPLICATIONS Multirate signal processing: Decimation Interpolation Sampling rate conversion by a rational.
Professor A G Constantinides 1 Interpolation & Decimation Sampling period T, at the output Interpolation by m: Let the OUTPUT be [i.e. Samples exist at.
Chapter 6. Effect of Noise on Analog Communication Systems
EE513 Audio Signals and Systems
Chapter 7 Finite Impulse Response(FIR) Filter Design
CHAPTER 3 DELTA MODULATION
ECE 8443 – Pattern Recognition ECE 8423 – Adaptive Signal Processing Objectives: Derivation Computational Simplifications Stability Lattice Structures.
1 Introduction to Digital Filters Filter: A filter is essentially a system or network that selectively changes the wave shape, amplitude/frequency and/or.
Quiz 1 Review. Analog Synthesis Overview Sound is created by controlling electrical current within synthesizer, and amplifying result. Basic components:
Copyright 2004 Ken Greenebaum Introduction to Interactive Sound Synthesis Lecture 20:Spectral Filtering Ken Greenebaum.
ECE 4710: Lecture #16 1 Bandpass Spectrum  Spectrum of bandpass signal is directly related to spectrum of complex envelope  We have already shown that.
EE445S Real-Time Digital Signal Processing Lab Spring 2014 Lecture 16 Quadrature Amplitude Modulation (QAM) Receiver Prof. Brian L. Evans Dept. of Electrical.
Professors: Eng. Diego Barral Eng. Mariano Llamedo Soria Julian Bruno
(c) 2002 University of Wisconsin, CS 559
Signal Analyzers. Introduction In the first 14 chapters we discussed measurement techniques in the time domain, that is, measurement of parameters that.
July 23, BSA, a Fast and Accurate Spike Train Encoding Scheme Benjamin Schrauwen.
BRAIN TISSUE IMPEDANCE ESTIMATION Improve the Brain’s Evoked Potential’s source Temporal and Spatial Inverse Problem Improve the Brain Tissue Impedance.
Lecture 09b Finite Impulse Response (FIR) Filters
EC1358 – DIGITAL SIGNAL PROCESSING
Real time DSP Professors: Eng. Julian Bruno Eng. Mariano Llamedo Soria.
Lattice Struture.
EEE4176 Applications of Digital Signal Processing
Vocoders.
QRS Detection Linda Henriksson 1.
Design of Digital Filter Bank and General Purpose Digital Shaper
Sampling rate conversion by a rational factor
LINEAR-PHASE FIR FILTERS DESIGN
Instructor :Dr. Aamer Iqbal Bhatti
Ideal Filters One of the reasons why we design a filter is to remove disturbances Filter SIGNAL NOISE We discriminate between signal and noise in terms.
Quadrature Amplitude Modulation (QAM) Transmitter
Chapter 6 Discrete-Time System
Chapter 7 Finite Impulse Response(FIR) Filter Design
8.7 Gated Integration instrument description
Uses of filters To remove unwanted components in a signal
Chapter 9 Advanced Topics in DSP
Chapter 7 Finite Impulse Response(FIR) Filter Design
Fixed-point Analysis of Digital Filters
Real-time Uncertainty Output for MBES Systems
Presentation transcript:

Baseline Suppression in ECG-signals Lisette Harting

Contents Introduction to the problem –Problem approach ECG analysis Common used solutions & ideas Results Conclusions and recommendations Questions contents - introduction - approach - ECG - literature - results - conclusions

Introduction to the problem contents - introduction - approach - ECG - literature - results - conclusions

Function of the heart Distribute oxygen and nutrition contents - introduction - approach - ECG - literature - results - conclusions

Electrophysiology

Pathology Bad conductance of signal Second pacer also initiates contraction Needs to be destructed: destructor 2 types of operation: –Open chest –Minimal surgery (catheters, ablation) contents - introduction - approach - ECG - literature - results - conclusions

Measuring ECG/EG Where does the ECG origin? –Chest (only) resistive  potentials on the skin ~ potentials on heart * factor Three deductions of ECG contents - introduction - approach - ECG - literature - results - conclusions

Measuring ECG/EG Extremity leads –Einthoven –Goldberger contents - introduction - approach - ECG - literature - results - conclusions

Measuring ECG/EG Precordial leads contents - introduction - approach - ECG - literature - results - conclusions

Application Diagnostic system –Exercise ECG Operation room system contents - introduction - approach - ECG - literature - results - conclusions

Baseline drift In exercise ECG caused by –Movements of the patient –Breathing –Changing electrode – skin contact In operation room merely caused by –Breathing –Ablation contents - introduction - approach - ECG - literature - results - conclusions

Assignment Design of baseline drift filter for operation-room ECG –With test-signals for breathing originated baseline drift Later to be used in exercise ECG and other applications contents - introduction - approach - ECG - literature - results - conclusions

Specifications Input: –Multiple channels (6 to > 12) –Already first order high pass-filtered with cutoff frequency 0.5 Hz or 0.05 Hz contents - introduction - approach - ECG - literature - results - conclusions

Desired output: –Cutoff frequency 0.5 Hz –0.5 Hz and lower: minimal 6 dB attenuation –Delay maximal 120 ms –Minimize signal to noise ratio –Minimize distortion of signal –Must work real time on a normal computer contents - introduction - approach - ECG - literature - results - conclusions

Problem approach contents - introduction - approach - ECG - literature - results - conclusions

Work Literature study Oscillation filter on synthetic test signal IIR / FIR Analyzed experimental signals Made for-backward filter with heart rate adaptation Demonstration program contents - introduction - approach - ECG - literature - results - conclusions

To do: –Write report –Optimize chosen filter further –Work out theoretical problem No time for: –Adaptive filters contents - introduction - approach - ECG - literature - results - conclusions

ECG-signal analysis contents - introduction - approach - ECG - literature - results - conclusions

Time domain contents - introduction - approach - ECG - literature - results - conclusions

PSD contents - introduction - approach - ECG - literature - results - conclusions

SNR Signal to noise ratio (from PSD) –S/N = 10 * 10log(Ps/Pn) Signal –Heart rate and higher frequencies Noise –Rest of signal Compared qualities of the signals from the 19 experiments contents - introduction - approach - ECG - literature - results - conclusions

Heartrate Varied between 25 and 35 Was detected correctly 100% by the algorithm (to be discussed later) Not tested with ill patients contents - introduction - approach - ECG - literature - results - conclusions

Common solutions contents - introduction - approach - ECG - literature - results - conclusions

Filters Idea behind hp digital filters: –Out = In(delayed) – In(filtered) low pass filter delay + - contents - introduction - approach - ECG - literature - results - conclusions

Average based filters –Moving average filters (box) –Triangular FIR-filter With smart size of window to be able to use shifting instead of division after adding FIR –May be linear phase –But need large calculation power contents - introduction - approach - ECG - literature - results - conclusions

Bidirectional filters Input hardware filter is reversed in time and sampled Symmetric filter (zero phase shift) Problem: fixed cutoff frequency contents - introduction - approach - ECG - literature - results - conclusions

Incrementally changing filter Incrementally changing filter for QRS- complex and rest of ECG-signal contents - introduction - approach - ECG - literature - results - conclusions

Slew rate limiter slew rate limiter –Against fast increase of baseline drift (optimize step response) –Limit rising and falling rate of the signal contents - introduction - approach - ECG - literature - results - conclusions

Other solutions contents - introduction - approach - ECG - literature - results - conclusions

Heart rate detection Simple algorithm: –Derivative < minimal value  count+1 –Derivative > minimal value  reset count –If count > limit  QRS-complex detected reset count pause detection algorithm 100 ms adjust cutoff frequency filter –Time between 2 complexes = heart rate contents - introduction - approach - ECG - literature - results - conclusions

Envelope method Baseline drift estimation: –envelope around input signal –Estimation is mean of the envelope Idea: –Use information about ECG phase –to correct for distortion of ECG –based on (measured) phase dependent distortion of a pure ECG-signal contents - introduction - approach - ECG - literature - results - conclusions

Adaptive oscillator Principle: –Suppress ECG-signal (SLR or lp-filter) –After SLR-interval: average is BLD- estimation –Use 2 BLD-estimates to predict 3 rd (IIR): d(n) = a(n) * d(n-w) – d(n-2w) –Update ‘a’ a(n+1) = a(n) + [d_real(n) – d_meas(n)] / d(n-1) contents - introduction - approach - ECG - literature - results - conclusions

Cross-Correlation filter Principle –Do not adapt filters one by one, but use knowledge about other signals Why? –There is a high correlation between the signals contents - introduction - approach - ECG - literature - results - conclusions

Cross-correlation filter Why not? –Fast (10 s) and high (90%) changes of the correlation between the signals –Low frequencies need a lot of time & memory to calculate correlation –Non-linear relation between signals –Heart rate would need to be filtered out too contents - introduction - approach - ECG - literature - results - conclusions

For-backward filtering Principle –Minimize calculation time decimation IIR-filtering –Linearize and increase steepness IIR-filter by filtering also backward contents - introduction - approach - ECG - literature - results - conclusions

For-backward filtering Working: –Prefilter signal with cutoff freq. 10 Hz. –Decimate signal with 50 to 40 Hz. –Filter signal again with cutoff freq. 0.5 Hz. –Interpolate signal –Filter out high frequency components introduced by interpolated signals contents - introduction - approach - ECG - literature - results - conclusions

For-backward filtering Filtering: –IIR –Continuously forward –Backward over window window > max. delay filter for all frequencies last filtered sample is filtered value –Apply together with heart rate adaptation contents - introduction - approach - ECG - literature - results - conclusions

Which can be tried Adaptive oscillator FIR IIR For-backward filter + Heart rate adaptive filter Envelope (but no time) contents - introduction - approach - ECG - literature - results - conclusions

Results contents - introduction - approach - ECG - literature - results - conclusions

Adaptive oscillator The adaptive oscillator was not stable Step-adaptation of parameters -in order to stabilize- deformed the shape of the ECG- signal Because of fast changes of sinusoid  unstable Non-linear Does not work when other noise is present contents - introduction - approach - ECG - literature - results - conclusions

FIR Principle –The ideal response of an analogue filter is truncated –Length: half (180 degrees) cutoff frequency 0.5 Hz: 1 sec; 0.05 Hz: 10 sec. It is the standard solution But delay >= 1 second contents - introduction - approach - ECG - literature - results - conclusions

Moving average (2000 points) contents - introduction - approach - ECG - literature - results - conclusions

Chebyshev (1000-points; 10dB sidelobe-supression) contents - introduction - approach - ECG - literature - results - conclusions

IIR –Fast (minimal one sample) But –phase shift causes Distortion of ECG-signal The same delay of the signal contents - introduction - approach - ECG - literature - results - conclusions

Time-domain contents - introduction - approach - ECG - literature - results - conclusions

Frequency domain contents - introduction - approach - ECG - literature - results - conclusions

Filters Prefilter before decimation contents - introduction - approach - ECG - literature - results - conclusions

Heart rate filter contents - introduction - approach - ECG - literature - results - conclusions

SNR SNR-improvement is quite high But for signals with little noise, the SNR improvement can be negative

Distorsion contents - introduction - approach - ECG - literature - results - conclusions

Step response contents - introduction - approach - ECG - literature - results - conclusions

Calculation power Depend on window width (‘win’) decimation factor (‘dec’) Decimation filter forward:1 backward:1 Filter forward: 1/dec backward:win/dec Interpolationforward1 backwarddec TOTAL = 3 + (win + dec + 1)/dec contents - introduction - approach - ECG - literature - results - conclusions

Delay (samples) Decimation filter forward:1 backward:dec Filter forward: dec backward:dec*win Zero order interpolation0.5 * dec Interpolationforward1 backwarddec TOTAL = 2 + (win + 3.5)*dec (samples) contents - introduction - approach - ECG - literature - results - conclusions

TOTAL = 2 + (win + 3.5)*dec (samples) Optimal: –win = 13 (minimal) –dec = 40 This makes total: –( *40) / 2000 = 662 / 2000 = sec. contents - introduction - approach - ECG - literature - results - conclusions

Demonstration..\Program contents - introduction - approach - ECG - literature - results - conclusions

Demonstration contents - introduction - approach - ECG - literature - results - conclusions

Conclusions and recommendations contents - introduction - approach - ECG - literature - results - conclusions

Conclusions Heart rhythm adaptation works good, in this case Heart rate filter is working, but needs to be improved contents - introduction - approach - ECG - literature - results - conclusions

Recommendations The heart-rate filter should be tested on more data: Does the simple heart rate detection system work –in all situations? –on all patients? It needs to be improved for e.g. systoles en PVC’s contents - introduction - approach - ECG - literature - results - conclusions

Automatically calculate minimal window- width Introduce 2 delay-modes Optimize parameters Quantize distortion Use only analogue low-pass filter Try other bidirectional filters (same as our filter) contents - introduction - approach - ECG - literature - results - conclusions

Questions!