ES97H Biomedical Signal Processing

Slides:



Advertisements
Similar presentations
Department of Kinesiology and Applied Physiology Spectrum Estimation W. Rose
Advertisements

Chapter 14 Finite Impulse Response (FIR) Filters.
Lab5 (Signal & System) Instructor: Anan Osothsilp Date: 20 Feb 07 Due Date 09 March 07.
Intelligent Islamic Electrical Engineers (IIEE)
Amplitude modulation DSB-LC (full AM)
EE513 Audio Signals and Systems Digital Signal Processing (Synthesis) Kevin D. Donohue Electrical and Computer Engineering University of Kentucky.
Leo Lam © Signals and Systems EE235. Transformers Leo Lam ©
Filtering Filtering is one of the most widely used complex signal processing operations The system implementing this operation is called a filter A filter.
Unit 9 IIR Filter Design 1. Introduction The ideal filter Constant gain of at least unity in the pass band Constant gain of zero in the stop band The.
Analog Data Processing with BioProc3 Part Two EMG Analysis Techniques.
AMI 4622 Digital Signal Processing
Signals and Systems – Chapter 5
Digital Image Processing
Sampling, Reconstruction, and Elementary Digital Filters R.C. Maher ECEN4002/5002 DSP Laboratory Spring 2002.
Discrete-Time Convolution Linear Systems and Signals Lecture 8 Spring 2008.
S. Mandayam/ ECOMMS/ECE Dept./Rowan University Electrical Communications Systems ECE Spring 2008 Shreekanth Mandayam ECE Department Rowan University.
Analogue and digital techniques in closed loop regulation applications Digital systems Sampling of analogue signals Sample-and-hold Parseval’s theorem.
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.
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.
Systems: Definition Filter
Lecture 9 FIR and IIR Filter design using Matlab
EE513 Audio Signals and Systems Digital Signal Processing (Systems) Kevin D. Donohue Electrical and Computer Engineering University of Kentucky.
Numerical algorithms for power system protection Prof. dr. sc. Ante Marušić, doc. dr. sc. Juraj Havelka University of Zagreb Faculty of Electrical Engineering.
Discrete-Time and System (A Review)
Motivation Music as a combination of sounds at different frequencies
Spectral Analysis AOE March 2011 Lowe 1. Announcements Lectures on both Monday, March 28 th, and Wednesday, March 30 th. – Fracture Testing –
EE Audio Signals and Systems Digital Signal Processing (Synthesis) Kevin D. Donohue Electrical and Computer Engineering University of Kentucky.
UNIT-5 Filter Designing. INTRODUCTION The Digital filters are discrete time systems used mainly for filtering of arrays. The array or sequence are obtained.
MATLAB for Signal Processing The MathWorks Inc. Natick, MA USA Filter Design.
Functional Brain Signal Processing: EEG & fMRI Lesson 3 Kaushik Majumdar Indian Statistical Institute Bangalore Center M.Tech.
Interconnections Blocks can be thought of as subsystems that make up a system described by a signal flow graph. We can reduce such graphs to a transfer.
Notice  HW problems for Z-transform at available on the course website  due this Friday (9/26/2014) 
Fourier Analysis of Discrete-Time Systems
Fourier series: Eigenfunction Approach
Part 4 Chapter 16 Fourier Analysis PowerPoints organized by Prof. Steve Chapra, University All images copyright © The McGraw-Hill Companies, Inc. Permission.
ES97H Biomedical Signal Processing
DIGITAL SIGNAL PROCESSING ENTC 4347/ Dr. Hugh Blanton TR 8:15-11:05 (423) Office Hours: TR9:30 am-11:30 am or By appointment.
1 Conditions for Distortionless Transmission Transmission is said to be distortion less if the input and output have identical wave shapes within a multiplicative.
ES97H Biomedical Signal Processing
revision Transfer function. Frequency Response
Lecturer: Dr Igor Khovanov Office: D207 Syllabus: Biomedical Signal Processing. Examples of signals. Linear System Analysis. Laplace.
Lecture 5 BME452 Biomedical Signal Processing 2013 (copyright Ali Işın, 2013)1 BME 452 Biomedical Signal Processing Lecture 5  Digital filtering.
EE422 Signals and Systems Laboratory Infinite Impulse Response (IIR) filters Kevin D. Donohue Electrical and Computer Engineering University of Kentucky.
Digital Signal Processing. Discrete Fourier Transform Inverse Discrete Fourier Transform.
1 Digital Signal Processing Digital Signal Processing  IIR digital filter structures  Filter design.
Digital Signal Processing
Filtering x y.
ECE 8443 – Pattern Recognition EE 3512 – Signals: Continuous and Discrete Objectives: FIR Filters Design of Ideal Lowpass Filters Filter Design Example.
Geology 6600/7600 Signal Analysis 30 Sep 2015 © A.R. Lowry 2015 Last time: The transfer function relating linear SISO input & output signals is given by.
Lecture 2 Analog to digital conversion & Basic discrete signals.
15 Oct 2009Comp30291 Section 21 UNIVERSITY of MANCHESTER School of Computer Science Comp30291: Digital Media Processing Section 2 Analogue filtering.
Oh-Jin Kwon, EE dept., Sejong Univ., Seoul, Korea: 2.3 Fourier Transform: From Fourier Series to Fourier Transforms.
Lecture 09b Finite Impulse Response (FIR) Filters
Coherence spectrum (coherency squared)  = 0.1, 0.05, 0.01 X is the Fourier Transform Cross-spectral power density Confidence level: = running mean or.
Dr S D AL_SHAMMA Dr S D AL_SHAMMA11.
Sampling and DSP Instructor: Dr. Mike Turi Department of Computer Science & Computer Engineering Pacific Lutheran University.
3.3.2 Moving-average filter
Fourier Series Prof. Brian L. Evans
Speech Signal Processing
Digital Signal Processing Lecture 4 DTFT
EET 422 EMC & COMPLIANCE ENGINEERING
Sampling and Reconstruction
EE Audio Signals and Systems
Analogue filtering UNIVERSITY of MANCHESTER School of Computer Science
MMSE Optimal Design: The Least Squares method
Lecture 18 DFS: Discrete Fourier Series, and Windowing
6. Time and Frequency Characterization of Signals and Systems
Lecture 7: Signal Processing
Lec.6:Discrete Fourier Transform and Signal Spectrum
DIGITAL CONTROL SYSTEM WEEK 3 NUMERICAL APPROXIMATION
Presentation transcript:

