Text this: Two-Layer Hidden Markov Model for Human Activity Recognition in Home Environments