Hidden Markov Model learning via Baum-Welch algorithm