<!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 />
    <article-meta>
      <title-group>
        <article-title>Psychological stress detection with optimally selected EEG channel using Machine Learning techniques</article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author">
          <string-name>Anne Joo Marthinsen</string-name>
          <email>annejoomarthinsen@gmail.com</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Ivar Tesdal Galtung</string-name>
          <email>ivartg@stud.ntnu.no</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Amandeep Cheema</string-name>
          <email>cheema.amandeep09@gmail.com</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Christian Moe Sletten</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Ida Marie Andreassen</string-name>
          <email>ida.marie.andreassen@gmail.com</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Øystein Sletta</string-name>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Andres Soler</string-name>
          <email>andres.f.soler.guevara@ntnu.no</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <contrib contrib-type="author">
          <string-name>Marta Molinas</string-name>
          <email>marta.molinas@ntnu.no</email>
          <xref ref-type="aff" rid="aff0">0</xref>
        </contrib>
        <aff id="aff0">
          <label>0</label>
          <institution>Norwegian University of Science and Technology</institution>
          ,
          <addr-line>Trondheim</addr-line>
          ,
          <country country="NO">Norway</country>
        </aff>
      </contrib-group>
      <abstract>
        <p>Psychological stress buildup can lead to mental disorders, early mortality, stroke and sudden cardiac arrest and therefore, timely stress detection is important for reducing human suffering. This study aims to present a novel methodology of using reduced channel Electroencephalogram (EEG) signals for costeffective, convenient, minimally intrusive framework for psychological stress detection. In this study, we investigate the feasibility of using 8-channel EEG configuration consisting of FT9, O1, FC6, Fp2, Oz, F4, T8 and C3 electrodes, selected based on Genetic Algorithm, for psychological stress detection. The dataset of the study comprises 28 healthy subjects (16 males and 12 females, age 23 ± 2 years) and the stressors used are real-life examination stressor and arithmetic stressor. The best results are obtained by classifying the data using machine learning based Support Vector Machines (SVM) classifier achieving highest accuracy 87.50%, sensitivity 81.25%, specificity 92.05% and with wavelet scattering features and SVM achieving highest accuracy 87.50%, sensitivity 82.81%, specificity 90.91%. These methodologies outperformed shallow Convolutional Neural Networks (CNN) based approach that achieved highest accuracy 84.18%, sensitivity 87.5%, specificity 81.76% with mean accuracy of 83.66% using 10-fold cross-validation. This shows the potential of a using only 8 EEG electrodes for reliable psychological stress detection. These results are encouraging for the development of automated stress detection systems for rapid detection in the home or outside the clinic.</p>
      </abstract>
      <kwd-group>
        <kwd>eol&gt;Psychological stress detection</kwd>
        <kwd>reduced channel EEG</kwd>
        <kwd>wavelet scattering</kwd>
        <kwd>SVM</kwd>
        <kwd>CNN 1</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="sec-1">
      <title>1. Introduction</title>
      <p>Psychological stress refers to a state where complex dynamic equilibrium of human body,
homeostasis, is perceived to be threatened by internal or external adverse or demanding
circumstances known as stressors. Stress refers to the organism’s total reaction to resource
mobilization due to stressors. The previous studies associate stress with early mortality and
increased biological age [1], mental disorders [2], sudden cardiac arrest [3,4], stroke and other
physical health problems [5]. As per the reports of World Health Organization (WHO), there were
around 1 billion people living with a mental disorder in 2019; moreover, depressive and anxiety
disorders increased by more than 25% due to pandemic and treatment gap widened owing to
disrupted mental healthcare services [6]. A recent study in Norway found that mental disorders
are widespread in the student population. About one in three students, meets the formal criteria
for a current mental disorder and four out of ten females have a mental disorder [7]. Globally, the
high prevalence of mental health issues leads to huge economic burden due to decrease in
productivity and associated healthcare costs. The women suffer disproportionately with high
prevalence of mental health problems as compared to the male counterparts [8], emphasizing the
0000-0001-6432-4168 (A. Cheema)
© 2023 Copyright for this paper by its authors.</p>
      <p>Use permitted under Creative Commons License Attribution 4.0 International (CC BY 4.0).</p>
      <p>CEUR Workshop Proceedings (CEUR-WS.org)
need to timely detect psychological stress in diverse populations. Therefore, unlike previous
stress and mental-health male-centric studies [9,10], the present study design involves data
acquisition from male and female subjects. Moreover, around 50% of global population lives in
countries that has 1 psychiatrist for more than 200000 people [11]. Therefore, it is important to
increase reliability and dependance on digital technologies in mental health diagnosis and
interventions. A computer-aided automated stress detection system can be useful in
prescreening for reducing burden on already-stressed mental healthcare infrastructure.</p>
      <p>Electroencephalography (EEG) signals measure the electrical activity of the brain and are used
as an analytical tool for differentiating normal from abnormal brain function. Making an accurate
prediction using EEG data requires an extensive expertise, time and effort when done manually.
However, with the advancements in Machine Learning (ML) and computational technologies, it
is possible to automate this process, resulting in faster more efficient analysis of EEG data.
Therefore, this study relies on ML-based classifiers and recently proposed wavelet
scatteringbased features for psychological stress detection from EEG signals.</p>
      <p>Recent works in the field of psychological stress detection using EEG signals include- a study
focusing on spectral analysis of frontal lobe EEG signals [12] that used features extracted using
Fast Fourier Transform for spectral analysis of frontal lobe EEG signals and reported very good
results. An interesting study [13], utilized short-duration EEG signals decomposed using
stationary wavelet transform for extracting entropy-based features and used whale optimization
algorithm for SVM parameter tuning, reporting the methodology suitable for stress detection.
Another study [14] that used images of EEG signals, explored the potential of StressNet for stress
detection. The alpha band comprising of 8 – 13 Hz and the frontal alpha asymmetry feature is
found suitable for stress detection [15]. A recent comprehensive review covers wide set of
methods for stress detection and mental health monitoring using EEG signals [16]. Another
review [17] showed that the lack of consistency in procedure, lack of guidelines, varied duration
of experiments, different feature extraction techniques and different classifiers may lead to
conflicting outcomes. Therefore, despite a large number of studies involving EEG signals and
mental stress, there exists no conclusive guidelines about the relevance between EEG features
and its extraction methods, filtering, and artifact removal. In addition to this, the optimized
minimum number of channels of EEG signals required for stress detection is also a current
knowledge gap.</p>
      <p>This forms the motivation of this study, as it aims to investigate the feasibility of using reduced
