Automatic assessment of motor dexterity for rehabilitation with a representation nonspecific on sensor