Artificial intelligence and complex systems