Predictive maintenance for pumps