Ranking-based Feature Selection for Anomaly Detection in Sensor Networks