Text this: Exploitation of accelerometer for rehabilitation process