Neural spatial pattern recognition of defects in semiconductor manufacturing