Machine learning: at the heart of failure diagnosis