Ergodic Hidden Markov models for workload characterization problems