Improving maintenance outcomes with machine learning