The captured raw data was imported in
MATLAB R2014a
7
via the csvread command into a
MATLAB matrix and any unnecessary rows and
columns were removed. These consisted of the first
five rows which are superfluous comments; the first
column which stored the sample index / packet
counter and the last three columns which stored the
auxiliary data of the accelerometer.
The MATLAB array was later imported into
EEGLAB
8
for processing and for offline qualitative
and quantitative analysis. The first process was to
apply a 50Hz (60Hz in some countries) notch filter
to eliminate the environmental electrical
interference, which was only omitted for the
50/60Hz artefact experiment. In addition a high pass
filter was applied at 0.5Hz to remove the DC offset
and a low pass filter of 49Hz was applied to remove
any signal harmonics and unnecessary frequencies
which are not beneficial in our experiments. As an
alternative a band-pass filter of 0.5Hz-49Hz could
have been chosen, however it was not selected since
this type of filter does not attenuate all frequencies
outside the range. In fact the filter’s frequency
response function is not very steep; it doesn’t
completely cut-off at the required frequency, but
instead it rolls off more gently with the frequency.
The result from this processing yields a rich EEG
signal for our experiments which can be analysed
with different tools. The screenshots presenting the
EEG signal (see Figures 5-15) where plotted by
using the EEGLAB Plot: Channel Data (Scroll)
menu option. The frequency-time domain
screenshots where produced by the Time-Frequency
transforms: Channel-time frequency menu option.
The plot Event Related Spectral Power (ERSP) was
employed since it is a statistical measure; the mean
of a distribution of single-trial time/frequency
transform (Neuper & Klimesch, 2006). In our
processing we used the Fast Fourier Transform
(FFT) option; 400 time points for the time-frequency
decomposition and the frequency was set between
one and forty which provides us with enough
information for artefacts detection. The baseline was
set to the default of 0 for pre-stimulus and the single
trial DIV baseline option was used. Subsequently the
choice of channel number and time range in relation
to the experiment being analysed where entered
(such as Channel 1 for FP1; time range 5000ms –
9000ms).
The spectrogram frequency-domain screenshots
were produced in Matlab; outside of EEGLAB. The
7
https://www.mathworks.com/products/matlab.html
8
https://sccn.ucsd.edu/eeglab/
data was filtered using Butterworth filter design of
the second order. First a notch filter was used
followed by a low pass and a high pass filter; with
the same values used for EEGLAB. The actual code
for the filtering and the spectrogram are shown in
the appendix section.
3 ARTEFACTS - RESULTS
Although a number of research papers have been
published showing different types of artefacts such
as (AYDEMIR et al., 2012) and (Begum, 2014);
these were presented with a “black box” approach or
using medical equipment, or otherwise, mentioned
in a different context. What we present in this paper
are results that are relevant to our own specific low
fidelity hardware.
An EEG device is very sensitive and it is easily
susceptible to disruption from other electrical
activities. Moreover some artefacts are easily
distinguishable while others closely resemble
cerebral activity and are very challenging to be
recognized. Artefacts are usually categorized as
physiological (biological) and non-physiological
(extra physiological) (Fisch, MD, 2000). The
classification mentioned below is not rigorous; for
instance, if the subject makes a movement, this may
lead to artefacts originating as electrode artefact.
Even though signal artefacts caused by non-brain
wave signals can be problematic when studying
brain waves directly, the signal artefacts themselves
could be used directly as command signals within an
interface.
3.1 Physiological Artefacts
Physiological artefacts are bioelectrical signals that
are generated from the user’s body excluding the
brain. These are usually embedded along the
electrical cerebral bio-signals in an EEG session.
The physiological artefacts include, but are not
limited to:
3.1.1 Ocular Artefacts
Ocular artefacts are essentially a result from the
eyeball acting as a dipole which becomes pertinent
when it develops into a moving electrical field such
as when the subject opens and closes his eyes and/or
the EMG potentials from muscles in and around the
orbit. These generate signals that are detected
predominantly by electrodes Fp1/Fp2 and F7/F8.
Detection of Electroencephalography Artefacts using Low Fidelity Equipment
69