Anomaly detection frameworks for outlier and pattern anomaly of time series in wireless sensor networks | Synapse