IMF fulfills are necessary for defining instantaneous
frequency.
2.2 Empirical Mode Decomposition
The goal of the empirical mode decomposition is to
decompose original data (signal) to the IMFs and the
residue. The most of the data are not IMFs. At any
time, the data may involve more than one oscillatory
mode. That is why simple Hilbert transform cannot
provide the full description of the frequency. The pro-
cess of acquiring the IMFs is called sifting and it’s de-
scribed below (Qu and Wu, 2008; Huang and Attoh-
Okine, 2005):
1. Initialize the residue to the original signal r
0
(t) =
x(t) and IMF counter i = 1
2. Extract the i-th IMF:
3. Initialize h
0
(t) = r
i−1
(t) and initialize step
counter k = 1
4. Locate local maxima and minima in h
k−1
(t)
5. Create upper envelope by connecting detected
maxima with cubic spline
6. Create lower envelope by connecting detected
minima with cubic spline
7. Calculate the mean m
k−1
(t) by averaging the up-
per and lower envelopes
8. Calculate h
k
(t) = h
k−1
(t) − m
k−1
(t)
9. Check stopping criteria
10. If stopping criteria are satisfied then IMF
i
(t) =
h
k
(t)
11. Else k = k+ 1 and continue with 4
12. New residue is r
i
(t) = r
i−1
(t) − IMF
i
(t)
13. Check stopping criteria of EMD
14. If r
i
(t) has at least 2 extremes then i = i + 1 and
continue with 2
15. Else the decomposition is finished and r
i
(t) is the
residue after decomposition
2.3 EMD Stopping Criteria
During EMD we want to retrieve IMFs described in
chapter 2.1. These functions have to fulfill two con-
ditions. The second condition (mean of the envelopes
is meant to be zero) is very difficult to fulfill. As the
points 4 to 9 of the EMD (from chapter 2.2) are re-
peated, the mean approaches to zero. But this makes
amplitude variations of the individual waves more
even. When we want to achieve strictly zero mean,
we can assume that the amplitudes become constant
and we lose very important information of the signal.
So there were proposed two stoppage criterions. One
original proposed in (Huang and et al., 1998) equation
1.
SD =
T
∑
t=0
|h
k−1
(t) − h
k
(t)|
2
h
2
k−1
(t)
(1)
Alternative for the first one is similar to Cauchy con-
vergence test:
SD =
∑
T
t=0
|h
k−1
(t) − h
k
(t)|
2
∑
T
t=0
h
2
k−1
(t)
(2)
The sifting process will stop, when the SD is smaller
than the selected threshold. The second stoppage cri-
terion is based on the S-number which is defined as
the number of consecutive sifting when the number
of zero-crossings and extremes are equal or differs by
one at most.
2.4 The Hilbert Spectrum
Hilbert transform (Mathworks, 2010; Marple, 1999)
returns the analytic signal from real data sequence.
The analytic signal x = x
r
+ i · x
i
has its real part,
x
r
which represents the original data, and its imag-
inary partx
i
, which contains the Hilbert transform.
The imaginary part is a version of the original real
sequence with a 90 phase shift. Sines are therefore
transformed to cosines and vice versa. The Hilbert
transformed series has the same amplitude and fre-
quency content as the original real data and includes
phase information that depends on the phase of the
original data. The Hilbert transform is useful for cal-
culating instantaneous attributes of time series, espe-
cially the amplitude and frequency. The instantaneous
amplitude is the amplitude of the complex Hilbert
transform; the instantaneous frequency expresses the
rate of change of the instantaneous phase angle. In
case of a pure sinusoid, the instantaneous amplitude
and frequency are constant.
3 EMPIRICAL MODE
DECOMPOSITION OF EEG
When the EMD is performed on the data series, we
are trying to create upper and lower envelopes by con-
necting local extremes with cubic spline. Though,
some difficulties surface in the process. When we
want to create an envelope which covers whole signal,
we have to realize that the first (last) extreme point is
not present in the data at all. So, the closest extreme
to the beginning or the end of the signal belongs to
the upper or lower envelope. Then the second closest
EMD OVERSHOOT EFECT IN ERP DETECTION ERP - Detection related Specifics of the Empirical Mode
Decomposition in EEG Analysis
239