<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD v1.0 20120330//EN" "JATS-archivearticle1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink">
  <front>
    <journal-meta>
      <issn pub-type="ppub">1613-0073</issn>
    </journal-meta>
    <article-meta>
      <title-group>
        <article-title>Emotion detection using deep learning on spectrogram images of the electroencephalogram</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Mauro Mezzini</string-name>
          <email>mauro.mezzini@uniroma3.it</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Department of Education, Roma Tre University</institution>
          ,
          <addr-line>00185 Rome</addr-line>
          ,
          <country country="IT">Italy</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>In this paper it is proposed a deep learning technique for emotion classification using spectrogram images produced from the related electroencephalogram (EEG) signals. The idea is to use the classical, state-of-the-art deep learning techniques for image recognition applied to the spectrogram of the EEG signal. The goal is to detect and recognize the level of valence, arousal, dominance, and likability. Extensive experiments are carried on with diferent convolutional neural network architectures on the publicly available DEAP dataset in order to find the best possible model with respect to the accuracy of the prediction. A new data augmentation technique on EEG signals has been experimented with and validated. The model has been developed and evaluated by taking a random permutation of the dataset and partitioning it in 80% training, 10% validation, and 10% test. Doing so allowed us to assess the model's ability to recognize an individual's emotion based on the EEG signals of other individuals. Results show that the models can learn and detect emotions with high accuracy at the same level as the state of the art of analogous models already presented in the literature.</p>
      </abstract>
      <kwd-group>
        <kwd>EEG</kwd>
        <kwd>Deep learning</kwd>
        <kwd>CNN</kwd>
        <kwd>Emotion recognition</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>-</title>
      <p>CEUR
ceur-ws.org</p>
    </sec>
    <sec id="sec-2">
      <title>1. Introduction</title>
      <p>The use of physiological signals for emotion recognition and detection has been the subject
of several studies in the recent past. An emotion can be detected and recognized by a
selfassessment of the subject or can be inferred from physiological signals. Subjective self-reports,
while valuable, could raise validity issues. On the other hand, physiological signals can be
used to evaluate emotions objectively. The ability to objectively assess the emotional state
of a person could be employed in a wide variety of fields like (but not limited to) education,
medicine, and entertainment with applications ranging from medical diagnostic, robotic and
automatic assistance of motion impaired persons, validation of recommendation algorithms
and, generally speaking, for brain-computer interface (BCI).</p>
      <p>
        An emotion can be defined as a complex psychological state that involves three distinct
components: a subjective experience, a physiological response, and a behavioral or expressive
response. Various descriptions of these states have been proposed: In one approach, a discrete
categorization of emotions is devised as proposed by Ekman et al. [
        <xref ref-type="bibr" rid="ref1">1</xref>
        ] and by Plutchik [
        <xref ref-type="bibr" rid="ref2">2</xref>
        ] where
Italy
CEUR
Workshop
Proceedings
      </p>
      <p>
        © 2023 Copyright for this paper by its authors. Use permitted under Creative Commons License Attribution 4.0 International (CC BY 4.0).
both proposed several universal basic emotions such as anger, fear, sadness, disgust, surprise,
and joy. In this perspective, the emotions could be represented as a graph whose nodes are the
emotions and the edges are the links that connect similar emotions, and various algorithms can
be employed to explore the properties such graphs[
        <xref ref-type="bibr" rid="ref3 ref4">3, 4</xref>
        ].
      </p>
      <p>
        A second perspective of describing emotions is called dimensional approach (see Figure 1). In
this case, the emotions are described along three dimensions: valence, arousal, and dominance.
Valence goes from pleasant (very positive) to unpleasant (very negative). Arousal indicates how
much excitement is involved in the feeling of the emotion: from very excited and active, to
very calm, bored, and/or sleepy. Dominance indicates the degree of control one feels: from
being helpless and weak or without control to feeling in control of everything. We will refer to
them in the following as emotion dimensions. The dimensional approach allows us to assess
emotions quantitatively, and it is a common approach adopted in much of the literature on
emotion detection and, therefore, is the approach used in this paper. There can be many ways to
asses an emotional dimension: the subject self-assessment, physiological signals, and external
signals like facial expression. Physiological signals may range from Galvanic Skin Resistance,
Hearth Beat Rate, Respiration Rate, and Electroencephalogram (EEG). The last method attracted
much interest from the researchers because it directly obtains signals from where the emotions
start to form -the brain- (although the paper [
        <xref ref-type="bibr" rid="ref5">5</xref>
        ] hypothesized that emotion responses originates
in the heart) and is relatively noninvasive and simple to obtain.
      </p>
      <p>
        In this work, we developed deep learning models using the DEAP EEG recording dataset [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ].
Our approach consists of pre-processing the EEG signal to obtain the spectrogram image for
each EEG channel. The research hypothesis is that the spectrogram, treated as an image, can be
used to efectively detect the level of emotions. The experiments where conducted in order to
determine the best CNN model and in order to select the best hyperparameters to apply to the
model.
      </p>
      <p>
        The spectrogram is a 2-dimensional array  obtained from the EEG signal; each column  of 
