Predict to prevent: Transforming mining with machine learning