https://medium.com/@monocosmo77/updates-on-hidden-markov-models-in-2023-part2-machine-learning-5d5ed07238ba