Contrastive adversarial glow model for machinery anomaly detection and degradation assessment