25
Artifact Characterization, Detection and Removal for In-Vivo Neural Recording Presented By: Md Kafiul Islam PhD Candidate Supervisor: Dr. Zhi Yang Translational System and Signal Processing Group Department of Electrical and Computer Engineering National University of Singapore Presented By Md Kafiul Islam 1

Artifact Detection and Removal from In-Vivo Neural Signals

Embed Size (px)

Citation preview

Page 1: Artifact Detection and Removal from In-Vivo Neural Signals

Artifact Characterization, Detection and Removal for In-Vivo Neural

Recording

Presented By:

Md Kafiul IslamPhD Candidate

Supervisor: Dr. Zhi YangTranslational System and Signal Processing Group

Department of Electrical and Computer EngineeringNational University of Singapore

Presented By Md Kafiul Islam 1

Page 2: Artifact Detection and Removal from In-Vivo Neural Signals

Outline• Introduction

Motivation

Artifact Characterization

Available Methods and their Limitations

• Proposed Algorithm

Stationary Wavelet Transform (SWT) and Filtering

Simulation Results

Comparison with Other Methods

• Conclusion

Applications

Future Work

Presented By Md Kafiul Islam 2

Page 3: Artifact Detection and Removal from In-Vivo Neural Signals

MotivationIn-Vivo Neural Recording

Investigate brain information processing & data storage

Better Spatio-temporal resolution.

Better Signal-to-Noise Ratio (SNR).

The study of both LFP & Spikes along with their

Correlation: more insight on how brain works.

Artifacts

Often corrupt recordings: less constrained environment.

Cause mistakes in interpretation of neural information.

The challenges for in-vivo artifact identification compared

to EEG or other applications:

No prior knowledge about artifacts unlike EEG-artifacts

The broad frequency band of in-vivo data (0.1 Hz – 5 kHz)

Presented By Md Kafiul Islam

Single/Multi Unit Neural Recordings

3

Page 4: Artifact Detection and Removal from In-Vivo Neural Signals

Motivation

Wireless Neural Recording and Signal Processing System

Presented By Md Kafiul Islam

AAnalog

Front Ends

Electrode Array

ADC

On-chip Neural SignalProcessing

TelemetryInterface

(Bidirectional)

· Offset Remove · Power line

Interference Remove· Artifact Remove

Signal Pre-Processing

Neural Signal Processing

(LFP + Spikes)

· Feature Extraction· Classification· Compression

4

Page 5: Artifact Detection and Removal from In-Vivo Neural Signals

Artifact Sources and PropertiesInterfering signals that originate from source other than brain of

interest.

Presented By Md Kafiul Islam

Local Field Potential => 0.1 Hz ~ 200 Hz; 0.1 ~ 1 mVpp

Neural Spikes => 300 Hz ~ 5 kHz; 40 ~ 500 µVpp

Artifacts => 0 ~ 10 kHz; 20 mVpp

Sources/Factors:

i) Environmental (e.g. sound/optical interference, EM-coupling, etc.)

ii) Experiment (e.g. electrode position altering, connecting wire

movement, etc. due to mainly subject motion )

iii) Physiological (e.g. EOG, ECG, EMG, etc.)

Fig. Wireless In-Vivo Recording of Neural Activity1

5

Page 6: Artifact Detection and Removal from In-Vivo Neural Signals

Artifact Appearance• Local : localized in space, i.e. appear only in a single recording channel.

• Global : across all the channels of an electrode at the same temporal window.

• Irregular: only once/twice in the whole recording sequence

• Periodic: regular manner possibly due to some periodic motions of the subject.

Presented By Md Kafiul Islam

Global Artifacts

Irregular/Local Artifacts

Periodic Artifacts

Perspective Artifact Category/Class

Repeatability Irregular/No Periodic/Regular/Yes

Origin Internal External

Appearance Local Global

6

Page 7: Artifact Detection and Removal from In-Vivo Neural Signals

Artifact Types and Spectral Characteristics

