Skip to main content
. 2019 Jan 28;19(3):546. doi: 10.3390/s19030546
Algorithm 1: Algorithm flow of the proposed hierarchical deep fusion framework.
Input: activity sets A={A1,A2,,An}; motion state sets ={M1,M2,,Mm}; correspondence CA;
  •  IMU sequence xt; single frame It or image sequence It (corresponding to xt);

  •  pre-trained LSTMx (for xt); pre-trained VGGconv; pre-trained FCjI,j=1,2,,m (for It);

  •  pre-trained LSTMjI,j=1,2,,m (for It); pre-trained FCjLSTM,j=1,2,,m (for LSTMjI);

  •  indicator of the photo stream Ips (H or L)

Output: activity index k,k{1,2,,n}
  • (1)

    Input xt into LSTMx

  • (2)

    Get the grouping index j of xt with Equation (6)

  • (3)

    If Ips==L // Input photo stream is a low-frame-rate photo stream (xt corresponds to single frame It)

  • (4)

     Input It into VGGconv with FCjI        //CNN as shown in Figure 6

  • (5)

     Get k with Equation (7)

  • (6)

    Else   // Input photo stream is a high-frame-rate photo stream (xt corresponds to image sequence It)

  • (7)

     Input It into VGGconv+LSTMjI with FCjLSTM  //CNN+LSTM as shown in Figure 7

  • (8)

     Get k with Equation (8)

  • (9)

    end If