It’s late, you’re tired, and you’ve probably spent a good chunk of your day navigating the "indoor wilderness"—office corridors, grocery aisles, or perhaps a confusingly laid-out airport. Now, imagine an AI trying to guess exactly how you got from the entrance to the exit, knowing only the timestamps of when you were at those two points.
Most current models would simply draw a straight line, effectively letting you "ghost" through walls and display cases like a glitch in a video game. This paper, Scenario Compliant Indoor Pedestrian Trajectory Reconstruction from Partial Observation, tackles exactly that: how to make AI-reconstructed paths respect the physical reality of the room.
TL;DR
By combining conditional diffusion models with a "map-aware" encoder, the authors have developed a way to reconstruct indoor paths that actually respect walls and corridors. Instead of treating a trajectory as a simple sequence of coordinates, they teach the model to "see" the floor plan, resulting in paths that are both physically feasible and realistically human.
What Problem Does This Paper Address?
In the world of "trajectory imputation"—the fancy term for filling in the blanks of a path—most models were born and raised in the great outdoors. They work well for GPS data where a car is on a wide-open road or a highway network.
But indoors, space is "dense." There are walls, shelves, and "no-go" zones. If you only have two data points (the start and the end), a standard generative model often produces "physically infeasible" paths. It doesn't know that walking through a solid brick wall is generally frowned upon. The challenge is to integrate the environmental context (the map) directly into the generative process so the AI understands the "rules" of the room.
Methods
The authors use a Conditional Diffusion Model. If you’re familiar with AI art generators like Stable Diffusion, the intuition is similar: the model starts with a "cloud of static" (Gaussian noise) representing a potential path and iteratively "sculpts" it into a realistic trajectory.
The "secret sauce" here is how they condition this sculpting process:
- Scenario Map Encoding: They feed the model a three-channel image of the floor plan (obstacles, exits, and endpoints). A CNN (ResNet-18) turns this map into a spatial embedding.
- Endpoint-Aware Embedding: This is the clever bit. Instead of just giving the model the $(x, y)$ coordinates of the start and end points, they "draw" them onto the map as localized heatmaps. This allows the model to jointly reason about where the person is and what obstacles are nearby.
- Iterative Denoising: At every step of the diffusion process, the model looks at the map and the current noisy path, gradually nudging the path away from walls and toward the exit.
Datasets
The team tested their approach on two very different types of data:
- Indoor Simulated Dataset: Generated using a "social force model." This is a "clean" dataset where pedestrians move efficiently and rarely stop, making it a perfect testbed for checking if the model can follow basic geometric rules.
- Shopper Trajectory Dataset: Real-world data from four supermarkets in Germany. This is the "messy" real world—shoppers take detours, stop to browse (dwell behavior), and move unpredictably.
Key Insights and Ideas
- The Map is Useless Without the "You Are Here" Marker: One of the most important findings was that providing the map alone didn't help much. The model only started respecting walls when the start and end points were drawn onto the map. This "spatial anchoring" is what allows the CNN to relate the goal to the geometry.
- Human-ness vs. Efficiency: A standard "shortest-path" planner (like A*) will never hit a wall, but it produces robotic, perfectly efficient paths. Real humans are erratic. The diffusion model captures this "variability" much better, even if it occasionally clips a corner.
- The "Long Tail" of Obstacles: The model still struggles when a major obstacle sits directly on the straight line between two points. It’s hard for a neural network to learn to "go the long way around" purely from sparse observations.
Key Results
- Lower Error: The proposed method achieved the lowest Mean Absolute Error (MAE) and Root Mean Squared Error (RMSE) compared to other generative baselines like CVAE or DiffTraj.
- Fewer Collisions: On the simulated dataset, the "scene-aware" conditioning reduced the collision rate by 19% and the "invalid point" rate by 46% compared to models that didn't use map data.
- Better Calibration: The model showed a 31% lower CRPS (Continuous Ranked Probability Score) than a shortest-path planner, meaning its "guess" at the distribution of possible paths was much closer to how real humans actually move.
Limitations and Future Work
While the model is a big step forward, it isn't perfect. It still reconstructs the timing of stops (dwelling) only partially. If a shopper stops for 30 seconds to look at cereal, the model might know where they stopped but struggle with exactly when and for how long.
The authors also note that while the model is "encouraged" to avoid walls, it isn't "guaranteed" to (it still collided in about 14-26% of test cases). Future work might involve "hard-coding" physics constraints into the diffusion process or developing encoders that better preserve local geometry to help the model navigate tight spaces like supermarket aisles.
Summary updated