Foundations of AI in Predictive Maintenance