Production quality tracking for factories of the future