Quality monitoring to avoid unnecessary scraps