Modeling the dynamics of the recovery process in robot therapy