other than other fields such as entertainment [15], education [4], and marketing
[16]. This is because measuring and monitoring the brain’s electrical activity can
provide important information related to the brain’s physiological, functional,
and pathological status. EEG signals are particularly suitable to this aim thanks
to their important qualities such as non-invasiveness and high temporal reso-
lution [30]. Furthermore, several solutions for comfortable and wearable EEG
acquisition devices are being proposed [10, 7], allowing an acquisition process
less influenced by noise due to the user-device interaction. Thanks to its prop-
erties, the EEG signal is one of the most promising candidates to become one
of the most used communication channels between man and machine.
Several BCI solutions adopting ML methods are proposed in the literature.
Generally, EEG data acquired from persons subjected to well-known stimuli are
used in the training stage. These data are labelled following some established
protocol, usually dependent on the task. For example, in an Emotion Recogni-
tion (ER) task, stimuli can be images or videos considered able to elicit partic-
ular emotions. Therefore the labels can be inferred by the stimuli or declared
by the subject, who will say whether or not he felt a specific emotion during
the stimulus administration. If the training stage is successful, the model can
generalise on new unlabelled data, such as new acquisition from another subject
or the same subject in another session.
However, one of the main defects of the EEG signal is that its statistical
characteristics change over time. This implies that even under the same condi-
tions and for the same task, significantly different signals can be acquired just
as time passes. It is important to highlight that this phenomenon can also oc-
cur using the same stimuli-reaction (e.g., same emotions with the same stimuli)
to the same subject at different times, leading to substantially different EEG
signals even for the same subject. This problem is even more present among
different subjects, who, given the same stimuli and emotions, can produce very
different acquisitions between them. For these reasons, EEG is considered a
non-stationary signal [12]. More in detail, the following cases in an EEG-based
task can arise: i) a model trained on a set of EEG data acquired from a given
subject at a specific time could not work on data acquired from the same sub-
ject at different times (Cross-Session generalisation problem), or ii) a model
trained on data acquired from one or more subjects should not work as ex-
pected in classifying EEG signals acquired from a different subject at different
times (Cross-Subject generalisation problem).
This type of problem can be treated as an instance of the Dataset Shift
problem [20]. In a nutshell, Dataset Shift arises when the distribution of the
training data differs from the data distribution used outside of the training stage
(that is, running or evaluation stages); therefore the standard ML assumption
[20] to have the same data distribution for both training and test set does not
hold. Consequently, standard ML approaches can produce ML systems which
exhibit poor generalisation performances.
On another side, a sub-field of Artificial Intelligence, eXplainable Artificial
Intelligence (XAI), wants to explain the behaviour of AI systems, such as ML
ones. In general, an explanation gives information on why an ML model returns
2