Presented By Md Kafiul Islam

Template Extract

7

Page 8: Artifact Detection and Removal from In-Vivo Neural Signals

Available Methods and Limitations*EEG or Other Physiological Signal Recordings

Independent Component Analysis (ICA)

or Canonical Correlation Analysis (CCA)

Offline and manual intervention; at best semi-automatic

Suitable for global artifacts only

Assumption of Independence/Un-Correlation

Adaptive filtering

Reference channel to record artifact source

Wavelet-enhanced ICA/CCA (wICA/wCCA)

Identification of artifactual IC is difficult

DWT involvement may produce severe distortions

Empirical Mode Decomposition (EMD or EEMD)

Computational complexity and storage problem

*No literature particularly on artifacts for in-vivo neural signals

Presented By Md Kafiul Islam 8

Page 9: Artifact Detection and Removal from In-Vivo Neural Signals

Proposed Solution

Presented By Md Kafiul Islam

Stationary Wavelet Transform (SWT): To separate possible artifactual events.

Filtering: To finally detect artifacts from signals of interest.

(Two frequency bands where signal power is relatively low=> BPF@150 - 400 Hz , HPF @ 5 kHz)

Threshold: Proposed a modified universal threshold that depends on signal histogram.

Inverse Stationary Wavelet Transform (ISWT): To reconstruct artifact-free signals.

ArtifactualData

Artifact-free Data

9

Page 10: Artifact Detection and Removal from In-Vivo Neural Signals

Why SWT ?SWT :

Usually DWT or SWT is preferred over CWTwhen signal synthesis is required

CWT is very slow and generates way toomuch of data.

SWT is translation invariant where DWT isnot. So better reconstruction result. (No lossof information, preserves spike data and doesn’tgenerate any spike-like artifacts)

Computational complexity is between DWTand CWT.

DWT:[O(N)] SWT[O(NL)] CWT [O(N L log2N)]

N = length of signal, L = decomposition level

Presented By Md Kafiul Islam

Wavelet Transform in General: Good time-frequency resolution Non-linear, non-stationary signals (e.g. neural signals) Both single and multi-channel recordings Both detection (from decomposed coefficient) and removal (thresholdingand reconstruction by inverse transform) of artifacts.

10

Digital implementation of SWT: A 3 level SWT filter bank and SWT filters A 2-Level DWT decomposition and the

reconstruction structures

Page 11: Artifact Detection and Removal from In-Vivo Neural Signals

Why SWT (2)… ?

Presented By Md Kafiul Islam

FPR

TP = # True Positives (Hit)FP = # False Positives (False Alarm)TN = # True Negatives (Correct Rejection)FN = # False Negatives (Misdetection)

0 100 200 300 400 500 600 700 800 900 1000-10

-5

0

5

Spike data comparison after artifact removal

Norm

alize

d A

mplitu

de

0 500 1000 1500 2000-15

-10

-5

0

5

10

15

Time Sample

Ref

DWT

CWT

SWT

Original Spike

(True Positive)

False Spike

(False Positive)

False Spike

(False Positive)

Original Spike

(True Positive)

Original Spike

(True Positive)

Page 12: Artifact Detection and Removal from In-Vivo Neural Signals

Effect of Filtering

– Separate spikes from high frequency artifacts (e.g. type-3)

Presented By Md Kafiul Islam

0 1 2 3 4 5 6 7 8

-1000

-500

0

500

0 1 2 3 4 5 6 7 8

-1000

-500

0

500

Am

pli

tud

e

0 1 2 3 4 5 6 7 8

-1000

-500

0

500

Time, Sec

Raw Data

Reconstructed by only SWT

Reconstructed by SWT + Filtering

0 0.2 0.4 0.6 0.8 10

0.1

0.2

0.3

0.4

0.5

0.6

0.7

0.8

0.9

1

ROC for Spike Detection

False Positive Rate (FPR)

Tru

e P

osit

ive

Rat

e (T

PR)

SWT Only