represents the signal’s Power Spectral Densities (PSD) in the time interval  . In other words,
(, ) is the power of the sinusoid of the signal at frequency  in the time interval  . We obtain a
spectrogram image or a 3-dimensional tensor by stacking all EEG channels together. Then, we
use the state-of-the-art convolutional neural network (CNN) architectures [
        <xref ref-type="bibr" rid="ref7 ref8">7, 8</xref>
        ], commonly
employed for image detection, to recognize the emotion dimensions described above. In this
paper, we adopt the standard methodology of fine-tuning the model on the validation set and
then evaluate it on a test set. We take a random permutation of the dataset and partition it
into three sets: training, validation, and testing. We made extensive experiments using many
combinations of hyperparameters and configurations. We provide a detailed description of
the experiments done, accompanied by detailed reports of data results. We also provide the
running code on a Colaboratory notebook. The novelty of this work is in the fact that this is
(to the best of my knowledge) the first paper that uses the state-of-the-art ResNet architecture
in conjunction to the spectrogram images. This approach will consider in a single image the
spatial, temporal and the frequency domain feature of the EEG signal thus allowing to employ
the power of ResNet architecture in image detection and recognition. Furthermore this allow
us to avoid the heavy prepossessing analysis to found (if any) the most relevant EEG channel
which gives the most significant response to the emotional stimulus as described in [
        <xref ref-type="bibr" rid="ref9">9</xref>
        ].
      </p>
      <p>The work is organized as follows. In Section 2, we briefly cover the most significant related
literature. In Section 3, we describe the dataset and the pre-processing algorithms we employed
to obtain the tensors used as input to the models. In Section 4, we report the experiments’
results and the models’ evaluation. In Section 5, we give final remarks and directions for future
works.</p>
    </sec>
    <sec id="sec-3">
      <title>2. Related works</title>
      <p>
        Emotion detection and recognition have been the subject of several studies in literature [
        <xref ref-type="bibr" rid="ref10 ref11">10, 11</xref>
        ].
While many use classical machine learning techniques, relatively few use modern deep learning
architectures [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ]. In [
        <xref ref-type="bibr" rid="ref6">6</xref>
        ], a dataset, called DEAP, of EEG signals recorded from 32 participants
watching music videos is presented. They obtained a total of 1280 recordings. They computed
the PSD of the signal over the trial length. Then, they took the average of the PSD over four
frequency bands: theta (4-7 Hz), alpha (8-13 Hz), beta (14-29 Hz), and gamma (30-47 Hz). They
determined that positive and negative correlations exist between the band’s strength detected
in some of the electrodes and the intensity of valence and arousal. They developed a Gaussian
naive Bayes model reaching an accuracy of 0.620 on arousal, 0.576 on valence, and 0.554 on
liking. In [13], another dataset, AMIGOS, is created similar to the DEAP dataset. In this case,
the number of participants was 16, and the number of short videos they watched was 40. They
also developed a Gaussian naive Bayes model, which attained an accuracy of 0.576 on valence
and 0.592 on arousal by using the EEG signal alone. In [14], a hybrid 1-dimensional CCN +
LSTM model is developed for detecting valence and arousal. They make the first experiment by
training the model on the data of each single participant. Part of the data of a single participant
was used as a training set and the other as a test set. For example, using the DEAP dataset, they
took, out of 40 videos, 32 for the training set and the remaining 8 videos as a test set. They
did a similar experiment on three datasets: DEAP, DREAMER [15], and DASP [16]. The final
accuracy was calculated by taking the average of all the results. They reached an accuracy of
63.02% on valence and 67.34% on arousal when using exclusively the EEG signal. However, it
is not explained in detail what kind of features are given in input to the model. In [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ], four
distinct datasets have been used: DEAP, AMIGOS, DREAMER, and MAHNOB-HCI [17]. They
ifrst compute the PSD of each EEG channel of three EEG bands, namely, theta (4-7 Hz), alpha
(7-13 Hz), and beta (13-30 Hz). The PSD was then averaged over the trial length. Then, they
plotted the power spectrum heat maps for the three EEG bands using bicubic interpolation
to obtain a 2D image according to the standard EEG 10-20 system. These images contain the
topographical information for the three frequency bands and are treated as standard images.
Their idea is to feed these images to a state-of-the-art convolutional image detector. They used
the well-known (albeit relatively old) VGG-16 architecture [
        <xref ref-type="bibr" rid="ref8">8</xref>
        ] pretrained on Imagenet [18].
They employed the so-called leave-one-subject-out evaluation and averaged the results over all
participants. They obtained, by using the EEG signal alone, the accuracy of 71.09% on valence,
72.58% on arousal, and 74.77% on liking.
      </p>
      <p>It is worth noting that the vast majority (if not all) of the works published in literature
