Skip to main content
. 2018 Jun 6;18(6):1850. doi: 10.3390/s18061850
Algorithm 2 Classifier
Input: real-time data A
Output: human activity category
  1. Preprocess the input data through the Butterworth low-pass filter and dividing by sensitivity coefficient k.

  2. Segment the data into overlapping windows.

  3. Extract the features and construct the feature vector x with normalization.

  4. Input x into three MGD models and calculate p1(x), p2(x), and p3(x).

  5. if p1(x)==maxi=1,2,3pi(x): Output (LIA)

  6. else if p2(x)==maxi=1,2,3pi(x): Output (MIA)

  7. else if p3(x)==maxi=1,2,3p3(x) & p3(x)>ε2 & TA<ε3: Output (VIA)

  8. else:Output (Fall)