Skip to main content
. 2023 Apr 27;14(5):947. doi: 10.3390/mi14050947
Algorithm 1: Assisted Segmentation Algorithm

Input: Continuous gesture data: D=d1,d2,d3,...,dn;

Output: Split start point list S, split end point list O.

  • 1

    Transition state mean: m=i=1100di100;

  • 2

    Define the length l of the sliding window sequence, the current window value A0, the window value A1 after sliding 5 times, the window value A2 after sliding 10 times, E1=A0A1,E2=A1A2;

  • 3

    Traverse continuous gesture data D;

  • 4

    if E1>10&&A0m<12&&A2m<12 then Read the current position and add it to the starting point list S; (

  • 5

    if E2>10&&A0m<12&&A2m<12 then Read the current position and add it to the end point list O; (

  • 6

    End;