Small dataset defect detection