channel EEG signals for stress detection application. A drastic reduction to 8 EEG electrodes will
be beneficial in designing EEG solutions that are convenient to use, minimally intrusive,
costefficient, computationally efficient with significantly reduced EEG setup times and will be a step
towards making EEG-based systems suitable for homecare environment. In line with this, the
present study proposes a methodology for reliable psychological stress detection using 8
electrode EEG configuration.</p>
      <p>The sections of the paper are arranged as follows: Section 1 gives an introduction of the
problem description, motivation of the study and prior works in the field; Section 2 covers the
detailed data acquisition protocol and procedure, the techniques- wavelet scattering,
convolutional neural networks and support vector machines classifier; Section 3 of the paper
presents the results and discussions of this study and Section 4 is the conclusion of the study.</p>
    </sec>
    <sec id="sec-2">
      <title>2. Methodology</title>
      <sec id="sec-2-1">
        <title>2.1. Electrode nomenclature</title>
        <p>For EEG analysis, each electrode is assigned a unique name, with the first letter indicating its
location on the corresponding area of the brain. The letters translate as follows: Fp/pre-frontal,
F/frontal, T/temporal, P/parietal, O/occipital, and C/central. Then, the electrodes are numbered
increasingly with the distal direction from the midline sagittal plane of the skull. Even numbers
are placed on the right side of the head, while odd numbers are kept on the left. This nomenclature
will be further utilized in this study for referring to the electrodes in consideration. The acquired
EEG signal consists of the difference in the voltage between the electrode in consideration and a
reference electrode and this rhythmic fluctuation of potential difference is recorded.</p>
      </sec>
      <sec id="sec-2-2">
        <title>2.2. Overall methodology</title>
        <p>The initial step is to use publicly available SAM 40 EEG dataset [18] for selecting the optimum
number of channels, for stress detection. This dataset was recorded from 40 subjects (14 females)
with mean age 21.5 years using 32-channel Emotiv Epoc Flex gel kit. The stressors used
arearithmetic test, Stroop color-word test and symmetric mirror image identification. Thereafter,
Genetic Algorithm was applied to select most suitable 8-channels for stress detection from these
available 32-channels. For this, 15 random channel selections are initialized and each channel
subset is described by 8 channels randomly picked from the 32 possible channels. The efficiency
of these channels for stress detection is computed. After that, the five best performing channel
subsets were selected for crossovers. This signifies making new subsets that inherit channels
from the best performing channel subsets. The new subset’s first four channels are picked
randomly from one subset, and the last four from another. Each of the five channel subsets make
one crossover This process is repeated for 10 generations in order to find the best performing
channel subset. This procedure is based on [19] and in case of psychological stress detection, this
framework is detailed in [20]. The identified 8 most suitable channels for stress detection
areFT9, O1, FC6, Fp2, Oz, F4, T8, C3.</p>
        <p>The next step is using these 8 identified EEG channels (FT9, O1, FC6, Fp2, Oz, F4, T8, C3) for
data collection from subjects and feasibility of these channels for stress detection is identified
using three approaches: firstly, the acquired EEG data is used as an input to ML-based SVM
classifier to differentiate stress from non-stressed state in EEG signals. Secondly, from the
acquired 8-channel EEG signals, wavelet scattering based features are extracted and these
features are used as input to SVM classifier for detecting the stressed and non-stressed state in
EEG signals. Thirdly, the acquired dataset is also fed to a Convolutional Neural Network (CNN)
and classification in stress and non-stress state is performed. The block diagram of the
methodology is depicted in Figure 1 and detailed methodology is presented ahead.</p>
      </sec>
      <sec id="sec-2-3">
        <title>2.3. Data acquisition</title>
        <p>Data acquisition, in the present study, was done using Mentalab Explore EEG device [21] with
sampling frequency of 250 Hz. The EEG data was acquired with the identified optimal 8 channels
from 28 healthy subjects (16 male, 12 female) in the age-group 23±2 years, who are students at
Norwegian University of Science and Technology, NTNU, Norway. For every subject, 2 sessions
(S1 and S2) of EEG recordings were carried out – S1 was before students’ institute examination
depicting the stressed state and S2 was conducted after Christmas holidays depicting the baseline
state. Every session comprised two runs (R1, R2) of five-minute duration each of EEG recordings,
where R1 was without arithmetic stressor, where the subjects were in resting state and were not
involved in any tasks, whereas for R2 subjects performed an arithmetic test. All the recordings
for the study were taken while the subjects were seated in a chair comfortably. The inclusion
criteria of the study are presented ahead:
• The subject should be a student of NTNU with examination after S1 recordings
• No cardiovascular, neurological, mental disorder or other disease
• The subject is available to provide S1 and S2 data recordings
The psychological stress in S1 is the primary endpoint of study, and reduced EEG channel-based
stress detection is the primary outcome of the present work. The data acquisition protocol for the
study is presented ahead:
• The purpose of the study was explained and a written informed consent was taken
• The subject had to fill State Trait Anxiety Inventory (STAI) Y1 questionnaire prior to every
recording
• Additionally, subjects also rated perceived stress in the range of 1 to 10 prior to each
recording
• The EEG-cap was placed on subject’s head
• Electrode location site was cleaned with isopropyl alcohol and a Q-tip.
• Electrical conducting paste was applied to the electrodes to ensure good electrical contact
• The reference electrode was fastened to the right earlobe with skin-friendly medical tape
•Mentalab’s software was used to measure electrode impedances and low impedances are
essential for quality recordings. The data acquisition setting for the present study is shown in
Figure 2.</p>
        <p>The subjects were asked to sit in front of a computer monitor at a distance where the arm of
