Analytics-based predictive maintenance