Two-Layer Hidden Markov Model for Human Activity Recognition in Home Environments. (12th January 2016)