Detecting Faulty Wireless Sensor Nodes through Stochastic Classification