A Bio-Inspired Technique based on Knowledge Discovery for Routing in IoT Networks