Cognitive strategies for reducing energy consumption in Wireless Sensor Networks