This is a special kind of Hidden Markov Model, which originates in the context of speech recognition. It was initially introduced in the following paper:
Article Multiple-Regression Hidden Markov Model
Whether this approach suits your needs depends on your data and the underlying phenomenon.