Fast Online Learning of CLiFF-maps in Changing Environments

Yufei Zhu, Andrey Rudenko, Luigi Palmieri, Lukas Heuer, Achim J. Lilienthal, Martin Magnusson

TL;DR

This paper introduces a high-speed, online update method for CLiFF-maps (Circular-Linear Flow Fields), allowing robots to learn and adapt to changing human motion patterns in real-time. By leveraging a stochastic expectation maximization (sEM) algorithm to track sufficient statistics rather than raw data, the method achieves a 1000x speedup over traditional history-based approaches while maintaining high accuracy for socially compliant navigation.

What Problem Does This Paper Address?

For a robot to navigate a crowded shopping mall or office safely, it needs to understand "the flow of traffic"—where people usually walk, how fast they go, and in what direction. These patterns are captured in Maps of Dynamics (MoDs).

However, most existing MoDs are static; they are built offline from historical data and assume that human behavior never changes. In the real world, flows shift: a new pop-up shop might redirect foot traffic, or a hallway might become one-way during peak hours. Rebuilding these maps from scratch every time a change occurs is computationally expensive and requires storing massive amounts of trajectory data, which raises significant privacy and storage concerns. The authors tackle the challenge of creating a map that can learn on the fly, adapting to new observations while selectively "remembering" useful historical patterns.

Methods

The researchers build upon the CLiFF-map representation, which uses Semi-Wrapped Gaussian Mixture Models (SWGMM). This is a fancy way of saying the map models velocity (speed and direction) as a combination of several "modes" (e.g., one group walking north at 1m/s, another strolling south at 0.5m/s).

The core innovation is the online update algorithm:

  1. Stochastic EM (sEM): Instead of the standard Expectation-Maximization algorithm that requires looking at the entire dataset, they use a stochastic version. It updates the model parameters by tracking sufficient statistics—compact mathematical summaries of the data—meaning the robot doesn't need to store every past trajectory.
  2. Dynamic Weighting: The algorithm uses a decay rate ($\lambda$) to gradually reduce the influence of old data. This allows the model to prioritize recent observations (adapting to changes) without immediately forgetting the past.
  3. Adaptive Complexity: If new observations don't fit the current model well, the algorithm automatically adds new mixture components to the SWGMM to represent the new behavior.
Fig. 1: Online update results of toy example data compared with using only new observations and using all observations to build the model. The top row shows raw observations for each of the eight directions (0◦, 45◦, 90◦, 135◦, 180◦, 225◦, 270◦, 315◦), provided in each iteration k. Blue arrows depict the mean vectors of a CLiFF Gaussian mixture model, with transparency indicating the component weights. Three modeling approaches are compared: the second row shows models built using only observations from the current iteration k; the third row shows models built with cumulative observations from iteration 1 to k, which are overgener- alized and fail to prioritize recent observations; the fourth row shows the proposed online update method, which incorporate new data while retaining relevant historical patterns, offering a dynamic representation of the motion pattern over time.

Datasets

The authors evaluated their method using three distinct sources:

  • den520d: A new synthetic dataset introduced in this paper. it simulates a clear "regime shift" where dominant flow directions are reversed (Condition A to Condition B) to test how fast models adapt.
  • ATC Dataset: A massive real-world dataset of human trajectories collected in a Japanese shopping mall using 3D range sensors.
  • Real-Robot Deployment: Live data collected from a mobile robot’s perception stack in a $40m^2$ indoor environment with four distinct motion periods.
Fig. 2: The den520d synthetic dataset simulates trajectories between posi- tions S1, S2, G1 and G2. The initial flow is shown in Condition A (left). To simulate the flow change, the start (S1, S2) and goal (G1, G2) positions are switched Condition B (right), reversing the dominant flow direction.

Key Insights and Ideas

  • The "Goldilocks" of Memory: The paper highlights the failure of two extremes. "Interval" models (using only recent data) forget too much and leave the map blank in areas not recently visited. "History" models (using all data) become over-generalized and fail to react when the environment changes. The online sEM approach finds the middle ground.
  • Efficiency is Enabling: By reducing the update time to just 0.1% of the history-based baseline, this method moves MoDs from a "pre-computed luxury" to a "real-time necessity" for mobile robots.
  • Sufficient Statistics as Privacy Shield: Because the model only stores mathematical summaries (sufficient statistics) rather than raw coordinates of people, it is inherently more privacy-friendly for deployment in public spaces.

Key Results

  • Speed: In the ATC dataset, the online model required only 0.1% of the time used by the history-based model. In real-robot tests, the update took 5 seconds compared to 990 seconds for the baseline.
  • Accuracy: The online model achieved the lowest Negative Log Likelihood (NLL) in changing environments. As shown in the graphs below, the online model (green) quickly adapts to new batches of data, reaching lower error rates faster than the history model (blue).
  • Navigation: In downstream tasks, a robot using the online CLiFF-map successfully navigated with the new flow of traffic, whereas a robot using a history-based map tried to swim against the current, leading to potential collisions.
Fig. 5: Left: NLL evaluation results at different times of a day in the ATC dataset. The STeF-map struggles to accurately capture human motion flow, resulting in poor performance. Notably, the interval model exhibits worse NLL results mostly after 16:00. It struggles to capture the full spectrum of motion patterns and is not able to effectively manage outlier trajectories outside of the main flow. Right: NLL evaluation results over batches in Condition B of the den520d dataset. The online model quickly adapts to changes in human flow, achieving lower NLL values in fewer batches.

Limitations and Future Work

The authors note that balancing historical patterns versus new data remains a "challenging problem." In very complex environments with high noise, a full historical model might still be more robust at handling extreme outliers. Furthermore, while the model adapts well to laminar (smooth) flow changes, it may perform less effectively if the human motion is highly chaotic.

Future work will focus on using this online update method as a foundation for efficient robot exploration, where the robot actively seeks out areas of the environment to update its dynamic map.

Summary updated

Abstract

Maps of dynamics are effective representations of motion patterns learned from prior observations, with recent research demonstrating their ability to enhance various downstream tasks such as human-aware robot navigation, long-term human motion prediction, and robot localization. Current advancements have primarily concentrated on methods for learning maps of human flow in environments where the flow is static, i.e., not assumed to change over time. In this paper we propose an online update method of the CLiFF-map (an advanced map of dynamics type that models motion patterns as velocity and orientation mixtures) to actively detect and adapt to human flow changes. As new observations are collected, our goal is to update a CLiFF-map to effectively and accurately integrate them, while retaining relevant historic motion patterns. The proposed online update method maintains a probabilistic representation in each observed location, updating parameters by continuously tracking sufficient statistics. In experiments using both synthetic and real-world datasets, we show that our method is able to maintain accurate representations of human motion dynamics, contributing to high performance flow-compliant planning downstream tasks, while being orders of magnitude faster than the comparable baselines.
BibTeX
@inproceedings{zhu2025fast,
  author = {Yufei Zhu and Andrey Rudenko and Luigi Palmieri and Lukas Heuer and Achim J. Lilienthal and Martin Magnusson},
  title = {{Fast Online Learning of CLiFF-maps in Changing Environments}},
  booktitle = {IEEE International Conference on Robotics and Automation},
  year = {2025},
  doi = {10.1109/icra55743.2025.11127602},
}
Figure