the subject can reach the keyboard without excessive body movement. During arithmetic test the
students were presented arithmetic statements as presented below:</p>
        <p>2 + (2/2) + (2x2x2)/2 = 8
The subjects had to make calculations in their head, without the use of pen and paper and press
"T" if the statement was true and "F" if it was false. Markers were generated when the subject
interacted with arithmetic test using a script in Psychopy, and the recordings were synced using
Lab Streaming Layer.</p>
        <p>It is important to note that although we had 28 subjects enrolled for this study, however a
few subjects did not report for the session 2 recordings, which led to the number of recordings to
be 103 instead of 112 (28 x 4) in ideal circumstances. As in this study, we are performing
intersubject analysis, this would not affect the findings of this study. However, if this study were to
compare every subject’s baseline with same subject’s stressed state signal (intra-subject
analysis), it would have been detrimental to the outcomes of the study due to exclusion of subjects
that did not complete two session readings, leading to lesser availability of data. However, this
was taken care of in the study design that aimed to conduct inter-subject analysis.</p>
        <p>The EEG recordings were acquired with the 8 identified optimal electrodes highlighted in
Figure 3 according to 10-20 system of EEG electrode placement. The study has the required
approval from Norwegian Center for Research Data with reference number: 968653.</p>
      </sec>
      <sec id="sec-2-4">
        <title>2.4. Data Labeling</title>
        <p>The gold-standard used in this study for ascertaining the stress is STAI-Y1 self-report
questionnaire. The STAI [22] has two questionnaires: Y1- for state anxiety and Y2- for trait
anxiety. As the present study focusses on present psychological state and not the trait of the
subjects, STAI-Y1 is used in this study. The subjects also reported perceived stress in Stress Scale
(SS) labelling. The STAI questionnaire has shown high reliability when used under psychological
stress conditions and has been found suitable in real-life stressful situations including an
important examination, dental procedures and job-interviews [22]. The institute examination
used in this study is a real-life stressor of moderate intensity and is used in previous studies
[23,24]. The studies for stress detection using laboratory-induced stress show increased
sympathetic activity and reduced baroreflex gain but their efficacy is limited owing to intrinsic
artificiality [23]. The models like public speaking affect respiration due to speaking and may
interfere in the interpretation of results [23]. Therefore, real-life exam is used as a stressor and a
laboratory-based arithmetic stressor is used in addition to exam-based stressor in order to
further increase stress levels. In case of SS scores, it can range from 1-10 and as per instructions
to subjects, a low score will indicate that the perceived stress is low and high score will indicate
high perceived stress levels. The STAI-Y1 scores of participants can range from 20-80. The
subject-wise STAI-Y1 and SS scores of the subjects are shown in Figure 4. In order to convert
these scores into labels, we chose specific thresholds. For STAI-Y1, if the score is between 20-37
the subject is non-stressed, and the subject is stressed if the score is between 45-80 [25]. In case
of SS, the cut-off was intuitively decided and the subject’s recording was labeled as non-stressed
if the score is between 1-3, and stressed if SS score is between 7-10. The resulting labels based on
these thresholds are presented in Figure 5 of the study where, 1, 2 and 3 stands for non-stressed,
moderately stressed and stressed subjects respectively. The two session recordings are
considered together for analysis, but are labelled differently according to the procedure
described above. The number of records labelled as non-stressed, moderately stressed and
stressed are summarized in Table 1.</p>
        <p>In the next step, we eliminated the recordings of the subjects experiencing moderate stress
to utilize a binary classification approach as this will enhance the distinction between stressed
and non-stressed classes. This results in about half the recordings in SS labels to be categorized
as moderately stress as shown in Table 1 of the study. This will lead to a smaller number of
recordings for training and testing for reliable model performance, moreover, the new
classification will have 25% stressed and 75% non-stressed signals leading to an imbalanced
dataset. However, in case of STAI-Y1 labels, the number of moderately stressed signals is small
leading to lesser data loss by removing these recordings and the remaining data will comprise of
59.5% non-stressed and 40.5% stressed recordings, thereby, resulting in a comparatively
balanced dataset. Therefore, in further analysis, we will consider STAI-Y1 labels for binary
classification as stressed and non-stressed EEG signals.</p>
      </sec>
      <sec id="sec-2-5">
        <title>2.5. Wavelet scattering</title>
        <p>The Wavelet Scattering Network is used in this study for feature extraction because conventional
feature extraction approaches require hand-crafted features to discriminate among classes which
is a challenging task that requires expert knowledge. This approach has lesser computational
requirements than CNN and does not require large dataset for training that can be challenging in
case of biomedical signals that deal with data acquisition from human subjects or animals.
Additionally, lack of interpretability of deep neural networks is another problem [26] due to
insufficient theoretical foundation and cascaded non-linearities [27]. Therefore, this study uses
informative wavelet scattering based features that are shift-invariant and stable to time-warping
deformations [26]. It comprises of a cascade of convolution, modulus, and low-pass operators and
are equivalent to deep neural networks [26]. The pre-defined filters in wavelet scattering make
them faster and reduces computational load as opposed to neural networks that have iteratively
trained filters.</p>
        <p>In this method, time-invariance scale of the network is  = 2 , where  is number of octaves,
filter bank ∧ for every layer  of the network is constructed with   wavelets per octave which
sets the quality factor. The center frequency of the wavelet in filter bank is  and center frequency
index is  , where     ∈   ∧ .</p>
        <p>The zeroth-order scattering coefficients   computed by convolving input signal ′ ′ with
lowpass filter  is shown as [26]:</p>
        <p>( ) =    ⋆  ( )
This removes all high frequencies which are recovered by wavelet modulus transform as:
| 1| = ( ⋆  ( ), | ⋆   1( )|)
 ∈ℝ,  1∈∧1
