Data-driven Modelling of Structured Populations