A knowledge based system for selection of exercises for robotised physiotherapy