AI-based route optimization