A general solution to detect anomalies in networked distributed sensing systems