Python package to create physics-based pedestrian models from crowd measurements
Project description
Data-driven physics-based modeling of pedestrian dynamics
Python package to create physics-based pedestrian models from pedestrian trajectory measurements. This package is an implementation of the data-driven generalized pedestrian model presented in:
Pouw, C. A. S., van der Vleuten, G., Corbetta, A., & Toschi, F. (2024). Data-driven physics-based modeling of pedestrian dynamics. Phys. Rev. E 110 (6 Dec. 2024), p. 064102. DOI: 10.1103/PhysRevE.110.064102.
Abstract. We introduce a data-driven physics-based generalized Langevin model that allows robust and generic modeling of pedestrian behavior across any environment where extensive pedestrian trajectory data is available. Our model effectively captures the complex interplay between the deterministic movements and stochastic fluctuations associated with walking.
Documentation
- Documentation: https://c-pouw.github.io/physics-based-pedestrian-modeling.
Usage Notebook
This Goolge Colab notebook can be used to create pedestrians models without the need to install the package or download any data. The notebook can be used with all the environments discussed below, or can be easily adapted for any other data set.
Installation
You can install the package from PyPI
pip install physics-based-pedestrian-modeling
Using the CLI
Run the main processing script for one of the available environments by overwriting the params variable with the configuration filename of the environment. The configuration filenames associated to every environment are specified below. These parameter configurations are handled by Hydra, see their documentation for more details .
physped_cli params=CONFIGURATION_FILE_NAME
Similarly, we can overwrite all the other parameter directly from the command line. For instance, if we want to process the narrow corridor trajectories with a different noice intensity, e.g. sigma=0.7, we can simply run
physped_cli params=narrow_corridor params.model.sigma=0.7
Creating the model for multiple parameter values can be achieved by adding -m and listing the variables. For example
physped_cli -m params=narrow_corridor params.model.sigma=0.5,0.7,0.9
Available environments
Every environment discussed in the paper that relies a on public data set can be modeled using the cli by overwriting the 'params' variable with one of the following configuration filenames:
Narrow corridor
The dynamics of a single pedestrian walking undisturbed through a narrow corridor is possibly one of the simplest conceivable dynamics; an almost one-dimensional movement solely confined by two parallel corridor walls.
To model this environment we use the public pedestrian trajectory dataset: Crowdflow – diluted pedestrian dynamics in the Metaforum building of Eindhoven University of Technology.
Configuration filename: narrow_corridor
Intersecting walking paths
Trajectories of intersecting walking paths. We synthesize these from the narrow corridor trajectory data set for which half of the trajectories are rotated by 90 degrees. Note that these trajectories were measured in the dilute limit, consequently there is no interaction between them.
Configuration filename: intersecting_paths
Train station platforms
Complex dynamics of pedestrians walking across real-life train platforms.
Eindhoven train station track 3-4.
Configuration filename: eindhoven_pf34.
To model this environment we use the public pedestrian trajectory dataset: Data-driven physics-based modeling of pedestrian dynamics - dataset: Pedestrian trajectories at Eindhoven train station
Amsterdam Zuid train station track 1-2.
Configuration filename: asdz_pf12.
To model this environment we use the public pedestrian trajectory dataset: Trajectory data Amsterdam Zuid (track 1-2) underlying the PhD-thesis: Mind your passenger! The passenger capacity of platforms at railway stations in the Netherlands
License
- Free software: 3-clause BSD license
Contact
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file physics_based_pedestrian_modeling-0.3.8.tar.gz.
File metadata
- Download URL: physics_based_pedestrian_modeling-0.3.8.tar.gz
- Upload date:
- Size: 91.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8b4c2244d2257361cd22cf5c131b23b9c65e86779655569a4b75af9b3c5e4abc
|
|
| MD5 |
4fe7f24cb5dbf2cf04f488a258ceb130
|
|
| BLAKE2b-256 |
c7bfeb92e93800f6de9eb75f8fdd02bc7cc278387b4e2ff954fa47cbd4ceb70c
|
File details
Details for the file physics_based_pedestrian_modeling-0.3.8-py3-none-any.whl.
File metadata
- Download URL: physics_based_pedestrian_modeling-0.3.8-py3-none-any.whl
- Upload date:
- Size: 119.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e1f2172dfa46e8a6c05d15d448c388c28900b816acd28ea34415fc05a78b7b62
|
|
| MD5 |
f75dce28e3ab07ef60c256f5b652833a
|
|
| BLAKE2b-256 |
0859ad8d03fa3820e57a5ee155f02cc32152913e39ca5d914bc063a23e905741
|