Fault Detection and Classification in Automated Assembly Machines Using Machine Vision