Biosignal filtering and artifact rejection. Biosignal processing I, S Autumn 2017

Similar documents
Biosignal filtering and artifact rejection. Biosignal processing, S Autumn 2012

Digital Filtering: Realization

HIGH FREQUENCY FILTERING OF 24-HOUR HEART RATE DATA

4. Design of Discrete-Time Filters

A Lower Transition Width FIR Filter & its Noise Removal Performance on an ECG Signal

Biomedical Instrumentation B2. Dealing with noise

PHYS225 Lecture 15. Electronic Circuits


DIGITAL FILTERS. !! Finite Impulse Response (FIR) !! Infinite Impulse Response (IIR) !! Background. !! Matlab functions AGC DSP AGC DSP

(i) Understanding of the characteristics of linear-phase finite impulse response (FIR) filters

Infinite Impulse Response (IIR) Filter. Ikhwannul Kholis, ST., MT. Universitas 17 Agustus 1945 Jakarta

(i) Understanding of the characteristics of linear-phase finite impulse response (FIR) filters

Digital Filters IIR (& Their Corresponding Analog Filters) Week Date Lecture Title

Experiment 4- Finite Impulse Response Filters

Experiment 2 Effects of Filtering

ELEC-C5230 Digitaalisen signaalinkäsittelyn perusteet

CG401 Advanced Signal Processing. Dr Stuart Lawson Room A330 Tel: January 2003

Digital Processing of Continuous-Time Signals

Signal processing preliminaries

Digital Processing of

Understanding Digital Signal Processing

Final Exam Solutions June 14, 2006

Outline. Introduction to Biosignal Processing. Overview of Signals. Measurement Systems. -Filtering -Acquisition Systems (Quantisation and Sampling)

Part B. Simple Digital Filters. 1. Simple FIR Digital Filters

Copyright S. K. Mitra

Biosignal filtering and artifact rejection, Part II. Biosignal processing, S Autumn 2017

F I R Filter (Finite Impulse Response)

Brief Introduction to Signals & Systems. Phani Chavali

6.555 Lab1: The Electrocardiogram

Signal Processing. Naureen Ghani. December 9, 2017

Window Method. designates the window function. Commonly used window functions in FIR filters. are: 1. Rectangular Window:

ECE438 - Laboratory 7a: Digital Filter Design (Week 1) By Prof. Charles Bouman and Prof. Mireille Boutin Fall 2015

Filter Design Application Notes. Filter Design. Application notes. All rights reserved (c) Innosolve Ltd.

ECE 203 LAB 2 PRACTICAL FILTER DESIGN & IMPLEMENTATION

Comparative Study of Chebyshev I and Chebyshev II Filter used For Noise Reduction in ECG Signal

Lecture 4 Biosignal Processing. Digital Signal Processing and Analysis in Biomedical Systems

Signals. Continuous valued or discrete valued Can the signal take any value or only discrete values?

Signals and Filtering

Subtractive Synthesis. Describing a Filter. Filters. CMPT 468: Subtractive Synthesis

Introduction (cont )

Digital Signal Processing

Noise removal example. Today s topic. Digital Signal Processing. Lecture 3. Application Specific Integrated Circuits for

IIR Filter Design Chapter Intended Learning Outcomes: (i) Ability to design analog Butterworth filters

Analog Lowpass Filter Specifications

CHAPTER -2 NOTCH FILTER DESIGN TECHNIQUES

ECE 5650/4650 Exam II November 20, 2018 Name:

BME/ECE 463. Computers in Medicine. Answers to Selected Textbook Problems

EE247 - Lecture 2 Filters. EECS 247 Lecture 2: Filters 2005 H.K. Page 1. Administrative. Office hours for H.K. changed to:

Spring 2014 EE 445S Real-Time Digital Signal Processing Laboratory Prof. Evans. Homework #2. Filter Analysis, Simulation, and Design

ASC-50. OPERATION MANUAL September 2001

Noise Reduction Technique for ECG Signals Using Adaptive Filters

Using the isppac 80 Programmable Lowpass Filter IC

Understanding the Behavior of Band-Pass Filter with Windows for Speech Signal

The University of Texas at Austin Dept. of Electrical and Computer Engineering Final Exam

EE247 Lecture 2. Butterworth Chebyshev I Chebyshev II Elliptic Bessel Group delay comparison example. EECS 247 Lecture 2: Filters

Quantitative Investigation of Digital Filters in Electrocardiogram with Simulated Noises

Design of FIR Filter for Efficient Utilization of Speech Signal Akanksha. Raj 1 Arshiyanaz. Khateeb 2 Fakrunnisa.Balaganur 3

Part One. Efficient Digital Filters COPYRIGHTED MATERIAL

Digital Filters - A Basic Primer

Keysight Technologies Pulsed Antenna Measurements Using PNA Network Analyzers

EEM478-DSPHARDWARE. WEEK12:FIR & IIR Filter Design

LECTURER NOTE SMJE3163 DSP

