Stochastic modelling of infectious diseases for heterogeneous populations | Synapse