BOOSTING EFFICIENCY: THE POWER OF AI IN AUTOMATED DEFECT DETECTION