EVOKED POTENTIALS

101
EVOKED POTENTIALS

Transcript of EVOKED POTENTIALS

Page 1: EVOKED POTENTIALS

EVOKED POTENTIALS

Page 2: EVOKED POTENTIALS

Evoked Potentials (EPs)

Event-related brain activity where the stimulus is usually of sensory origin.

Acquired with conventional EEG electrodes.

Time-synchronized = time interval from stimulus to response is usually constant.

Page 3: EVOKED POTENTIALS

EP = A Transient Waveform

Evoked potentials are usually ”hidden" in the EEG signal.

Their amplitude ranges from 0.1–10 µV, to be compared with 10–100 µV of the EEG.

Their duration is 25–500 milliseconds.

Page 4: EVOKED POTENTIALS

Examples of Evoked Potentials

Note the widely different amplitudes and time scales.

Page 5: EVOKED POTENTIALS

EP – Definitions

Time for stimulus

Latency

Amplitude

Page 6: EVOKED POTENTIALS

Auditive Evoked Potentials– AEPs

Page 7: EVOKED POTENTIALS

Visual Evoked Potentials– VEPs

Page 8: EVOKED POTENTIALS

Somatosensory Evoked Potentials–SEPs

Page 9: EVOKED POTENTIALS

SEPs during Spinal Surgery

electrode #1 electrode #2

stimulation

recordingelectrodes

Page 10: EVOKED POTENTIALS

EP Scalp Distribution

Page 11: EVOKED POTENTIALS

A. Evoked potentials resulting from a color task in which red and blue flashed checker-

boards were presentedin a rapid, randomizedsequence at the center

of the screen.

B. Scalp voltage distributions evoked

potentials at differentlatency ranges.

Page 12: EVOKED POTENTIALS

Brainstem Auditive EP (BAEPs) in Newborns

wave III stimulus

2 months

8 months

1 ms

I

II III

IV V

VI VII

IIII

IV V

Page 13: EVOKED POTENTIALS

BAEPs of Healthy Children

2–8 years

0–1 years

newborn

premature

latency (ms)

IIII IV VIIwave

Page 14: EVOKED POTENTIALS

Cognitive EPs

Page 15: EVOKED POTENTIALS

Ensemble Formation

Page 16: EVOKED POTENTIALS

Formation of an EP Ensemble stimulus#

EEG signal EP

ens

embl

e

Page 17: EVOKED POTENTIALS

10 Superimposed EPs

latency (ms)

ampl

itude

(mic

roV)

Page 18: EVOKED POTENTIALS

Model for Ensemble Averaging

fixed shape

Page 19: EVOKED POTENTIALS

Noise Assumptions

I.

II.

III.

Page 20: EVOKED POTENTIALS

Ensemble AveragingThe ensemble average is defined by

The more familiar (scalar)expression for ensemble

averaging is given by

Page 21: EVOKED POTENTIALS

Ensemble Averaging

evoked potentials

Page 22: EVOKED POTENTIALS

Noise Variance

The variance of the ensemble average is inversely proportional to the the number of averaged potentials,

that is:

Page 23: EVOKED POTENTIALS

Reduction of Noise Level

#potentials

The noise estimate before division by the

reduction factor 1/√M

Reduction in noise level of the ensemble average

as a function of #potentials

Page 24: EVOKED POTENTIALS

Exponential averaging

The ensemble average can be computed recursively because:

assuming

Exponential averaging results from replacing the weight 1/M with alpha:

Page 25: EVOKED POTENTIALS

Exponential averaging

Page 26: EVOKED POTENTIALS

Noise Reduction of EPs with Varying Noise Level

Assumption: all evoked potentials have

identical shapes s(n) but with

varying noise level.

Such an heterogenous ensemble is processed by weighted averaging.

Page 27: EVOKED POTENTIALS

Weighted Averaging The weighted average is obtained by weighting each

potential xi(n) with its inverse noise variance:

where each weight wi

thus is

This expression reduces to the ensemble average when the noise variance is identical in all potentials.

Page 28: EVOKED POTENTIALS

Weighted Averaging, cont’

