How Artificial Intelligence Works in Quality Control