[FYR] #N/A refactor HMM model