which states that the output observed at a particular
time is independent of past outputs and states and de-
pends only on the current state. An HMM can also
perform learning, whereby the model parameters that
best describe a process can be estimated from a set of
examples from the particular process. Training can be
both supervised or unsupervised. In supervised learn-
ing, the model outputs are equated to the inputs, and
the outputs to the corresponding states. The model pa-
rameters can then be estimated using maximum likeli-
hood estimation. In our particular case, the output ob-
servations correspond to the GC-based features, while
the unobserved underlying states are ‘wakefulness’
and ‘anaesthesia’. The HMM is then used to answer
the question: ”What is the most likely sequence of
wakefulness/anaesthesia states that could have gener-
ated the observed GC values?”.
2.4 Methodology
The ability to separate consciousness and anaesthesia
using the spontaneous changes in the patient’s EEG
activity was investigated. The particular methodology
consists of the following steps:
1. For each patient, the 19 electrodes were split into
the following five grids: left frontal (LF: elec-
trodes Fp1, F7, F3, T3, C3), right frontal (RF:
Fp2, F8, F4, C4, T4), left posterior (LP: T5, P3,
O1), right posterior (RP: T6, P4, O2), and mid-
line (Z: Fz, Cz, Pz). The average EEG activity
over each of the five grids was then estimated.
The particular groupings were chosen such that
broad areas corresponding to frontal and poste-
rior activity were obtained, as fronto-posterior
interactions appear to play an important role in
(un)consciousness.
2. For each patient, the continuous averaged EEG
data obtained over each of the five grids were win-
dowed into 2-s non-overlapping segments.
3. Using the manual markers in the EEG record, the
windows corresponding to wakefulness (class A)
and anaesthesia (class B) were identified.
4. For each 2-s segment, pairwise fronto-posterior
GC features were estimated, resulting into the fol-
lowing 4-dimensional feature vector:
F
i
C
= [GC
i
LF→LP
,GC
i
RF→LP
,GC
i
LF→RP
,GC
i
RF→RP
]
where C ∈ {A,B} corresponds to one of the two
classes, and i = 1,...,N
C
denotes the i
th
2-s seg-
ment from all the available segments of each class
(N
C
). The order of the fitted regression models
was set to 6.
5. The ‘Bayes Net Toolbox’ for Matlab is used for
HMM modelling (Murphy, 2001). An HMM
model is trained using 40% of the available data
for each class. The HMM outputs are modelled
as continuous Gaussians. The estimated predic-
tion probabilities are then obtained for all avail-
able data.
The specific parameters, such as duration of the win-
dows and the order of the fitted regression mod-
els were based on previous investigations (Nicolaou
et al., 2012). The performance of the HMM for each
patient is then estimated via the average specificity
(4), sensitivity (5) and accuracy (6) estimated over
B = 50 bootstrap repetitions. T
ru
P(T
ru
N) is the num-
ber of true positives (negatives), and T
ot
P(T
ot
N) is the
total number of ‘ground truth’ positive (negative) ex-
amples of each class.
SP =
T
ru
P
T
ot
P
(4)
SE =
T
ru
N
T
ot
N
(5)
AC =
1
2
1
B
B
∑
b=1
SP
b
+
1
B
B
∑
b=1
SE
b
!
(6)
3 RESULTS AND DISCUSSION
Figures 1 and 2 show examples of the marginal proba-
bilities for wakefulness and anaesthesia obtained from
one of the 50 bootstrap repetitions and for two ran-
domly chosen patients (S20 and S2 respectively). For
visualisation purposes a moving average filter (n =
10) was applied to the marginal probabilities. The
probabilistic framework allows the anaesthetist to as-
sociate a likelihood to a particular decision. It can
be seen from the figures that the marginal probabil-
ities track the transitions between wakefulness and
anaesthesia well: as expected, the marginal probabil-
ity for wakefulness is close to 1 prior to anaesthetic in-
duction and after recovery of consciousness, while it
drops below 0.5 during surgical anaesthesia (and vice
versa for the marginal probability for anaesthesia).
This implies that the Granger Causality-based fea-
tures provide a good representation of the two states
and that the HMM is able to track the successions of
the two states successfully. The presence of artefacts,
such as the use of diathermy, may cause brief distor-
tion in state estimations. This can be seen in figure 1,
where artefacts caused by diathermy introduce spu-
rious brief changes in the estimated marginal proba-
bilities. In such cases, it is easy for the anaesthetist
NEUROTECHNIX2013-InternationalCongressonNeurotechnology,ElectronicsandInformatics
258