| Algorithm 1 Pseudo-Code Based on the Sliding Window and Bayes Network | |
| 1 | Input: Sensor data stream |
| 2 | Output: Type(label) of a slide instance |
| 3 | label= |
| 4 | Swidth=200, //set the width of sliding window |
| 5 | for (Sref = 0; size (Sref+Swidth) ≥ Swidth; t ++) |
| 6 | label= Bayes network (Dtrain, Sref + Swidth) |
| 7 | end for |
| 8 | return label |