Neural network defect detection example