employ a 10-fold cross-validation scheme (see [19]). In this work, we also used a more classical
evaluation scheme based on the partition of the dataset into three subsets: training, validation,
and test sets. In the evaluation scheme containing a validation set, the hyperparameters of
the model, the principal component analysis, and all the design choices about the model’s
efectiveness are chosen using the validation set. During the fine-tuning of the hyperparameters,
the best model is chosen based on its performance on the validation set. Once the choice is
made, it is tested on a test set to assess the model’s performance and objectively evaluate its
efectiveness. It is also worth noting that, since the datasets present in literature albeit contain
a fair amount of data, their quantity is orders of magnitude less than the quantity of data
contained in the analogous dataset commonly employed in the field of image detection [ 20]
and object detection [21, 22] where billions of (labeled) images are easily provided. Therefore,
the performances of the deep learning models developed in the literature for emotion detection
from EEG signals are less impressive than the analogous performance in image detection and
recognition.</p>
    </sec>
    <sec id="sec-4">
      <title>3. Methods</title>
      <sec id="sec-4-1">
        <title>3.1. Dataset description and preprocessing</title>
        <p>We built and tested the prediction models using one of the best-known online datasets, the
DEAP dataset. This dataset contains the EEG signals of 32 individuals that were collected while
the subjects watched and listened to music videos taken from YouTube. Each subject was invited
to view 40 one-minute videos and then asked to express her emotions on the dimensional model
described above. In the following we refer to the EEG signals of one participant watching
one video as an experiment or trial. Additionally, a parameter called likability was used to
quantify how much the participant liked the stimulus. In the following we treat likability as
another emotion dimension. For each emotion dimension, the participant was asked to rate its
intensity on a continuous scale between 1 and 9, where 1 stands for minimum intensity, and 9
for maximum intensity. We transformed the continuous scale of each emotion dimension  into
a binary value () ∈ {0, 1} so that () = 0 if  &lt; 5 , () = 1 if  ≥ 5 .</p>
        <p>The EEG signal consists of 32 channels, each corresponding to an electrode that measures
the diference in electric potential in the skull area where it is positioned.</p>
        <p>We used for all the experimentation ResNet101 and VGG11 architectures, referred in the
following as the CNN architectures. The input tensor  to the CNN architecture has three
dimensions denoted by the depth  , the height  and the width  . Each data point of the input
tensor will be denoted as  (,  , ) . In all subsequent configurations the width of the input
tensor is the time.</p>
        <sec id="sec-4-1-1">
          <title>3.1.1. Spectrogram computation</title>
          <p>We divided the raw signal of each of the 32 EEG channels in 34 overlapping segments, called
time segments, each of which is composed by 256 data points and the amount of overlapping is
32 data points1. For each time segment the Discrete Fourier Transform (DFT) is computed with
a Tukey window and from it we obtained the PSD (for more details on the definition of PSD and
spectrogram please refer to [23, 24, 25]). Since each window is composed by 256 data points,
the DFT returns a total of 129 diferent frequencies. These frequencies are between 0 and 64Hz,
since the signal available in the DEAP dataset has been (down)sampled at 128Hz. Since the
DEAP dataset’s preprocessed data have a bandpass frequency filter from 4.0-45.0Hz, we excluded
all the frequencies outside such interval (which are 0), eventually obtain 2(45 − 4) + 1 = 83
diferent frequencies. Figure 2 shows: in (a) an example of the original signal and in (b) the PSD
of one window.</p>
        </sec>
        <sec id="sec-4-1-2">
          <title>3.1.2. Hyperparameters configuration</title>
          <p>
            Therefore in its basic configuration the input tensor has dimensions  = 32 ,  = 83 and  = 34
(see Figure 3 for a heat map of the channels’ spectrograms stacked together). We called it the
normal, configuration. However we developed other two configurations of the input tensor.
The second configuration is obtained by the first one by subtracting to each time segment the
PSDs of the first 3 seconds of recording, in which the subject has been exposed to a neutral
1The amount of overlapping has been chosen by following the best practices of the digital signal processing
community.
stimulus. We called it as the delta configuration. A third configuration has been obtained in the
following manner. Three frequency intervals have been chosen: theta (4-7 Hz), alpha (7-13 Hz)
and beta (13-30 Hz) according to the paper [
            <xref ref-type="bibr" rid="ref12">12</xref>
            ]. Then the average of the frequencies in each
interval have been computed obtaining an input tensor of height  = 3 . Then, we swapped
the height axis with the depth axis of the tensor, obtaining an input tensor with  = 3 ,  = 32
and  = 34 . This configuration is called reduced and allowed us to use a CNN architecture in
which the weights were pretrained on Imagenet since 3 is the depth of first convolutional layer
of a pretrained model.
          </p>
          <p>We developed three diferent way of data normalization. In the first, called ifne normalization,
for each time slot  , for each frequency  and for each EEG channel  we computed the maximum
 1(,  , ) for all the trials. We first compute
The second type of data normalization, called coarse normalization, is obtained by computing
the maximum  2() , along all the trials for each EEG channel  . In this case we first computed
 2(,  , ) =
 (,  , )</p>
          <p>2()
 1(,  , ) =
 (,  , )
 1(,  , )
 1(,  , ) =
 1(,  , ) − 
 1(,  , )
