A Hidden Markov Model-based approach to sequential data clustering