DSP Laboratory (EELE 4110) Lab#10 Finite Impulse Response (FIR) Filters

AUDIO SIEVING USING SIGNAL FILTERS

NOISE REDUCTION TECHNIQUES IN ECG USING DIFFERENT METHODS Prof. Kunal Patil 1, Prof. Rajendra Desale 2, Prof. Yogesh Ravandle 3

Introduce cascaded first-order op-amp filters. Faculty of Electrical and Electronic Engineering

UNIT-II MYcsvtu Notes agk

Digital Filters FIR and IIR Systems

Continuous-Time Signal Analysis FOURIER Transform - Applications DR. SIGIT PW JAROT ECE 2221

CoE4TN4 Image Processing. Chapter 4 Filtering in the Frequency Domain

Final Exam Solutions June 7, 2004

DIGITAL SIGNAL PROCESSING (Date of document: 6 th May 2014)

Design of infinite impulse response (IIR) bandpass filter structure using particle swarm optimization

Filters. Phani Chavali

Fourier Theory & Practice, Part I: Theory (HP Product Note )

Optimal FIR filters Analysis using Matlab

Changing the sampling rate

Filter Banks I. Prof. Dr. Gerald Schuller. Fraunhofer IDMT & Ilmenau University of Technology Ilmenau, Germany. Fraunhofer IDMT

Developer Techniques Sessions

Team proposals are due tomorrow at 6PM Homework 4 is due next thur. Proposal presentations are next mon in 1311EECS.

Infinite Impulse Response Filters

Equalizers. Contents: IIR or FIR for audio filtering? Shelving equalizers Peak equalizers

Application Note 7. Digital Audio FIR Crossover. Highlights Importing Transducer Response Data FIR Window Functions FIR Approximation Methods

Question 1 Draw a block diagram to illustrate how the data was acquired. Be sure to include important parameter values

MULTIRATE DIGITAL SIGNAL PROCESSING

Signal Processing for Digitizers

Aparna Tiwari, Vandana Thakre, Karuna Markam Deptt. Of ECE,M.I.T.S. Gwalior, M.P, India

Design of FIR Filters

HARDWARE IMPLEMENTATION OF LOCK-IN AMPLIFIER FOR NOISY SIGNALS

ASN Filter Designer Professional/Lite Getting Started Guide

Digital Signal Processing. VO Embedded Systems Engineering Armin Wasicek WS 2009/10

EE 470 Signals and Systems

Signal segmentation and waveform characterization. Biosignal processing, S Autumn 2012

Fundamentals of Time- and Frequency-Domain Analysis of Signal-Averaged Electrocardiograms R. Martin Arthur, PhD

Narrow-Band Low-Pass Digital Differentiator Design. Ivan Selesnick Polytechnic University Brooklyn, New York

Designing and Implementation of Digital Filter for Power line Interference Suppression

Physiological Signal Processing Primer

Frequency-Response Masking FIR Filters

IIR Ultra-Wideband Pulse Shaper Design

System on a Chip. Prof. Dr. Michael Kraft

Transcription:

Biosignal filtering and artifact rejection Biosignal processing I, 52273S Autumn 207

Motivation

) Artifact removal power line non-stationarity due to baseline variation muscle or eye movement artifacts in EEG or ECG Solution?: epoch rejection due to artifacts

2) Enhancement of useful information bandpass filtering finding certain signal waveforms such as eye blins from EEG or QRS complexes from ECG smoothing for illustrative purposes

A few words on an example signal: ECG

ECG:Electrocardiogram Electrical potential changes due to contractile activity of the heart Measured usually by standard 2-lead system With four limb electrodes and six chest electrodes Common ECG-applications are stationary ECG Holter-monitoring stress-ecg (exercise testing) telemedicine applications heart rate monitors Invasive intrumentation: heart pacemaers arrhythmia-pacemaers "ECGcolor" by Madhero88 - Own wor. Licensed under Public domain via Wiimedia Commons http://commons.wiimedia.org/wii/file:ecgcolor.svg#mediaviewer/file:ecgcolor.svg

ECG structure Contraction and relaxation stages of the heart E.g. Feature analysis Automatic detection of different segments and waves (amplitudes, intervals) Systemic vs. pulmonary circulation By Own wor, CC BY-SA 3.0, https://commons.wiimedia.org/w/index.php?curid=830253

2-lead ECG ECG analysis focus: QRS complex detection feature analysis classification of arrhythmias ECG signal compression Heart rate variability (HRV) analysis

Noise in ECG

Basic filtering techniques

FIR filters Finite Impulse Response (FIR) filter Stable Simple to implement Linear phase response Symmetrical impulse response All frequencies have the same amount of delay no phase distortion y( n) N 0 H( z) h( ) x( n ) N 0 h( ) z Source: http://www.netrino.com/publications/glossary/filters.php