How to estimate the varying noise level?

Page 29: EVOKED POTENTIALS

Weighted averaging: An Example

W eight ed a vera ge

Ensemble a vera ge

The ensembleconsists of 80 EPs

with variance 1 and20 EPs with variance20 (heterogenous)

Page 30: EVOKED POTENTIALS

Robust Waveform Averaging

Gaussian noise

Laplacian noise

Page 31: EVOKED POTENTIALS

The Effect of Latency Variations

xi(n) = s(n−θi)+ vi(n)

Signal model:

Page 32: EVOKED POTENTIALS

Lowpass Filtering of the Signal

The expected value of the ensemble average, in the presence of latency variations, is given by:

or, equivalently, in the frequency domain:

Page 33: EVOKED POTENTIALS

Latency Variation and Lowpass Filtering

Gaussian PDF Uniform PDF

Page 34: EVOKED POTENTIALS

Techniques for Correction of Latency Variations

Synchronize with respect to a peak of the signal or similar property.

Crosscorrelation between two EPs.

Woody’s method for iterative synchronization of allresponses of the ensemble. The method terminates when no further latency corrections are done.

Page 35: EVOKED POTENTIALS

Estimation of Latency An Illustration

Input signal

Template waveform

Correlation function

Latency estimate

Page 36: EVOKED POTENTIALS

Woody’s Method

Page 37: EVOKED POTENTIALS

Woody’s Method: Different SNRs

good SNR

not so good SNR

bad SNR

Page 38: EVOKED POTENTIALS

the ensemble average. The optimal “filter” is

SNR-based Weighting

E[(s(n)− sa(n)w(n))2

]

Design a weight function which minimizesw(n)

where denotes the desired signal and s(n) sa(n)

w(n) =σ2s(n)

σ2s(n)+σ2vM

=1

1+ σ2vMσ2s(n)

Page 39: EVOKED POTENTIALS

SNR-based Weighting

Noise-free signal

Ensemble average

Weight function

Weight function multipliedwith ensemble average

Page 40: EVOKED POTENTIALS

Noise Reduction by Filtering

Estimate the signal and noise power spectra from the ensemble of signals.

Design a linear, time-invariant, linear filter such that the mean square error is minimized, i.e., design aWiener filter.

Apply the Wiener filter to the ensemble average to improve its SNR.

Page 41: EVOKED POTENTIALS

Sv1MS

Wiener Filtering

Ss(e jω)

Sv(e jω)

: signal power spectrum

: noise power spectrum

Wiener filter:

H(e jω) =Ss(e jω)

Ss(e jω)+ (e jω)

for one potential

H(e jω) =Ss(e jω)

Ss(e jω)+ v(e jω)

for M potentials

Page 42: EVOKED POTENTIALS

incr

easin

g SN

RFiltering of Evoked Potentials

Page 43: EVOKED POTENTIALS

Limitations of Wiener filtering

Assumes that the observed signal is stationary (which in practice it is not...).

Filtering causes the EP peak amplitudes to be severely underestimated at low SNRs.

As a result, this technique is rarely used in practice.

Page 44: EVOKED POTENTIALS

Tracking of EP Morphology

So far, noise reduction has been based on the entire ensemble, e.g., weighted or exponential averaging

We will now track changes in EP morphology by so-called single-sweep analysis. More a priori information is introduced by describing each EP by a set of basis functions.

Page 45: EVOKED POTENTIALS

Selection of Basis Functions

Orthonormality is an important function property of basis functions.

Sines/cosines are well-known basis functions, but it is often better to use...

...functions especially determined for optimal (MSE)representation of different waveform morphologies (the Karhunen-Loève representation).

Page 46: EVOKED POTENTIALS

Orthogonal Expansions

Page 47: EVOKED POTENTIALS

Basis Functions: An Example

Linear combinations of two basis functions

model a variety ofsignal morphologies

Page 48: EVOKED POTENTIALS

Calculation of the Weights

Page 49: EVOKED POTENTIALS

Mean-Square Weight Estimation

i.e. identical to the previous expression

Page 50: EVOKED POTENTIALS