where, wavelets   1 have octave frequency resolution  1 and the first-order scattering
coefficients are:
(1)
(2)
 1 ( ,  1) = | ⋆   1 | ⋆  ( )
On similar lines, second-order wavelet modulus transform are:
(3)
(4)
(5)
(6)
| 2| |   ⋆    1| = (|   ⋆    1|  ⋆   ,  | |   ⋆    1|  ⋆    2|) 2 ∈ ∧2
where,   2 wavelets have octave resolution  2 which is chosen to get a sparse representation
for having least number of wavelet coefficients feasible. The second-order scattering coefficients
are:</p>
        <p>The higher-order coefficients can be computed in the similar manner; therefore, n-th order
scattering coefficients can be computed as:</p>
        <p>2 ( ,  1,  2) = || ⋆   1| ⋆   2 | ⋆  ( )
   = ||| ⋆    1| ⋆ . . . . . . . | ⋆    | ⋆  ( )
where,     ∈   ∧ and i = 1,2, . . . , n and  is the center frequency of the wavelet in filter bank.</p>
        <p>This new technique is reported to have achieved state-of-art classification results [26] in many
applications. The scattering-based features are extracted from each layer. This technique is
contractive with most of the energy generally concentrated in first two coefficients [26]. This
reduces intra-class variability but maintains inter-class variability. This technique has been used
in ECG signals-based arrhythmia classification [28], PCG-based normal and abnormal signal
classification [29], ground penetrating radar imaging for pipeline identification [30].</p>
        <p>The wavelet scattering transform used in this study utilizes the Kymatio implementation [31]
which provides the Scattering1D function for 1D signals. This function takes in the
hyperparameters J, Q, and T, and for this study, T = 75000 is the length of the full signal, Q =16
and J = 6 is decided based on the performance achieved using these parameters.</p>
      </sec>
      <sec id="sec-2-6">
        <title>2.6. Support Vector Machine (SVM) classifier</title>
        <p>The Support Vector Machines (SVM) is a supervised learning algorithm widely employed for
classification tasks. Given a labeled dataset, with each sample belonging to one of two categories,
the classifier reviews the data and maps each sample as a point in an n-dimensional space, where
n represents the number of input features. The objective is to separate the categories by an
optimal hyperplane, which maximizes the distance between the categories. The peripheral data
points closest to the other category are used as the support vectors, as they significantly influence
the configuration of the hyperplane and the margin refers to the area between the decision
boundary, which separates the different classes. The distance between the decision boundary and
the training data points is street width. The regularization parameter is a hyperparameter that
controls the complexity of the model. It determines the trade-off between the size of the street
width and the accuracy of the model. A large regularization parameter signifies that the model
will have a smaller street width and will try to correctly classify as many of the training data
points as possible which can lead to overfitting. A small regularization parameter, on the other
hand, allows for a larger street width and is thus open for some misclassification of the training
data. This can help to prevent overfitting and can improve the generalization performance of the

model. If training set has Q data points {  ,   } =1, where   ∈ ℝ is ith input pattern and   ∈ ℝ
is ith output pattern, then support vector classifier depicted by [32]:</p>
        <p>where,   is positive real constant and  is real constant and  ( ,   ) is kernel. The SVM
classifier has been used in cancer genomic classification [33], classification of satellite from
remotely sensed multispectral data [34], for diagnosing of skin illness [35] and in PCG signals for
psychological stress detection [36].</p>
        <p>In the present study, SVM iterates through a parameter grid with the regularization parameter
either equal to 1e-3, 1e-2, 1e-1, 1, 10, 100, 1e3, 1e4, 1e5 and 1e6 and the kernel function used is
linear, polynomial (poly), Radial basis function (rbf) and sigmoid.</p>
      </sec>
      <sec id="sec-2-7">
        <title>2.7. Convolutional Neural Network (CNN)</title>
        <p>Convolutional Neural Networks (CNNs) are neural networks that are widely used for image and
video analysis. Unlike traditional neural networks, which process the input data in a linear
manner, CNN use convolution to filter the data and identify patterns. The feature maps generated
by the convolutional layer are then passed through a series of additional layers, including pooling
layers and fully connected layers, to produce the final output. Pooling layers are used to reduce
the dimensionality of the feature maps, while fully connected layers use the output of the previous
layers to classify the input data. One of the key benefits of CNNs is their ability to learn spatial
invariance. This means that CNNs are able to recognize patterns in images, regardless of their
position or orientation within the image. This is achieved through the use of pooling layers, which
reduce the sensitivity of the network to small variations in the input data. This deep learning
technique has capability of automated feature extraction due to convolutional and pooling layers
and capability of classification due to fully connected layer [37]. The CNNs are used with EEG
signals for epileptic seizures detection [38] and automated Schizophrenia detection [37].</p>
        <p>This study utilizes deep and shallow CNN for psychological stress detection using reduced
channel EEG signals. The finalized models included a class weight of 1-3 for non-stressed vs.
stressed, respectively, epoch length equal to 1 s, and a sigmoid activation function as the last step.
The Deep CNN has four convolution max-pooling blocks, where the first one is especially designed
to handle EEG input data, the next are three standard convolution max-pooling blocks and a dense

 =1
 ( ) = 
[∑      ( ,   ) +  ]
(7)
softmax classification layer. The exponential linear units are used as the activation function.
Whereas, the Shallow CNN used in this study is inspired by Filter Bank Common Spatial Patterns
pipeline. The first two layers perform temporal convolution and spatial filtering. Thereafter, a
squaring nonlinearity, a mean pooling layer and a logarithmic activation function is performed.
The further details of the deep and shallow CNN architecture are provided in [39].</p>
      </sec>
      <sec id="sec-2-8">
        <title>2.8. Performance metrics</title>
        <p>The statistic measures used as performance metrics in this study are classification accuracy,
sensitivity and specificity and are computed as follows:
 + 
(8)
(9)
(10)



