Predictive maintenance for pump