Dynamical systems with complex behaviours, e.g. immune system cells
interacting with a pathogen, are commonly modelled by splitting the behaviour
into different regimes, or modes, each with simpler dynamics, and then learning
the switching behaviour from one mode to another. switching dynamic