This Code Implements the Hidden Markov Model (Monitoring and the Viterbi Algorithm) in Python on a Time series Data. The plot below shows the dataset used.