Applying Machine Learning to Human Activity Recognition