Statistical task modeling of activities of daily living for rehabilitation