Text this: Smart extrusion via data-driven prediction of grain size and peripheral coarse grain defect formation