| Algorithm 2 Pseudo-code of seizure prediction framework |
| 1: procedure
Prediction(, ) 2: input: 3: output: (prediction alarm) 4: repeat 5: for every 20 s window of do 6: = Extract feature() 7: = Classify 8: end for 9: while !(time == 60 mins) do 10: = (accumulate the labels for 1 h) 11: end while 12: if !(Threshold()) then 13: = Active Learner() 14: (Obtain labels) 15: update (Update base classifier model) 16: else 17: return 18: end if 19: until End of 20: end procedure |