1(,  , )
and after this we computed the average  1(,  , ) and the standard deviation  1(,  , ) for all
the trials using the values of  1. Then each data point of the normalized tensor  1 is given as
and after this we computed the average  2() and the standard deviation  2() along all the
experiments for each EEG channel  using the values of  2. Then each data point of the
normalized tensor  2 is obtained as
 2(,  , ) =
 2(,  , ) −</p>
          <p>2()
 2()
in the third type of data normalization, called all normalization, we computed the maximum 
of all data points of the input tensor. Then,</p>
          <p>3(,  , ) =
 3(,  , ) =
 3(,  , ) − 
 (,  , )


and after this we computed the average  and the standard deviation  is of all data points of the
tensor  3. Then each data point of the normalized tensor  3 is obtained as</p>
          <p>Other type of configurations has been obtained by swapping the height axis (frequencies)
and the depth axis (channels) of the first two configurations. We call these configurations as
obtained by the swap of frequencies.</p>
          <p>We employed a data augmentation scheme which consists in a random shift of the input
tensor, after normalization but before the swap of frequencies, by an amount of up to 15% or 20%
or 22% of the width of the tensor. This is motivated by the fact that a particular emotion may
be felt by one subject at certain time while other subjects may feel the same emotion slightly
before or slightly later. We used, in the backpropagation algorithm, the cross entropy (CE) loss
function. Generally speaking, the CE gives a measure of the distance between two probability
distributions  and  over the same domain  = {1, 2 … ,  }
, i.e. a set of classes. Its definition is
 (, ) =

∑ () log
=1</p>
          <p>1
()
(1)

Let  =  ()</p>
          <p>be the  -dimensional output of the CNN architecture  where  is the input
tensor and  is the number of classes of the model. Let   be the ground truth (GT) class
corresponding to  . Applying the softmax function to  we obtain a  -dimensional vector
  such that 0 ≤   () ≤ 1 and ∑</p>
          <p>=1   () = 1 . The predicted class  ̂ , is the class for which
  ( ̂ ) ≥   () for  ∈  . If we interpret   as a probability function, the best model should
produce a   that minimizes the CE between the GT probability distribution   () . It is common
to assume that   () = 0 if  ≠   and   () = 1 if  =   . Suppose, for the sake of simplicity that
 = 2 , as in all of our models, and suppose that to the input  , with GT class   corresponds
a probability   () = 0.49 if  ≠   and   () = 0.51 if  =   . Clearly, in this case, the model
produces a   which is quite distant to   . Nevertheless the model’s predicted class is correct. In
other words, any probability function   such that   (  ) &gt;   () for all  ≠   is a correct output
of the model regardless its distance from the GT probability   . Given these observations, we
applied in our experiments the label smoothing [26] scheme. In other words we relaxed the
requirement that   () = 1 if  =   and   () = 0 otherwise, and assume only that   (  ) &gt;   ()
for all  ≠   . We tested the label smoothing scheme by choosing   (  ) to be equal to 0.75 or 0.9
or 1.0.</p>
          <p>Counting all the possible combinations of hyperparameters we obtain a total of 864 diferent
configurations, for each CNN architecture, denoted in the following as grid points.</p>
        </sec>
      </sec>
      <sec id="sec-4-2">
        <title>3.2. Data and experimentation setup</title>
        <p>We used Pytorch framework [27] for the CNN models and the package Scipy [28] for computing
spectrograms and DFTs of the EEG signal. We made publicly available the software we developed
in a Colaboratory notebook2. In order to asses which configuration gives out the best model we
conducted a grid search on the 864 grid points described in the previous section. Both Resnet101
and VGG11 architectures were modified in order to accept in input a tensor that has depth not
necessarily equal to 3, which is the fixed default in these architectures since they were originally
developed for RGB image detection and recognition. Every model outputs a binary value which
represents the high/low value of the corresponding emotion dimension.</p>
        <p>We applied a backpropagation algorithm based on SGD, with a batch size of 32,
momentum=0.9, weight_decay=0.0005. We employed a warm up scheme in which the
initial learning rate is first decreased by a factor of 10−3 and then linearly increased in the first 32
epochs. After this warm up, the learning rate for all grid points without a pretrained model
is 3.0 × 10−3 and for the pretrained models is 1.0 × 10−3. In both cases and after warm up, the
learning rate is decreased every 20 epochs by a factor of 0.85. The total number of epochs for
all grid points is 440.</p>
        <p>In order to test the efectiveness of the models we conducted a completely randomized
experiments. To do so we computed a random permutation of the 1280 experiments of the
dataset. Of the first 256 experiments of the permutation 128 has been used for the validation
and the other 128 for test set. The remaining 1024 are used for the training set. In Table 1 are
reported for each emotion dimension and each set the quantity and percentage of experiments
labeled 1.</p>
        <p>We also conducted several  -fold analysis. In the first one we computed a random permutation
