AI-driven quality management