Machine learning analysis reveals the dynamics of mode transition in dendritic cell migration