Truncated Expansion The underlying idea of signal estimation through a truncated series expansion is that a subset of basis functions can provide an adequate representation of the signal part.

Decomposition into ”signal” and ”noise” parts:

The estimate of the signalis obtained from:

Page 51: EVOKED POTENTIALS

Truncated Expansion, cont’

Page 52: EVOKED POTENTIALS

Examples of Basis Functions

Sine/Cosine

Walsh

Page 53: EVOKED POTENTIALS

Sine/Cosine Modeling

K = 3

VEP without noise

#basis functions

K = 7

K = 12

K = 500

Page 54: EVOKED POTENTIALS

Sine/Cosine Modeling: Amplitude Estimate and MSE Error

Page 55: EVOKED POTENTIALS

MSE Basis Functions How should the basis functions be designed so that the

signal part is efficiently represented with a small number of functions?

We start our derivation by decomposing the series expansion of the signal into two sums, that is,

Page 56: EVOKED POTENTIALS

Karhunen–Loève Basis Functions The Karhunene–Loève (KL) basis functions, minimizing

the MSE, are obtained as the solution of the ordinary eigenvalue problem, and equals the eigenvectors

corresponding to the largest eigenvalues:

The MSE equals the sum of the (N-K)smallest eigenvalues

Page 57: EVOKED POTENTIALS

KL Performance Index

Example of theperformance index

Page 58: EVOKED POTENTIALS

How to get Rx?

Page 59: EVOKED POTENTIALS

Example: KL Basis Functions Basis functions Signals

Observed signal: xi

siSignalestimate:

Page 60: EVOKED POTENTIALS

Time-Varying Filter Interpretation

Page 61: EVOKED POTENTIALS

Modeling with Damped Sinusoids

The original Prony method

The least-squares Prony method

Variations

Page 62: EVOKED POTENTIALS

Adaptive Estimation of Weights

Page 63: EVOKED POTENTIALS

Adaptive Estimation of Weights

The instantaneous LMS algorithm, in which the weights of the series expansion are adapted at every time instant, thereby producing a weight vector w(n)

The block LMS algorithm, in which the weights are adapted only once for each EP (“block”), therebyproducing a weight vector wi that corresponds to the i:th potential.

Page 64: EVOKED POTENTIALS

Estimation Using Sine/Cosine

Page 65: EVOKED POTENTIALS

Estimation Using KL Functions

Page 66: EVOKED POTENTIALS

Limitations

Sines/cosines and the KL basis functions lack the flexibility to efficiently track changes in latency of evoked potentials, i.e., changes in waveform width.

The KL basis functions are not associated with any algorithm for fast computations since the functions are signal-dependent.

Page 67: EVOKED POTENTIALS

Wavelet Analysis Wavelets is a very general and powerful class of basis functions which involve two parameters: one for translation in time and another for scaling in time.

The purpose is to characterize the signal with good localization in both time and frequency.

These two operations makes it possible to analyze the joint presence of global waveforms (“large scale”) as well as fine structures (“small scale”) in a signal.

Signals analyzed at different scales, with an increasing level of detail resolution, is referred to as a multi-resolution analysis.

Page 68: EVOKED POTENTIALS

Wavelet Applications

signal characterization

signal denoising

data compression

detecting transient waveforms

and much more!

Page 69: EVOKED POTENTIALS

The Correlation Operation Recall the fundamental operation in orthonormal basis

function analysis: in discrete-time, the correlation between the observed signal x(n) and the basis functions ϕk(n):

In wavelet analysis, the two operations of scaling and translation in time are most simply introduced when the

continuous-time description is adopted:

Page 70: EVOKED POTENTIALS

The Mother Wavelet

Page 71: EVOKED POTENTIALS

The Wavelet Transform

C W T

I C W T

Page 72: EVOKED POTENTIALS

The Scalogram

Compositesignal

Scalogram

Page 73: EVOKED POTENTIALS

The Discrete Wavelet Transform

The discrete wavelet transform (DWT)

The inverse discrete wavelet transform (IDWT)

The CWT w(s, τ ) is highly redundant and needs to be sampled

Dyadic sampling

