Monday 23 June 2025
Artificial Intelligence has made tremendous progress in recent years, particularly in areas like computer vision and natural language processing. However, one of the most challenging tasks for AI systems remains predicting human behavior – especially when it comes to complex scenarios where multiple individuals interact with each other.
A new paper published by researchers at Keio University tackles this problem head-on, introducing a novel approach called TrajICL (Trajectory In-Context Learning) that enables AI models to accurately predict the trajectories of pedestrians in diverse environments and scenarios. The key innovation is an algorithm that selects relevant examples from previously observed trajectories within the same scene, taking into account both past motion patterns and predicted future trajectories.
The researchers’ approach is designed to address a major limitation of traditional machine learning methods: their tendency to overfit to specific training data, which can result in poor performance when applied to new situations. By incorporating in-context examples – that is, selecting relevant instances from the same scene as the one being predicted – TrajICL enables the model to adapt more effectively to changing environments and scenarios.
The researchers tested their approach on several public datasets, including ETH-UCY, MOTSynth, JRDB, and WildTrack. The results are impressive: TrajICL outperforms state-of-the-art methods in terms of accuracy, robustness, and generalizability. In particular, the model demonstrated remarkable ability to predict pedestrian trajectories in complex scenarios involving multiple individuals, obstacles, and changing environments.
One of the key advantages of TrajICL is its ability to learn from a small number of examples, making it more efficient than traditional fine-tuning methods that require large amounts of data. This property is particularly valuable for applications where collecting and labeling vast amounts of training data may not be feasible or practical.
The potential implications of this technology are significant. For instance, autonomous vehicles could use TrajICL to better predict the behavior of pedestrians and other road users, leading to safer and more efficient transportation systems. Similarly, surveillance systems could leverage this approach to improve their ability to track and anticipate human movement in public spaces.
While there is still much work to be done to fully realize the potential of TrajICL, this breakthrough has significant implications for the development of AI models that can accurately predict human behavior in complex scenarios. As researchers continue to refine and expand upon this approach, we may see even more impressive advances in areas like autonomous systems, robotics, and human-computer interaction.
Cite this article: “Predicting Human Behavior: Trajectory In-Context Learning for Accurate Pedestrian Tracking”, The Science Archive, 2025.
Artificial Intelligence, Trajectory In-Context Learning, Pedestrian Tracking, Machine Learning, Autonomous Vehicles, Surveillance Systems, Computer Vision, Natural Language Processing, Human Behavior Prediction, Robotics
Reference: Ryo Fujii, Hideo Saito, Ryo Hachiuma, “Towards Predicting Any Human Trajectory In Context” (2025).