ES97H Biomedical Signal Processing Lecturer: Dr Igor Khovanov Office: D207 i.khovanov@warwick.ac.uk Syllabus: Biomedical Signal Processing. Examples of signals.   Linear System Analysis. Laplace Transform. Transfer Function.   Frequency Response. Fourier Transform. Discrete Signal Analysis. Digital (discrete-time) systems. Z-transform. Filtering. Analogue Filters design and application. Case Study.

Envelope Extraction Problem: Estimate EMG activity to airflow during inspiration. The intricate variations in the EMG signal in the signal are often not of interest. A measure of the total or integrated electrical activity, ideally reflecting the global activity in the pool of active motor units of the muscle, would serve the purposes of most analyses. The smoothed envelope of the EMG signal is commonly used under these circumstances.

Envelope Extraction Approach 1. The filters commonly used for calculation of the envelope. Consider the digital signal xi Step 1. Calculation of the rectified signal |xi| Step 2. Selection of an appropriate low-pass filter to severely attenuate high frequencies, and filter the rectified signal

Envelope Extraction via low-pass filtering Matlab Script: Plot the rectified signal |xi| close all;clear all; % load the signal fs=10000; % Sampling frequency;... Ts=1/fs; % Sampling period fn=fs/2; % Nyquist frequency dinput=load('emg2.dat'); signal=abs(dinput(:,1)); Ns=length(signal); time=[0:1:(Ns-1)]*Ts; figure(1) % plot the signal hold on % to draw next plot in the same figure plot(time,signal,'-b','linewidth',1) grid on; box on; hold on; xlabel(' \it t, [sec] ','fontname','times','fontsize',24); ylabel('\it EMG, [\mu V] ','fontname','times','fontsize',24);

