Introduction
Tracking agents in dynamic environments is a cornerstone of autonomous systems and strategic gaming. While traditional methods like Kalman filters handle local movements well, they often fail when agents follow sophisticated, long-term path-planning algorithms and are only sporadically observed due to "fog of war." This paper introduces a framework to infer an agent’s origin, destination, and current unobserved location by treating motion planners as black-box priors within a Hidden Semi-Markov Model (HSMM).
Probabilistic Motion Modeling
The core of the proposed approach is the integration of existing pathfinding algorithms (e.g., A*) into a Bayesian inference framework. Rather than assuming an agent follows a perfectly optimal path, the model constructs a probabilistic "corridor" around the intended route. This accounts for potential deviations or "noisy" pathing, allowing the system to handle observations that fall slightly off the expected optimal path.
By using HSMMs, the system explicitly models the duration an agent spends at specific map locations. This temporal component is crucial for accurately bridging the gaps between sparse observations. For multi-agent scenarios, a greedy heuristic based on Kullback-Leibler (KL) divergence is employed to associate fragmented trajectories with specific agent identities.
Scaling via Graph Abstraction
To maintain computational efficiency on large-scale maps, the authors utilize "clique abstraction." This technique collapses groups of adjacent map tiles into single abstract nodes, significantly reducing the state space. Beyond speed, this abstraction provides a layer of robustness; multiple similar low-level paths often map to the same abstract path, making the model less sensitive to minor agent deviations or sub-optimal pathing choices.
Experimental Results
The framework was evaluated on several maps, including those from the commercial game Warcraft III (e.g., Adrenaline, Harrow, and Borderlands). In single-target tests, the true path of the agent consistently ranked in the 99th percentile of all possible paths across various maps and abstraction levels.
Efficiency gains were substantial: on a 32x32 map, increasing the abstraction level reduced processing time from 0.43 seconds to just 0.01 seconds per step with negligible loss in accuracy. The system also demonstrated resilience to "model mismatch," performing effectively even when the tracking model used a different pathfinding variant than the agent actually employed.
Conclusion
By leveraging the internal logic of agent pathfinding as a prior, this framework provides a robust solution for tracking in partially observable environments. While the current multi-agent logic uses a greedy approximation, the results demonstrate high success rates in complex RTS environments. Future work aims to refine trajectory association and adapt the model for real-world surveillance tasks where motion patterns are governed by complex social and environmental constraints.
Summary updated