Research Article

Identification of Partitions in a Homogeneous Activity Group Using Mobile Devices

Algorithm 2

Select sensing modalities.
Input: training set of time series from mobile devices under activity , sensing modalities
   in each set of time series, window size range and according to the sampling rate in the
   training set, scoring function , decision threshold
Output: set of candidate sensing modalities
(1) ;
(2) ;
(3) ;
(4) for    do
(5)  ;
(6)  ;
(7)  ;
(8)  for    do
(9)   for    do
(10)    ;
(11)   end for
(12)   if    then
(13)    ;
(14)    ;
(15)   end if
(16)  end for
(17)  if    then
(18)   ;
(19)   if    then
(20)    ;
(21)    ;
(22)   end if
(23)  end if
(24) end for