An anomaly detection framework for dynamic systems using a Bayesian hierarchical framework. (15th April 2019)