Context-based path prediction for targets with switching dynamics