Algorithm 1: Baseline detection considering both activity sequence and activity length |
Inputs:—transition probability matrix, —set holding each activity probability to be the first one of the day, —set holding each activity probability to be the last one of the day, —end probability weight, —length median, —length probability weight, —the transition probability from an activity to an activity ; Outputs: —activity sequence representing the baseline. Begin 1 3 4 4 5 6 while do 7 8 9 10 11 12 foreach do 13 14 if then 15 16 17 end 18 end 19 end 20 return End |