FIR 0.2 0. 0.08 0.06 0.04 Magnitude (db) 50 0-50 -00 0 20 40 60 80 00 20 Frequency (Hz) 0.02 0-0.02-0.04 0 5 0 5 20 25 30 35 40 45 Phase (degrees) 0-200 -400-600 -800 0 20 40 60 80 00 20 Frequency (Hz) Lowpass filter, order 44 (N=45), positive symmetry. fs=256 Hz, Fp=3 Hz, Fs=9 Hz, Rp=4 db, As=38 db Filter characteristics: sampling frequency fs, passband Fp, stopband Fs, ripple Rp, attenuation As

Filter types by spectral characteristics

Smoothing: averaging filter Average of a sliding window of size N samples FIR filter ) (... ) ( 0) ( )] (... ) ( 0) ( [ ) ( ) ( 0 N n x N n x N n x N N n x n x n x N n x N n y N

Smoothing: Hanning filter H( z) [ 4 2z 2 z ]

IIR filters Infinite Impulse Response (IIR) filters Feedbac system Normally fewer coefficients that with FIR Used for sharp cut-off (notch filters for example) Can become unstable or performance degrade if not designed with care Pole-zero diagram Nonlinear phase characteristics causes phase distortion altering harmonic relationships frequency components have different time delays (often undesirable) The wave shapes are distorted! M N M M N N z a z b z a z a z b b z b z H 0 0...... ) ( M N n y a n x b n x h n y 0 0 ) ( ) ( ) ( ) ( ) ( Source: http://www.triplecorrelation.com/courses/fundsp/iiroverview.pdf

Smoothing: Butterworth lowpass filtering Butterworth lowpass filter - Select suitable order and cutoff frequency - Maximally flat magnitude filter

Notch/comb filter Often used for 50/60 Hz power line artifact filtering Narrow stop-band in basic and harmonic frequencies Be careful with the aliased harmonics Can be implemented as FIR or IIR Ruha et al. (997)

Notch/comb filter Original signal Filtering result

Trend removal

Trend removal - detrending The signal baseline may vary due to, e.g. non-perfect electrode attachment The baseline wondering may disturb analysis of signal properties It is thus favorable to remove the baseline as well if necessary for the application High-pass filtering time-domain: difference filter frequency-domain: DFT (discrete Fourier transform) Trend removal with other methods Savitzy-Golay filter

Difference filtering, version First-order difference operator: T=sampling interval y( n) [ x( n) x( n )] T

Difference filtering, version 2 Modified first-order difference operator: - T=sampling interval - Additional pole inserted at zero frequency to steepen the y transition band z H( z) T 0.995z ( n) [ x( n) x( n )] 0.995y( n ) T

Detrending: Butterworth highpass filter Select suitable filter order and cutoff frequency

Savitzy-Golay filter S-G filters are called polynomial or least-squares smoothing filters Fits a polynomial of given degree optimally to a signal window In a sliding time window (frame), a polynomial curve is fitted to signal, and its middle value in the frame is taen as the smoothened value within the window Detrending procedure: subtract the smoothed/filtered signal from the original signal This allows for decomposition of the signal into a trend signal and residual/detail signal The trend component can be interpreted as the useful signal component or the noise component, depending on the application Can be implemented as a fast FIR filter

Savitzy-Golay: detrending example with ECG Parameters: Degree of polynomial (usually or 2) Window/frame size depends on signal s timing properties and, thus, sampling frequency Parameter selection affects strongly the filtering results: The higher degree the polynomial is, the more accurately even the small details are ept in the output signal Figure on right: too high polynomial was used: the baseline estimate follows ECG shapes too closely

Savitzy-Golay: detrending example with ECG, cont d Figure on right: more proper polynomial degree was used: the baseline estimate follows the trend better The ECG waveforms are retained better (in the bottom figure)

Synchronized averaging Filter noise by averaging several signals containing the same events Often simple/complex pulses Signals must first be time-synchronized Averaging of flash visual ERP s from EEG Central limit theorem: the sum of i.i.d. random variables with finite distributions approaches normal distribution. With zero mean variables, the sum approaches zero. Here, the random variables represent noise.

Example case of multi-stage filtering

Filtering many noise types Often the signal contains different inds of noise A pipeline must be designed so that each stage removes one type of noise Filter stages can sometimes be combined into one stage E.g.: LP + HP -> BP An example filter pipeline: Reduce white noise using moving average filter Detrend signal using derivative filter Attenuate power-line interference using comb filter

Filtering many noise types: example result

Filtering many noise types: example result 2

Selected references Course boo: Chapter 3 Journal article Savitzy A, Golay MJE (964) Smoothing and Differentiation of Data by Simplified Least Squares Procedures. Anal Chem 36(8):627 639. Boos on signal processing basics Ifeachor EC, Jervis BW. Digital Signal Processing: A Practical Approach. Addison-Wesley, reprint 996, pp. 279-287, 375-383, 550-55, 56-563, 697-706. Orfanidis, SJ. Introduction to Signal Processing. Prentice-Hall, Englewood Cliffs, NJ, 996, pp. 434-44.