HMM analysis of general state