A proactive role of IoT devices in building smart cities | Synapse