=
where, TP stands for true positive and depicts number of stressed samples classified as
stressed by the algorithm, TN stands for true negative and depicts number of non-stressed
samples classified as non-stressed by the algorithm, FP stands for false positive and depicts
number of non-stressed samples misclassified as stressed samples by the algorithm and FN
stands for false negative and depicts number of stressed samples misclassified as non-stressed
by the algorithm.</p>
      </sec>
    </sec>
    <sec id="sec-3">
      <title>3. Results and Discussions</title>
      <p>The acquired 8-channel EEG signal, as shown in Figure 6, are used for psychological stress
detection in this study. The eight electrodes used for data acquisition are- FT9, O1, FC6, Fp2, Oz,
F4, T8 and C3 electrodes as shown in Figure 3 of this study. The experiments are performed on
EEG signal recordings from 28 subjects of the study. The STAI-Y1 score labels were chosen to be
used in this study since SS labels leads to substantial data loss and extremely imbalanced dataset
due to larger number of moderately stressed data and the residual data may not be sufficient for
training and testing the model. Therefore, three approaches are used for psychological stress in
this study- 1) using SVM classifier on the acquired reduced channel EEG data comprising of
5minute duration of each recording 2) Wavelet scattering based features acquired from reduced
EEG data and use of these features in SVM classifier for classifying stressed and non-stressed state
3) use of Convolutional Neural network- both deep and shallow CNN for classifying stressed and
non-stressed state in EEG signals.</p>
      <p>In approach 1 of the study, the acquired raw data was directly fed to the SVM classifier. This is
due to the fact that the 8 EEG channels used in the study are already optimally selected, in
comparison to 32, 64 or 128 EEG channels in prior works. The handcrafted feature selection from
this already limited data would further constrict this information and may be detrimental for
performance of classifier due to limited information. The Radial Basis Function (RBF) kernel
function and C=100 yielded highest accuracy for classifying stressed and non-stressed states as
depicted in Table 1 of the study. In approach 2, newly reported wavelet scattering transform is
applied and these wavelet scattering features are fed to the SVM as input matrix. The parameters
of SVM are the default parameters as depicted in Table 2. In approach 3, the Deep CNN and
Shallow CNN, with the architecture explained in Section 2.7 of the study are used. For the purpose
of binary classification as stressed and non-stressed data, the moderately stressed signals were
removed which led to 47 instances for non-stress and 32 instances of stressed, as shown in Table
1. These EEG signals were then segmented in epochs of 1 sec, as found suitable in previous
EEGbased studies [40,41]. Therefore, the dataset now consisted of 14,100 (47 x 5 x 60) epochs for
non-stress and 9,600 (32 x 5 x 60) epochs for stress category signals, which makes it suitable for
the application deep learning models. The Shallow CNN provided better performance for
classifying stressed and non-stressed state EEG signals, as depicted in Table 2 of the study.</p>
      <p>In this study, an 80-20 dataset split is used, where 80% of the data was used for training and
20% of the data was utilized for testing purposes. No subject appeared in both the training and
testing sets, in order to prevent a bias in reporting the performance metrics. Thereafter, a 10-fold
cross validation evaluation strategy was used and the Table 2 reports the best performance
achieved in terms of highest classification accuracy achieved. This approach was utilized in all the
experiments reported in the study.</p>
      <p>In this study, the K-NN classifier was also tested which achieved accuracy of 73.03% in
classifying stressed and non-stressed state EEG signals, however, the best results were obtained
using SVM as classifier. The approach 1 and 2 of the study performed well by achieving high
accuracy in classifying stressed and non-stressed states. However, the computational time of
approach 2 exceeded the approach 1 due to added computational complexity. The potential of
approach 2 should be explored further in future works due to the possibility of scattering
parameter tuning that can improve classification accuracy and also due to the power of wavelet
scattering in outperforming state-of-art approaches. Regarding the approach 3, the applicability
of deep CNN and shallow CNN is tested, the shallow CNN outperformed deep CNN and also
achieved a high mean accuracy of 83.66% using 10-fold cross-validation. This provides promising
results due to the generalizability of the shallow CNN based model in detecting stress from
reduced channel EEG signals.</p>
      <p>The results achieved in the present study proves the potential capabilities of drastically
reducing number of EEG electrodes to 8 for psychological stress detection application. The
advantages of the proposed approach are presented ahead.</p>
      <sec id="sec-3-1">
        <title>3.1. Advantages</title>
        <p>The number of electrodes proposed suitable for psychological stress detection in this study is
eight electrodes. This is a significant reduction has numerous benefits in comparison to prior
studies focusing on use of 32, 64 and 128 EEG electrodes. Firstly, it will make the stress detection
systems cost-efficient and suitable for homecare-based environments. Secondly, it will also
significantly reduce the setup time due to lesser number of electrodes to be connected and will
be a step in the direction of real-time stress monitoring systems. Thirdly, it will be convenient
and minimally intrusive in comparison to traditional EEG systems with large number of
electrodes. Another advantage is exploring the use of recently developed wavelet scattering
transform in reduced channel EEG signal based psychological stress detection. Importantly,
gender-inclusive study design and data acquisition protocol are used in this study, which makes
the findings of this work generalizable to the diverse population.</p>
      </sec>
      <sec id="sec-3-2">
        <title>3.2. Limitations</title>
        <p>The dataset of this study is small and comprise of data acquisition from young adult age group of
23±2 years. The noise reduction step is not included in this study. The STAI-Y1 and SS labelling
used in the study can possibly be influenced by subjective understanding of questions or a
plausible response bias may exist in psychology-based questionnaires. The difficulty level of
examination is also not considered in this study.</p>
      </sec>
      <sec id="sec-3-3">
        <title>3.3. Future Scope</title>
        <p>The dataset should be enlarged and include other age-groups and chronic stressors responsible
