Research Article

SonicGest: Ultrasonic Gesture Recognition System Combined with GAN on Smartphones

Algorithm 1

Start and end point detection.
(1) Input: T1, T2, T3, fame:
(2) Output: List of start and end points.
(3) Define sum () to calculate the sum.
  Define power () to calculate fame power
(4) startCount0; endCount0; flagFalse;
(5) for i = 1: n do
(6)  if flag == False then
(7)   if sum (power (vi) > T2) >= T1 then
(8)    Add the first possible start frame
(9)    startCountstartCount+1
(10)   else
(11)    startCount0
(12)   end if
(13)   if startCount >= T3 then
(14)    flagTrue
(15)   end if
(16)  else if flag== True then
(17)   if sum (power (vi) > T2) < T1 then
(18)    Add the first possible end frame
(19)    endCountendCount+1
(20)   else
(21)    endCount0
(22)   end if
(23)   if endCount >= T3 then
(24)    Add the first possible end frame and start frame to the start-end list
(25)   end if
(26)  end if
(27) end for