Sage Patch and Hidden Markov Models