of the 1280 trials and used a 10-fold analysis by considering 128 trials for the test and the other
for the training. Furthermore we conducted a 32-fold analysis by considering 40 trials of a
2https://colab.research.google.com/drive/1g3uV0uI7cFlOOew3rzfRz6BzsINgkgRO?usp=sharing
single participant as a test and the others as a training. This last experiment has been conducted
because most of the works in the literature report using this kind of evaluation analysis.</p>
        <p>The experiment setup is as follow. We first conducted a grid search over all the grid points
described above using only the ResNet101 architecture. Based on the results of the grid search
we selected the best hyperparameters. Then we train again both ResNet101 and VGG11 on
these hyperparameters. During this last training we saved the models which achieved the best
accuracy on the validation set in the last 340 epochs. We repeated this training for 30 times
overall collecting 30 ResNet101 and 30 VGG11 models for each of the four emotion dimensions.
We observed a lot of variability during the training phase even when the learning rate becomes
very small and the model overfits the training set. For example, in Figure 4 we have the accuracy
plot for both the training and validation set for the best grid point of the model predicting
Arousal. This suggested utilizing an ensemble of the models. We tested an ensemble of 30 and
15 of these models all from the same architectures. We also used an ensemble of 60 and 30
models from both CNN architectures.</p>
      </sec>
    </sec>
    <sec id="sec-5">
      <title>4. Results</title>
      <p>In all the grid points the training average accuracy is over 0.750 and can easily reach 0.999, a
clear sign that the models overfits quite efectively. Furthermore we observed that even when
the model overfits and the learning rate is very small, there is still quite a lot of variability in
the accuracy on the validation set. For each diferent type of emotion dimension and for each
grid point, we computed the average, standard deviation and the maximum of the accuracy
over the last 340 epochs for the validation set. Eventually we selected the hyperparameters
reported in Table 2.</p>
      <p>In Table 3 we report the results of the ensemble tests. In the ensemble test we run a number
 of models and the output is defined by the majority. The values reported are the accuracy
obtained using diferent ensemble configurations. We tested single architecture (ResNet101 and
VGG11) with 15 and 30 models ensemble. We also mixed 30 ResNet101 and 30 VGG11 (resp. 15).
The row called average is the average of the accuracy of the four emotion dimensions. The row
Avg. single models represents the average of the accuracy over all  ∈ {15, 30} single models.
The row diferences is the diference in percentage between the two previous rows. We can see
that in all cases the ensemble of models improve the accuracy of both the validation and the
test set. By mixing both architectures we obtain a gain of more than 4% in accuracy.</p>
      <p>In Table 4 are reported the results of the  -fold experiments. In the  -fold experiment the
dataset is partitioned in  disjoint parts. One part is the test set and the other  − 1 will comprise
the training set. We did two kind of experiments. In the first one a random partition of the trials
is determined; this partition is composed by 10 elements each of which contains 128 trials. In
the second case the partition is composed by 32 elements each of which contains the 40 trials of
one participant. In all cases we record the maximum accuracy of the model over the test set and
averaged this number over all the tests. In the columns containing the label . &gt; 100 , we took
the maximum accuracy on the test set restricted over the last 340 epochs of the training because
after the epoch 100 the model is more stable. When the column contains the label . &gt; 0 we
took the maximum accuracy on the test set over all the epochs. We see that in the case when
 = 32 participants and we take the maximum accuracy over all the epochs, we obtain the best
accuracy results which are quite comparable to the best already achieved in literature.</p>
    </sec>
    <sec id="sec-6">
      <title>5. Conclusion and future works</title>
      <p>
        In this work we developed a new technique for emotion detection using the EEG signal. We
stacked together the spectrogram of each EEG channel in order to obtain a 3-dimensional tensor
which encloses frequencies, temporal and spatial information. In this way we transformed the
emotion detection problem in an image recognition problem. Therefore we were able to use the
state-of-the-art convolutional architectures which proved quite efective on image detection.
Future works aims to apply the same methodology to the other dataset already available in
literature. Another line of research is to integrate to the EEG signals other types of biological
signals (ECG, GSR, etc.) since, as reported in literature [
        <xref ref-type="bibr" rid="ref12">12</xref>
        ], the combined use of diferent
biological signals significantly increases the accuracy of the models. We built and tested the
prediction models using one of the best-known online dataset, the DEAP dataset. However
future works will consider to extend this approach to other datasets. One of the challenge in
this field, if compared with the field of image detection, is that in the latter there exist datasets
containing millions and even billions of images, while the datasets already available of EEG
signals contain thousand or even less examples, collected from a few scores of participants.
Moreover these datasets are not homogeneous and often collect diferent type of emotions.
Therefore one of the possible future work is to collect a larger database of EEG signal in term of
number of experiments and number of participants.
[13] J. A. Miranda-Correa, M. K. Abadi, N. Sebe, I. Patras, Amigos: A dataset for afect,
personality and mood research on individuals and groups, IEEE Trans. Afect. Comput.
12 (2021) 479–493. URL: https://doi.org/10.1109/TAFFC.2018.2884461. doi:10.1109/TAFFC.
2018.2884461.
[14] R. Agarwal, M. Andujar, S. Canavan, Classification of emotions using eeg activity associated
with diferent areas of the brain, Pattern Recognition Letters 162 (2022) 71–80. URL:
https://www.sciencedirect.com/science/article/pii/S016786552200263X. doi:https://doi.
org/10.1016/j.patrec.2022.08.018.
[15] S. Katsigiannis, N. Ramzan, Dreamer: A database for emotion recognition through eeg
and ecg signals from wireless low-cost of-the-shelf devices, IEEE Journal of Biomedical
and Health Informatics 22 (2018) 98–107. doi:10.1109/JBHI.2017.2688239.
[16] A. Baghdadi, Y. Aribi, R. Fourati, N. Halouani, P. Siarry, A. M. Alimi, Dasps database, 2021.
      </p>
      <p>URL: https://dx.doi.org/10.21227/barx-we60. doi:10.21227/barx- we60.
