Artificial Intelligence for Quality Control