Artificial intelligence aids materials fabrication