AI-driven human-machine collaboration