FIGURE 1 | Recognition algorithm block diagram. First of all, Savitzky–Golay filter is used to reduce noises as well as artifacts. After that, feature of Oxy-Hb is found by a polynomial regression based on its coefficients. Finally, Artificial Neural Network or Support Vector Machines is used to determine whether left hand or right hand is tapped.