Table 1: Three cases that may occur in combining three
partial reconstructions in one (plus their permutations),
where ρ
i j
= kr
i
− r
j
k
2
, µ
i
= max|r
i
|, i, j = 1,2,3, ρ
max
=
max{ρ
i j
}, ρ
min
= min{ρ
i j
}, µ
min
= min{µ
i
}.
case A case B case C
r
1
r
2
r
3
ρ
max
≤ 2ρ
min
or ρ
max
≤ 2ρ
r
µ
3
> µ
min
ρ
12
= ρ
min
µ
1
= µ
min
ρ
23
= ρ
min
f =
r
1
+r
2
+r
3
3
f =
r
1
+r
2
2
f = r
1
putationally.
Note that the artifact removal can be enhanced by
wavelet de-noising of the to-be removed artifact com-
ponents see Castellanos and Makarov, 2006. It has
the positive effect of less removal of cerebral activity
from the data.
3 ARTIFACT REMOVAL
IN MULTIPLE EPOCHS
The data records that are encountered in EEG data
processing are usually long. If the artifact removal is
performed simply epoch by epoch, the performance
may not always be satisfactory. Some artifacts can
fall into two adjacent epochs and are masked. To in-
crease robustness of the procedure, we found useful to
perform the artifact removal in multiple epochs three
times, each time with a different partitioning of the
data into epochs.
The first partitioning of the time is [1,N], [N +
1,2N], ..., [(n−1)N +1,nN], where N is the length of
the epochs and n is the number of the epochs. n can be
arbitrary. In the newborn EEG data, N is 1000-3000
samples, that is 10-20 seconds at 128 Hz or 256 Hz
sampling.
The second partitioning of the time is [1,N/3],
[N/3 + 1, 4N/3], .. ., [N/3 + (n − 2)N + 1,nN −
2N/3], [nN − 2N/3 + 1, nN]. The artifact removal
is performed only in the middle n − 1 epochs of the
length N. In the first and in the last intervals, no arti-
fact removal is performed.
The third partitioning is [1,2N/3], [2N/3 +
1,5N/3], .. ., [nN − 4N/3 + 1,nN − N/3], [nN −
N/3 + 1,nN]. Again, the artifact removal is per-
formed only in the middle n − 1 epochs of the length
N.
Each partitioning gives rise to one possible
artifact-free reconstruction of the whole data. These
reconstructions are combined together in a special
way so that the resulting reconstruction is generally
smoother and more artifact-free than the partial re-
constructions. An example of the three partitioning
and corresponding reconstructions together with a fi-
nal reconstruction is shown in Figure 5.
Combination of the three reconstructions into one
proceeds sequentially, channel by channel, in time
segments that are generally shorter than the epochs
with the application of the ICA. They may have the
form [(k − 1)T
s
+ 1,kT
s
], where T
s
is the length of the
segment (typically 200-300 samples).
Let r
1
, r
2
and r
3
denote the three partial recon-
structions in a channel in some (say the k-th) time
segment. Let ρ
i j
= kr
i
− r
j
k
2
denote the squared Eu-
clidean distances of the reconstructions, i, j = 1,2,3,
and let µ
i
denote the maximum absolute value of el-
ements of r
i
, i = 1,2,3. Let ρ
r
denote the average
squared norm krk
2
of a data segment r of the same
length as r
i
, randomly or systematically chosen in the
whole available data, and let f denote the desired fi-
nal reconstruction. The choice of f is summarized in
Table 1.
In short, some of the three reconstructions might
not be artifact-free and potentially still contain signifi-
cant residua of the artifact. This possibility is presum-
ably characterized by a relatively large µ
i
. Therefore
the proposed algorithm combines only “good” partial
reconstructions. Depending on values of ρ
i j
and µ
i
,
i, j = 1,2,3, f is obtained as the average of one, two,
or all three reconstructions.
4 SIMULATIONS
4.1 Removal of Artificial EEG Artifacts
In this subsection, performance of the proposed algo-
rithm is studied on a visually noise-free EEG data set
with five embedded artifacts, see figure 4a and 4b.
The proposed artifact removal procedure was
applied with ICA (BGSEP with parameter 10) was
computed in epochs of the length of 2500 samples
(≈ 20s). The time window for the reconstruction
had 256 samples (2s). The limit sparsity was set
to 3. Each artifact components was de-noised
using the Matlab wavelet toolbox, the command
wden(data,’minimaxi’,’s’,’one’,7,’sym5’),
prior its removal in each epoch and prior the synthesis
of the three reconstructions. The resultant cleaned
data and the estimated artifact (the noisy data minus
the reconstruction) are shown in Figures 4(b) and
4(c), respectively. We note that the artifact removal
is somewhat conservative, i.e. that the estimated
BIOSIGNALS 2011 - International Conference on Bio-inspired Systems and Signal Processing
532