Skip to main content
. 2022 Dec 3;22(23):9451. doi: 10.3390/s22239451
Algorithm 1 Optimization strategy for reducing the set of transmitted data.
  • 1:

    Set Dis=D, for all nodes i=1,...,n, n is designated to smartphone

  • 2:

    Calculate accuracy a based-on training set, Dis,i=1...n and Equation (2)

  • 3:

    for each  i=0...n1 do

  • 4:

        for each activity j in Dis do

  • 5:

            Calculate accuracy ai,j based on training set and Disj and Equation (2)

  • 6:

            if aai,jε then

  • 7:

               remove activity j from Dis set and go to 2

  • 8:

            end if

  • 9:

        end for

  • 10:

    end for