HierAct: a Hierarchical Model for Human Activity Recognition in Game-Like Educational Applications