Cognitive (Internet of) Things: Collaboration to Optimize Action