Variational Inference for On-line Anomaly Detection in High-Dimensional Time Series