A time varying Hidden Markov model with latent information