Learning from the observation of failures