Human Activity Recognition using a Deep Learning Algorithm for Patient Monitoring