Applying Data Mining Techniques to Intrusion Detection in Wireless Sensor Networks