https://medium.com/@monocosmo77/progress-in-applications-of-hidden-markov-models-part2-machine-learning-45602c7b5c58