Skip to main content

Python package to create physics-based pedestrian models from crowd measurements

Project description

Data-driven physics-based modeling of pedestrian dynamics

tests coverage PyPI - Python Version Licence Code style: black arXiv

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

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 Hydra.

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

physics_based_pedestrian_modeling-0.3.1.tar.gz (52.7 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file physics_based_pedestrian_modeling-0.3.1.tar.gz.

File metadata

File hashes

Hashes for physics_based_pedestrian_modeling-0.3.1.tar.gz
Algorithm Hash digest
SHA256 e8f5d87bf2f7492670d6cee452d007d05a4f3f464a4f5486587dcc602edce912
MD5 67f3a9b644af239790093501dbbace22
BLAKE2b-256 377bc46e390bd5a6d29e6c56fe62f2322a2e533c2bea94ab9b846589f3883402

See more details on using hashes here.

File details

Details for the file physics_based_pedestrian_modeling-0.3.1-py3-none-any.whl.

File metadata

File hashes

Hashes for physics_based_pedestrian_modeling-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7db282c30b7760c392f64511df3aeb575d4c1569ad09871c877e7c57ad1d26b5
MD5 97e5678e621261ea3a0acab30fa4c6ab
BLAKE2b-256 7ed0a2e3eda2b8f97d567285fdef690eeb4cedcde8b14362f9849371f9ba977f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page