[17] M. Soleymani, J. Lichtenauer, T. Pun, M. Pantic, A multimodal database for afect
recognition and implicit tagging, IEEE Transactions on Afective Computing 3 (2012) 42–55.
doi:10.1109/T- AFFC.2011.25.
[18] J. Deng, W. Dong, R. Socher, L.-J. Li, K. Li, L. Fei-Fei, Imagenet: A large-scale hierarchical
image database, in: 2009 IEEE Conference on Computer Vision and Pattern Recognition,
2009, pp. 248–255. doi:10.1109/CVPR.2009.5206848.
[19] A. Topic, M. Russo, Emotion recognition based on eeg feature maps through deep learning
network, Engineering Science and Technology, an International Journal (2021).
[20] P. Goyal, M. Caron, B. Lefaudeux, M. Xu, P. Wang, V. Pai, M. Singh, V. Liptchinsky, I. Misra,
A. Joulin, P. Bojanowski, Self-supervised pretraining of visual features in the wild, CoRR
abs/2103.01988 (2021). URL: https://arxiv.org/abs/2103.01988. arXiv:2103.01988.
[21] R. Balestriero, M. Ibrahim, V. Sobal, A. Morcos, S. Shekhar, T. Goldstein, F. Bordes, A. Bardes,
G. Mialon, Y. Tian, A. Schwarzschild, A. G. Wilson, J. Geiping, Q. Garrido, P. Fernandez,
A. Bar, H. Pirsiavash, Y. LeCun, M. Goldblum, A cookbook of self-supervised learning,
2023. arXiv:2304.12210.
[22] A. Ferrato, C. Limongelli, M. Mezzini, G. Sansonetti, Using deep learning for
collecting data about museum visitor behavior, Applied Sciences (Switzerland) 12 (2022).
URL: https://www.scopus.com/inward/record.uri?eid=2-s2.0-85122372298&amp;doi=10.3390%
2fapp12020533&amp;partnerID=40&amp;md5=34cbc3ee04afb84f4911d6172acac2f7. doi:10.3390/
app12020533, cited by: 11; All Open Access, Gold Open Access, Green Open Access.
[23] M. X. Cohen, Analyzing neural time series data: theory and practice, MIT press, 2014.
[24] P. Welch, The use of fast fourier transform for the estimation of power spectra: A method
based on time averaging over short, modified periodograms, IEEE Transactions on Audio
and Electroacoustics 15 (1967) 70–73. doi:10.1109/TAU.1967.1161901.
[25] W. H. Press, S. A. Teukolsky, W. T. Vetterling, B. P. Flannery, Numerical Recipes 3rd Edition:</p>
      <p>The Art of Scientific Computing, 3 ed., Cambridge University Press, USA, 2007.
[26] M. Mezzini, Empirical study on label smoothing in neural networks, Computer Science</p>
      <p>Research Notes 2802 (2018) 200–205. URL: www.scopus.com, cited By :1.
