Extended hidden topic semi-Markov models