Python package to create physics-based pedestrian models from crowd measurements
Project description
Data-driven physics-based modeling of pedestrian dynamics
Project Overview
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. Preprint, https://arxiv.org/abs/2407.20794
Documentation
- Documentation: https://c-pouw.github.io/physics-based-pedestrian-modeling.
Usage Notebooks
- Quick-start notebook demonstrating the generalized pedestrian model.
This notebook can be used to create a model for all the environments that rely on public data sets without the need to locally install the package.
Installation
Alternatively, you can locally install the package from PyPI
pip install --upgrade 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 file name of the environment. The configuration file names 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
The environments that rely on public data sets can be used by overwriting the 'params' variable with one of the following configuration file names:
Narrow corridor
Trajectories of walking paths in a narrow corridor.
Configuration file name: narrow_corridor
Intersecting walking paths
Trajectories of intersecting walking paths.
Configuration file name: intersecting_paths
Train station platform
Trajectories of walking paths in the Amsterdam Zuid train station on platform 1 and 2.
Configuration file name: asdz_pf12
License
- Free software: 3-clause BSD license
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
File details
Details for the file physics_based_pedestrian_modeling-0.3.0.tar.gz
.
File metadata
- Download URL: physics_based_pedestrian_modeling-0.3.0.tar.gz
- Upload date:
- Size: 52.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.8.10 Linux/5.15.0-117-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 447483a4d6044d68f37cbf8fb2ad1dc7a8eb12dca906a7a1f7cbb9e395ec4ca7 |
|
MD5 | f8feb96b19dca0c0b4f384313c054e9a |
|
BLAKE2b-256 | d17ab3908234b5911485432de76d497523246718dd0ca97e8d24e1421c712a6a |
File details
Details for the file physics_based_pedestrian_modeling-0.3.0-py3-none-any.whl
.
File metadata
- Download URL: physics_based_pedestrian_modeling-0.3.0-py3-none-any.whl
- Upload date:
- Size: 74.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.8.10 Linux/5.15.0-117-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 337e1c10623105c7a891a8b6d2b5cb1b270e234af5bf8e0cbae992c1b29b52e7 |
|
MD5 | f1b09b5799ef0b1a15b161c01465ae92 |
|
BLAKE2b-256 | d1e02e5ba40cc7b3153333b0740203606bcd0c0bb36237109696b43199587956 |