Real-time performance of hand motion recognition using kinematic signals for impaired hand function training