Predictive maintenance in supply chains