This sounds to me like a CTHMM. @RJTK has done some work in this area (Multivariate time series inference). An alternative that PyMC3 handles well is a lagged regression (an example of which is also in that link)
1 Like