Intelligent manufacturing to reduce costs and increase efficiency