Leveraging Community Structure And Behavior For Smart Infrastructure