1. Pre-processing: EEG signal Processing;
2. Post-processing: metrics computation;
3. QEEG: rules and protocols decisional tree;
4. Neurofeedback: mini-QEEG and training
analysis
5. Validation of the whole application and ex-
tracted metrics.
For the first (1) step, we applied Fast Fourier
Transform (FFT), with a 0.98 Hz resolution, to 16
scalp electrodes (Fp1, Fp2, Fz, F3, F4, Cz, C3, C4,
T3, T4, Pz, P3, P4, O1, O2, Oz (this channel is repre-
sented as the average between O1 and O2). We use
linked-ears reference and ground is located on AFz
site. Based on the frequency spectrum, a known lead-
off detection current and Ohm’s Law, we also com-
pute the impedance in each electrode.
For the second (2) process, we computed the spec-
tral power for each electrode and for different fre-
quency bins and frequency-bands, in real-time.
We also developed a blink and jaw clench detec-
tion routine. When one of these events is detected, the
software assumes the value of the referred metrics as
the result of the linear interpolation of the last 4 val-
ues computed.
For the third (3) process of this work, we com-
puted dysfunctional patterns, such as dysfunctional
power ratios, asymmetries inter-hemispheric and in-
tra-hemispheric, among others.
These dysfunctional patterns were based in devi-
ations of the normal brain electrophysiology, grouped
as instabilities (frontal alpha asymmetry, frontal beta
asymmetry, antero-posterior beta inversion) (Da-
vidson, 1979, 2004; Harmon-Jones, 2004; Minnix et
al., 2004; Nitschke, et al., 2004; Sutton and Davidson,
1997; Wiedemann et al., 1999), disconnection (dis-
rupted Hibeta at T3 and/or T4) (Coan and Allen,
2004), blocking (disrupted Hibet:beta ratio at Fz
and/or Pz, also known as Swingle ratio) (Swingle and
Paul, 2015); hot temporals (high percentage of beta
and hibeta at T3 and/or T4), and dystonus (hypertonus
and hypotonus) (Hagemann, 2004).
Our software has a table of rules of dysfunctional
patterns grouped according to the groups referred
above and every-time there is a ratio that is inverted
or not-present the rule is turned-on, thus, the dysfunc-
tional pattern is considered.
Our software ranks the dysfunctional patterns of
the user according to an serial order, based on their
score, and link that dysfunctional order to a specific
training protocol. As soon as a NF training session is
completed, the efficiency of the protocol is automati-
cally assessed by a mini-QEEG, in such a way that
the program will decide if the user will need to train
the same protocol again or will jump to the next one
in the serial order. In this application, the minimum
training sessions per protocol are 6 sessions and the
maximum are 10 sessions. Each training block is
composed by 3 training protocols and each block has
a minimum of 18 sessions (3x6) and a maximum of
30 sessions (3x10).
In the end of each block, the program performs a
post-block QEEG to assess the success of the training.
If the overall dysfunctional patterns are not corrected,
the client will be indicated to do another block, this
process being repeated until the dysfunctional pat-
terns normalize. All the computation is done instanta-
neously.
For the fourth (4) process, we have programmed a
real-time feedback related to a base-line measured in
each training session that indicates the positive and
negative feedback to be given to the user according to
the dysfunctional pattern rule (reinforce or inhibit a
certain frequency band in specific electrodes). This
feedback is adaptive relative to a moving base-line, of
60 seconds, that dictates its difficulty level. Thus, we
created a generative feedback, according to the level
of the user’s learning.
Figure 1: Example of the generative adaptation of the feed-
back of one user. First plot – user’s performance in blue and
feedback given in orange. Second plot – Maximum limit
used to compute the feedback. Third plot – feedback given
(from worst to best: red, pink, dark blue, light blue). We can
see that the maximum limit goes up because the metric be-
ing trained rises in the moving base-line. Thus, the user
stops receiving a positive feedback because now the level
is more difficult. Then, since it became “too hard”, the max-
imum limit drops down again, and the user starts receiving
more positive feedback again.