Explainable AI in defect detection