Application of machine learning in automated visual inspection for industrial inspectors