SWT + Filtering

12

Page 13: Artifact Detection and Removal from In-Vivo Neural Signals

Threshold Value

• Universal Threshold:

Wi = Wavelet coefficients; ơi = variance of Wi; N = length of signal

• Modified Threshold:

Presented By Md Kafiul Islam

k = kA for approx. coef. kD for detail coef.

By empirical observation from signal histogram

5 < m < infinite

2 < n < 3

D4, D5, D6 contain the frequency band of spikes.

Page 14: Artifact Detection and Removal from In-Vivo Neural Signals

Choice of Threshold Function (Garrote)• Hard: Discontinuous which may produce large variance (very sensitive to small changes

in the input data)

• Soft: Continuous but has larger bias in the estimated signal (results in larger errors)

• Garrote: Less sensitive to input change, lower bias and more importantly continuous.

Presented By Md Kafiul Islam

Hard GarroteSoft

Page 15: Artifact Detection and Removal from In-Vivo Neural Signals

Data Synthesis for Simulation

Presented By Md Kafiul Islam

Clean in-vivo Data (Reference)

Raw In-Vivo DataWith Artifacts

Extract Artifact Templates

Synthesized Artifactual Data

Random Amplitude Random

Location

Random Duration

Page 16: Artifact Detection and Removal from In-Vivo Neural Signals

Performance Evaluation (Important Definitions)

Simulation is performed on both real andsynthesized (semi-simulated) signal databasefrom different subjects.

Removal Measurement

Lamda, λ: Amount of artifact reduction

ΔSNR: Improvement in signal to noise (artifact) ratio

Distortion Measurement

RMSE: Root mean square error

Spectral Distortion:

Presented By Md Kafiul Islam

x(n) = Reference signal

x’(n) = Reconstructed signal

y(n) = Artifactual signal

e1(n) = error between x & y

e2(n) = error between x & x’

Rref = auto-correlation of reference

signal

Rrec = cross-correlation between

reference and reconstructed signal

Rart = cross-correlation between

reference and artifactual signal

Artifact SNR:Consider artifact as signal and neural signal as noise:

16

Page 17: Artifact Detection and Removal from In-Vivo Neural Signals

Removal Results (Tested on Synthesized Sequence)

Presented By Md Kafiul Islam 17

Page 18: Artifact Detection and Removal from In-Vivo Neural Signals

Presented By Md Kafiul Islam 18

Removal Results (Tested on Real Sequence- Rat Data)

Page 19: Artifact Detection and Removal from In-Vivo Neural Signals

Presented By Md Kafiul Islam 19

Removal Results (Tested on Real Sequence-Monkey Data)

Page 20: Artifact Detection and Removal from In-Vivo Neural Signals

Results (Tested on Synthesized Sequence)

Presented By Md Kafiul Islam 20

Page 21: Artifact Detection and Removal from In-Vivo Neural Signals

Quantitative Evaluation

Presented By Md Kafiul Islam 21

Page 22: Artifact Detection and Removal from In-Vivo Neural Signals

Comparison with Other Methods

Presented By Md Kafiul Islam

dB

dB

Artifact Artifact

Artifact Artifact

dB

dB

22

Page 23: Artifact Detection and Removal from In-Vivo Neural Signals

Applications

• Any open/closed loop neural system (e.g. BCI,

neural prostheses, basic neuroscience/clinical research)

• Removal of stimulation artifacts.

• Both online and offline implementation

• Both single and multi-channel recordings

Presented By Md Kafiul Islam 23

Page 24: Artifact Detection and Removal from In-Vivo Neural Signals

Future Work

– Algorithm optimization.

– More simulations to fine tune the algorithm.

– Hardware implementation.

– Publish the artifact database to public domain.

– Development of a Software (MATLAB based)

tool: Free licence

Presented By Md Kafiul Islam 24

Page 25: Artifact Detection and Removal from In-Vivo Neural Signals

The End

Q & A

Thank You

Presented By Md Kafiul Islam 25