this is working better now, with your classification scheme of combining logistic regression and HMM