Learning from the past in order to improve the future