Skip to main content
. 2017 Jun 14;17(6):1382. doi: 10.3390/s17061382
Algorithm 1 Student state distinction (SSD) algorithm.
Input: Nw, Nh, Nm, Ns, Φh, time period length T, threshold θn and θh, weights ww, wh, wm, ws.
Output: Inferred learner state for current time period.
 1: N¯T=wwNw+whNh+wmNm+wsNsT;
 2: σT=std(Φh);
 3: if N¯>θn and σT>θh then
 4:   Infer learner active state during current time period;
 5: else if N¯<θn and σT<θh then
 6:   Infer learner inactive state during current time period;
 7: else
 8:   Infer unclear state during current time period;