Artificial intelligence-based load optimization in cognitive Internet of Things