The complete workflow is implemented in hmm_activity_recognition.ipynb. It builds a Gaussian Hidden Markov Model (HMM) from scratch with NumPy, without using a machine-learning HMM library.