Joint human motion recognition and breathing frequency estimation for indoor healthcare applications