Using artificial intelligence to find the complex systems and patterns underlying smart cities