Envelope Extraction via low-pass filtering Matlab Script: Plot the rectified signal |xi|

Envelope Extraction via low-pass filtering Matlab Script: Estimate the spectrum of the rectified signal |xi| % Calculate FFT xfft=fft(signal); % complex coefficient of Fourier transform p=abs(xfft(1:Ns/2))/Ns*2; % amplitude for positive frequencies only freq=[0:Ns/2-1]/(Ns/2)*fn; % frequencies, for which FFT was applied %%%%% Plot the amplitude spectrum f2=figure(2); movegui(f2, 'northwest'); %semilogy(freq,p,'-m') loglog(freq,p,'-b') hold on grid on box on xlabel ('frequency, f, Hz'); % x label ylabel ('Amplitude spectrum'); % y label

Envelope Extraction via low-pass filtering Matlab Script: Estimate the spectrum of the rectified signal |xi|

Envelope Extraction via low-pass filtering Matlab Script: Design the filter (Butterworth) % Design filter wcutoff=5; wn=wcutoff/(fs/2); filtorder=5; [b1,a1]=butter(filtorder,wn); %[b1,a1]=ellip(filtorder,3,60,wn); % plot the frequency response of the filter (on the same plot as signal sppectrum) [G1z,wT]=freqz(b1,a1,16384); freqf=wT/(2*pi*Ts); loglog(freqf,abs(G1z)*pmax,'--r');

Envelope Extraction via low-pass filtering Matlab Script: Design the filter (Butterworth)

Envelope Extraction via low-pass filtering Matlab Script: Apply the filter % perform filtering by FILTFILT s2=filtfilt(b1,a1,signal); %%%% Calculate and plot FFT xfft=fft(s2); % complex coefficient of Fourier transform p=abs(xfft(1:Ns/2))/Ns*2; % amplitude for positive frequencies only loglog(freq,p,'-k') figure(1) plot(time,s2,'-k','linewidth',2)

Envelope Extraction via low-pass filtering Matlab Script: Apply the filter (Butterworth)

Envelope Extraction via low-pass filtering Matlab Script: Apply the filter (Elliptic)

Envelope Extraction or Matlab script Matlab script Approach 2. Moving average technique can be used for calculation of the envelope. Consider the digital signal xi Step 1. Calculation of the rectified signal |xi| Step 2. Selection of an appropriate window length, M, and application of the window or Matlab script % Moving Average Window with the centre % at a given time moment for k=1:Ns, % consider each time moment k1=k-iwin; if k1<1, k1=1; end k2=k+iwin; if k2>Ns,k2=Ns;end xx=signal(k1:k2); mx1(k)=mean(xx); end plot(time,mx1,'-k','linewidth',2); Matlab script % Moving Average Window for k=1:Ns, % consider each time moment, % form a window and average k2=k+iwin; if k2>Ns, k2=Ns; end xx=signal(k:k2); mx(k)=mean(xx); plot(time,mx,'-r','linewidth',2);

Envelope Extraction or Approach 2. Moving average technique can be used for calculation of the envelope. Consider the digital signal xi Step 1. Calculation of the rectified signal |xi| Step 2. Selection of an appropriate window length, M, and application of the window or

In Matlab there is a function y=hilbert(x) xH=Imag(y); Envelope Extraction Approach 3. The envelogram via Hilbert transform Consider the digital signal xi Step 1. Calculate Hilbert transform xH (below we use notations for continuous signals) To form an analytical signal Then the signal x(t) can be presented as Where the amplitude and phase are coming from the analytical signal Step 2. Calculate the amplitude of the analytical signal a(t) (i.e. |y(t)|), which is the estimated envelope. In Matlab there is a function y=hilbert(x) xH=Imag(y);

Examples of Hilbert transform Amplitude modulation.

Examples of Hilbert transform Frequency (phase) modulation.

Envelope Extraction via Hilbert Transform Matlab script: … %Approach Envelope extraction by Hilbert transform asignal=hilbert(signal); signalH=imag(asignal); ampHilbert = sqrt((signal.^2)+(signalH.^2)); plot(time,ampHilbert,'-k') title(' Envelope extraction via Hilbert transform','fontname','Times','fontsize',12);