CAHR: A Contextually Adaptive Rehabilitation Framework for In-Home Training