Deep Learning-Based Defect Detection for Sustainable Smart Manufacturing