The discretized wavelet function

Page 74: EVOKED POTENTIALS

Multiresolution Analysis

A signal can be viewed as the sum of a smooth (“coarse”)part and a detailed (“fine”) part.

The smooth part reflects the main features of the signal, therefore called the approximation signal.

The faster fluctuations represent the signal details.

The separation of a signal into two parts is determined by the resolution with which the signal is analyzed, i.e., by the scale below which no details can be discerned.

Page 75: EVOKED POTENTIALS

Multiresolution Analysis Exemplified

Page 76: EVOKED POTENTIALS

Multiresolution Analysis, cont’ In mathematical terms this is expressed as:

Page 77: EVOKED POTENTIALS

The Scaling Function

The scaling function ϕ(t) is introduced for the purpose of efficiently representing the approximation signal xj(t)at different resolution.

This function, being related to a unique wavelet function ψ(t), can be used to generate a set of scaling functions defined by different translations:

where the index “0” indicates that no time scaling isperformed.

Page 78: EVOKED POTENTIALS

The Scaling Function, cont’

The design of a scaling function ϕ(t) must be such that translations of ϕ(t) constitute an orthonormal set of functions, i.e.,

Its design is not considered in this course, but some existing scaling functions are applied.

Page 79: EVOKED POTENTIALS

The Approximation Signal x0(t)

Page 80: EVOKED POTENTIALS

The Approximation Signal xj(t)

(dyadic sampling)

Page 81: EVOKED POTENTIALS

The Multiresolution Property

Page 82: EVOKED POTENTIALS

The Refinement Equation

hϕ(n) is a sequence of scaling coefficients

Page 83: EVOKED POTENTIALS

The Wavelet Function

It is desirable to introduce the function ψ(t) which complements the scaling function by accounting for the details of a signal rather than its approximations.

For this purpose, a set of orthonormal basis functions at scale j is given by

which spans the difference between the two subspaces Vj and Vj+1.

Page 84: EVOKED POTENTIALS

Scaling and Wavelet Functions

Page 85: EVOKED POTENTIALS

Orthogonal Complements

Page 86: EVOKED POTENTIALS

The Wavelet Series Expansion

Compare this expansion with the orthogonal expansions mentioned earlier such as the one with sine/cosine basis

functions, i.e., the Fourier series. The wavelet/scaling coefficients do not have a similar simple interpretation.

Page 87: EVOKED POTENTIALS

Multiresolution Signal Analysis: A Classical Example

The Haar scaling function

The Haar wavelet function

These functions are individually and mutually orthonormal

Page 88: EVOKED POTENTIALS

The Haar Scaling Function

Page 89: EVOKED POTENTIALS

Haar Multiresolution Analysis

Approximation signals Detail signals

Page 90: EVOKED POTENTIALS

Haar Scaling and Wavelet Functions

Page 91: EVOKED POTENTIALS

Computation of Coefficients The scaling and wavelet coefficients can computed recursively by exploring the refinement equation

so that, for example, the scaling coefficients are computed with

see derivation on page 300

Page 92: EVOKED POTENTIALS

Filter Bank Implementation

Page 93: EVOKED POTENTIALS

DWT Calculation

Page 94: EVOKED POTENTIALS

Inverse DWT Calculation

Page 95: EVOKED POTENTIALS

Scaling Function Examples

Page 96: EVOKED POTENTIALS

Coiflet Multiresolution Analysis

Page 97: EVOKED POTENTIALS

Scaling Coefficients in Noise

Page 98: EVOKED POTENTIALS

Denoising of Evoked Potentials

Page 99: EVOKED POTENTIALS

EP Wavelet Analysis

coefficients of W3

reconstructed waveform

coefficients of V3

reconstructed waveform

Visual EP

from Ademoglu et al., 1997

Page 100: EVOKED POTENTIALS

EP Wavelet Analysis, cont’

Normal

Dement

Waveforms reconstructed from V3 and superimposed for24 normal subjects (upper panel) and for 16 patients with

dementia (lower panel).

Page 101: EVOKED POTENTIALS

EMG IS NOT

COVERED IN THIS COURSE