[27] A. Paszke, S. Gross, F. Massa, A. Lerer, J. Bradbury, G. Chanan, T. Killeen, Z. Lin,
N. Gimelshein, L. Antiga, A. Desmaison, A. Kopf, E. Yang, Z. DeVito, M. Raison, A. Tejani,
S. Chilamkurthy, B. Steiner, L. Fang, J. Bai, S. Chintala, Pytorch: An imperative style,
high-performance deep learning library, in: Advances in Neural Information Processing
Systems 32, Curran Associates, Inc., 2019, pp. 8024–8035. URL: http://papers.neurips.cc/
paper/9015-pytorch-an-imperative-style-high-performance-deep-learning-library.pdf.
[28] P. Virtanen, R. Gommers, T. E. Oliphant, M. Haberland, T. Reddy, D. Cournapeau,
E. Burovski, P. Peterson, W. Weckesser, J. Bright, S. J. van der Walt, M. Brett, J. Wilson,
K. J. Millman, N. Mayorov, A. R. J. Nelson, E. Jones, R. Kern, E. Larson, C. J. Carey, İ. Polat,
Y. Feng, E. W. Moore, J. VanderPlas, D. Laxalde, J. Perktold, R. Cimrman, I. Henriksen, E. A.
Quintero, C. R. Harris, A. M. Archibald, A. H. Ribeiro, F. Pedregosa, P. van Mulbregt, SciPy
1.0 Contributors, SciPy 1.0: Fundamental Algorithms for Scientific Computing in Python,
Nature Methods 17 (2020) 261–272. doi:10.1038/s41592- 019- 0686- 2.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          [1]
          <string-name>
            <given-names>P.</given-names>
            <surname>Ekman</surname>
          </string-name>
          ,
          <article-title>Basic emotions</article-title>
          , in: T. Dalgleish,
          <string-name>
            <given-names>M. J.</given-names>
            <surname>Powers</surname>
          </string-name>
          (Eds.),
          <source>Handbook of Cognition and Emotion</source>
          , Wiley,
          <year>1999</year>
          , pp.
          <fpage>4</fpage>
          -
          <lpage>5</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          [2]
          <string-name>
            <given-names>R.</given-names>
            <surname>Plutchik</surname>
          </string-name>
          ,
          <article-title>The nature of emotions: Human emotions have deep evolutionary roots, a fact that may explain their complexity and provide tools for clinical practice</article-title>
          ,
          <source>American Scientist</source>
          <volume>89</volume>
          (
          <year>2001</year>
          )
          <fpage>344</fpage>
          -
          <lpage>350</lpage>
          . URL: http://www.jstor.org/stable/27857503.
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          [3]
          <string-name>
            <given-names>M.</given-names>
            <surname>Mezzini</surname>
          </string-name>
          ,
          <article-title>On the geodetic iteration number of the contour of a graph</article-title>
          ,
          <source>Discrete Applied Mathematics</source>
          <volume>206</volume>
          (
          <year>2016</year>
          )
          <fpage>211</fpage>
          -
          <lpage>214</lpage>
          . URL: https://www.scopus.com/inward/record. uri?eid=
          <fpage>2</fpage>
          -
          <lpage>s2</lpage>
          .
          <fpage>0</fpage>
          -
          <lpage>84959904664</lpage>
          &amp;doi=10.1016%2fj.dam.
          <year>2016</year>
          .
          <volume>02</volume>
          .012&amp;partnerID=
          <volume>40</volume>
          &amp;md5= cdbc7eb1427ce3d059cafbd89a16e548. doi:
          <volume>10</volume>
          .1016/j.dam.
          <year>2016</year>
          .
          <volume>02</volume>
          .012, cited by:
          <volume>6</volume>
          ;
          <string-name>
            <given-names>All</given-names>
            <surname>Open</surname>
          </string-name>
          <string-name>
            <surname>Access</surname>
          </string-name>
          , Bronze Open Access.
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          [4]
          <string-name>
            <given-names>M.</given-names>
            <surname>Mezzini</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Moscarini</surname>
          </string-name>
          ,
          <article-title>The contour of a bridged graph is geodetic</article-title>
          ,
          <source>Discrete Applied Mathematics</source>
          <volume>204</volume>
          (
          <year>2016</year>
          )
          <fpage>213</fpage>
          -
          <lpage>215</lpage>
          . URL: https://www.scopus.com/inward/record. uri?eid=
          <fpage>2</fpage>
          -
          <lpage>s2</lpage>
          .
          <fpage>0</fpage>
          -
          <lpage>84948808102</lpage>
          &amp;doi=10.1016%2fj.dam.
          <year>2015</year>
          .
          <volume>10</volume>
          .007&amp;partnerID=
          <volume>40</volume>
          &amp;md5= 2bdf9cf6c0d7bf22875690f2aae3f595. doi:
          <volume>10</volume>
          .1016/j.dam.
          <year>2015</year>
          .
          <volume>10</volume>
          .007, cited by:
          <volume>6</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          [5]
          <string-name>
            <given-names>D.</given-names>
            <surname>Candia-Rivera</surname>
          </string-name>
          ,
          <string-name>
            <given-names>V.</given-names>
            <surname>Catrambone</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J. F.</given-names>
            <surname>Thayer</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Gentili</surname>
          </string-name>
          , G. Valenza,
          <article-title>Cardiac sympathetic-vagal activity initiates a functional brain-body response to emotional arousal</article-title>
          ,
          <source>Proceedings of the National Academy of Sciences</source>
          <volume>119</volume>
          (
          <year>2022</year>
          )
          <article-title>e2119599119</article-title>
          . URL: https://www.pnas.org/doi/abs/10.1073/pnas.2119599119. doi:
          <volume>10</volume>
          .1073/pnas.2119599119. arXiv:https://www.pnas.org/doi/pdf/10.1073/pnas.2119599119.
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          [6]
          <string-name>
            <given-names>S.</given-names>
            <surname>Koelstra</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Muhl</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M.</given-names>
            <surname>Soleymani</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J.-S.</given-names>
            <surname>Lee</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Yazdani</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            <surname>Ebrahimi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>T.</given-names>
            <surname>Pun</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Nijholt</surname>
          </string-name>
          ,
          <string-name>
            <surname>I. Patras</surname>
          </string-name>
          ,
          <article-title>Deap: A database for emotion analysis using physiological signals</article-title>
          ,
          <source>IEEE Transactions on Afective Computing</source>
          <volume>3</volume>
          (
          <year>2012</year>
          )
          <fpage>18</fpage>
          -
          <lpage>31</lpage>
          . doi:
          <volume>10</volume>
          .1109/T-AFFC.
          <year>2011</year>
          .
          <volume>15</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>
          [7]
          <string-name>
            <given-names>K.</given-names>
            <surname>He</surname>
          </string-name>
          ,
          <string-name>
            <given-names>X.</given-names>
            <surname>Zhang</surname>
          </string-name>
          , S. Ren,
          <string-name>
            <given-names>J.</given-names>
            <surname>Sun</surname>
          </string-name>
          ,
          <article-title>Deep Residual Learning for Image Recognition</article-title>
          ,
          <source>in: Proceedings of 2016 IEEE Conference on Computer Vision</source>
          and Pattern Recognition,
          <source>CVPR '16</source>
          , IEEE,
          <year>2016</year>
          , pp.
          <fpage>770</fpage>
          -
          <lpage>778</lpage>
          . URL: http://ieeexplore.ieee.org/document/7780459. doi:
          <volume>10</volume>
          . 1109/CVPR.
          <year>2016</year>
          .
          <volume>90</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          [8]
          <string-name>
            <given-names>K.</given-names>
            <surname>Simonyan</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Zisserman</surname>
          </string-name>
          ,
          <article-title>Very deep convolutional networks for large-scale image recognition</article-title>
          ,
          <source>in: International Conference on Learning Representations</source>
          ,
          <year>2015</year>
          .
        </mixed-citation>
      </ref>
      <ref id="ref9">
        <mixed-citation>
          [9]
          <string-name>
            <given-names>S.</given-names>
            <surname>Gannouni</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Aledaily</surname>
          </string-name>
          ,
          <string-name>
            <given-names>K.</given-names>
            <surname>Belwafi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.</given-names>
            <surname>Aboalsamh</surname>
          </string-name>
          ,
          <article-title>Emotion detection using electroencephalography signals and a zero-time windowing-based epoch estimation and relevant electrode identification 11 (</article-title>
          <year>2021</year>
          ).
          <source>doi: 10.1038/s41598-021-86345-5</source>
          , funding Information:
          <article-title>The authors extend their appreciation to the Deanship of Scientific Research at King Saud University for funding this work through Research Group no</article-title>
          .
          <source>RG-1441-524</source>
          . Publisher Copyright: ©
          <year>2021</year>
          ,
          <article-title>The Author(s).</article-title>
        </mixed-citation>
      </ref>
      <ref id="ref10">
        <mixed-citation>
          [10]
          <string-name>
            <given-names>S. M.</given-names>
            <surname>Alarcão</surname>
          </string-name>
          ,
          <string-name>
            <given-names>M. J.</given-names>
            <surname>Fonseca</surname>
          </string-name>
          ,
          <article-title>Emotions recognition using eeg signals: A survey</article-title>
          ,
          <source>IEEE Transactions on Afective Computing</source>
          <volume>10</volume>
          (
          <year>2019</year>
          )
          <fpage>374</fpage>
          -
          <lpage>393</lpage>
          . doi:
          <volume>10</volume>
          .1109/TAFFC.
          <year>2017</year>
          .
          <volume>2714671</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref11">
        <mixed-citation>
          [11]
          <string-name>
            <given-names>A.</given-names>
            <surname>Craik</surname>
          </string-name>
          ,
          <string-name>
            <given-names>Y.</given-names>
            <surname>He</surname>
          </string-name>
          ,
          <string-name>
            <given-names>J. L.</given-names>
            <surname>Contreras-Vidal</surname>
          </string-name>
          ,
          <article-title>Deep learning for electroencephalogram (eeg) classification tasks: a review</article-title>
          ,
          <source>Journal of Neural Engineering</source>
          <volume>16</volume>
          (
          <year>2019</year>
          )
          <article-title>031001</article-title>
          . URL: https://dx.doi.org/10.1088/
          <fpage>1741</fpage>
          -2552/ab0ab5. doi:
          <volume>10</volume>
          .1088/
          <fpage>1741</fpage>
          -2552/ab0ab5.
        </mixed-citation>
      </ref>
      <ref id="ref12">
        <mixed-citation>
          [12]
          <string-name>
            <surname>Siddharth</surname>
            ,
            <given-names>T. .</given-names>
          </string-name>
          <string-name>
            <surname>Jung</surname>
          </string-name>
          , T. J. Sejnowski,
          <article-title>Utilizing deep learning towards multi-modal biosensing and vision-based afective computing</article-title>
          ,
          <source>IEEE Transactions on Afective Computing</source>
          <volume>13</volume>
          (
          <year>2022</year>
          )
          <fpage>96</fpage>
          -
          <lpage>107</lpage>
          . URL: www.scopus.com, cited By :
          <volume>41</volume>
          .
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>