Probabilistic Anomaly Detection in Dynamic Systems