Cyber-physical solution for an engagement enhancing rehabilitation system