Tree-structured HMM