Accelerated SWT based de-noising technique for EEG to correct the Ocular Artifact
Mahesh Khadtare, Pragati Dharmale
technique for EEG to correct the Ocular Artifact Mahesh Khadtare, - - PowerPoint PPT Presentation
Accelerated SWT based de-noising technique for EEG to correct the Ocular Artifact Mahesh Khadtare, Pragati Dharmale Plan of Session I. Introduction II. Overview III. Stationary Wavelet Transform (SWT) IV. Algorithmic & implementation
Mahesh Khadtare, Pragati Dharmale
3/19/2015 2
neuron as fast as 250 mph [source: Walker]
intention of the user, and acts on it, Figure shows Awake state and Asleep state [source: Wikipedia].
[Source: EEG Lead placements-EEGLab]
3/19/2015 3
3/19/2015 4
5
1880 1900 1920 1940 1960 1980 2000 2020 Hans Berger S.A. Hillyard and R. Galambos
J.C. Woestenburg, M.N.…
T.P. Jung, C. Humphries
T-P. Jung, C. Humphries, M.… Jean-François Cardoso
Jung T-P, Humphries C, Lee… Jung T-P, Makeig S, Lee T-…
Ruijiang Li, Weifeng Liu,… Guger C, Ramoser H and… Ramoser H, Muller-Gerking J…
Charles W Anderson, James… Zachary A. Keirn , Jorge I.… Stone, M.
Nazareth P. Castellanos,… David A. Peterson, James N.… BasËar E, Demiralp T,… Bartnik EA, Blinowska KJ,… Akay M, Akay YM, Cheng P,… Ademoglu A, Micheli-… Puthusserypady S, Zhou Z Peter Driessen Payam Refaeilzadeh, Lei… R.Amod, R. Sumit , Z. Supriya
YEAR AUTHER NAME
YEAR
Most are recent years
3/19/2015
removal use one or more electro oculogram (EOG) signals either directly or indirectly as a reference.
performance of the algorithm on real data is usually reported ,often based on visual inspection of the resulting waveforms.
data distortion
6 3/19/2015
– A small wave
– Convert a signal into a series of wavelets – Provide a way for analyzing waveforms, bounded in both frequency and duration – Allow signals to be stored more efficiently than by Fourier transform – Be able to better approximate real-world signals – Well-suited for approximating data with sharp discontinuities
7 3/19/2015
Fourier Transform Wavelet Transform Frequency Information only, Time/space information is lost Joint Time and Frequency Information Single Basis Function Many Basis Functions Computational Cost High Low computational costs Analysis Structures:
Numerous Analysis structures:
CWT, DWT(2 Band and M Band), WP SWT, Frame structure
3/19/2015 8
– Change Detection – Denoising – Pattern Recognition
indices are kept.)
indices.
3/19/2015
3/19/2015
High Pass Low Pass Low pass High pass
Decimated Wavelet Transform-Analysis Stage
High Freq Details Low freq Approx Signal
2
2
3/19/2015
3/19/2015
High Pass Low Pass Low pass High pass
High Freq Details Low freq Approx Signal
– Shift by 1 and 0 and compute the DWT, repeat the same procedure at each stage – Not a unique inverse: Invert each transform and average the results
3/19/2015
14
EEG 1 EEG 2
EEG N
PE 1
EEG 1 EEG 2
EEG N
PE 2 PE N
Dependencies
Traditional distributed processing algorithm does not include any parallel processing algorithm for Signal processing
3/19/2015
15
EEG 1
PE 1 PE 2 PE N
EEG 1 EEG N
PE 1 PE 2 PE N
EEG N
3/19/2015
16
EEG 1
G-PE 1 G-PE 2 G-PE N
P-EEG 1 EEG N
G-PE 1 G-PE 2 G-PE N
P-EEG N
3/19/2015
Wavelet Coefficients
17
n
3/19/2015
n
Signal domain basis functions Transformed domain, Coeffs
Transformation Analysis
Reconstruction
Signals Recon Signal
basis functions
Modified Coefficients
Information extraction
D10) and a last approximation (Apr).
the sampling rate. In the case of 250 Hz, these are (with a 5 scales decomposition):
Note that D2, D3, D4, D5, A5 approximately correspond to the EEG frequency bands: Gamma,Beta,Alpha,Theta,Delta respectively.
19
GAMMA ALPHA BETA THETA DELTA
3/19/2015
procedure follows the steps described below:
the wavelet decomposition of the signal at level N.
level from 1 to N, either make detail coefficient zero or select a threshold value and apply to the detail coefficients.
modified detail coefficients of levels from 1 to N.
20 3/19/2015
continuity and accuracy of the reconstructed signals, and has a significant impact on wavelet denoising.
are hard threshold and soft threshold.
coefficients discontinuous in the threshold value position and leads to the oscillations of the reconstructed signals; while with the soft threshold method wavelet coefficient has improved continuity.
3/19/2015 21
3/19/2015 22
– 325 Recording with 7 Channel with different task
Multiplication
Source: http://sccn.ucsd.edu/~arno/fam2data/publicly_available_EEG_data.html
24
Signal Data
Sensor
SWT Forward Transform Thresholding SWT Inverse EEG Signal Processing
The rate of Execution Time*
60% 61% 30 %
*1 Thread, Conventional Corner Turn
3/19/2015
Recons- tructed Signal
Demo – Sample unit test
3/19/2015 25
Read All Channel EEG Data for Signal Processing Rearrange all channel Data ( Block formation and groups) Rearrange Image Data ( Block formation and Flipping ) DWT or SWT forward DWT or SWT Inverse
Denoise Thresholds
G P U C P U
Compute Thresholds
CPU code
direction CUDA Kernel
3/19/2015 26
__global__ void columnsKernel( double *d_Dst, double *d_Src, double *d_Kernel, int RowSize, int ColSize, int kernelRadius )
__global__, void rowsKernel( double *d_Dst double *d_Src, double *d_Kernel, int RowSize, int ColSize, int kernelRadius )
lifting_step_ti(double[,,] x, double[] h, int dir, int dist) perform_wavelet_transf(double[, ,]x, int Jmin, int dir)
3/19/2015 27
10000 20000 30000 40000 1 1627 3253 4879 6505 8131 9757 11383 13009 14635 16261 17887 19513 21139 22765 24391 26017 27643 29269 30895 32521 34147 35773 37399 39025 40651 42277 43903 45529 47155 48781 50407 52033 53659 55285 56911 58537 60163 61789 63415 65041 66667 68293 69919 71545 73171 74797
Amp(microV) Time (s)
Input EEG
Input EEG
1000 2000 1 1960 3919 5878 7837 9796 11755 13714 15673 17632 19591 21550 23509 25468 27427 29386 31345 33304 35263 37222 39181 41140 43099 45058 47017 48976 50935 52894 54853 56812 58771 60730 62689 64648 66607 68566 70525 72484 74443
Amp(microV) Time(s)
Denoise O/p MATLAB/C# Ch1/ CUDA
Denoise O/p MATLAB
EEG Denoising Timing
CPU / GPU Core Details Timing(sec) Speedup Intel Core i3 – MATLAB 2 45.337 1x Intel Core i3 – C# 2 12.121 3x GeForce GT 525M 96 1.031 44x Data size
512 x 8
3/19/2015
) log( 10 Pnoise Psignal SNR
3/19/2015 29
From SNR, We decided accuracy of the wavelet.
It is defined as the ratio of signal power to the noise power
corrupting the signal. A ratio higher than 1:1 indicates more signal than noise.
Pnoise Psignal SNR
SIGNAL POWER NOISE POWER.
SNR in DB is calculated as-
) log( 20 Anoise Asignal SNR
TASK ALL COEFF. Max SNR WAVELET TYPE CD1,CD2 Max SNR WAVELET TYPE BASELINE 119.6598 COIF1 13.2003 DMEY COUNTING 9.4811 DMEY 18.35 SYM6 LETTER COMPOSING 7.17 SYM6 14.29 SYM6 MULTIPLICATI ON 9.37 DMEY 12.76 DMEY ROTATION 7.8818 DB4 19.41 DMEY
30
3/19/2015 31
3/19/2015 32
analysis”, IEEE Trans. Inform. Theory, vol. 36, pp. 961,1005, statiscal learning theory, Cambridge press MIT
characterization”, IEEE Eng. in Medicine and Biology, pp. 77, 83, Jan/Feb 1997.
Understanding And Using Microarray Analysis Techniques: A Practical Guide. Boston Kluwer Academic Publishers, 2003.