Modeling heterogeneous data with a HMM
I have gone through the concepts of HMM and I have understood most of them. However, I'm confused about how to map it to my problem.
I have patients' information. Each patient is delivered a medicine after x weeks. x depends on patient's prescription. Now, each patient is delivered extra medication so if in any case delivery fails he/she don't miss their dose. Let's call this extra medication buffer. So a patient's buffer might be full which means that he hasn't used it up. Or it might be partially full. Or empty. My output states are misdose or not misdose. The way I see it is that Ill be finding probability of P(Misdose|S={s1,s2,s3}) and P(~Misdose|S={s1,s2,s3}). Problem is that each patient will have a different sequence. Do I concatenate all the patients into one sequence? or treat them as multi-sequence? How will I be predicting for a new patient?
Resources: Following are the resources I used to understand it:
https://towardsdatascience.com/markov-and-hidden-markov-model-3eec42298d75
Topic markov-hidden-model
Category Data Science