Using Artificial Intelligence to Improve Quality Control