https://medium.com/@monocosmo77/updates-on-hidden-markov-models-in-2023-part8-machine-learning-96e4dd123a7f