Deep diffusion models for anomaly detection