for pathogenesis, in order to investigate the real potential of using reduced channels EEG
configuration for psychological stress detection. This will be instrumental in application of the
findings to a larger and more heterogenous population. In this way, the optimally reduced
channel could lead to a rapid screening of stress that may be possible outside the clinic. The
response bias of STAI-Y1 can be managed by adopting the principles stated by Hao et al. [42]
using cross entropy loss. A customized noise removal system for this application should be
designed and incorporated in the methodology to handle the noise captured in the dataset. The
hyperparameter and scattering parameter should be further explored in order to increase the
classification accuracy of the developed 8-channel EEG stress detection system.</p>
      </sec>
    </sec>
    <sec id="sec-4">
      <title>4. Conclusion</title>
      <p>This study proposes a novel framework for using reduced channel EEG configuration for
psychological stress detection. The highest accuracy of 87.5% is achieved using machine
learningbased support vector machine classifier with the wavelet scattering features. The high mean
accuracy reported using Convolutional Neural Network and 10-fold cross validation method
shows the reliability and robustness of this methodology. These results indicate that there is a
clear potential for reducing the number of EEG electrodes required to achieve a reliable stress
detection system based on EEG. This reduction in electrodes leads to reduced setup time that was
a major drawback of traditional EEG-based stress detection systems. This reduced setup time is
also a major step in the direction of wearable EEG-based stress detection system for real-time
applications. The significant reduction in number of required EEG electrodes by using
optimization opens new possibilities in the field of design of wearable EEG systems as it offers
high potential for customized, flexible, less intrusive, and cost-efficient concepts.</p>
    </sec>
    <sec id="sec-5">
      <title>Acknowledgements</title>
      <p>This work was supported by Department of Engineering Cybernetics, Norwegian University of
Science and Technology (NTNU), Norway and partly by European Research Consortium for
Informatics and Mathematics (ERCIM).
urgent-need-to-transform-mental-health-and-mental-health-care (accessed August 17,
2023).
[7] B. Sivertsen, A. Kristin, S. Knudsen, B. Kirkøen, J.C. Skogen, B.O. Lagerstrøm, K.-J. Lønning,
R.C. Kessler, A. Reneflot, Prevalence of mental disorders among Norwegian college and
university students: a population-based cross-sectional analysis, The Lancet Regional
Health- Europe. (2023). https://doi.org/https://doi.org/10.1016/j.lanepe.2023.100732.
[8] A. Thapar, O. Eyre, V. Patel, D. Brent, Depression in young people, The Lancet. 400 (2022)
617–631. https://doi.org/10.1016/S0140-6736(22)01012-1.
[9] A. Cheema, M. Singh, Psychological stress detection using phonocardiography signal : An
empirical mode decomposition approach, Biomed Signal Process Control. 49 (2019) 493–
505. https://doi.org/10.1016/j.bspc.2018.12.028.
[10] U. Ha, Y. Lee, H. Kim, T. Roh, J. Bae, C. Kim, H.J. Yoo, A Wearable EEG-HEG-HRV Multimodal
System with Simultaneous Monitoring of tES for Mental Health Management, in: IEEE
Trans Biomed Circuits Syst, Institute of Electrical and Electronics Engineers Inc., 2015: pp.
758–766. https://doi.org/10.1109/TBCAS.2015.2504959.
[11] World Health Organization, World Mental Health Report- Transforming mental health for
all, n.d.
[12] O. AlShorman, M. Masadeh, M.B. Bin Heyat, F. Akhtar, H. Almahasneh, G.M. Ashraf, A.</p>
      <p>Alexiou, Frontal lobe real-time EEG analysis using machine learning techniques for mental
stress detection, J Integr Neurosci. 21 (2022). https://doi.org/10.31083/j.jin2101020.
[13] L.D. Sharma, V.K. Bohat, M. Habib, A.M. Al-Zoubi, H. Faris, I. Aljarah, Evolutionary inspired
approach for mental stress detection using EEG signal, Expert Syst Appl. 197 (2022).
https://doi.org/10.1016/j.eswa.2022.116634.
[14] S.A.M. Mane, A. Shinde, StressNet: Hybrid model of LSTM and CNN for stress detection from
electroencephalogram signal (EEG), Results in Control and Optimization. 11 (2023).
https://doi.org/10.1016/j.rico.2023.100231.
[15] E. Alyan, N.M. Saad, N. Kamel, M.Z. Yusoff, M.A. Zakariya, M.A. Rahman, C. Guillet, F.</p>
      <p>Merienne, Frontal electroencephalogram alpha asymmetry during mental stress related to
workplace noise, Sensors. 21 (2021) 1–12. https://doi.org/10.3390/s21061968.
[16] T. Ahmed, M. Qassem, P.A. Kyriacou, Physiological monitoring of stress and major
depression: A review of the current monitoring techniques and considerations for the
future, Biomed Signal Process Control. 75 (2022).
https://doi.org/10.1016/j.bspc.2022.103591.
[17] R. Katmah, F. Al-Shargie, U. Tariq, F. Babiloni, F. Al-Mughairbi, H. Al-Nashash, A review on
mental stress assessment methods using eeg signals, Sensors. 21 (2021).
https://doi.org/10.3390/s21155043.
[18] R. Ghosh, N. Deb, K. Sengupta, A. Phukan, N. Choudhury, S. Kashyap, S. Phadikar, R. Saha, P.</p>
      <p>Das, N. Sinha, P. Dutta, SAM 40: Dataset of 40 subject EEG recordings to monitor the
induced-stress while performing Stroop color-word test, arithmetic task, and mirror
image recognition task, Data Brief. 40 (2022).
https://doi.org/10.1016/j.dib.2021.107772.
[19] A. Soler, L.A. Moctezuma, E. Giraldo, M. Molinas, Automated methodology for optimal
selection of minimum electrode subsets for accurate EEG source estimation based on
Genetic Algorithm optimization, Sci Rep. 12 (2022).
https://doi.org/10.1038/s41598022-15252-0.
[20] A.J.Y. Marthinsen, Detection of mental stress from EEG data using artificial intelligence,
2022.
[21] Mentalab Explore+, n.d. https://mentalab.com/ (accessed October 25, 2023).
[22] C.D. Spielberger, R.L. Gorsuch, R. Lushene, P.R. Vagg, G.A. Jacobs, State-Trait Anxiety</p>
      <p>Inventory for Adults, Manual, Instrument and Scoring Guide, 1983.
