Advancing Optimization Mathematical Modelling and Predictive Maintenance Planning Through Data Analytics using IoT Manufacturing System