A PROBABILISTIC APPROACH TO ANOMALY DETECTION FOR WIRELESS SENSOR NETWORKS