Anomaly detection using Diffusion-based methods