Anticipatory Synchronization In Humans And Artificial Agents