Skip to main content
. 2018 May 24;18(6):1698. doi: 10.3390/s18061698
Algorithm 2 Pseudo-code of seizure prediction framework
1: procedure Prediction(Secog, PA)
2:         input: Secog
3:         output: PA (prediction alarm)
4:         repeat
5:                 for every 20 s window of Secog do
6:                      X = Extract feature(Secog)
7:                      (Y,V,U) = Classify(X)
8:                 end for
9:                 while !(time == 60 mins) do
10:                      Y^ = Y (accumulate the labels for 1 h)
11:                 end while
12:                 if !(Threshold(Y^)) then
13:                      A = Active Learner(X,U,Y^,V)
14:                      Y=expertA (Obtain labels)
15:                      update θ(X)(Update base classifier model)
16:                 else
17:                      return PA
18:                 end if
19:         until End of Secog
20: end procedure