From Statistical Physics to Data-Driven Modelling