A study on additive manufacturing with optimization of artificial intelligence