[23] D. Lucini, G. Norbiato, M. Clerici, M. Pagani, Hemodynamic and autonomic adjustments to
real life stress conditions in humans, Hypertension. 39 (2002) 184–188.
[24] P. Melillo, M. Bracale, L. Pecchia, Nonlinear Heart Rate Variability features for real-life
stress detection. Case study: students under stress due to university examination, Biomed
Eng Online. 10 (2011) 96.
[25] O. Kayikcioglu, S. Bilgin, G. Seymenoglu, A. Deveci, State and Trait Anxiety Scores of
Patients Receiving Intravitreal Injections, Biomed Hub. 2 (2017) 1–5.
https://doi.org/10.1159/000478993.
[26] J. Andén, S. Mallat, Deep scattering spectrum, IEEE Transactions on Signal Processing. 62
(2014) 4114–4128. https://doi.org/10.1109/TSP.2014.2326991.
[27] J. Bruna, S. Mallat, Invariant scattering convolution networks, IEEE Trans Pattern Anal</p>
      <p>Mach Intell. 35 (2013) 1872–1886. https://doi.org/10.1109/TPAMI.2012.230.
[28] Z. Liu, G. Yao, Q. Zhang, J. Zhang, X. Zeng, Wavelet Scattering Transform for ECG Beat
Classification, Comput Math Methods Med. 2020 (2020).
https://doi.org/10.1155/2020/3215681.
[29] Ø.S. Sletta, Classifying unsegmented Phonocardiogram signals using Cepstral, Temporal,
and Wavelet Scattering features, Trondheim, 2023.
https://doi.org/10.13140/RG.2.2.11435.11046.
[30] Y. Jin, Y. Duan, Wavelet scattering network-based machine learning for ground penetrating
radar imaging: Application in pipeline identification, Remote Sens (Basel). 12 (2020) 1–
24. https://doi.org/10.3390/rs12213655.
[31] M. Andreux, T. Angles, G. Exarchakis, R. Leonarduzzi, G. Rochette, L. Thiry, J. Zarka, S.</p>
      <p>Mallat, J. Andén, E. Belilovsky, J. Bruna, V. Lostanlen, M. Chaudhary, M.J. Hirn, E. Oyallon, S.
Zhang, C. Cella, M. Eickenberg, Kymatio: Scattering Transforms in Python, Journal of
Machine Learning Research. 21 (2020) 1–6. http://jmlr.org/papers/v21/19-047.html
(accessed September 22, 2023).
[32] J.A.K. Suykens, J. Vandewalle, Least Squares Support Vector Machine Classifiers, Neural</p>
      <p>
        Process Lett. 9 (1999) 293–300. https://doi.org/10.1023/A.
[33] S. Huang, C.A.I. Nianguang, P. Penzuti Pacheco, S. Narandes, Y. Wang, X.U. Wayne,
Applications of support vector machine (SVM) learning in cancer genomics, Cancer
Genomics Proteomics. 15 (2018) 41–51. https://doi.org/10.21873/cgp.20063.
[34] N.I.S. Bahari, A. Ahmad, B.M. Aboobaider, Application of support vector machine for
classification of multispectral data, in: IOP Conf Ser Earth Environ Sci, Institute of Physics
Publishing, 2014. https://doi.org/10.1088/1755-1315/20/1/012038.
[35] K.S. Parikh, T.P. Shah, Support Vector Machine – A Large Margin Classifier to Diagnose Skin
Illnesses, Procedia Technology. 23 (2016) 369–375.
https://doi.org/10.1016/j.protcy.2016.03.039.
[36] A. Cheema, M. Singh, M. Kumar, G. Setia, Combined empirical mode decomposition and
phase space reconstruction based psychologically stressed and non-stressed state
classification from cardiac sound signals, Biomed Signal Process Control. 82 (2023)
104585. https://doi.org/10.1016/j.bspc.2023.104585.
[37] S.K. Khare, V. Bajaj, U.R. Acharya, SPWVD-CNN for Automated Detection of Schizophrenia
Patients Using EEG Signals, IEEE Trans Instrum Meas. 70 (2021).
https://doi.org/10.1109/TI
        <xref ref-type="bibr" rid="ref4">M.2021</xref>
        .3070608.
[38] M. Zhou, C. Tian, R. Cao, B. Wang, Y. Niu, T. Hu, H. Guo, J. Xiang, Epileptic seizure detection
based on EEG signals and CNN, Front Neuroinform. 12 (2018).
https://doi.org/10.3389/fninf.2018.00095.
[39] R.T. Schirrmeister, J.T. Springenberg, L.D.J. Fiederer, M. Glasstetter, K. Eggensperger, M.
      </p>
      <p>
        Tangermann, F. Hutter, W. Burgard, T. Ball, Deep learning with convolutional neural
networks for EEG decoding and visualization, Hum Brain Mapp. 38 (2017) 5391–5420.
https://doi.org/10.1002/hbm.23730.
[40] X.-W. Wang, D. Nie, B.-L. Lu, Emotional state classification from EEG data using machine
learning approach, Neurocomputing. 129 (2014) 94–106.
https://doi.org/https://doi.org/10.1016/j.neucom.2013.06.046.
[41] M. Kumar, M. Molinas, Human emotion recognition from EEG signals: model evaluation in
DEAP and SEED datasets, in: Italian Workshop on Artificial Intelligence for
Hu
        <xref ref-type="bibr" rid="ref4">manMachine Interaction (AIxHMI 2022</xref>
        ), December 02, 2022, Udine, Italy, 2022.
