Predictive maintenance for rotary device