Algorithm 2 The learning algorithm of the CNN. |
-
1:
Input: Features of physiological signals
-
2:
Output: CNN Templets and
-
3:
Generate CNNs Templates
-
4:
Set to 0
-
5:
fordo
-
6:
for
do
-
7:
for
do
-
8:
Using the learning dataset
-
9:
Run
-
10:
Read
Y from
-
11:
Using
Y and g
-
12:
Estimate
using Equation (10)
-
13:
Using the learning dataset with the estimated
-
14:
Run SimulinkModel B
-
15:
Read the emotion states from
-
16:
Calculate the Accuracy
-
17:
Set the Accuracy to Accuracy repository(i)
-
18:
end for Set the Global Parameter() = the average of the Accuracy repository
-
19:
end for
-
20:
end for
-
21:
Select the best CNN configuration from the Global Parameter
|