Human Activity Recognition Using A Deep Learning Algorithm For Patient Monitoring