Predictive maintenance in industry 4.0