https://medium.com/@monocosmo77/updates-on-hidden-markov-models-in-2023-part4-machine-learning-91d91d45fa77