
BrainAmp EEG amplifier from Brain Products GmbH
in Gilching, Germany. The data was recorded at
a frequency of 1,000 Hz, but then downsampled to
200 Hz. Thirty active EEG electrodes were secured
using a stretchy cloth cap from EASYCAP GmbH
in Herrsching am Ammersee, Germany, using the
worldwide 10-5 system (Oostenveld and Praamstra,
2001). Fp1, Fp2, AFF5h, AFF6h, AFz, F1, F2, FC1,
FC2, FC5, FC6, Cz, C3, C4, T7, T8, CP1, CP2, CP5,
CP6, Pz, P3, P4, P7, P8, POz, O1, O2, TP9 (used as
reference), and TP10 (used as ground) electrodes had
been used. After then, the collected data was down-
sampled to 200 Hz.
4 METHODOLOGY
In this section, we discuss our approach in detail. We
first cover the data pre-processing followed by the
windowing details. In section 4.3, we discuss feature
extraction techniques. We discuss our classification
framework in section 4.4, and ensemble majority vot-
ing in section 4.5.
4.1 Pre-Processing
Data preprocessing is a key component in enhancing
the quality of EEG signals. Noise and distortions in
EEG data can have a considerable influence on the ac-
curacy and reliability of analytical models. EEG sig-
nals have distinct properties in terms of frequencies,
spatial patterns, and correlations with various brain
states. Delta (0.5 to 4 Hz), theta (4 to 8 Hz), alpha
(8 to 13 Hz), and beta (13 to 30 Hz) are common fre-
quency bands, each correlating to various stages of
brain activity, such as profound sleep or awake. We
follow the subsequent steps to clean the data (Parveen
and Bhavsar, 2023).
• Reference electrodes are often used to record EEG
signals. We used average referencing in this
study, which includes determining the mean value
for each channel and subtracting it from all data
points linked with that channel.
• EEG signals contain a variety of frequency com-
ponents that reflect broad behavioral patterns in
neurons. We used a 6th order Butterworth band-
pass filter (an infinite impulse response or IIR fil-
ter) in the 1-60 Hz range to eliminate unwanted
frequency components. This filter effectively re-
moves low-frequency drifts and high-frequency
noise, covering a range from delta to gamma fre-
quencies. We also used a 50 Hz notch filter to
mitigate line noise interference.
• EEG signals can contain artifacts, which are sig-
nals unrelated to brain activity, originating from
sources like eye blinks or muscle movements. Re-
moval of artifacts is a critical step in EEG analy-
sis. In our study, we employed the ADJUST algo-
rithm (Mognon et al., 2011), which implements
independent component analysis (ICA) to sepa-
rate EEG signals into independent components,
each representing different sources of brain activ-
ity, some of which may contain artifacts.
4.2 Windowing
Following preprocessing, we applied sliding windows
with a size of 800 samples and an overlap of 200 sam-
ples across the entire EEG signal length for all sub-
jects. 37 windows with shape 28 x 800 are contributed
by each subject. The motivation behind choosing 800
time samples is to capture the mental activity for all
levels of n-back task. As per the experiment, every
other stimuli appears 2 seconds after the first stimuli.
By taking 4 seconds of data on account, our aim is
to analyse the EEG pattern on how the subject pro-
ceeds with new information while retaining the previ-
ous knowledge. We get a total of 7696 training and
962 test windows for each of the three n-back tasks,
comprising data from all sessions and all subjects.
4.3 Feature Extraction
In this study, we employed the SWT with a
Daubechies 4 (db4) mother wavelet of order 3 to de-
compose windowed EEG signals into six wavelets,
representing different levels of decomposition, pro-
viding a comprehensive view of both high and low-
frequency components. SWT helps detect transient
events and changes in brain activity, making it cru-
cial for assessing mental workload using EEG sig-
nals. Time domain data captures temporal transients
and spatial variations, while frequency domain fea-
tures reveal spectrum patterns representing diverse
cognitive states associated with varying levels of men-
tal workload. Following SWT, we calculated vari-
ous time and frequency domain features, including
mean, standard deviation, skewness, kurtosis, and
Hjorth mobility and complexity in order to obtain av-
erage amplitude, variability in signal values, asymme-
try, shape of a probability distribution, unpredictabil-
ity and mobility of EEG signals respectively (Safi
and Safi, 2021). We also analyze the Power Spec-
tral Density (PSD) within delta, theta, alpha, beta,
and gamma frequency bands of EEG signals in or-
der to trigger adaptive responses in real-time systems
(Welch, 1967). The features are calculated on each
BIOSIGNALS 2024 - 17th International Conference on Bio-inspired Systems and Signal Processing
772