AI defect tagging