Pain level recognition using kinematics and muscle activity for physical rehabilitation in chronic pain