Unsupervised template discovery in activity recognition using the Gamma Growing Neural Gas algorithm