Predictive based algorithms allows to plan a safer and cost-efficient maintenance plan