Automatic fault identification in sensor networks based on probabilistic modeling