Using AI to build smart cities of the future