AI research in defect detection