http://ceurws.orgISSN.
[42] D. Hao, L. Zhang, J. Sumkin, A. Mohamed, S. Wu, Inaccurate Labels in Weakly-Supervised
Deep Learning: Automatic Identification and Correction and Their Impact on Classification
Performance, IEEE J Biomed Health Inform. 24 (2020) 2701–2710.
https://doi.org/10.1109/JBHI.2020.2974425.
      </p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <mixed-citation>
          <source>[1] [2] [3] [4] [5]</source>
          [6]
          <string-name>
            <given-names>J.R.</given-names>
            <surname>Poganik</surname>
          </string-name>
          ,
          <string-name>
            <given-names>B.</given-names>
            <surname>Zhang</surname>
          </string-name>
          ,
          <string-name>
            <given-names>G.S.</given-names>
            <surname>Baht</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Tyshkovskiy</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.</given-names>
            <surname>Deik</surname>
          </string-name>
          ,
          <string-name>
            <given-names>C.</given-names>
            <surname>Kerepesi</surname>
          </string-name>
          ,
          <string-name>
            <given-names>S.H.</given-names>
            <surname>Yim</surname>
          </string-name>
          ,
          <string-name>
            <given-names>A.T.</given-names>
            <surname>Lu</surname>
          </string-name>
          ,
          <string-name>
            <surname>A.</surname>
          </string-name>
        </mixed-citation>
      </ref>
      <ref id="ref2">
        <mixed-citation>
          <string-name>
            <surname>Haghani</surname>
            ,
            <given-names>T.</given-names>
          </string-name>
          <string-name>
            <surname>Gong</surname>
            ,
            <given-names>A.M.</given-names>
          </string-name>
          <string-name>
            <surname>Hedman</surname>
            , E. Andolf, G. Pershagen,
            <given-names>C.</given-names>
          </string-name>
          <string-name>
            <surname>Almqvist</surname>
            ,
            <given-names>C.B.</given-names>
          </string-name>
          <string-name>
            <surname>Clish</surname>
            ,
            <given-names>S.</given-names>
          </string-name>
          <string-name>
            <surname>Horvath</surname>
            ,
            <given-names>J.P.</given-names>
          </string-name>
          <string-name>
            <surname>White</surname>
            ,
            <given-names>V.N.</given-names>
          </string-name>
          <string-name>
            <surname>Gladyshev</surname>
          </string-name>
          ,
          <article-title>Biological age is increased by stress and restored upon recovery</article-title>
          ,
          <source>Cell Metab</source>
          .
          <volume>35</volume>
          (
          <year>2023</year>
          )
          <fpage>807</fpage>
          -
          <lpage>820</lpage>
          .
          <year>e5</year>
          . https://doi.org/10.1016/j.cmet.
          <year>2023</year>
          .
          <volume>03</volume>
          .015.
        </mixed-citation>
      </ref>
      <ref id="ref3">
        <mixed-citation>
          <string-name>
            <given-names>S.</given-names>
            <surname>Cohen</surname>
          </string-name>
          ,
          <string-name>
            <given-names>D.</given-names>
            <surname>Janicki-Deverts</surname>
          </string-name>
          ,
          <string-name>
            <given-names>G.E.</given-names>
            <surname>Miller</surname>
          </string-name>
          ,
          <article-title>Psychological stress and disease</article-title>
          ,
          <source>JAMA</source>
          .
          <volume>298</volume>
          (
          <year>2007</year>
          )
          <fpage>1685</fpage>
          -
          <lpage>1687</lpage>
          . https://doi.org/10.1001/jama.298.14.1685.
        </mixed-citation>
      </ref>
      <ref id="ref4">
        <mixed-citation>
          <string-name>
            <surname>M.T. La Rovere</surname>
            ,
            <given-names>A.</given-names>
          </string-name>
          <string-name>
            <surname>Gorini</surname>
            ,
            <given-names>P.J.</given-names>
          </string-name>
          <string-name>
            <surname>Schwartz</surname>
          </string-name>
          ,
          <article-title>Stress, the autonomic nervous system, and sudden death</article-title>
          ,
          <source>Auton Neurosci</source>
          .
          <volume>237</volume>
          (
          <year>2022</year>
          ). https://doi.org/10.1016/j.autneu.
          <year>2021</year>
          .
          <volume>102921</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref5">
        <mixed-citation>
          <string-name>
            <given-names>K.</given-names>
            <surname>Levenberg</surname>
          </string-name>
          ,
          <string-name>
            <given-names>H.D.</given-names>
            <surname>Critchley</surname>
          </string-name>
          ,
          <string-name>
            <given-names>R.D.</given-names>
            <surname>Lane</surname>
          </string-name>
          ,
          <article-title>Understanding the mechanisms of sudden cardiac death in bipolar disorder: Functional asymmetry in brain-heart interactions as a potential culprit</article-title>
          ,
          <source>Med Hypotheses</source>
          .
          <volume>170</volume>
          (
          <year>2023</year>
          ). https://doi.org/10.1016/j.mehy.
          <year>2022</year>
          .
          <volume>110986</volume>
          .
        </mixed-citation>
      </ref>
      <ref id="ref6">
        <mixed-citation>
          <string-name>
            <surname>G.M. Slavich</surname>
          </string-name>
          , Life Stress and
          <article-title>Health: A Review of Conceptual Issues</article-title>
          and
          <string-name>
            <given-names>Recent</given-names>
            <surname>Findings</surname>
          </string-name>
          ,
          <source>Teaching of Psychology</source>
          .
          <volume>43</volume>
          (
          <year>2016</year>
          )
          <fpage>346</fpage>
          -
          <lpage>355</lpage>
          .
        </mixed-citation>
      </ref>
      <ref id="ref7">
        <mixed-citation>https://doi.org/10.1177/0098628316662768.</mixed-citation>
      </ref>
      <ref id="ref8">
        <mixed-citation>
          World Health Organization,
          <article-title>WHO highlights urgent need to transform mental health and mental health care</article-title>
          ,
          <year>2022</year>
          . https://www.who.int/news/item/17-06-2022-who-highlights-
        </mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>